Add gdb for or1k build
[deliverable/binutils-gdb.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GOC_FOR_TARGET
585 GFORTRAN_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
596 NM
597 LIPO
598 LD
599 DLLTOOL
600 AS
601 AR
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
606 LEX
607 M4
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 DLLTOOL_FOR_BUILD
619 CXX_FOR_BUILD
620 CXXFLAGS_FOR_BUILD
621 CFLAGS_FOR_BUILD
622 CC_FOR_BUILD
623 AS_FOR_BUILD
624 AR_FOR_BUILD
625 target_configdirs
626 configdirs
627 build_configdirs
628 INSTALL_GDB_TK
629 GDB_TK
630 CONFIGURE_GDB_TK
631 build_tooldir
632 tooldir
633 GCC_SHLIB_SUBDIR
634 RPATH_ENVVAR
635 target_configargs
636 host_configargs
637 build_configargs
638 BUILD_CONFIG
639 LDFLAGS_FOR_TARGET
640 CXXFLAGS_FOR_TARGET
641 CFLAGS_FOR_TARGET
642 DEBUG_PREFIX_CFLAGS_FOR_TARGET
643 SYSROOT_CFLAGS_FOR_TARGET
644 extra_host_zlib_configure_flags
645 extra_host_libiberty_configure_flags
646 stage1_languages
647 extra_linker_plugin_flags
648 extra_linker_plugin_configure_flags
649 islinc
650 isllibs
651 islver
652 poststage1_ldflags
653 poststage1_libs
654 stage1_ldflags
655 stage1_libs
656 extra_isl_gmp_configure_flags
657 extra_mpc_mpfr_configure_flags
658 extra_mpc_gmp_configure_flags
659 extra_mpfr_configure_flags
660 gmpinc
661 gmplibs
662 do_compare
663 GNATMAKE
664 GNATBIND
665 ac_ct_CXX
666 CXXFLAGS
667 CXX
668 OBJEXT
669 EXEEXT
670 ac_ct_CC
671 CPPFLAGS
672 LDFLAGS
673 CFLAGS
674 CC
675 extra_liboffloadmic_configure_flags
676 target_subdir
677 host_subdir
678 build_subdir
679 build_libsubdir
680 AWK
681 SED
682 LN_S
683 LN
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 target_noncanonical
696 host_noncanonical
697 build_noncanonical
698 build_os
699 build_vendor
700 build_cpu
701 build
702 TOPLEVEL_CONFIGURE_ARGUMENTS
703 target_alias
704 host_alias
705 build_alias
706 LIBS
707 ECHO_T
708 ECHO_N
709 ECHO_C
710 DEFS
711 mandir
712 localedir
713 libdir
714 psdir
715 pdfdir
716 dvidir
717 htmldir
718 infodir
719 docdir
720 oldincludedir
721 includedir
722 localstatedir
723 sharedstatedir
724 sysconfdir
725 datadir
726 datarootdir
727 libexecdir
728 sbindir
729 bindir
730 program_transform_name
731 prefix
732 exec_prefix
733 PACKAGE_URL
734 PACKAGE_BUGREPORT
735 PACKAGE_STRING
736 PACKAGE_VERSION
737 PACKAGE_TARNAME
738 PACKAGE_NAME
739 PATH_SEPARATOR
740 SHELL'
741 ac_subst_files='serialization_dependencies
742 host_makefile_frag
743 target_makefile_frag
744 alphaieee_frag
745 ospace_frag'
746 ac_user_opts='
747 enable_option_checking
748 with_build_libsubdir
749 with_system_zlib
750 enable_as_accelerator_for
751 enable_offload_targets
752 enable_gold
753 enable_ld
754 enable_compressed_debug_sections
755 enable_libquadmath
756 enable_libquadmath_support
757 enable_libada
758 enable_libssp
759 enable_libstdcxx
760 enable_liboffloadmic
761 enable_bootstrap
762 with_mpc
763 with_mpc_include
764 with_mpc_lib
765 with_mpfr_dir
766 with_mpfr
767 with_mpfr_include
768 with_mpfr_lib
769 with_gmp_dir
770 with_gmp
771 with_gmp_include
772 with_gmp_lib
773 with_stage1_libs
774 with_stage1_ldflags
775 with_boot_libs
776 with_boot_ldflags
777 with_isl
778 with_isl_include
779 with_isl_lib
780 enable_isl_version_check
781 enable_lto
782 enable_linker_plugin_configure_flags
783 enable_linker_plugin_flags
784 enable_stage1_languages
785 enable_objc_gc
786 with_target_bdw_gc
787 with_target_bdw_gc_include
788 with_target_bdw_gc_lib
789 with_build_sysroot
790 with_debug_prefix_map
791 with_build_config
792 enable_vtable_verify
793 enable_serial_configure
794 with_build_time_tools
795 enable_maintainer_mode
796 enable_stage1_checking
797 enable_werror
798 enable_host_shared
799 '
800 ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CXX
809 CXXFLAGS
810 CCC
811 build_configargs
812 host_configargs
813 target_configargs
814 AR
815 AS
816 DLLTOOL
817 LD
818 LIPO
819 NM
820 RANLIB
821 STRIP
822 WINDRES
823 WINDMC
824 OBJCOPY
825 OBJDUMP
826 READELF
827 CC_FOR_TARGET
828 CXX_FOR_TARGET
829 GCC_FOR_TARGET
830 GFORTRAN_FOR_TARGET
831 GOC_FOR_TARGET
832 AR_FOR_TARGET
833 AS_FOR_TARGET
834 DLLTOOL_FOR_TARGET
835 LD_FOR_TARGET
836 LIPO_FOR_TARGET
837 NM_FOR_TARGET
838 OBJCOPY_FOR_TARGET
839 OBJDUMP_FOR_TARGET
840 RANLIB_FOR_TARGET
841 READELF_FOR_TARGET
842 STRIP_FOR_TARGET
843 WINDRES_FOR_TARGET
844 WINDMC_FOR_TARGET'
845
846
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
868
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
894
895 ac_prev=
896 ac_dashdash=
897 for ac_option
898 do
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
904 fi
905
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
910
911 # Accept the important Cygnus configure options, so we can diagnose typos.
912
913 case $ac_dashdash$ac_option in
914 --)
915 ac_dashdash=yes ;;
916
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
921
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
926
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
933
934 --config-cache | -C)
935 cache_file=config.cache ;;
936
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
941
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
948
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
964
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
969
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
974
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=\$ac_optarg ;;
990
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
999
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1003
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1010
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1015
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1021
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1028
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1033
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1038
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1045
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1050
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1057
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1062
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1066
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1070
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1074
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1083
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1088
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1095
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1102
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1119
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1124
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1129
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1133
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1138 sbindir=$ac_optarg ;;
1139
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1149 sharedstatedir=$ac_optarg ;;
1150
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1154 site=$ac_optarg ;;
1155
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1160
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1167
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1172
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1175
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1178
1179 -with-* | --with-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=\$ac_optarg ;;
1194
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
1210
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1214
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1221
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1228
1229 -*) as_fn_error "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information."
1231 ;;
1232
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1242
1243 *)
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 ;;
1250
1251 esac
1252 done
1253
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error "missing argument to $ac_option"
1257 fi
1258
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1265 fi
1266
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1272 do
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1287
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1294
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error "pwd does not report name of working directory"
1318
1319
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1350 fi
1351 else
1352 ac_srcdir_defaulted=no
1353 fi
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1357 fi
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365 fi
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 case $srcdir in
1373 *" "*)
1374 as_fn_error "path to source, $srcdir, contains spaces"
1375 ;;
1376 esac
1377 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1378
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures this package to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1447
1448 cat <<\_ACEOF
1449
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463
1464 cat <<\_ACEOF
1465
1466 Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-as-accelerator-for=ARG
1471 build as offload target compiler. Specify offload
1472 host triple by ARG
1473 --enable-offload-targets=LIST
1474 enable offloading to devices from comma-separated
1475 LIST of TARGET[=DIR]. Use optional path to find
1476 offload target compiler during the build
1477 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1478 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1479 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1480 Enable compressed debug sections for gas, gold or ld
1481 by default
1482 --disable-libquadmath do not build libquadmath directory
1483 --disable-libquadmath-support
1484 disable libquadmath support for Fortran
1485 --enable-libada build libada directory
1486 --enable-libssp build libssp directory
1487 --disable-libstdcxx do not build libstdc++-v3 directory
1488 --enable-liboffloadmic=ARG
1489 build liboffloadmic [ARG={no,host,target}]
1490 --enable-bootstrap enable bootstrapping [yes if native build]
1491 --disable-isl-version-check
1492 disable check for isl version
1493 --enable-lto enable link time optimization support
1494 --enable-linker-plugin-configure-flags=FLAGS
1495 additional flags for configuring linker plugins
1496 [none]
1497 --enable-linker-plugin-flags=FLAGS
1498 additional flags for configuring and building linker
1499 plugins [none]
1500 --enable-stage1-languages[=all]
1501 choose additional languages to build during stage1.
1502 Mostly useful for compiler development
1503 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1504 Objective-C runtime
1505 --enable-vtable-verify Enable vtable verification feature
1506 --enable-serial-[{host,target,build}-]configure
1507 force sequential configuration of sub-packages for
1508 the host, target or build machine, or all
1509 sub-packages
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1515 compiler
1516 --enable-werror enable -Werror in bootstrap stage2 and later
1517 --enable-host-shared build host code as shared libraries
1518
1519 Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
1523 --with-system-zlib use installed libz
1524 --with-mpc=PATH specify prefix directory for installed MPC package.
1525 Equivalent to --with-mpc-include=PATH/include plus
1526 --with-mpc-lib=PATH/lib
1527 --with-mpc-include=PATH specify directory for installed MPC include files
1528 --with-mpc-lib=PATH specify directory for the installed MPC library
1529 --with-mpfr-dir=PATH this option has been REMOVED
1530 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1531 Equivalent to --with-mpfr-include=PATH/include plus
1532 --with-mpfr-lib=PATH/lib
1533 --with-mpfr-include=PATH
1534 specify directory for installed MPFR include files
1535 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1536 --with-gmp-dir=PATH this option has been REMOVED
1537 --with-gmp=PATH specify prefix directory for the installed GMP
1538 package. Equivalent to
1539 --with-gmp-include=PATH/include plus
1540 --with-gmp-lib=PATH/lib
1541 --with-gmp-include=PATH specify directory for installed GMP include files
1542 --with-gmp-lib=PATH specify directory for the installed GMP library
1543 --with-stage1-libs=LIBS libraries for stage1
1544 --with-stage1-ldflags=FLAGS
1545 linker flags for stage1
1546 --with-boot-libs=LIBS libraries for stage2 and later
1547 --with-boot-ldflags=FLAGS
1548 linker flags for stage2 and later
1549 --with-isl=PATH Specify prefix directory for the installed isl
1550 package. Equivalent to
1551 --with-isl-include=PATH/include plus
1552 --with-isl-lib=PATH/lib
1553 --with-isl-include=PATH Specify directory for installed isl include files
1554 --with-isl-lib=PATH Specify the directory for the installed isl library
1555 --with-target-bdw-gc=PATHLIST
1556 specify prefix directory for installed bdw-gc
1557 package. Equivalent to
1558 --with-target-bdw-gc-include=PATH/include plus
1559 --with-target-bdw-gc-lib=PATH/lib
1560 --with-target-bdw-gc-include=PATHLIST
1561 specify directories for installed bdw-gc include
1562 files
1563 --with-target-bdw-gc-lib=PATHLIST
1564 specify directories for installed bdw-gc library
1565 --with-build-sysroot=SYSROOT
1566 use sysroot as the system root during the build
1567 --with-debug-prefix-map='A=B C=D ...'
1568 map A to B, C to D ... in debug information
1569 --with-build-config='NAME NAME2...'
1570 use config/NAME.mk build configuration
1571 --with-build-time-tools=PATH
1572 use given path to find target tools during the build
1573
1574 Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1582 CXX C++ compiler command
1583 CXXFLAGS C++ compiler flags
1584 build_configargs
1585 additional configure arguments for build directories
1586 host_configargs
1587 additional configure arguments for host directories
1588 target_configargs
1589 additional configure arguments for target directories
1590 AR AR for the host
1591 AS AS for the host
1592 DLLTOOL DLLTOOL for the host
1593 LD LD for the host
1594 LIPO LIPO for the host
1595 NM NM for the host
1596 RANLIB RANLIB for the host
1597 STRIP STRIP for the host
1598 WINDRES WINDRES for the host
1599 WINDMC WINDMC for the host
1600 OBJCOPY OBJCOPY for the host
1601 OBJDUMP OBJDUMP for the host
1602 READELF READELF for the host
1603 CC_FOR_TARGET
1604 CC for the target
1605 CXX_FOR_TARGET
1606 CXX for the target
1607 GCC_FOR_TARGET
1608 GCC for the target
1609 GFORTRAN_FOR_TARGET
1610 GFORTRAN for the target
1611 GOC_FOR_TARGET
1612 GOC for the target
1613 AR_FOR_TARGET
1614 AR for the target
1615 AS_FOR_TARGET
1616 AS for the target
1617 DLLTOOL_FOR_TARGET
1618 DLLTOOL for the target
1619 LD_FOR_TARGET
1620 LD for the target
1621 LIPO_FOR_TARGET
1622 LIPO for the target
1623 NM_FOR_TARGET
1624 NM for the target
1625 OBJCOPY_FOR_TARGET
1626 OBJCOPY for the target
1627 OBJDUMP_FOR_TARGET
1628 OBJDUMP for the target
1629 RANLIB_FOR_TARGET
1630 RANLIB for the target
1631 READELF_FOR_TARGET
1632 READELF for the target
1633 STRIP_FOR_TARGET
1634 STRIP for the target
1635 WINDRES_FOR_TARGET
1636 WINDRES for the target
1637 WINDMC_FOR_TARGET
1638 WINDMC for the target
1639
1640 Use these variables to override the choices made by `configure' or to help
1641 it to find libraries and programs with nonstandard names/locations.
1642
1643 Report bugs to the package provider.
1644 _ACEOF
1645 ac_status=$?
1646 fi
1647
1648 if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651 test -d "$ac_dir" ||
1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 continue
1654 ac_builddir=.
1655
1656 case "$ac_dir" in
1657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 *)
1659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660 # A ".." for each directory in $ac_dir_suffix.
1661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662 case $ac_top_builddir_sub in
1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665 esac ;;
1666 esac
1667 ac_abs_top_builddir=$ac_pwd
1668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669 # for backward compatibility:
1670 ac_top_builddir=$ac_top_build_prefix
1671
1672 case $srcdir in
1673 .) # We are building in place.
1674 ac_srcdir=.
1675 ac_top_srcdir=$ac_top_builddir_sub
1676 ac_abs_top_srcdir=$ac_pwd ;;
1677 [\\/]* | ?:[\\/]* ) # Absolute name.
1678 ac_srcdir=$srcdir$ac_dir_suffix;
1679 ac_top_srcdir=$srcdir
1680 ac_abs_top_srcdir=$srcdir ;;
1681 *) # Relative name.
1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683 ac_top_srcdir=$ac_top_build_prefix$srcdir
1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1685 esac
1686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687
1688 cd "$ac_dir" || { ac_status=$?; continue; }
1689 # Check for guested configure.
1690 if test -f "$ac_srcdir/configure.gnu"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693 elif test -f "$ac_srcdir/configure"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure" --help=recursive
1696 else
1697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698 fi || ac_status=$?
1699 cd "$ac_pwd" || { ac_status=$?; break; }
1700 done
1701 fi
1702
1703 test -n "$ac_init_help" && exit $ac_status
1704 if $ac_init_version; then
1705 cat <<\_ACEOF
1706 configure
1707 generated by GNU Autoconf 2.64
1708
1709 Copyright (C) 2009 Free Software Foundation, Inc.
1710 This configure script is free software; the Free Software Foundation
1711 gives unlimited permission to copy, distribute and modify it.
1712 _ACEOF
1713 exit
1714 fi
1715
1716 ## ------------------------ ##
1717 ## Autoconf initialization. ##
1718 ## ------------------------ ##
1719
1720 # ac_fn_c_try_compile LINENO
1721 # --------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_compile ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752 fi
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 return $ac_retval
1755
1756 } # ac_fn_c_try_compile
1757
1758 # ac_fn_cxx_try_compile LINENO
1759 # ----------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_cxx_try_compile ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1766 case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1778 fi
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_cxx_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1784 ac_retval=0
1785 else
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=1
1790 fi
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1793
1794 } # ac_fn_cxx_try_compile
1795
1796 # ac_fn_cxx_try_link LINENO
1797 # -------------------------
1798 # Try to link conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_link ()
1800 {
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext conftest$ac_exeext
1803 if { { ac_try="$ac_link"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_link") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1816 fi
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest$ac_exeext && {
1822 test "$cross_compiling" = yes ||
1823 $as_test_x conftest$ac_exeext
1824 }; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831 fi
1832 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1833 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1834 # interfere with the next link command; also delete a directory that is
1835 # left behind by Apple's compiler. We do this before executing the actions.
1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 return $ac_retval
1839
1840 } # ac_fn_cxx_try_link
1841
1842 # ac_fn_c_try_link LINENO
1843 # -----------------------
1844 # Try to link conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_c_try_link ()
1846 {
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext conftest$ac_exeext
1849 if { { ac_try="$ac_link"
1850 case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_link") 2>conftest.err
1857 ac_status=$?
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1862 fi
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest$ac_exeext && {
1868 test "$cross_compiling" = yes ||
1869 $as_test_x conftest$ac_exeext
1870 }; then :
1871 ac_retval=0
1872 else
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1875
1876 ac_retval=1
1877 fi
1878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880 # interfere with the next link command; also delete a directory that is
1881 # left behind by Apple's compiler. We do this before executing the actions.
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1885
1886 } # ac_fn_c_try_link
1887 cat >config.log <<_ACEOF
1888 This file contains any messages produced by compilers while
1889 running configure, to aid debugging if configure makes a mistake.
1890
1891 It was created by $as_me, which was
1892 generated by GNU Autoconf 2.64. Invocation command line was
1893
1894 $ $0 $@
1895
1896 _ACEOF
1897 exec 5>>config.log
1898 {
1899 cat <<_ASUNAME
1900 ## --------- ##
1901 ## Platform. ##
1902 ## --------- ##
1903
1904 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1905 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1906 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1907 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1908 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1909
1910 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1911 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1912
1913 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1914 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1915 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1916 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1917 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1918 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1919 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1920
1921 _ASUNAME
1922
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
1928 $as_echo "PATH: $as_dir"
1929 done
1930 IFS=$as_save_IFS
1931
1932 } >&5
1933
1934 cat >&5 <<_ACEOF
1935
1936
1937 ## ----------- ##
1938 ## Core tests. ##
1939 ## ----------- ##
1940
1941 _ACEOF
1942
1943
1944 # Keep a trace of the command line.
1945 # Strip out --no-create and --no-recursion so they do not pile up.
1946 # Strip out --silent because we don't want to record it for future runs.
1947 # Also quote any args containing shell meta-characters.
1948 # Make two passes to allow for proper duplicate-argument suppression.
1949 ac_configure_args=
1950 ac_configure_args0=
1951 ac_configure_args1=
1952 ac_must_keep_next=false
1953 for ac_pass in 1 2
1954 do
1955 for ac_arg
1956 do
1957 case $ac_arg in
1958 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1960 | -silent | --silent | --silen | --sile | --sil)
1961 continue ;;
1962 *\'*)
1963 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1964 esac
1965 case $ac_pass in
1966 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1967 2)
1968 as_fn_append ac_configure_args1 " '$ac_arg'"
1969 if test $ac_must_keep_next = true; then
1970 ac_must_keep_next=false # Got value, back to normal.
1971 else
1972 case $ac_arg in
1973 *=* | --config-cache | -C | -disable-* | --disable-* \
1974 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1975 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1976 | -with-* | --with-* | -without-* | --without-* | --x)
1977 case "$ac_configure_args0 " in
1978 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1979 esac
1980 ;;
1981 -* ) ac_must_keep_next=true ;;
1982 esac
1983 fi
1984 as_fn_append ac_configure_args " '$ac_arg'"
1985 ;;
1986 esac
1987 done
1988 done
1989 { ac_configure_args0=; unset ac_configure_args0;}
1990 { ac_configure_args1=; unset ac_configure_args1;}
1991
1992 # When interrupted or exit'd, cleanup temporary files, and complete
1993 # config.log. We remove comments because anyway the quotes in there
1994 # would cause problems or look ugly.
1995 # WARNING: Use '\'' to represent an apostrophe within the trap.
1996 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1997 trap 'exit_status=$?
1998 # Save into config.log some information that might help in debugging.
1999 {
2000 echo
2001
2002 cat <<\_ASBOX
2003 ## ---------------- ##
2004 ## Cache variables. ##
2005 ## ---------------- ##
2006 _ASBOX
2007 echo
2008 # The following way of writing the cache mishandles newlines in values,
2009 (
2010 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2011 eval ac_val=\$$ac_var
2012 case $ac_val in #(
2013 *${as_nl}*)
2014 case $ac_var in #(
2015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2016 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2017 esac
2018 case $ac_var in #(
2019 _ | IFS | as_nl) ;; #(
2020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2021 *) { eval $ac_var=; unset $ac_var;} ;;
2022 esac ;;
2023 esac
2024 done
2025 (set) 2>&1 |
2026 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2027 *${as_nl}ac_space=\ *)
2028 sed -n \
2029 "s/'\''/'\''\\\\'\'''\''/g;
2030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2031 ;; #(
2032 *)
2033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2034 ;;
2035 esac |
2036 sort
2037 )
2038 echo
2039
2040 cat <<\_ASBOX
2041 ## ----------------- ##
2042 ## Output variables. ##
2043 ## ----------------- ##
2044 _ASBOX
2045 echo
2046 for ac_var in $ac_subst_vars
2047 do
2048 eval ac_val=\$$ac_var
2049 case $ac_val in
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 esac
2052 $as_echo "$ac_var='\''$ac_val'\''"
2053 done | sort
2054 echo
2055
2056 if test -n "$ac_subst_files"; then
2057 cat <<\_ASBOX
2058 ## ------------------- ##
2059 ## File substitutions. ##
2060 ## ------------------- ##
2061 _ASBOX
2062 echo
2063 for ac_var in $ac_subst_files
2064 do
2065 eval ac_val=\$$ac_var
2066 case $ac_val in
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 esac
2069 $as_echo "$ac_var='\''$ac_val'\''"
2070 done | sort
2071 echo
2072 fi
2073
2074 if test -s confdefs.h; then
2075 cat <<\_ASBOX
2076 ## ----------- ##
2077 ## confdefs.h. ##
2078 ## ----------- ##
2079 _ASBOX
2080 echo
2081 cat confdefs.h
2082 echo
2083 fi
2084 test "$ac_signal" != 0 &&
2085 $as_echo "$as_me: caught signal $ac_signal"
2086 $as_echo "$as_me: exit $exit_status"
2087 } >&5
2088 rm -f core *.core core.conftest.* &&
2089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2090 exit $exit_status
2091 ' 0
2092 for ac_signal in 1 2 13 15; do
2093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2094 done
2095 ac_signal=0
2096
2097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2098 rm -f -r conftest* confdefs.h
2099
2100 $as_echo "/* confdefs.h */" > confdefs.h
2101
2102 # Predefined preprocessor variables.
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_NAME "$PACKAGE_NAME"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_STRING "$PACKAGE_STRING"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_URL "$PACKAGE_URL"
2126 _ACEOF
2127
2128
2129 # Let the site file select an alternate cache file if it wants to.
2130 # Prefer an explicitly selected file to automatically selected ones.
2131 ac_site_file1=NONE
2132 ac_site_file2=NONE
2133 if test -n "$CONFIG_SITE"; then
2134 ac_site_file1=$CONFIG_SITE
2135 elif test "x$prefix" != xNONE; then
2136 ac_site_file1=$prefix/share/config.site
2137 ac_site_file2=$prefix/etc/config.site
2138 else
2139 ac_site_file1=$ac_default_prefix/share/config.site
2140 ac_site_file2=$ac_default_prefix/etc/config.site
2141 fi
2142 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2143 do
2144 test "x$ac_site_file" = xNONE && continue
2145 if test -r "$ac_site_file"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2148 sed 's/^/| /' "$ac_site_file" >&5
2149 . "$ac_site_file"
2150 fi
2151 done
2152
2153 if test -r "$cache_file"; then
2154 # Some versions of bash will fail to source /dev/null (special
2155 # files actually), so we avoid doing that.
2156 if test -f "$cache_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158 $as_echo "$as_me: loading cache $cache_file" >&6;}
2159 case $cache_file in
2160 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161 *) . "./$cache_file";;
2162 esac
2163 fi
2164 else
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166 $as_echo "$as_me: creating cache $cache_file" >&6;}
2167 >$cache_file
2168 fi
2169
2170 # Check that the precious variables saved in the cache have kept the same
2171 # value.
2172 ac_cache_corrupted=false
2173 for ac_var in $ac_precious_vars; do
2174 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2175 eval ac_new_set=\$ac_env_${ac_var}_set
2176 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2177 eval ac_new_val=\$ac_env_${ac_var}_value
2178 case $ac_old_set,$ac_new_set in
2179 set,)
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2181 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2182 ac_cache_corrupted=: ;;
2183 ,set)
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2185 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2186 ac_cache_corrupted=: ;;
2187 ,);;
2188 *)
2189 if test "x$ac_old_val" != "x$ac_new_val"; then
2190 # differences in whitespace do not lead to failure.
2191 ac_old_val_w=`echo x $ac_old_val`
2192 ac_new_val_w=`echo x $ac_new_val`
2193 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2195 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2196 ac_cache_corrupted=:
2197 else
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2199 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2200 eval $ac_var=\$ac_old_val
2201 fi
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2203 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2205 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2206 fi;;
2207 esac
2208 # Pass precious variables to config.status.
2209 if test "$ac_new_set" = set; then
2210 case $ac_new_val in
2211 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2212 *) ac_arg=$ac_var=$ac_new_val ;;
2213 esac
2214 case " $ac_configure_args " in
2215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2216 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2217 esac
2218 fi
2219 done
2220 if $ac_cache_corrupted; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2224 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2225 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2226 fi
2227 ## -------------------- ##
2228 ## Main body of script. ##
2229 ## -------------------- ##
2230
2231 ac_ext=c
2232 ac_cpp='$CPP $CPPFLAGS'
2233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245 progname=$0
2246 # if PWD already has a value, it is probably wrong.
2247 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2248
2249 # Export original configure arguments for use by sub-configures.
2250 # Quote arguments with shell meta charatcers.
2251 TOPLEVEL_CONFIGURE_ARGUMENTS=
2252 set -- "$progname" "$@"
2253 for ac_arg
2254 do
2255 case "$ac_arg" in
2256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2257 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2258 # if the argument is of the form -foo=baz, quote the baz part only
2259 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2260 *) ;;
2261 esac
2262 # Add the quoted argument to the list.
2263 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2264 done
2265 if test "$silent" = yes; then
2266 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2267 fi
2268 # Remove the initial space we just introduced and, as these will be
2269 # expanded by make, quote '$'.
2270 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2271
2272
2273 # Find the build, host, and target systems.
2274 ac_aux_dir=
2275 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2276 for ac_t in install-sh install.sh shtool; do
2277 if test -f "$ac_dir/$ac_t"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/$ac_t -c"
2280 break 2
2281 fi
2282 done
2283 done
2284 if test -z "$ac_aux_dir"; then
2285 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2286 fi
2287
2288 # These three variables are undocumented and unsupported,
2289 # and are intended to be withdrawn in a future Autoconf release.
2290 # They can cause serious problems if a builder's source tree is in a directory
2291 # whose full name contains unusual characters.
2292 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2295
2296
2297 # Make sure we can run config.sub.
2298 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2299 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2300
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2302 $as_echo_n "checking build system type... " >&6; }
2303 if test "${ac_cv_build+set}" = set; then :
2304 $as_echo_n "(cached) " >&6
2305 else
2306 ac_build_alias=$build_alias
2307 test "x$ac_build_alias" = x &&
2308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2309 test "x$ac_build_alias" = x &&
2310 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2311 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2312 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2313
2314 fi
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2316 $as_echo "$ac_cv_build" >&6; }
2317 case $ac_cv_build in
2318 *-*-*) ;;
2319 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2320 esac
2321 build=$ac_cv_build
2322 ac_save_IFS=$IFS; IFS='-'
2323 set x $ac_cv_build
2324 shift
2325 build_cpu=$1
2326 build_vendor=$2
2327 shift; shift
2328 # Remember, the first character of IFS is used to create $*,
2329 # except with old shells:
2330 build_os=$*
2331 IFS=$ac_save_IFS
2332 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2333
2334
2335 case ${build_alias} in
2336 "") build_noncanonical=${build} ;;
2337 *) build_noncanonical=${build_alias} ;;
2338 esac
2339
2340
2341
2342 case ${host_alias} in
2343 "") host_noncanonical=${build_noncanonical} ;;
2344 *) host_noncanonical=${host_alias} ;;
2345 esac
2346
2347
2348
2349 case ${target_alias} in
2350 "") target_noncanonical=${host_noncanonical} ;;
2351 *) target_noncanonical=${target_alias} ;;
2352 esac
2353
2354
2355
2356
2357 test "$host_noncanonical" = "$target_noncanonical" &&
2358 test "$program_prefix$program_suffix$program_transform_name" = \
2359 NONENONEs,x,x, &&
2360 program_transform_name=s,y,y,
2361
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2363 $as_echo_n "checking host system type... " >&6; }
2364 if test "${ac_cv_host+set}" = set; then :
2365 $as_echo_n "(cached) " >&6
2366 else
2367 if test "x$host_alias" = x; then
2368 ac_cv_host=$ac_cv_build
2369 else
2370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2371 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2372 fi
2373
2374 fi
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2376 $as_echo "$ac_cv_host" >&6; }
2377 case $ac_cv_host in
2378 *-*-*) ;;
2379 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2380 esac
2381 host=$ac_cv_host
2382 ac_save_IFS=$IFS; IFS='-'
2383 set x $ac_cv_host
2384 shift
2385 host_cpu=$1
2386 host_vendor=$2
2387 shift; shift
2388 # Remember, the first character of IFS is used to create $*,
2389 # except with old shells:
2390 host_os=$*
2391 IFS=$ac_save_IFS
2392 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2393
2394
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2396 $as_echo_n "checking target system type... " >&6; }
2397 if test "${ac_cv_target+set}" = set; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 if test "x$target_alias" = x; then
2401 ac_cv_target=$ac_cv_host
2402 else
2403 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2404 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2405 fi
2406
2407 fi
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2409 $as_echo "$ac_cv_target" >&6; }
2410 case $ac_cv_target in
2411 *-*-*) ;;
2412 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2413 esac
2414 target=$ac_cv_target
2415 ac_save_IFS=$IFS; IFS='-'
2416 set x $ac_cv_target
2417 shift
2418 target_cpu=$1
2419 target_vendor=$2
2420 shift; shift
2421 # Remember, the first character of IFS is used to create $*,
2422 # except with old shells:
2423 target_os=$*
2424 IFS=$ac_save_IFS
2425 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2426
2427
2428 # The aliases save the names the user supplied, while $host etc.
2429 # will get canonicalized.
2430 test -n "$target_alias" &&
2431 test "$program_prefix$program_suffix$program_transform_name" = \
2432 NONENONEs,x,x, &&
2433 program_prefix=${target_alias}-
2434
2435 test "$program_prefix" != NONE &&
2436 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2437 # Use a double $ so make ignores it.
2438 test "$program_suffix" != NONE &&
2439 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2440 # Double any \ or $.
2441 # By default was `s,x,x', remove it if useless.
2442 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2443 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2444
2445
2446
2447 # Get 'install' or 'install-sh' and its variants.
2448 # Find a good install program. We prefer a C program (faster),
2449 # so one script is as good as another. But avoid the broken or
2450 # incompatible versions:
2451 # SysV /etc/install, /usr/sbin/install
2452 # SunOS /usr/etc/install
2453 # IRIX /sbin/install
2454 # AIX /bin/install
2455 # AmigaOS /C/install, which installs bootblocks on floppy discs
2456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2459 # OS/2's system install, which has a completely different semantic
2460 # ./install, which can be erroneously created by make from ./install.sh.
2461 # Reject install programs that cannot install multiple files.
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2463 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2464 if test -z "$INSTALL"; then
2465 if test "${ac_cv_path_install+set}" = set; then :
2466 $as_echo_n "(cached) " >&6
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 # Account for people who put trailing slashes in PATH elements.
2474 case $as_dir/ in #((
2475 ./ | .// | /[cC]/* | \
2476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2478 /usr/ucb/* ) ;;
2479 *)
2480 # OSF1 and SCO ODT 3.0 have their own names for install.
2481 # Don't use installbsd from OSF since it installs stuff as root
2482 # by default.
2483 for ac_prog in ginstall scoinst install; do
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2486 if test $ac_prog = install &&
2487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # AIX install. It has an incompatible calling convention.
2489 :
2490 elif test $ac_prog = install &&
2491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # program-specific install script used by HP pwplus--don't use.
2493 :
2494 else
2495 rm -rf conftest.one conftest.two conftest.dir
2496 echo one > conftest.one
2497 echo two > conftest.two
2498 mkdir conftest.dir
2499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2500 test -s conftest.one && test -s conftest.two &&
2501 test -s conftest.dir/conftest.one &&
2502 test -s conftest.dir/conftest.two
2503 then
2504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2505 break 3
2506 fi
2507 fi
2508 fi
2509 done
2510 done
2511 ;;
2512 esac
2513
2514 done
2515 IFS=$as_save_IFS
2516
2517 rm -rf conftest.one conftest.two conftest.dir
2518
2519 fi
2520 if test "${ac_cv_path_install+set}" = set; then
2521 INSTALL=$ac_cv_path_install
2522 else
2523 # As a last resort, use the slow shell script. Don't cache a
2524 # value for INSTALL within a source directory, because that will
2525 # break other packages using the cache if that directory is
2526 # removed, or if the value is a relative name.
2527 INSTALL=$ac_install_sh
2528 fi
2529 fi
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2531 $as_echo "$INSTALL" >&6; }
2532
2533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2534 # It thinks the first close brace ends the variable substitution.
2535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2536
2537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2538
2539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2540
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2542 $as_echo_n "checking whether ln works... " >&6; }
2543 if test "${acx_cv_prog_LN+set}" = set; then :
2544 $as_echo_n "(cached) " >&6
2545 else
2546 rm -f conftestdata_t
2547 echo >conftestdata_f
2548 if ln conftestdata_f conftestdata_t 2>/dev/null
2549 then
2550 acx_cv_prog_LN=ln
2551 else
2552 acx_cv_prog_LN=no
2553 fi
2554 rm -f conftestdata_f conftestdata_t
2555
2556 fi
2557 if test $acx_cv_prog_LN = no; then
2558 LN="cp"
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2560 $as_echo "no, using $LN" >&6; }
2561 else
2562 LN="$acx_cv_prog_LN"
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564 $as_echo "yes" >&6; }
2565 fi
2566
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2568 $as_echo_n "checking whether ln -s works... " >&6; }
2569 LN_S=$as_ln_s
2570 if test "$LN_S" = "ln -s"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2572 $as_echo "yes" >&6; }
2573 else
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2575 $as_echo "no, using $LN_S" >&6; }
2576 fi
2577
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2579 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2580 if test "${ac_cv_path_SED+set}" = set; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2584 for ac_i in 1 2 3 4 5 6 7; do
2585 ac_script="$ac_script$as_nl$ac_script"
2586 done
2587 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2588 { ac_script=; unset ac_script;}
2589 if test -z "$SED"; then
2590 ac_path_SED_found=false
2591 # Loop through the user's path and test for each of PROGNAME-LIST
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_prog in sed gsed; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2600 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2601 # Check for GNU ac_path_SED and select it if it is found.
2602 # Check for GNU $ac_path_SED
2603 case `"$ac_path_SED" --version 2>&1` in
2604 *GNU*)
2605 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2606 *)
2607 ac_count=0
2608 $as_echo_n 0123456789 >"conftest.in"
2609 while :
2610 do
2611 cat "conftest.in" "conftest.in" >"conftest.tmp"
2612 mv "conftest.tmp" "conftest.in"
2613 cp "conftest.in" "conftest.nl"
2614 $as_echo '' >> "conftest.nl"
2615 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2617 as_fn_arith $ac_count + 1 && ac_count=$as_val
2618 if test $ac_count -gt ${ac_path_SED_max-0}; then
2619 # Best one so far, save it but keep looking for a better one
2620 ac_cv_path_SED="$ac_path_SED"
2621 ac_path_SED_max=$ac_count
2622 fi
2623 # 10*(2^10) chars as input seems more than enough
2624 test $ac_count -gt 10 && break
2625 done
2626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2627 esac
2628
2629 $ac_path_SED_found && break 3
2630 done
2631 done
2632 done
2633 IFS=$as_save_IFS
2634 if test -z "$ac_cv_path_SED"; then
2635 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2636 fi
2637 else
2638 ac_cv_path_SED=$SED
2639 fi
2640
2641 fi
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2643 $as_echo "$ac_cv_path_SED" >&6; }
2644 SED="$ac_cv_path_SED"
2645 rm -f conftest.sed
2646
2647 for ac_prog in gawk mawk nawk awk
2648 do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_AWK+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 if test -n "$AWK"; then
2657 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_AWK="$ac_prog"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670 done
2671 done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 AWK=$ac_cv_prog_AWK
2677 if test -n "$AWK"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679 $as_echo "$AWK" >&6; }
2680 else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685
2686 test -n "$AWK" && break
2687 done
2688
2689
2690 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2691
2692 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2693 # a relative path.
2694 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2695 INSTALL="${srcpwd}/install-sh -c"
2696 fi
2697
2698 # Set srcdir to "." if that's what it is.
2699 # This is important for multilib support.
2700 pwd=`${PWDCMD-pwd}`
2701 if test "${pwd}" = "${srcpwd}" ; then
2702 srcdir=.
2703 fi
2704
2705 topsrcdir=$srcpwd
2706
2707 extra_host_args=
2708
2709 ### To add a new directory to the tree, first choose whether it is a target
2710 ### or a host dependent tool. Then put it into the appropriate list
2711 ### (library or tools, host or target), doing a dependency sort.
2712
2713 # Subdirs will be configured in the order listed in build_configdirs,
2714 # configdirs, or target_configdirs; see the serialization section below.
2715
2716 # Dependency sorting is only needed when *configuration* must be done in
2717 # a particular order. In all cases a dependency should be specified in
2718 # the Makefile, whether or not it's implicitly specified here.
2719
2720 # Double entries in build_configdirs, configdirs, or target_configdirs may
2721 # cause circular dependencies and break everything horribly.
2722
2723 # these library is used by various programs built for the build
2724 # environment
2725 #
2726 build_libs="build-libiberty build-libcpp"
2727
2728 # these tools are built for the build environment
2729 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2730
2731 # these libraries are used by various programs built for the host environment
2732 #f
2733 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2734
2735 # these tools are built for the host environment
2736 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2737 # know that we are building the simulator.
2738 # binutils, gas and ld appear in that order because it makes sense to run
2739 # "make check" in that particular order.
2740 # If --enable-gold is used, "gold" may replace "ld".
2741 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2742
2743 # these libraries are built for the target environment, and are built after
2744 # the host libraries and the host tools (which may be a cross compiler)
2745 # Note that libiberty is not a target library.
2746 target_libraries="target-libgcc \
2747 target-libbacktrace \
2748 target-libgloss \
2749 target-newlib \
2750 target-libgomp \
2751 target-libcilkrts \
2752 target-liboffloadmic \
2753 target-libatomic \
2754 target-libitm \
2755 target-libstdc++-v3 \
2756 target-libsanitizer \
2757 target-libvtv \
2758 target-libmpx \
2759 target-libssp \
2760 target-libquadmath \
2761 target-libgfortran \
2762 target-libffi \
2763 target-libobjc \
2764 target-libada \
2765 target-libgo"
2766
2767 # these tools are built using the target libraries, and are intended to
2768 # run only in the target environment
2769 #
2770 # note: any program that *uses* libraries that are in the "target_libraries"
2771 # list belongs in this list.
2772 #
2773 target_tools="target-rda"
2774
2775 ################################################################################
2776
2777 ## All tools belong in one of the four categories, and are assigned above
2778 ## We assign ${configdirs} this way to remove all embedded newlines. This
2779 ## is important because configure will choke if they ever get through.
2780 ## ${configdirs} is directories we build using the host tools.
2781 ## ${target_configdirs} is directories we build using the target tools.
2782 configdirs=`echo ${host_libs} ${host_tools}`
2783 target_configdirs=`echo ${target_libraries} ${target_tools}`
2784 build_configdirs=`echo ${build_libs} ${build_tools}`
2785
2786
2787
2788 ################################################################################
2789
2790 srcname="gnu development package"
2791
2792 # This gets set non-empty for some net releases of packages.
2793 appdirs=""
2794
2795 # Define is_cross_compiler to save on calls to 'test'.
2796 is_cross_compiler=
2797 if test x"${host}" = x"${target}" ; then
2798 is_cross_compiler=no
2799 else
2800 is_cross_compiler=yes
2801 fi
2802
2803 # Find the build and target subdir names.
2804
2805 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2806 # have matching libraries, they should use host libraries: Makefile.tpl
2807 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2808 # However, they still use the build modules, because the corresponding
2809 # host modules (e.g. bison) are only built for the host when bootstrap
2810 # finishes. So:
2811 # - build_subdir is where we find build modules, and never changes.
2812 # - build_libsubdir is where we find build libraries, and can be overridden.
2813
2814 # Prefix 'build-' so this never conflicts with target_subdir.
2815 build_subdir="build-${build_noncanonical}"
2816
2817 # Check whether --with-build-libsubdir was given.
2818 if test "${with_build_libsubdir+set}" = set; then :
2819 withval=$with_build_libsubdir; build_libsubdir="$withval"
2820 else
2821 build_libsubdir="$build_subdir"
2822 fi
2823
2824 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2825 if ( test $srcdir = . && test -d gcc ) \
2826 || test -d $srcdir/../host-${host_noncanonical}; then
2827 host_subdir="host-${host_noncanonical}"
2828 else
2829 host_subdir=.
2830 fi
2831 # No prefix.
2832 target_subdir=${target_noncanonical}
2833
2834 # Be sure to cover against remnants of an in-tree build.
2835 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2836 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2837 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2838 fi
2839
2840 # Skipdirs are removed silently.
2841 skipdirs=
2842 # Noconfigdirs are removed loudly.
2843 noconfigdirs=""
2844
2845 use_gnu_ld=
2846 # Make sure we don't let GNU ld be added if we didn't want it.
2847 if test x$with_gnu_ld = xno ; then
2848 use_gnu_ld=no
2849 noconfigdirs="$noconfigdirs ld gold"
2850 fi
2851
2852 use_gnu_as=
2853 # Make sure we don't let GNU as be added if we didn't want it.
2854 if test x$with_gnu_as = xno ; then
2855 use_gnu_as=no
2856 noconfigdirs="$noconfigdirs gas"
2857 fi
2858
2859 use_included_zlib=
2860
2861 # Check whether --with-system-zlib was given.
2862 if test "${with_system_zlib+set}" = set; then :
2863 withval=$with_system_zlib;
2864 fi
2865
2866 # Make sure we don't let ZLIB be added if we didn't want it.
2867 if test x$with_system_zlib = xyes ; then
2868 use_included_zlib=no
2869 noconfigdirs="$noconfigdirs zlib"
2870 fi
2871
2872 # some tools are so dependent upon X11 that if we're not building with X,
2873 # it's not even worth trying to configure, much less build, that tool.
2874
2875 case ${with_x} in
2876 yes | "") ;; # the default value for this tree is that X11 is available
2877 no)
2878 skipdirs="${skipdirs} tk itcl libgui"
2879 # We won't be able to build gdbtk without X.
2880 enable_gdbtk=no
2881 ;;
2882 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2883 esac
2884
2885 # Some are only suitable for cross toolchains.
2886 # Remove these if host=target.
2887 cross_only="target-libgloss target-newlib target-opcodes"
2888
2889 case $is_cross_compiler in
2890 no) skipdirs="${skipdirs} ${cross_only}" ;;
2891 esac
2892
2893 # If both --with-headers and --with-libs are specified, default to
2894 # --without-newlib.
2895 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2896 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2897 if test x"${with_newlib}" = x ; then
2898 with_newlib=no
2899 fi
2900 fi
2901
2902 # Recognize --with-newlib/--without-newlib.
2903 case ${with_newlib} in
2904 no) skipdirs="${skipdirs} target-newlib" ;;
2905 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2906 esac
2907
2908 # Check whether --enable-as-accelerator-for was given.
2909 if test "${enable_as_accelerator_for+set}" = set; then :
2910 enableval=$enable_as_accelerator_for;
2911 fi
2912
2913
2914 # Check whether --enable-offload-targets was given.
2915 if test "${enable_offload_targets+set}" = set; then :
2916 enableval=$enable_offload_targets;
2917 if test x"$enable_offload_targets" = x; then
2918 as_fn_error "no offload targets specified" "$LINENO" 5
2919 fi
2920
2921 else
2922 enable_offload_targets=
2923 fi
2924
2925
2926 # Handle --enable-gold, --enable-ld.
2927 # --disable-gold [--enable-ld]
2928 # Build only ld. Default option.
2929 # --enable-gold [--enable-ld]
2930 # Build both gold and ld. Install gold as "ld.gold", install ld
2931 # as "ld.bfd" and "ld".
2932 # --enable-gold=default [--enable-ld]
2933 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2934 # install ld as "ld.bfd".
2935 # --enable-gold[=default] --disable-ld
2936 # Build only gold, which is then installed as both "ld.gold" and "ld".
2937 # --enable-gold --enable-ld=default
2938 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2939 # and ld.bfd).
2940 # In other words, ld is default
2941 # --enable-gold=default --enable-ld=default
2942 # Error.
2943
2944 default_ld=
2945 # Check whether --enable-gold was given.
2946 if test "${enable_gold+set}" = set; then :
2947 enableval=$enable_gold; ENABLE_GOLD=$enableval
2948 else
2949 ENABLE_GOLD=no
2950 fi
2951
2952 case "${ENABLE_GOLD}" in
2953 yes|default)
2954 # Check for ELF target.
2955 is_elf=no
2956 case "${target}" in
2957 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2958 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2959 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2960 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-fuchsia*)
2961 case "${target}" in
2962 *-*-linux*aout* | *-*-linux*oldld*)
2963 ;;
2964 *)
2965 is_elf=yes
2966 ;;
2967 esac
2968 esac
2969
2970 if test "$is_elf" = "yes"; then
2971 # Check for target supported by gold.
2972 case "${target}" in
2973 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2974 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2975 configdirs="$configdirs gold"
2976 if test x${ENABLE_GOLD} = xdefault; then
2977 default_ld=gold
2978 fi
2979 ENABLE_GOLD=yes
2980 ;;
2981 esac
2982 fi
2983 ;;
2984 no)
2985 ;;
2986 *)
2987 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2988 ;;
2989 esac
2990
2991 # Check whether --enable-ld was given.
2992 if test "${enable_ld+set}" = set; then :
2993 enableval=$enable_ld; ENABLE_LD=$enableval
2994 else
2995 ENABLE_LD=yes
2996 fi
2997
2998
2999 case "${ENABLE_LD}" in
3000 default)
3001 if test x${default_ld} != x; then
3002 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3003 fi
3004 ;;
3005 yes)
3006 ;;
3007 no)
3008 if test x${ENABLE_GOLD} != xyes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3011 fi
3012 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3013 ;;
3014 *)
3015 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3016 ;;
3017 esac
3018
3019 # PR gas/19109
3020 # Decide the default method for compressing debug sections.
3021 # Provide a configure time option to override our default.
3022 # Check whether --enable-compressed_debug_sections was given.
3023 if test "${enable_compressed_debug_sections+set}" = set; then :
3024 enableval=$enable_compressed_debug_sections;
3025 if test x"$enable_compressed_debug_sections" = xyes; then
3026 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3027 fi
3028
3029 else
3030 enable_compressed_debug_sections=
3031 fi
3032
3033
3034 # Configure extra directories which are host specific
3035
3036 case "${host}" in
3037 *-cygwin*)
3038 configdirs="$configdirs libtermcap" ;;
3039 esac
3040
3041 # A target can indicate whether a language isn't supported for some reason.
3042 # Only spaces may be used in this macro; not newlines or tabs.
3043 unsupported_languages=
3044
3045 # Remove more programs from consideration, based on the host or
3046 # target this usually means that a port of the program doesn't
3047 # exist yet.
3048
3049 case "${host}" in
3050 i[3456789]86-*-msdosdjgpp*)
3051 noconfigdirs="$noconfigdirs tcl tk itcl"
3052 ;;
3053 esac
3054
3055
3056 # Check whether --enable-libquadmath was given.
3057 if test "${enable_libquadmath+set}" = set; then :
3058 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3059 else
3060 ENABLE_LIBQUADMATH=yes
3061 fi
3062
3063 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3064 noconfigdirs="$noconfigdirs target-libquadmath"
3065 fi
3066
3067
3068 # Check whether --enable-libquadmath-support was given.
3069 if test "${enable_libquadmath_support+set}" = set; then :
3070 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3071 else
3072 ENABLE_LIBQUADMATH_SUPPORT=yes
3073 fi
3074
3075 enable_libquadmath_support=
3076 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3077 enable_libquadmath_support=no
3078 fi
3079
3080
3081 # Check whether --enable-libada was given.
3082 if test "${enable_libada+set}" = set; then :
3083 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3084 else
3085 ENABLE_LIBADA=yes
3086 fi
3087
3088 if test "${ENABLE_LIBADA}" != "yes" ; then
3089 noconfigdirs="$noconfigdirs gnattools"
3090 fi
3091
3092 # Check whether --enable-libssp was given.
3093 if test "${enable_libssp+set}" = set; then :
3094 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3095 else
3096 ENABLE_LIBSSP=yes
3097 fi
3098
3099
3100 # Check whether --enable-libstdcxx was given.
3101 if test "${enable_libstdcxx+set}" = set; then :
3102 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3103 else
3104 ENABLE_LIBSTDCXX=default
3105 fi
3106
3107 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3108 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3109 fi
3110
3111 # If this is accelerator compiler and its target is intelmic we enable
3112 # target liboffloadmic by default. If this is compiler with offloading
3113 # for intelmic we enable host liboffloadmic by default. Otherwise
3114 # liboffloadmic is disabled by default.
3115 # Check whether --enable-liboffloadmic was given.
3116 if test "${enable_liboffloadmic+set}" = set; then :
3117 enableval=$enable_liboffloadmic; case "$enableval" in
3118 no | host | target)
3119 enable_liboffloadmic=$enableval ;;
3120 *)
3121 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3122 esac
3123 else
3124 if test x"$enable_as_accelerator_for" != x; then
3125 case "${target}" in
3126 *-intelmic-* | *-intelmicemul-*)
3127 enable_liboffloadmic=target
3128 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3129 ;;
3130 *)
3131 enable_liboffloadmic=no
3132 ;;
3133 esac
3134 else
3135 case "${enable_offload_targets}" in
3136 *-intelmic-* | *-intelmicemul-*)
3137 enable_liboffloadmic=host
3138 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3139 ;;
3140 *)
3141 enable_liboffloadmic=no
3142 ;;
3143 esac
3144 fi
3145 fi
3146
3147
3148
3149 # Enable libgomp by default on hosted POSIX systems, and a few others.
3150 if test x$enable_libgomp = x ; then
3151 case "${target}" in
3152 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3153 ;;
3154 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3155 ;;
3156 *-*-solaris2* | *-*-hpux11*)
3157 ;;
3158 *-*-darwin* | *-*-aix*)
3159 ;;
3160 nvptx*-*-*)
3161 ;;
3162 *)
3163 noconfigdirs="$noconfigdirs target-libgomp"
3164 ;;
3165 esac
3166 fi
3167
3168 # Disable libatomic on unsupported systems.
3169 if test -d ${srcdir}/libatomic; then
3170 if test x$enable_libatomic = x; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3172 $as_echo_n "checking for libatomic support... " >&6; }
3173 if (srcdir=${srcdir}/libatomic; \
3174 . ${srcdir}/configure.tgt; \
3175 test -n "$UNSUPPORTED")
3176 then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3179 noconfigdirs="$noconfigdirs target-libatomic"
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182 $as_echo "yes" >&6; }
3183 fi
3184 fi
3185 fi
3186
3187 # Disable libcilkrts on unsupported systems.
3188 if test -d ${srcdir}/libcilkrts; then
3189 if test x$enable_libcilkrts = x; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3191 $as_echo_n "checking for libcilkrts support... " >&6; }
3192 if (srcdir=${srcdir}/libcilkrts; \
3193 . ${srcdir}/configure.tgt; \
3194 test -n "$UNSUPPORTED")
3195 then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 noconfigdirs="$noconfigdirs target-libcilkrts"
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3202 fi
3203 fi
3204 fi
3205
3206 # Disable liboffloadmic on unsupported systems.
3207 if test -d ${srcdir}/liboffloadmic; then
3208 if test x$enable_liboffloadmic != xno; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3210 $as_echo_n "checking for liboffloadmic support... " >&6; }
3211 if (srcdir=${srcdir}/liboffloadmic; \
3212 . ${srcdir}/configure.tgt; \
3213 test -n "$UNSUPPORTED")
3214 then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 noconfigdirs="$noconfigdirs target-liboffloadmic"
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220 $as_echo "yes" >&6; }
3221 fi
3222 fi
3223 fi
3224
3225 # Disable libitm on unsupported systems.
3226 if test -d ${srcdir}/libitm; then
3227 if test x$enable_libitm = x; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3229 $as_echo_n "checking for libitm support... " >&6; }
3230 if (srcdir=${srcdir}/libitm; \
3231 . ${srcdir}/configure.tgt; \
3232 test -n "$UNSUPPORTED")
3233 then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 noconfigdirs="$noconfigdirs target-libitm"
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239 $as_echo "yes" >&6; }
3240 fi
3241 fi
3242 fi
3243
3244 # Disable libsanitizer on unsupported systems.
3245 if test -d ${srcdir}/libsanitizer; then
3246 if test x$enable_libsanitizer = x; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3248 $as_echo_n "checking for libsanitizer support... " >&6; }
3249 if (srcdir=${srcdir}/libsanitizer; \
3250 . ${srcdir}/configure.tgt; \
3251 test -n "$UNSUPPORTED")
3252 then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 noconfigdirs="$noconfigdirs target-libsanitizer"
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258 $as_echo "yes" >&6; }
3259 fi
3260 fi
3261 fi
3262
3263 # Disable libvtv on unsupported systems.
3264 if test -d ${srcdir}/libvtv; then
3265 if test x$enable_libvtv = x; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3267 $as_echo_n "checking for libvtv support... " >&6; }
3268 if (srcdir=${srcdir}/libvtv; \
3269 . ${srcdir}/configure.tgt; \
3270 test "$VTV_SUPPORTED" != "yes")
3271 then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 noconfigdirs="$noconfigdirs target-libvtv"
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277 $as_echo "yes" >&6; }
3278 fi
3279 fi
3280 fi
3281
3282
3283 # Enable libmpx on supported systems by request.
3284 if test -d ${srcdir}/libmpx; then
3285 if test x$enable_libmpx = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3287 $as_echo_n "checking for libmpx support... " >&6; }
3288 if (srcdir=${srcdir}/libmpx; \
3289 . ${srcdir}/configure.tgt; \
3290 test "$LIBMPX_SUPPORTED" != "yes")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libmpx"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3298 fi
3299 fi
3300 fi
3301
3302
3303
3304 # Disable libquadmath for some systems.
3305 case "${target}" in
3306 avr-*-*)
3307 noconfigdirs="$noconfigdirs target-libquadmath"
3308 ;;
3309 # libquadmath is unused on AIX and libquadmath build process use of
3310 # LD_LIBRARY_PATH can break AIX bootstrap.
3311 powerpc-*-aix* | rs6000-*-aix*)
3312 noconfigdirs="$noconfigdirs target-libquadmath"
3313 ;;
3314 esac
3315
3316 # Disable libssp for some systems.
3317 case "${target}" in
3318 avr-*-*)
3319 # No hosted I/O support.
3320 noconfigdirs="$noconfigdirs target-libssp"
3321 ;;
3322 powerpc-*-aix* | rs6000-*-aix*)
3323 noconfigdirs="$noconfigdirs target-libssp"
3324 ;;
3325 rl78-*-*)
3326 # libssp uses a misaligned load to trigger a fault, but the RL78
3327 # doesn't fault for those - instead, it gives a build-time error
3328 # for explicit misaligned loads.
3329 noconfigdirs="$noconfigdirs target-libssp"
3330 ;;
3331 visium-*-*)
3332 # No hosted I/O support.
3333 noconfigdirs="$noconfigdirs target-libssp"
3334 ;;
3335 esac
3336
3337 # Disable libstdc++-v3 for some systems.
3338 # Allow user to override this if they pass --enable-libstdc++-v3
3339 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3340 case "${target}" in
3341 *-*-vxworks*)
3342 # VxWorks uses the Dinkumware C++ library.
3343 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3344 ;;
3345 arm*-wince-pe*)
3346 # the C++ libraries don't build on top of CE's C libraries
3347 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3348 ;;
3349 avr-*-*)
3350 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3351 ;;
3352 ft32-*-*)
3353 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3354 ;;
3355 esac
3356 fi
3357
3358 # Disable Fortran for some systems.
3359 case "${target}" in
3360 mmix-*-*)
3361 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3362 unsupported_languages="$unsupported_languages fortran"
3363 ;;
3364 esac
3365
3366 # Disable libffi for some systems.
3367 case "${target}" in
3368 powerpc-*-darwin*)
3369 ;;
3370 i[3456789]86-*-darwin*)
3371 ;;
3372 x86_64-*-darwin[912]*)
3373 ;;
3374 *-*-darwin*)
3375 noconfigdirs="$noconfigdirs target-libffi"
3376 ;;
3377 *-*-netware*)
3378 noconfigdirs="$noconfigdirs target-libffi"
3379 ;;
3380 *-*-phoenix*)
3381 noconfigdirs="$noconfigdirs target-libffi"
3382 ;;
3383 *-*-rtems*)
3384 noconfigdirs="$noconfigdirs target-libffi"
3385 ;;
3386 *-*-tpf*)
3387 noconfigdirs="$noconfigdirs target-libffi"
3388 ;;
3389 *-*-uclinux*)
3390 noconfigdirs="$noconfigdirs target-libffi"
3391 ;;
3392 *-*-vxworks*)
3393 noconfigdirs="$noconfigdirs target-libffi"
3394 ;;
3395 aarch64*-*-freebsd*)
3396 noconfigdirs="$noconfigdirs target-libffi"
3397 ;;
3398 alpha*-*-*vms*)
3399 noconfigdirs="$noconfigdirs target-libffi"
3400 ;;
3401 arm*-*-freebsd*)
3402 noconfigdirs="$noconfigdirs target-libffi"
3403 ;;
3404 arm-wince-pe)
3405 noconfigdirs="$noconfigdirs target-libffi"
3406 ;;
3407 arm*-*-symbianelf*)
3408 noconfigdirs="$noconfigdirs target-libffi"
3409 ;;
3410 cris-*-* | crisv32-*-*)
3411 case "${target}" in
3412 *-*-linux*)
3413 ;;
3414 *) # See PR46792 regarding target-libffi.
3415 noconfigdirs="$noconfigdirs target-libffi";;
3416 esac
3417 ;;
3418 hppa*64*-*-hpux*)
3419 noconfigdirs="$noconfigdirs target-libffi"
3420 ;;
3421 hppa*-hp-hpux11*)
3422 ;;
3423 hppa*-*-hpux*)
3424 noconfigdirs="$noconfigdirs target-libffi"
3425 ;;
3426 ia64*-*-*vms*)
3427 noconfigdirs="$noconfigdirs target-libffi"
3428 ;;
3429 i[3456789]86-w64-mingw*)
3430 noconfigdirs="$noconfigdirs target-libffi"
3431 ;;
3432 i[3456789]86-*-mingw*)
3433 noconfigdirs="$noconfigdirs target-libffi"
3434 ;;
3435 x86_64-*-mingw*)
3436 noconfigdirs="$noconfigdirs target-libffi"
3437 ;;
3438 mmix-*-*)
3439 noconfigdirs="$noconfigdirs target-libffi"
3440 ;;
3441 powerpc-*-aix*)
3442 # copied from rs6000-*-* entry
3443 noconfigdirs="$noconfigdirs target-libffi"
3444 ;;
3445 rs6000-*-aix*)
3446 noconfigdirs="$noconfigdirs target-libffi"
3447 ;;
3448 ft32-*-*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3450 ;;
3451 *-*-lynxos*)
3452 noconfigdirs="$noconfigdirs target-libffi"
3453 ;;
3454 esac
3455
3456 # Disable the go frontend on systems where it is known to not work. Please keep
3457 # this in sync with contrib/config-list.mk.
3458 case "${target}" in
3459 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3460 unsupported_languages="$unsupported_languages go"
3461 ;;
3462 esac
3463
3464 # Disable libgo for some systems where it is known to not work.
3465 # For testing, you can easily override this with --enable-libgo.
3466 if test x$enable_libgo = x; then
3467 case "${target}" in
3468 *-*-darwin*)
3469 # PR 46986
3470 noconfigdirs="$noconfigdirs target-libgo"
3471 ;;
3472 *-*-cygwin* | *-*-mingw*)
3473 noconfigdirs="$noconfigdirs target-libgo"
3474 ;;
3475 *-*-aix*)
3476 noconfigdirs="$noconfigdirs target-libgo"
3477 ;;
3478 esac
3479 fi
3480
3481 # Default libgloss CPU subdirectory.
3482 libgloss_dir="$target_cpu"
3483
3484 case "${target}" in
3485 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3486 libgloss_dir=wince
3487 ;;
3488 aarch64*-*-* )
3489 libgloss_dir=aarch64
3490 ;;
3491 arm*-*-*)
3492 libgloss_dir=arm
3493 ;;
3494 cris-*-* | crisv32-*-*)
3495 libgloss_dir=cris
3496 ;;
3497 hppa*-*-*)
3498 libgloss_dir=pa
3499 ;;
3500 i[3456789]86-*-*)
3501 libgloss_dir=i386
3502 ;;
3503 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3504 libgloss_dir=m68hc11
3505 ;;
3506 m68*-*-* | fido-*-*)
3507 libgloss_dir=m68k
3508 ;;
3509 mips*-*-*)
3510 libgloss_dir=mips
3511 ;;
3512 powerpc*-*-*)
3513 libgloss_dir=rs6000
3514 ;;
3515 sparc*-*-*)
3516 libgloss_dir=sparc
3517 ;;
3518 esac
3519
3520 # Disable newlib and libgloss for various target OSes.
3521 case "${target}" in
3522 alpha*-dec-osf*)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 ;;
3525 i[3456789]86-*-linux*)
3526 # This section makes it possible to build newlib natively on linux.
3527 # If we are using a cross compiler then don't configure newlib.
3528 if test x${is_cross_compiler} != xno ; then
3529 noconfigdirs="$noconfigdirs target-newlib"
3530 fi
3531 noconfigdirs="$noconfigdirs target-libgloss"
3532 # If we are not using a cross compiler, do configure newlib.
3533 # Note however, that newlib will only be configured in this situation
3534 # if the --with-newlib option has been given, because otherwise
3535 # 'target-newlib' will appear in skipdirs.
3536 ;;
3537 i[3456789]86-*-rdos*)
3538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 ;;
3540 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 ;;
3543 sparc-*-sunos4*)
3544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 ;;
3546 *-*-aix*)
3547 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 ;;
3549 *-*-beos*)
3550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 ;;
3552 *-*-chorusos)
3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3554 ;;
3555 *-*-dragonfly*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 ;;
3558 *-*-freebsd*)
3559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 ;;
3561 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 ;;
3564 *-*-lynxos*)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 ;;
3567 *-*-mingw*)
3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 ;;
3570 *-*-netbsd*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573 *-*-netware*)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 ;;
3576 *-*-tpf*)
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 ;;
3579 *-*-uclinux*)
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 ;;
3582 *-*-vxworks*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 ;;
3585 esac
3586
3587 case "${target}" in
3588 *-*-chorusos)
3589 ;;
3590 aarch64-*-darwin*)
3591 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3592 noconfigdirs="$noconfigdirs sim target-rda"
3593 ;;
3594 arm-*-darwin*)
3595 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3596 noconfigdirs="$noconfigdirs sim target-rda"
3597 ;;
3598 powerpc-*-darwin*)
3599 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3600 noconfigdirs="$noconfigdirs sim target-rda"
3601 ;;
3602 i[3456789]86-*-darwin*)
3603 noconfigdirs="$noconfigdirs ld gprof"
3604 noconfigdirs="$noconfigdirs sim target-rda"
3605 ;;
3606 x86_64-*-darwin[912]*)
3607 noconfigdirs="$noconfigdirs ld gas gprof"
3608 noconfigdirs="$noconfigdirs sim target-rda"
3609 ;;
3610 *-*-darwin*)
3611 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3612 noconfigdirs="$noconfigdirs sim target-rda"
3613 ;;
3614 *-*-dragonfly*)
3615 ;;
3616 *-*-freebsd*)
3617 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3618 && test -f /usr/local/include/gmp.h; then
3619 with_gmp=/usr/local
3620 fi
3621 ;;
3622 *-*-kaos*)
3623 # Remove unsupported stuff on all kaOS configurations.
3624 noconfigdirs="$noconfigdirs target-libgloss"
3625 ;;
3626 *-*-netbsd*)
3627 ;;
3628 *-*-netware*)
3629 ;;
3630 *-*-phoenix*)
3631 noconfigdirs="$noconfigdirs target-libgloss"
3632 ;;
3633 *-*-rtems*)
3634 noconfigdirs="$noconfigdirs target-libgloss"
3635 ;;
3636 # The tpf target doesn't support gdb yet.
3637 *-*-tpf*)
3638 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3639 ;;
3640 *-*-uclinux*)
3641 noconfigdirs="$noconfigdirs target-rda"
3642 ;;
3643 *-*-vxworks*)
3644 ;;
3645 alpha*-dec-osf*)
3646 # ld works, but does not support shared libraries.
3647 # gas doesn't generate exception information.
3648 noconfigdirs="$noconfigdirs gas ld"
3649 ;;
3650 alpha*-*-*vms*)
3651 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3652 ;;
3653 alpha*-*-*)
3654 # newlib is not 64 bit ready
3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656 ;;
3657 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3658 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3659 ;;
3660 arc*-*-*)
3661 noconfigdirs="$noconfigdirs sim"
3662 ;;
3663 arm-*-pe*)
3664 noconfigdirs="$noconfigdirs target-libgloss"
3665 ;;
3666 arm-*-riscix*)
3667 noconfigdirs="$noconfigdirs ld target-libgloss"
3668 ;;
3669 avr-*-*)
3670 if test x${with_avrlibc} != xno; then
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672 fi
3673 ;;
3674 c4x-*-* | tic4x-*-*)
3675 noconfigdirs="$noconfigdirs target-libgloss"
3676 ;;
3677 tic54x-*-*)
3678 noconfigdirs="$noconfigdirs target-libgloss gdb"
3679 ;;
3680 d10v-*-*)
3681 noconfigdirs="$noconfigdirs target-libgloss"
3682 ;;
3683 d30v-*-*)
3684 noconfigdirs="$noconfigdirs gdb"
3685 ;;
3686 fr30-*-elf*)
3687 noconfigdirs="$noconfigdirs gdb"
3688 ;;
3689 ft32-*-*)
3690 noconfigdirs="$noconfigdirs target-rda gprof"
3691 ;;
3692 moxie-*-*)
3693 noconfigdirs="$noconfigdirs"
3694 ;;
3695 h8300*-*-*)
3696 noconfigdirs="$noconfigdirs target-libgloss"
3697 ;;
3698 h8500-*-*)
3699 noconfigdirs="$noconfigdirs target-libgloss"
3700 ;;
3701 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3702 ;;
3703 hppa*64*-*-hpux*)
3704 noconfigdirs="$noconfigdirs gdb"
3705 ;;
3706 hppa*-*-hpux11*)
3707 noconfigdirs="$noconfigdirs gdb ld"
3708 ;;
3709 hppa*64*-*-linux*)
3710 ;;
3711 hppa*-*-linux*)
3712 ;;
3713 hppa*-*-*elf* | \
3714 hppa*-*-lites* | \
3715 hppa*-*-openbsd* | \
3716 hppa*64*-*-*)
3717 ;;
3718 hppa*-*-pro*)
3719 ;;
3720 hppa*-*-*)
3721 noconfigdirs="$noconfigdirs ld"
3722 ;;
3723 i960-*-*)
3724 noconfigdirs="$noconfigdirs gdb"
3725 ;;
3726 ia64*-*-elf*)
3727 # No gdb support yet.
3728 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3729 ;;
3730 ia64*-**-hpux*)
3731 # No ld support yet.
3732 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3733 ;;
3734 ia64*-*-*vms*)
3735 # No ld support yet.
3736 noconfigdirs="$noconfigdirs libgui itcl ld"
3737 ;;
3738 i[3456789]86-w64-mingw*)
3739 ;;
3740 i[3456789]86-*-mingw*)
3741 target_configdirs="$target_configdirs target-winsup"
3742 ;;
3743 *-*-cygwin*)
3744 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3745 noconfigdirs="$noconfigdirs target-libgloss"
3746 # always build newlib if winsup directory is present.
3747 if test -d "$srcdir/winsup/cygwin"; then
3748 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3749 elif test -d "$srcdir/newlib"; then
3750 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3751 fi
3752 ;;
3753 i[3456789]86-*-pe)
3754 noconfigdirs="$noconfigdirs target-libgloss"
3755 ;;
3756 i[3456789]86-*-sco3.2v5*)
3757 # The linker does not yet know about weak symbols in COFF,
3758 # and is not configured to handle mixed ELF and COFF.
3759 noconfigdirs="$noconfigdirs ld target-libgloss"
3760 ;;
3761 i[3456789]86-*-sco*)
3762 noconfigdirs="$noconfigdirs gprof target-libgloss"
3763 ;;
3764 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3765 noconfigdirs="$noconfigdirs target-libgloss"
3766 ;;
3767 i[3456789]86-*-sysv4*)
3768 noconfigdirs="$noconfigdirs target-libgloss"
3769 ;;
3770 i[3456789]86-*-beos*)
3771 noconfigdirs="$noconfigdirs gdb"
3772 ;;
3773 i[3456789]86-*-rdos*)
3774 noconfigdirs="$noconfigdirs gdb"
3775 ;;
3776 mmix-*-*)
3777 noconfigdirs="$noconfigdirs gdb"
3778 ;;
3779 mt-*-*)
3780 noconfigdirs="$noconfigdirs sim"
3781 ;;
3782 powerpc-*-aix*)
3783 # copied from rs6000-*-* entry
3784 noconfigdirs="$noconfigdirs gprof"
3785 ;;
3786 powerpc*-*-winnt* | powerpc*-*-pe*)
3787 target_configdirs="$target_configdirs target-winsup"
3788 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3789 # always build newlib.
3790 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3791 ;;
3792 # This is temporary until we can link against shared libraries
3793 powerpcle-*-solaris*)
3794 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3795 ;;
3796 powerpc-*-beos*)
3797 noconfigdirs="$noconfigdirs gdb"
3798 ;;
3799 rs6000-*-lynxos*)
3800 noconfigdirs="$noconfigdirs gprof"
3801 ;;
3802 rs6000-*-aix*)
3803 noconfigdirs="$noconfigdirs gprof"
3804 ;;
3805 rs6000-*-*)
3806 noconfigdirs="$noconfigdirs gprof"
3807 ;;
3808 m68k-apollo-*)
3809 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3810 ;;
3811 microblaze*)
3812 noconfigdirs="$noconfigdirs gprof"
3813 ;;
3814 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3815 if test x$with_newlib = xyes; then
3816 noconfigdirs="$noconfigdirs gprof"
3817 fi
3818 ;;
3819 mips*-*-irix5*)
3820 noconfigdirs="$noconfigdirs gprof target-libgloss"
3821 ;;
3822 mips*-*-irix6*)
3823 noconfigdirs="$noconfigdirs gprof target-libgloss"
3824 ;;
3825 mips*-*-bsd*)
3826 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3827 ;;
3828 mips*-*-linux*)
3829 ;;
3830 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3831 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3832 noconfigdirs="$noconfigdirs ld gas gprof"
3833 ;;
3834 mips*-*-*)
3835 noconfigdirs="$noconfigdirs gprof"
3836 ;;
3837 nvptx*-*-*)
3838 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3839 ;;
3840 sh-*-*)
3841 case "${target}" in
3842 sh*-*-elf)
3843 ;;
3844 *)
3845 noconfigdirs="$noconfigdirs target-libgloss" ;;
3846 esac
3847 ;;
3848 sparc-*-sunos4*)
3849 if test x${is_cross_compiler} = xno ; then
3850 use_gnu_ld=no
3851 fi
3852 ;;
3853 tic6x-*-*)
3854 noconfigdirs="$noconfigdirs sim"
3855 ;;
3856 tilepro*-*-* | tilegx*-*-*)
3857 noconfigdirs="$noconfigdirs sim"
3858 ;;
3859 v810-*-*)
3860 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3861 ;;
3862 vax-*-*)
3863 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3864 ;;
3865 esac
3866
3867 # If we aren't building newlib, then don't build libgloss, since libgloss
3868 # depends upon some newlib header files.
3869 case "${noconfigdirs}" in
3870 *target-libgloss*) ;;
3871 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3872 esac
3873
3874 # Work in distributions that contain no compiler tools, like Autoconf.
3875 host_makefile_frag=/dev/null
3876 if test -d ${srcdir}/config ; then
3877 case "${host}" in
3878 i[3456789]86-*-msdosdjgpp*)
3879 host_makefile_frag="config/mh-djgpp"
3880 ;;
3881 *-cygwin*)
3882
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3884 $as_echo_n "checking to see if cat works as expected... " >&6; }
3885 echo a >cygwin-cat-check
3886 if test `cat cygwin-cat-check` = a ; then
3887 rm cygwin-cat-check
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3889 $as_echo "yes" >&6; }
3890 else
3891 rm cygwin-cat-check
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3894 as_fn_error "The cat command does not ignore carriage return characters.
3895 Please either mount the build directory in binary mode or run the following
3896 commands before running any configure script:
3897 set -o igncr
3898 export SHELLOPTS
3899 " "$LINENO" 5
3900 fi
3901
3902 host_makefile_frag="config/mh-cygwin"
3903 ;;
3904 *-mingw*)
3905 host_makefile_frag="config/mh-mingw"
3906 ;;
3907 alpha*-linux*)
3908 host_makefile_frag="config/mh-alpha-linux"
3909 ;;
3910 hppa*-hp-hpux10*)
3911 host_makefile_frag="config/mh-pa-hpux10"
3912 ;;
3913 hppa*-hp-hpux*)
3914 host_makefile_frag="config/mh-pa"
3915 ;;
3916 hppa*-*)
3917 host_makefile_frag="config/mh-pa"
3918 ;;
3919 *-*-darwin*)
3920 host_makefile_frag="config/mh-darwin"
3921 ;;
3922 powerpc-*-aix*)
3923 host_makefile_frag="config/mh-ppc-aix"
3924 ;;
3925 rs6000-*-aix*)
3926 host_makefile_frag="config/mh-ppc-aix"
3927 ;;
3928 esac
3929 fi
3930
3931 if test "${build}" != "${host}" ; then
3932 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3933 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3934 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3935 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3936 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3937 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3938 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3939 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3940 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3941 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3942 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3943 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3944 else
3945 AR_FOR_BUILD="\$(AR)"
3946 AS_FOR_BUILD="\$(AS)"
3947 CC_FOR_BUILD="\$(CC)"
3948 CXX_FOR_BUILD="\$(CXX)"
3949 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3950 GOC_FOR_BUILD="\$(GOC)"
3951 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3952 LD_FOR_BUILD="\$(LD)"
3953 NM_FOR_BUILD="\$(NM)"
3954 RANLIB_FOR_BUILD="\$(RANLIB)"
3955 WINDRES_FOR_BUILD="\$(WINDRES)"
3956 WINDMC_FOR_BUILD="\$(WINDMC)"
3957 fi
3958
3959 ac_ext=c
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964 if test -n "$ac_tool_prefix"; then
3965 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968 $as_echo_n "checking for $ac_word... " >&6; }
3969 if test "${ac_cv_prog_CC+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 if test -n "$CC"; then
3973 ac_cv_prog_CC="$CC" # Let the user override the test.
3974 else
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3977 do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3982 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 break 2
3985 fi
3986 done
3987 done
3988 IFS=$as_save_IFS
3989
3990 fi
3991 fi
3992 CC=$ac_cv_prog_CC
3993 if test -n "$CC"; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3995 $as_echo "$CC" >&6; }
3996 else
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 $as_echo "no" >&6; }
3999 fi
4000
4001
4002 fi
4003 if test -z "$ac_cv_prog_CC"; then
4004 ac_ct_CC=$CC
4005 # Extract the first word of "gcc", so it can be a program name with args.
4006 set dummy gcc; ac_word=$2
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008 $as_echo_n "checking for $ac_word... " >&6; }
4009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 if test -n "$ac_ct_CC"; then
4013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4017 do
4018 IFS=$as_save_IFS
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4022 ac_cv_prog_ac_ct_CC="gcc"
4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 break 2
4025 fi
4026 done
4027 done
4028 IFS=$as_save_IFS
4029
4030 fi
4031 fi
4032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4033 if test -n "$ac_ct_CC"; then
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4035 $as_echo "$ac_ct_CC" >&6; }
4036 else
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4039 fi
4040
4041 if test "x$ac_ct_CC" = x; then
4042 CC=""
4043 else
4044 case $cross_compiling:$ac_tool_warned in
4045 yes:)
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4048 ac_tool_warned=yes ;;
4049 esac
4050 CC=$ac_ct_CC
4051 fi
4052 else
4053 CC="$ac_cv_prog_CC"
4054 fi
4055
4056 if test -z "$CC"; then
4057 if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4059 set dummy ${ac_tool_prefix}cc; ac_word=$2
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061 $as_echo_n "checking for $ac_word... " >&6; }
4062 if test "${ac_cv_prog_CC+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
4064 else
4065 if test -n "$CC"; then
4066 ac_cv_prog_CC="$CC" # Let the user override the test.
4067 else
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4070 do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_prog_CC="${ac_tool_prefix}cc"
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4078 fi
4079 done
4080 done
4081 IFS=$as_save_IFS
4082
4083 fi
4084 fi
4085 CC=$ac_cv_prog_CC
4086 if test -n "$CC"; then
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4088 $as_echo "$CC" >&6; }
4089 else
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 $as_echo "no" >&6; }
4092 fi
4093
4094
4095 fi
4096 fi
4097 if test -z "$CC"; then
4098 # Extract the first word of "cc", so it can be a program name with args.
4099 set dummy cc; ac_word=$2
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101 $as_echo_n "checking for $ac_word... " >&6; }
4102 if test "${ac_cv_prog_CC+set}" = set; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 if test -n "$CC"; then
4106 ac_cv_prog_CC="$CC" # Let the user override the test.
4107 else
4108 ac_prog_rejected=no
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4111 do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4117 ac_prog_rejected=yes
4118 continue
4119 fi
4120 ac_cv_prog_CC="cc"
4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 break 2
4123 fi
4124 done
4125 done
4126 IFS=$as_save_IFS
4127
4128 if test $ac_prog_rejected = yes; then
4129 # We found a bogon in the path, so make sure we never use it.
4130 set dummy $ac_cv_prog_CC
4131 shift
4132 if test $# != 0; then
4133 # We chose a different compiler from the bogus one.
4134 # However, it has the same basename, so the bogon will be chosen
4135 # first if we set CC to just the basename; use the full file name.
4136 shift
4137 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4138 fi
4139 fi
4140 fi
4141 fi
4142 CC=$ac_cv_prog_CC
4143 if test -n "$CC"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4145 $as_echo "$CC" >&6; }
4146 else
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4149 fi
4150
4151
4152 fi
4153 if test -z "$CC"; then
4154 if test -n "$ac_tool_prefix"; then
4155 for ac_prog in cl.exe
4156 do
4157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160 $as_echo_n "checking for $ac_word... " >&6; }
4161 if test "${ac_cv_prog_CC+set}" = set; then :
4162 $as_echo_n "(cached) " >&6
4163 else
4164 if test -n "$CC"; then
4165 ac_cv_prog_CC="$CC" # Let the user override the test.
4166 else
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 break 2
4177 fi
4178 done
4179 done
4180 IFS=$as_save_IFS
4181
4182 fi
4183 fi
4184 CC=$ac_cv_prog_CC
4185 if test -n "$CC"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4187 $as_echo "$CC" >&6; }
4188 else
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4191 fi
4192
4193
4194 test -n "$CC" && break
4195 done
4196 fi
4197 if test -z "$CC"; then
4198 ac_ct_CC=$CC
4199 for ac_prog in cl.exe
4200 do
4201 # Extract the first word of "$ac_prog", so it can be a program name with args.
4202 set dummy $ac_prog; ac_word=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 if test -n "$ac_ct_CC"; then
4209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4213 do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_prog_ac_ct_CC="$ac_prog"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4221 fi
4222 done
4223 done
4224 IFS=$as_save_IFS
4225
4226 fi
4227 fi
4228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4229 if test -n "$ac_ct_CC"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4231 $as_echo "$ac_ct_CC" >&6; }
4232 else
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 $as_echo "no" >&6; }
4235 fi
4236
4237
4238 test -n "$ac_ct_CC" && break
4239 done
4240
4241 if test "x$ac_ct_CC" = x; then
4242 CC=""
4243 else
4244 case $cross_compiling:$ac_tool_warned in
4245 yes:)
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248 ac_tool_warned=yes ;;
4249 esac
4250 CC=$ac_ct_CC
4251 fi
4252 fi
4253
4254 fi
4255
4256
4257 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4259 as_fn_error "no acceptable C compiler found in \$PATH
4260 See \`config.log' for more details." "$LINENO" 5; }
4261
4262 # Provide some information about the compiler.
4263 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4264 set X $ac_compile
4265 ac_compiler=$2
4266 for ac_option in --version -v -V -qversion; do
4267 { { ac_try="$ac_compiler $ac_option >&5"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4275 ac_status=$?
4276 if test -s conftest.err; then
4277 sed '10a\
4278 ... rest of stderr output deleted ...
4279 10q' conftest.err >conftest.er1
4280 cat conftest.er1 >&5
4281 rm -f conftest.er1 conftest.err
4282 fi
4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; }
4285 done
4286
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4289
4290 int
4291 main ()
4292 {
4293
4294 ;
4295 return 0;
4296 }
4297 _ACEOF
4298 ac_clean_files_save=$ac_clean_files
4299 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4300 # Try to create an executable without -o first, disregard a.out.
4301 # It will help us diagnose broken compilers, and finding out an intuition
4302 # of exeext.
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4304 $as_echo_n "checking for C compiler default output file name... " >&6; }
4305 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4306
4307 # The possible output files:
4308 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4309
4310 ac_rmfiles=
4311 for ac_file in $ac_files
4312 do
4313 case $ac_file in
4314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4315 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4316 esac
4317 done
4318 rm -f $ac_rmfiles
4319
4320 if { { ac_try="$ac_link_default"
4321 case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324 esac
4325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326 $as_echo "$ac_try_echo"; } >&5
4327 (eval "$ac_link_default") 2>&5
4328 ac_status=$?
4329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 test $ac_status = 0; }; then :
4331 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4332 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4333 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4334 # so that the user can short-circuit this test for compilers unknown to
4335 # Autoconf.
4336 for ac_file in $ac_files ''
4337 do
4338 test -f "$ac_file" || continue
4339 case $ac_file in
4340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4341 ;;
4342 [ab].out )
4343 # We found the default executable, but exeext='' is most
4344 # certainly right.
4345 break;;
4346 *.* )
4347 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4348 then :; else
4349 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4350 fi
4351 # We set ac_cv_exeext here because the later test for it is not
4352 # safe: cross compilers may not add the suffix if given an `-o'
4353 # argument, so we may need to know it at that point already.
4354 # Even if this section looks crufty: it has the advantage of
4355 # actually working.
4356 break;;
4357 * )
4358 break;;
4359 esac
4360 done
4361 test "$ac_cv_exeext" = no && ac_cv_exeext=
4362
4363 else
4364 ac_file=''
4365 fi
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4367 $as_echo "$ac_file" >&6; }
4368 if test -z "$ac_file"; then :
4369 $as_echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4371
4372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4374 { as_fn_set_status 77
4375 as_fn_error "C compiler cannot create executables
4376 See \`config.log' for more details." "$LINENO" 5; }; }
4377 fi
4378 ac_exeext=$ac_cv_exeext
4379
4380 # Check that the compiler produces executables we can run. If not, either
4381 # the compiler is broken, or we cross compile.
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4383 $as_echo_n "checking whether the C compiler works... " >&6; }
4384 # If not cross compiling, check that we can run a simple program.
4385 if test "$cross_compiling" != yes; then
4386 if { ac_try='./$ac_file'
4387 { { case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390 esac
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 $as_echo "$ac_try_echo"; } >&5
4393 (eval "$ac_try") 2>&5
4394 ac_status=$?
4395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396 test $ac_status = 0; }; }; then
4397 cross_compiling=no
4398 else
4399 if test "$cross_compiling" = maybe; then
4400 cross_compiling=yes
4401 else
4402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4404 as_fn_error "cannot run C compiled programs.
4405 If you meant to cross compile, use \`--host'.
4406 See \`config.log' for more details." "$LINENO" 5; }
4407 fi
4408 fi
4409 fi
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4411 $as_echo "yes" >&6; }
4412
4413 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4414 ac_clean_files=$ac_clean_files_save
4415 # Check that the compiler produces executables we can run. If not, either
4416 # the compiler is broken, or we cross compile.
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4418 $as_echo_n "checking whether we are cross compiling... " >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4420 $as_echo "$cross_compiling" >&6; }
4421
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4423 $as_echo_n "checking for suffix of executables... " >&6; }
4424 if { { ac_try="$ac_link"
4425 case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428 esac
4429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 $as_echo "$ac_try_echo"; } >&5
4431 (eval "$ac_link") 2>&5
4432 ac_status=$?
4433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4434 test $ac_status = 0; }; then :
4435 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4436 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4437 # work properly (i.e., refer to `conftest.exe'), while it won't with
4438 # `rm'.
4439 for ac_file in conftest.exe conftest conftest.*; do
4440 test -f "$ac_file" || continue
4441 case $ac_file in
4442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4443 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4444 break;;
4445 * ) break;;
4446 esac
4447 done
4448 else
4449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4451 as_fn_error "cannot compute suffix of executables: cannot compile and link
4452 See \`config.log' for more details." "$LINENO" 5; }
4453 fi
4454 rm -f conftest$ac_cv_exeext
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4456 $as_echo "$ac_cv_exeext" >&6; }
4457
4458 rm -f conftest.$ac_ext
4459 EXEEXT=$ac_cv_exeext
4460 ac_exeext=$EXEEXT
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4462 $as_echo_n "checking for suffix of object files... " >&6; }
4463 if test "${ac_cv_objext+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468
4469 int
4470 main ()
4471 {
4472
4473 ;
4474 return 0;
4475 }
4476 _ACEOF
4477 rm -f conftest.o conftest.obj
4478 if { { ac_try="$ac_compile"
4479 case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482 esac
4483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4484 $as_echo "$ac_try_echo"; } >&5
4485 (eval "$ac_compile") 2>&5
4486 ac_status=$?
4487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }; then :
4489 for ac_file in conftest.o conftest.obj conftest.*; do
4490 test -f "$ac_file" || continue;
4491 case $ac_file in
4492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4493 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4494 break;;
4495 esac
4496 done
4497 else
4498 $as_echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4500
4501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4503 as_fn_error "cannot compute suffix of object files: cannot compile
4504 See \`config.log' for more details." "$LINENO" 5; }
4505 fi
4506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4509 $as_echo "$ac_cv_objext" >&6; }
4510 OBJEXT=$ac_cv_objext
4511 ac_objext=$OBJEXT
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4513 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4514 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519
4520 int
4521 main ()
4522 {
4523 #ifndef __GNUC__
4524 choke me
4525 #endif
4526
4527 ;
4528 return 0;
4529 }
4530 _ACEOF
4531 if ac_fn_c_try_compile "$LINENO"; then :
4532 ac_compiler_gnu=yes
4533 else
4534 ac_compiler_gnu=no
4535 fi
4536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4538
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4541 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4542 if test $ac_compiler_gnu = yes; then
4543 GCC=yes
4544 else
4545 GCC=
4546 fi
4547 ac_test_CFLAGS=${CFLAGS+set}
4548 ac_save_CFLAGS=$CFLAGS
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4550 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4551 if test "${ac_cv_prog_cc_g+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 ac_save_c_werror_flag=$ac_c_werror_flag
4555 ac_c_werror_flag=yes
4556 ac_cv_prog_cc_g=no
4557 CFLAGS="-g"
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560
4561 int
4562 main ()
4563 {
4564
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 if ac_fn_c_try_compile "$LINENO"; then :
4570 ac_cv_prog_cc_g=yes
4571 else
4572 CFLAGS=""
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575
4576 int
4577 main ()
4578 {
4579
4580 ;
4581 return 0;
4582 }
4583 _ACEOF
4584 if ac_fn_c_try_compile "$LINENO"; then :
4585
4586 else
4587 ac_c_werror_flag=$ac_save_c_werror_flag
4588 CFLAGS="-g"
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591
4592 int
4593 main ()
4594 {
4595
4596 ;
4597 return 0;
4598 }
4599 _ACEOF
4600 if ac_fn_c_try_compile "$LINENO"; then :
4601 ac_cv_prog_cc_g=yes
4602 fi
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 fi
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 ac_c_werror_flag=$ac_save_c_werror_flag
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4611 $as_echo "$ac_cv_prog_cc_g" >&6; }
4612 if test "$ac_test_CFLAGS" = set; then
4613 CFLAGS=$ac_save_CFLAGS
4614 elif test $ac_cv_prog_cc_g = yes; then
4615 if test "$GCC" = yes; then
4616 CFLAGS="-g -O2"
4617 else
4618 CFLAGS="-g"
4619 fi
4620 else
4621 if test "$GCC" = yes; then
4622 CFLAGS="-O2"
4623 else
4624 CFLAGS=
4625 fi
4626 fi
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4628 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4629 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4630 $as_echo_n "(cached) " >&6
4631 else
4632 ac_cv_prog_cc_c89=no
4633 ac_save_CC=$CC
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4636 #include <stdarg.h>
4637 #include <stdio.h>
4638 #include <sys/types.h>
4639 #include <sys/stat.h>
4640 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4641 struct buf { int x; };
4642 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4643 static char *e (p, i)
4644 char **p;
4645 int i;
4646 {
4647 return p[i];
4648 }
4649 static char *f (char * (*g) (char **, int), char **p, ...)
4650 {
4651 char *s;
4652 va_list v;
4653 va_start (v,p);
4654 s = g (p, va_arg (v,int));
4655 va_end (v);
4656 return s;
4657 }
4658
4659 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4660 function prototypes and stuff, but not '\xHH' hex character constants.
4661 These don't provoke an error unfortunately, instead are silently treated
4662 as 'x'. The following induces an error, until -std is added to get
4663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4664 array size at least. It's necessary to write '\x00'==0 to get something
4665 that's true only with -std. */
4666 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4667
4668 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4669 inside strings and character constants. */
4670 #define FOO(x) 'x'
4671 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4672
4673 int test (int i, double x);
4674 struct s1 {int (*f) (int a);};
4675 struct s2 {int (*f) (double a);};
4676 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4677 int argc;
4678 char **argv;
4679 int
4680 main ()
4681 {
4682 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4683 ;
4684 return 0;
4685 }
4686 _ACEOF
4687 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4688 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4689 do
4690 CC="$ac_save_CC $ac_arg"
4691 if ac_fn_c_try_compile "$LINENO"; then :
4692 ac_cv_prog_cc_c89=$ac_arg
4693 fi
4694 rm -f core conftest.err conftest.$ac_objext
4695 test "x$ac_cv_prog_cc_c89" != "xno" && break
4696 done
4697 rm -f conftest.$ac_ext
4698 CC=$ac_save_CC
4699
4700 fi
4701 # AC_CACHE_VAL
4702 case "x$ac_cv_prog_cc_c89" in
4703 x)
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4705 $as_echo "none needed" >&6; } ;;
4706 xno)
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4708 $as_echo "unsupported" >&6; } ;;
4709 *)
4710 CC="$CC $ac_cv_prog_cc_c89"
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4712 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4713 esac
4714 if test "x$ac_cv_prog_cc_c89" != xno; then :
4715
4716 fi
4717
4718 ac_ext=c
4719 ac_cpp='$CPP $CPPFLAGS'
4720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4723
4724 ac_ext=cpp
4725 ac_cpp='$CXXCPP $CPPFLAGS'
4726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4729 if test -z "$CXX"; then
4730 if test -n "$CCC"; then
4731 CXX=$CCC
4732 else
4733 if test -n "$ac_tool_prefix"; then
4734 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4735 do
4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_CXX+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -n "$CXX"; then
4744 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 CXX=$ac_cv_prog_CXX
4764 if test -n "$CXX"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4766 $as_echo "$CXX" >&6; }
4767 else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771
4772
4773 test -n "$CXX" && break
4774 done
4775 fi
4776 if test -z "$CXX"; then
4777 ac_ct_CXX=$CXX
4778 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4779 do
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 if test -n "$ac_ct_CXX"; then
4788 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_ac_ct_CXX="$ac_prog"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801 done
4802 done
4803 IFS=$as_save_IFS
4804
4805 fi
4806 fi
4807 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4808 if test -n "$ac_ct_CXX"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4810 $as_echo "$ac_ct_CXX" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814 fi
4815
4816
4817 test -n "$ac_ct_CXX" && break
4818 done
4819
4820 if test "x$ac_ct_CXX" = x; then
4821 CXX="g++"
4822 else
4823 case $cross_compiling:$ac_tool_warned in
4824 yes:)
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827 ac_tool_warned=yes ;;
4828 esac
4829 CXX=$ac_ct_CXX
4830 fi
4831 fi
4832
4833 fi
4834 fi
4835 # Provide some information about the compiler.
4836 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4837 set X $ac_compile
4838 ac_compiler=$2
4839 for ac_option in --version -v -V -qversion; do
4840 { { ac_try="$ac_compiler $ac_option >&5"
4841 case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4844 esac
4845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4846 $as_echo "$ac_try_echo"; } >&5
4847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4848 ac_status=$?
4849 if test -s conftest.err; then
4850 sed '10a\
4851 ... rest of stderr output deleted ...
4852 10q' conftest.err >conftest.er1
4853 cat conftest.er1 >&5
4854 rm -f conftest.er1 conftest.err
4855 fi
4856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4857 test $ac_status = 0; }
4858 done
4859
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4861 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4862 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4867
4868 int
4869 main ()
4870 {
4871 #ifndef __GNUC__
4872 choke me
4873 #endif
4874
4875 ;
4876 return 0;
4877 }
4878 _ACEOF
4879 if ac_fn_cxx_try_compile "$LINENO"; then :
4880 ac_compiler_gnu=yes
4881 else
4882 ac_compiler_gnu=no
4883 fi
4884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4886
4887 fi
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4889 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4890 if test $ac_compiler_gnu = yes; then
4891 GXX=yes
4892 else
4893 GXX=
4894 fi
4895 ac_test_CXXFLAGS=${CXXFLAGS+set}
4896 ac_save_CXXFLAGS=$CXXFLAGS
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4898 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4899 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4903 ac_cxx_werror_flag=yes
4904 ac_cv_prog_cxx_g=no
4905 CXXFLAGS="-g"
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4908
4909 int
4910 main ()
4911 {
4912
4913 ;
4914 return 0;
4915 }
4916 _ACEOF
4917 if ac_fn_cxx_try_compile "$LINENO"; then :
4918 ac_cv_prog_cxx_g=yes
4919 else
4920 CXXFLAGS=""
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923
4924 int
4925 main ()
4926 {
4927
4928 ;
4929 return 0;
4930 }
4931 _ACEOF
4932 if ac_fn_cxx_try_compile "$LINENO"; then :
4933
4934 else
4935 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4936 CXXFLAGS="-g"
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939
4940 int
4941 main ()
4942 {
4943
4944 ;
4945 return 0;
4946 }
4947 _ACEOF
4948 if ac_fn_cxx_try_compile "$LINENO"; then :
4949 ac_cv_prog_cxx_g=yes
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 fi
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 fi
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4957 fi
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4959 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4960 if test "$ac_test_CXXFLAGS" = set; then
4961 CXXFLAGS=$ac_save_CXXFLAGS
4962 elif test $ac_cv_prog_cxx_g = yes; then
4963 if test "$GXX" = yes; then
4964 CXXFLAGS="-g -O2"
4965 else
4966 CXXFLAGS="-g"
4967 fi
4968 else
4969 if test "$GXX" = yes; then
4970 CXXFLAGS="-O2"
4971 else
4972 CXXFLAGS=
4973 fi
4974 fi
4975 ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980
4981
4982 # We must set the default linker to the linker used by gcc for the correct
4983 # operation of libtool. If LD is not defined and we are using gcc, try to
4984 # set the LD default to the ld used by gcc.
4985 if test -z "$LD"; then
4986 if test "$GCC" = yes; then
4987 case $build in
4988 *-*-mingw*)
4989 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4990 *)
4991 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4992 esac
4993 case $gcc_prog_ld in
4994 # Accept absolute paths.
4995 [\\/]* | [A-Za-z]:[\\/]*)
4996 LD="$gcc_prog_ld" ;;
4997 esac
4998 fi
4999 fi
5000
5001 # Check whether -static-libstdc++ -static-libgcc is supported.
5002 have_static_libs=no
5003 if test "$GCC" = yes; then
5004 saved_LDFLAGS="$LDFLAGS"
5005
5006 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5008 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5009 ac_ext=cpp
5010 ac_cpp='$CXXCPP $CPPFLAGS'
5011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5014
5015
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018
5019 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5020 #error -static-libstdc++ not implemented
5021 #endif
5022 int main() {}
5023 _ACEOF
5024 if ac_fn_cxx_try_link "$LINENO"; then :
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5026 $as_echo "yes" >&6; }; have_static_libs=yes
5027 else
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5030 fi
5031 rm -f core conftest.err conftest.$ac_objext \
5032 conftest$ac_exeext conftest.$ac_ext
5033 ac_ext=c
5034 ac_cpp='$CPP $CPPFLAGS'
5035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5038
5039
5040 LDFLAGS="$saved_LDFLAGS"
5041 fi
5042
5043
5044
5045
5046 if test -n "$ac_tool_prefix"; then
5047 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5048 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 if test -n "$GNATBIND"; then
5055 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5067 fi
5068 done
5069 done
5070 IFS=$as_save_IFS
5071
5072 fi
5073 fi
5074 GNATBIND=$ac_cv_prog_GNATBIND
5075 if test -n "$GNATBIND"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5077 $as_echo "$GNATBIND" >&6; }
5078 else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5081 fi
5082
5083
5084 fi
5085 if test -z "$ac_cv_prog_GNATBIND"; then
5086 ac_ct_GNATBIND=$GNATBIND
5087 # Extract the first word of "gnatbind", so it can be a program name with args.
5088 set dummy gnatbind; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 if test -n "$ac_ct_GNATBIND"; then
5095 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5107 fi
5108 done
5109 done
5110 IFS=$as_save_IFS
5111
5112 fi
5113 fi
5114 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5115 if test -n "$ac_ct_GNATBIND"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5117 $as_echo "$ac_ct_GNATBIND" >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5121 fi
5122
5123 if test "x$ac_ct_GNATBIND" = x; then
5124 GNATBIND="no"
5125 else
5126 case $cross_compiling:$ac_tool_warned in
5127 yes:)
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5130 ac_tool_warned=yes ;;
5131 esac
5132 GNATBIND=$ac_ct_GNATBIND
5133 fi
5134 else
5135 GNATBIND="$ac_cv_prog_GNATBIND"
5136 fi
5137
5138 if test -n "$ac_tool_prefix"; then
5139 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5140 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 if test -n "$GNATMAKE"; then
5147 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5159 fi
5160 done
5161 done
5162 IFS=$as_save_IFS
5163
5164 fi
5165 fi
5166 GNATMAKE=$ac_cv_prog_GNATMAKE
5167 if test -n "$GNATMAKE"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5169 $as_echo "$GNATMAKE" >&6; }
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5173 fi
5174
5175
5176 fi
5177 if test -z "$ac_cv_prog_GNATMAKE"; then
5178 ac_ct_GNATMAKE=$GNATMAKE
5179 # Extract the first word of "gnatmake", so it can be a program name with args.
5180 set dummy gnatmake; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 if test -n "$ac_ct_GNATMAKE"; then
5187 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200 done
5201 done
5202 IFS=$as_save_IFS
5203
5204 fi
5205 fi
5206 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5207 if test -n "$ac_ct_GNATMAKE"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5209 $as_echo "$ac_ct_GNATMAKE" >&6; }
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5213 fi
5214
5215 if test "x$ac_ct_GNATMAKE" = x; then
5216 GNATMAKE="no"
5217 else
5218 case $cross_compiling:$ac_tool_warned in
5219 yes:)
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5222 ac_tool_warned=yes ;;
5223 esac
5224 GNATMAKE=$ac_ct_GNATMAKE
5225 fi
5226 else
5227 GNATMAKE="$ac_cv_prog_GNATMAKE"
5228 fi
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5231 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5232 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 cat >conftest.adb <<EOF
5236 procedure conftest is begin null; end conftest;
5237 EOF
5238 acx_cv_cc_gcc_supports_ada=no
5239 # There is a bug in old released versions of GCC which causes the
5240 # driver to exit successfully when the appropriate language module
5241 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5242 # Therefore we must check for the error message as well as an
5243 # unsuccessful exit.
5244 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5245 # given a .adb file, but produce no object file. So we must check
5246 # if an object file was really produced to guard against this.
5247 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5248 if test x"$errors" = x && test -f conftest.$ac_objext; then
5249 acx_cv_cc_gcc_supports_ada=yes
5250 fi
5251 rm -f conftest.*
5252 fi
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5254 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5255
5256 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5257 have_gnat=yes
5258 else
5259 have_gnat=no
5260 fi
5261
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5263 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5264 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 echo abfoo >t1
5268 echo cdfoo >t2
5269 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5270 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5271 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5272 :
5273 else
5274 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5275 fi
5276 fi
5277 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5278 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5279 :
5280 else
5281 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5282 fi
5283 fi
5284 rm t1 t2
5285
5286 fi
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5288 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5289 do_compare="$gcc_cv_prog_cmp_skip"
5290
5291
5292
5293 # Check whether --enable-bootstrap was given.
5294 if test "${enable_bootstrap+set}" = set; then :
5295 enableval=$enable_bootstrap;
5296 else
5297 enable_bootstrap=default
5298 fi
5299
5300
5301 # Issue errors and warnings for invalid/strange bootstrap combinations.
5302 if test -r $srcdir/gcc/configure; then
5303 have_compiler=yes
5304 else
5305 have_compiler=no
5306 fi
5307
5308 case "$have_compiler:$host:$target:$enable_bootstrap" in
5309 *:*:*:no) ;;
5310
5311 # Default behavior. Enable bootstrap if we have a compiler
5312 # and we are in a native configuration.
5313 yes:$build:$build:default)
5314 enable_bootstrap=yes ;;
5315
5316 *:*:*:default)
5317 enable_bootstrap=no ;;
5318
5319 # We have a compiler and we are in a native configuration, bootstrap is ok
5320 yes:$build:$build:yes)
5321 ;;
5322
5323 # Other configurations, but we have a compiler. Assume the user knows
5324 # what he's doing.
5325 yes:*:*:yes)
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5327 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5328 ;;
5329
5330 # No compiler: if they passed --enable-bootstrap explicitly, fail
5331 no:*:*:yes)
5332 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5333
5334 # Fail if wrong command line
5335 *)
5336 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5337 ;;
5338 esac
5339
5340 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5341 # C++98 compiler can still start the bootstrap.
5342 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5343 CXX="$CXX -std=gnu++98"
5344 fi
5345
5346 # Used for setting $lt_cv_objdir
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5348 $as_echo_n "checking for objdir... " >&6; }
5349 if test "${lt_cv_objdir+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 rm -f .libs 2>/dev/null
5353 mkdir .libs 2>/dev/null
5354 if test -d .libs; then
5355 lt_cv_objdir=.libs
5356 else
5357 # MS-DOS does not allow filenames that begin with a dot.
5358 lt_cv_objdir=_libs
5359 fi
5360 rmdir .libs 2>/dev/null
5361 fi
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5363 $as_echo "$lt_cv_objdir" >&6; }
5364 objdir=$lt_cv_objdir
5365
5366
5367
5368
5369
5370 cat >>confdefs.h <<_ACEOF
5371 #define LT_OBJDIR "$lt_cv_objdir/"
5372 _ACEOF
5373
5374
5375
5376 # Check for GMP, MPFR and MPC
5377 gmplibs="-lmpc -lmpfr -lgmp"
5378 gmpinc=
5379 have_gmp=no
5380
5381 # Specify a location for mpc
5382 # check for this first so it ends up on the link line before mpfr.
5383
5384 # Check whether --with-mpc was given.
5385 if test "${with_mpc+set}" = set; then :
5386 withval=$with_mpc;
5387 fi
5388
5389
5390 # Check whether --with-mpc-include was given.
5391 if test "${with_mpc_include+set}" = set; then :
5392 withval=$with_mpc_include;
5393 fi
5394
5395
5396 # Check whether --with-mpc-lib was given.
5397 if test "${with_mpc_lib+set}" = set; then :
5398 withval=$with_mpc_lib;
5399 fi
5400
5401
5402 if test "x$with_mpc" != x; then
5403 gmplibs="-L$with_mpc/lib $gmplibs"
5404 gmpinc="-I$with_mpc/include $gmpinc"
5405 fi
5406 if test "x$with_mpc_include" != x; then
5407 gmpinc="-I$with_mpc_include $gmpinc"
5408 fi
5409 if test "x$with_mpc_lib" != x; then
5410 gmplibs="-L$with_mpc_lib $gmplibs"
5411 fi
5412 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5413 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5414 gmpinc='-I$$s/mpc/src '"$gmpinc"
5415 # Do not test the mpc version. Assume that it is sufficient, since
5416 # it is in the source tree, and the library has not been built yet
5417 # but it would be included on the link line in the version check below
5418 # hence making the test fail.
5419 have_gmp=yes
5420 fi
5421
5422 # Specify a location for mpfr
5423 # check for this first so it ends up on the link line before gmp.
5424
5425 # Check whether --with-mpfr-dir was given.
5426 if test "${with_mpfr_dir+set}" = set; then :
5427 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5428 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5429 fi
5430
5431
5432
5433 # Check whether --with-mpfr was given.
5434 if test "${with_mpfr+set}" = set; then :
5435 withval=$with_mpfr;
5436 fi
5437
5438
5439 # Check whether --with-mpfr-include was given.
5440 if test "${with_mpfr_include+set}" = set; then :
5441 withval=$with_mpfr_include;
5442 fi
5443
5444
5445 # Check whether --with-mpfr-lib was given.
5446 if test "${with_mpfr_lib+set}" = set; then :
5447 withval=$with_mpfr_lib;
5448 fi
5449
5450
5451 if test "x$with_mpfr" != x; then
5452 gmplibs="-L$with_mpfr/lib $gmplibs"
5453 gmpinc="-I$with_mpfr/include $gmpinc"
5454 fi
5455 if test "x$with_mpfr_include" != x; then
5456 gmpinc="-I$with_mpfr_include $gmpinc"
5457 fi
5458 if test "x$with_mpfr_lib" != x; then
5459 gmplibs="-L$with_mpfr_lib $gmplibs"
5460 fi
5461 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5462 # MPFR v3.1.0 moved the sources into a src sub-directory.
5463 if ! test -d ${srcdir}/mpfr/src; then
5464 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5465 fi
5466 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5467 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5468 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5469 # Do not test the mpfr version. Assume that it is sufficient, since
5470 # it is in the source tree, and the library has not been built yet
5471 # but it would be included on the link line in the version check below
5472 # hence making the test fail.
5473 have_gmp=yes
5474 fi
5475
5476 # Specify a location for gmp
5477
5478 # Check whether --with-gmp-dir was given.
5479 if test "${with_gmp_dir+set}" = set; then :
5480 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5481 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5482 fi
5483
5484
5485
5486 # Check whether --with-gmp was given.
5487 if test "${with_gmp+set}" = set; then :
5488 withval=$with_gmp;
5489 fi
5490
5491
5492 # Check whether --with-gmp-include was given.
5493 if test "${with_gmp_include+set}" = set; then :
5494 withval=$with_gmp_include;
5495 fi
5496
5497
5498 # Check whether --with-gmp-lib was given.
5499 if test "${with_gmp_lib+set}" = set; then :
5500 withval=$with_gmp_lib;
5501 fi
5502
5503
5504
5505 if test "x$with_gmp" != x; then
5506 gmplibs="-L$with_gmp/lib $gmplibs"
5507 gmpinc="-I$with_gmp/include $gmpinc"
5508 fi
5509 if test "x$with_gmp_include" != x; then
5510 gmpinc="-I$with_gmp_include $gmpinc"
5511 fi
5512 if test "x$with_gmp_lib" != x; then
5513 gmplibs="-L$with_gmp_lib $gmplibs"
5514 fi
5515 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5516 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5517 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5518 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5519 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5520 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5521 # Do not test the gmp version. Assume that it is sufficient, since
5522 # it is in the source tree, and the library has not been built yet
5523 # but it would be included on the link line in the version check below
5524 # hence making the test fail.
5525 have_gmp=yes
5526 fi
5527
5528 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5529 have_gmp=yes
5530 saved_CFLAGS="$CFLAGS"
5531 CFLAGS="$CFLAGS $gmpinc"
5532 # Check for the recommended and required versions of GMP.
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5534 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5535
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 #include "gmp.h"
5539 int
5540 main ()
5541 {
5542
5543 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5544 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5545 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5546 choke me
5547 #endif
5548
5549 ;
5550 return 0;
5551 }
5552 _ACEOF
5553 if ac_fn_c_try_compile "$LINENO"; then :
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 #include <gmp.h>
5557 int
5558 main ()
5559 {
5560
5561 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5562 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5563 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5564 choke me
5565 #endif
5566
5567 ;
5568 return 0;
5569 }
5570 _ACEOF
5571 if ac_fn_c_try_compile "$LINENO"; then :
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5573 $as_echo "yes" >&6; }
5574 else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5576 $as_echo "buggy but acceptable" >&6; }
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 else
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581 $as_echo "no" >&6; }; have_gmp=no
5582 fi
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584
5585 # If we have GMP, check the MPFR version.
5586 if test x"$have_gmp" = xyes; then
5587 # Check for the recommended and required versions of MPFR.
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5589 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 #include <gmp.h>
5593 #include <mpfr.h>
5594 int
5595 main ()
5596 {
5597
5598 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5599 choke me
5600 #endif
5601
5602 ;
5603 return 0;
5604 }
5605 _ACEOF
5606 if ac_fn_c_try_compile "$LINENO"; then :
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #include <gmp.h>
5610 #include <mpfr.h>
5611 int
5612 main ()
5613 {
5614
5615 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5616 choke me
5617 #endif
5618
5619 ;
5620 return 0;
5621 }
5622 _ACEOF
5623 if ac_fn_c_try_compile "$LINENO"; then :
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5625 $as_echo "yes" >&6; }
5626 else
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5628 $as_echo "buggy but acceptable" >&6; }
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631 else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }; have_gmp=no
5634 fi
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636 fi
5637
5638 # Check for the MPC header version.
5639 if test x"$have_gmp" = xyes ; then
5640 # Check for the recommended and required versions of MPC.
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5642 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 #include <mpc.h>
5646 int
5647 main ()
5648 {
5649
5650 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5651 choke me
5652 #endif
5653
5654 ;
5655 return 0;
5656 }
5657 _ACEOF
5658 if ac_fn_c_try_compile "$LINENO"; then :
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #include <mpc.h>
5662 int
5663 main ()
5664 {
5665
5666 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5667 choke me
5668 #endif
5669
5670 ;
5671 return 0;
5672 }
5673 _ACEOF
5674 if ac_fn_c_try_compile "$LINENO"; then :
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5676 $as_echo "yes" >&6; }
5677 else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5679 $as_echo "buggy but acceptable" >&6; }
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }; have_gmp=no
5685 fi
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 fi
5688
5689 # Now check the MPFR library.
5690 if test x"$have_gmp" = xyes; then
5691 saved_LIBS="$LIBS"
5692 LIBS="$LIBS $gmplibs"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5694 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #include <mpc.h>
5698 int
5699 main ()
5700 {
5701
5702 mpfr_t n;
5703 mpfr_t x;
5704 mpc_t c;
5705 int t;
5706 mpfr_init (n);
5707 mpfr_init (x);
5708 mpfr_atan2 (n, n, x, GMP_RNDN);
5709 mpfr_erfc (n, x, GMP_RNDN);
5710 mpfr_subnormalize (x, t, GMP_RNDN);
5711 mpfr_clear(n);
5712 mpfr_clear(x);
5713 mpc_init2 (c, 53);
5714 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5715 mpc_cosh (c, c, MPC_RNDNN);
5716 mpc_pow (c, c, c, MPC_RNDNN);
5717 mpc_acosh (c, c, MPC_RNDNN);
5718 mpc_clear (c);
5719
5720 ;
5721 return 0;
5722 }
5723 _ACEOF
5724 if ac_fn_c_try_link "$LINENO"; then :
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5726 $as_echo "yes" >&6; }
5727 else
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }; have_gmp=no
5730 fi
5731 rm -f core conftest.err conftest.$ac_objext \
5732 conftest$ac_exeext conftest.$ac_ext
5733 LIBS="$saved_LIBS"
5734 fi
5735
5736 CFLAGS="$saved_CFLAGS"
5737
5738 # The library versions listed in the error message below should match
5739 # the HARD-minimums enforced above.
5740 if test x$have_gmp != xyes; then
5741 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5742 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5743 their locations. Source code for these libraries can be found at
5744 their respective hosting sites as well as at
5745 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5746 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5747 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5748 make sure that you have installed both the libraries and the header
5749 files. They may be located in separate packages." "$LINENO" 5
5750 fi
5751 fi
5752
5753 # Flags needed for both GMP, MPFR and/or MPC.
5754
5755
5756
5757
5758
5759
5760
5761 # Libraries to use for stage1 or when not bootstrapping.
5762
5763 # Check whether --with-stage1-libs was given.
5764 if test "${with_stage1_libs+set}" = set; then :
5765 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5766 stage1_libs=
5767 else
5768 stage1_libs=$withval
5769 fi
5770 else
5771 stage1_libs=
5772 fi
5773
5774
5775
5776 # Linker flags to use for stage1 or when not bootstrapping.
5777
5778 # Check whether --with-stage1-ldflags was given.
5779 if test "${with_stage1_ldflags+set}" = set; then :
5780 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5781 stage1_ldflags=
5782 else
5783 stage1_ldflags=$withval
5784 fi
5785 else
5786 stage1_ldflags=
5787 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5788 # if supported. But if the user explicitly specified the libraries to use,
5789 # trust that they are doing what they want.
5790 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5791 stage1_ldflags="-static-libstdc++ -static-libgcc"
5792 fi
5793 fi
5794
5795
5796
5797 # Libraries to use for stage2 and later builds.
5798
5799 # Check whether --with-boot-libs was given.
5800 if test "${with_boot_libs+set}" = set; then :
5801 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5802 poststage1_libs=
5803 else
5804 poststage1_libs=$withval
5805 fi
5806 else
5807 poststage1_libs=
5808 fi
5809
5810
5811
5812 # Linker flags to use for stage2 and later builds.
5813
5814 # Check whether --with-boot-ldflags was given.
5815 if test "${with_boot_ldflags+set}" = set; then :
5816 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5817 poststage1_ldflags=
5818 else
5819 poststage1_ldflags=$withval
5820 fi
5821 else
5822 poststage1_ldflags=
5823 # In stages 2 and 3, default to linking libstdc++ and libgcc
5824 # statically. But if the user explicitly specified the libraries to
5825 # use, trust that they are doing what they want.
5826 if test "$poststage1_libs" = ""; then
5827 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5828 fi
5829 fi
5830
5831
5832
5833 # GCC GRAPHITE dependency isl.
5834 # Basic setup is inlined here, actual checks are in config/isl.m4
5835
5836
5837 # Check whether --with-isl was given.
5838 if test "${with_isl+set}" = set; then :
5839 withval=$with_isl;
5840 fi
5841
5842
5843 # Treat --without-isl as a request to disable
5844 # GRAPHITE support and skip all following checks.
5845 if test "x$with_isl" != "xno"; then
5846 # Check for isl
5847
5848
5849 # Check whether --with-isl-include was given.
5850 if test "${with_isl_include+set}" = set; then :
5851 withval=$with_isl_include;
5852 fi
5853
5854
5855 # Check whether --with-isl-lib was given.
5856 if test "${with_isl_lib+set}" = set; then :
5857 withval=$with_isl_lib;
5858 fi
5859
5860
5861 # Check whether --enable-isl-version-check was given.
5862 if test "${enable_isl_version_check+set}" = set; then :
5863 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5864 else
5865 ENABLE_ISL_CHECK=yes
5866 fi
5867
5868
5869 # Initialize isllibs and islinc.
5870 case $with_isl in
5871 no)
5872 isllibs=
5873 islinc=
5874 ;;
5875 "" | yes)
5876 ;;
5877 *)
5878 isllibs="-L$with_isl/lib"
5879 islinc="-I$with_isl/include"
5880 ;;
5881 esac
5882 if test "x${with_isl_include}" != x ; then
5883 islinc="-I$with_isl_include"
5884 fi
5885 if test "x${with_isl_lib}" != x; then
5886 isllibs="-L$with_isl_lib"
5887 fi
5888 if test "x${islinc}" = x && test "x${isllibs}" = x \
5889 && test -d ${srcdir}/isl; then
5890 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5891 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5892 ENABLE_ISL_CHECK=no
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5894 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5895 fi
5896
5897 isllibs="${isllibs} -lisl"
5898
5899
5900
5901 if test "${ENABLE_ISL_CHECK}" = yes ; then
5902 _isl_saved_CFLAGS=$CFLAGS
5903 _isl_saved_LDFLAGS=$LDFLAGS
5904 _isl_saved_LIBS=$LIBS
5905
5906 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5907 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5908 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5909
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5911 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 #include <isl/ctx.h>
5915 int
5916 main ()
5917 {
5918 isl_ctx_get_max_operations (isl_ctx_alloc ());
5919 ;
5920 return 0;
5921 }
5922 _ACEOF
5923 if ac_fn_c_try_link "$LINENO"; then :
5924 gcc_cv_isl=yes
5925 else
5926 gcc_cv_isl=no
5927 fi
5928 rm -f core conftest.err conftest.$ac_objext \
5929 conftest$ac_exeext conftest.$ac_ext
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5931 $as_echo "$gcc_cv_isl" >&6; }
5932
5933 if test "${gcc_cv_isl}" = no ; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
5935 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
5936 fi
5937
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5939 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941 /* end confdefs.h. */
5942 #include <isl/schedule.h>
5943 int
5944 main ()
5945 {
5946 isl_options_set_schedule_serialize_sccs (NULL, 0);
5947 ;
5948 return 0;
5949 }
5950 _ACEOF
5951 if ac_fn_c_try_link "$LINENO"; then :
5952 ac_has_isl_options_set_schedule_serialize_sccs=yes
5953 else
5954 ac_has_isl_options_set_schedule_serialize_sccs=no
5955 fi
5956 rm -f core conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5959 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5960
5961 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5962 islver="0.15"
5963
5964 fi
5965
5966 CFLAGS=$_isl_saved_CFLAGS
5967 LDFLAGS=$_isl_saved_LDFLAGS
5968 LIBS=$_isl_saved_LIBS
5969 fi
5970
5971
5972
5973
5974
5975
5976 if test "x${with_isl}" = xno; then
5977 graphite_requested=no
5978 elif test "x${with_isl}" != x \
5979 || test "x${with_isl_include}" != x \
5980 || test "x${with_isl_lib}" != x ; then
5981 graphite_requested=yes
5982 else
5983 graphite_requested=no
5984 fi
5985
5986
5987
5988 if test "${gcc_cv_isl}" = no ; then
5989 isllibs=
5990 islinc=
5991 fi
5992
5993 if test "${graphite_requested}" = yes \
5994 && test "x${isllibs}" = x \
5995 && test "x${islinc}" = x ; then
5996
5997 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
5998 fi
5999
6000
6001 fi
6002
6003 # If the isl check failed, disable builds of in-tree variant of isl
6004 if test "x$with_isl" = xno ||
6005 test "x$gcc_cv_isl" = xno; then
6006 noconfigdirs="$noconfigdirs isl"
6007 islinc=
6008 fi
6009
6010
6011
6012
6013 # Check for LTO support.
6014 # Check whether --enable-lto was given.
6015 if test "${enable_lto+set}" = set; then :
6016 enableval=$enable_lto; enable_lto=$enableval
6017 else
6018 enable_lto=yes; default_enable_lto=yes
6019 fi
6020
6021
6022
6023
6024
6025 target_elf=no
6026 case $target in
6027 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6028 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6029 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6030 nvptx-*-none)
6031 target_elf=no
6032 ;;
6033 *)
6034 target_elf=yes
6035 ;;
6036 esac
6037
6038 if test $target_elf = yes; then :
6039 # ELF platforms build the lto-plugin always.
6040 build_lto_plugin=yes
6041
6042 else
6043 if test x"$default_enable_lto" = x"yes" ; then
6044 case $target in
6045 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6046 # On other non-ELF platforms, LTO has yet to be validated.
6047 *) enable_lto=no ;;
6048 esac
6049 else
6050 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6051 # It would also be nice to check the binutils support, but we don't
6052 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6053 # warn during gcc/ subconfigure; unless you're bootstrapping with
6054 # -flto it won't be needed until after installation anyway.
6055 case $target in
6056 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6057 *) if test x"$enable_lto" = x"yes"; then
6058 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6059 fi
6060 ;;
6061 esac
6062 fi
6063 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6064 # Build it unless LTO was explicitly disabled.
6065 case $target in
6066 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6067 *) ;;
6068 esac
6069
6070 fi
6071
6072
6073 # Check whether --enable-linker-plugin-configure-flags was given.
6074 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6075 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6076 else
6077 extra_linker_plugin_configure_flags=
6078 fi
6079
6080
6081 # Check whether --enable-linker-plugin-flags was given.
6082 if test "${enable_linker_plugin_flags+set}" = set; then :
6083 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6084 else
6085 extra_linker_plugin_flags=
6086 fi
6087
6088
6089
6090
6091 # By default, C and C++ are the only stage 1 languages.
6092 stage1_languages=,c,
6093
6094 # Target libraries that we bootstrap.
6095 bootstrap_target_libs=,target-libgcc,
6096
6097 # Figure out what language subdirectories are present.
6098 # Look if the user specified --enable-languages="..."; if not, use
6099 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6100 # go away some day.
6101 # NB: embedded tabs in this IF block -- do not untabify
6102 if test -d ${srcdir}/gcc; then
6103 if test x"${enable_languages+set}" != xset; then
6104 if test x"${LANGUAGES+set}" = xset; then
6105 enable_languages="${LANGUAGES}"
6106 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6107 else
6108 enable_languages=all
6109 fi
6110 else
6111 if test x"${enable_languages}" = x ||
6112 test x"${enable_languages}" = xyes;
6113 then
6114 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6115 exit 1
6116 fi
6117 fi
6118 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6119
6120 # 'f95' is the old name for the 'fortran' language. We issue a warning
6121 # and make the substitution.
6122 case ,${enable_languages}, in
6123 *,f95,*)
6124 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6125 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6126 ;;
6127 esac
6128
6129 # If bootstrapping, C++ must be enabled.
6130 case ",$enable_languages,:$enable_bootstrap" in
6131 *,c++,*:*) ;;
6132 *:yes)
6133 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6134 enable_languages="${enable_languages},c++"
6135 else
6136 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6137 fi
6138 ;;
6139 esac
6140
6141 # First scan to see if an enabled language requires some other language.
6142 # We assume that a given config-lang.in will list all the language
6143 # front ends it requires, even if some are required indirectly.
6144 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6145 case ${lang_frag} in
6146 ..) ;;
6147 # The odd quoting in the next line works around
6148 # an apparent bug in bash 1.12 on linux.
6149 ${srcdir}/gcc/[*]/config-lang.in) ;;
6150 *)
6151 # From the config-lang.in, get $language, $lang_requires, and
6152 # $lang_requires_boot_languages.
6153 language=
6154 lang_requires=
6155 lang_requires_boot_languages=
6156 . ${lang_frag}
6157 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6158 case ,${enable_languages}, in
6159 *,$other,*) ;;
6160 *,all,*) ;;
6161 *,$language,*)
6162 echo " \`$other' language required by \`$language'; enabling" 1>&2
6163 enable_languages="${enable_languages},${other}"
6164 ;;
6165 esac
6166 done
6167 for other in ${lang_requires_boot_languages} ; do
6168 if test "$other" != "c"; then
6169 case ,${enable_stage1_languages}, in
6170 *,$other,*) ;;
6171 *,all,*) ;;
6172 *)
6173 case ,${enable_languages}, in
6174 *,$language,*)
6175 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6176 enable_stage1_languages="$enable_stage1_languages,${other}"
6177 ;;
6178 esac
6179 ;;
6180 esac
6181 fi
6182 done
6183 ;;
6184 esac
6185 done
6186
6187 new_enable_languages=,c,
6188
6189 # If LTO is enabled, add the LTO front end.
6190 if test "$enable_lto" = "yes" ; then
6191 case ,${enable_languages}, in
6192 *,lto,*) ;;
6193 *) enable_languages="${enable_languages},lto" ;;
6194 esac
6195 if test "${build_lto_plugin}" = "yes" ; then
6196 configdirs="$configdirs lto-plugin"
6197 fi
6198 fi
6199
6200 # If we're building an offloading compiler, add the LTO front end.
6201 if test x"$enable_as_accelerator_for" != x ; then
6202 case ,${enable_languages}, in
6203 *,lto,*) ;;
6204 *) enable_languages="${enable_languages},lto" ;;
6205 esac
6206 fi
6207
6208 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6209 potential_languages=,c,
6210
6211 enabled_target_libs=
6212 disabled_target_libs=
6213
6214 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6215 case ${lang_frag} in
6216 ..) ;;
6217 # The odd quoting in the next line works around
6218 # an apparent bug in bash 1.12 on linux.
6219 ${srcdir}/gcc/[*]/config-lang.in) ;;
6220 *)
6221 # From the config-lang.in, get $language, $target_libs,
6222 # $lang_dirs, $boot_language, and $build_by_default
6223 language=
6224 target_libs=
6225 lang_dirs=
6226 subdir_requires=
6227 boot_language=no
6228 build_by_default=yes
6229 . ${lang_frag}
6230 if test x${language} = x; then
6231 echo "${lang_frag} doesn't set \$language." 1>&2
6232 exit 1
6233 fi
6234
6235 if test "$language" = "c++"; then
6236 boot_language=yes
6237 fi
6238
6239 add_this_lang=no
6240 case ,${enable_languages}, in
6241 *,${language},*)
6242 # Language was explicitly selected; include it
6243 # unless it is C, which is enabled by default.
6244 if test "$language" != "c"; then
6245 add_this_lang=yes
6246 fi
6247 ;;
6248 *,all,*)
6249 # 'all' was selected, select it if it is a default language
6250 if test "$language" != "c"; then
6251 add_this_lang=${build_by_default}
6252 fi
6253 ;;
6254 esac
6255
6256 # Disable languages that need other directories if these aren't available.
6257 for i in $subdir_requires; do
6258 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6259 case ,${enable_languages}, in
6260 *,${language},*)
6261 # Specifically requested language; tell them.
6262 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6263 ;;
6264 *)
6265 # Silently disable.
6266 add_this_lang=unsupported
6267 ;;
6268 esac
6269 done
6270
6271 # Disable Ada if no preexisting GNAT is available.
6272 case ,${enable_languages},:${language}:${have_gnat} in
6273 *,${language},*:ada:no)
6274 # Specifically requested language; tell them.
6275 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6276 ;;
6277 *:ada:no)
6278 # Silently disable.
6279 add_this_lang=unsupported
6280 ;;
6281 esac
6282
6283 # Disable a language that is unsupported by the target.
6284 case " $unsupported_languages " in
6285 *" $language "*)
6286 add_this_lang=unsupported
6287 ;;
6288 esac
6289
6290 case $add_this_lang in
6291 unsupported)
6292 # Remove language-dependent dirs.
6293 disabled_target_libs="$disabled_target_libs $target_libs"
6294 noconfigdirs="$noconfigdirs $lang_dirs"
6295 ;;
6296 no)
6297 # Remove language-dependent dirs; still show language as supported.
6298 disabled_target_libs="$disabled_target_libs $target_libs"
6299 noconfigdirs="$noconfigdirs $lang_dirs"
6300 potential_languages="${potential_languages}${language},"
6301 ;;
6302 yes)
6303 new_enable_languages="${new_enable_languages}${language},"
6304 potential_languages="${potential_languages}${language},"
6305 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6306 enabled_target_libs="$enabled_target_libs $target_libs"
6307 case "${boot_language}:,$enable_stage1_languages," in
6308 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6309 # Add to (comma-separated) list of stage 1 languages.
6310 case ",$stage1_languages," in
6311 *,$language,* | ,yes, | ,all,) ;;
6312 *) stage1_languages="${stage1_languages}${language}," ;;
6313 esac
6314 # We need to bootstrap any supporting libraries.
6315 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6316 ;;
6317 esac
6318 ;;
6319 esac
6320 ;;
6321 esac
6322 done
6323
6324 # Add target libraries which are only needed for disabled languages
6325 # to noconfigdirs.
6326 if test -n "$disabled_target_libs"; then
6327 for dir in $disabled_target_libs; do
6328 case " $enabled_target_libs " in
6329 *" ${dir} "*) ;;
6330 *) noconfigdirs="$noconfigdirs $dir" ;;
6331 esac
6332 done
6333 fi
6334
6335 # Check whether --enable-stage1-languages was given.
6336 if test "${enable_stage1_languages+set}" = set; then :
6337 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6338 ,no,|,,)
6339 # Set it to something that will have no effect in the loop below
6340 enable_stage1_languages=c ;;
6341 ,yes,)
6342 enable_stage1_languages=`echo $new_enable_languages | \
6343 sed -e "s/^,//" -e "s/,$//" ` ;;
6344 *,all,*)
6345 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6346 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6347 esac
6348
6349 # Add "good" languages from enable_stage1_languages to stage1_languages,
6350 # while "bad" languages go in missing_languages. Leave no duplicates.
6351 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6352 case $potential_languages in
6353 *,$i,*)
6354 case $stage1_languages in
6355 *,$i,*) ;;
6356 *) stage1_languages="$stage1_languages$i," ;;
6357 esac ;;
6358 *)
6359 case $missing_languages in
6360 *,$i,*) ;;
6361 *) missing_languages="$missing_languages$i," ;;
6362 esac ;;
6363 esac
6364 done
6365 fi
6366
6367
6368 # Remove leading/trailing commas that were added for simplicity
6369 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6370 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6371 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6372 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6373
6374 if test "x$missing_languages" != x; then
6375 as_fn_error "
6376 The following requested languages could not be built: ${missing_languages}
6377 Supported languages are: ${potential_languages}" "$LINENO" 5
6378 fi
6379 if test "x$new_enable_languages" != "x$enable_languages"; then
6380 echo The following languages will be built: ${new_enable_languages}
6381 enable_languages="$new_enable_languages"
6382 fi
6383
6384
6385 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6386 fi
6387
6388 # Handle --disable-<component> generically.
6389 for dir in $configdirs $build_configdirs $target_configdirs ; do
6390 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6391 varname=`echo $dirname | sed -e s/+/_/g`
6392 if eval test x\${enable_${varname}} "=" xno ; then
6393 noconfigdirs="$noconfigdirs $dir"
6394 fi
6395 done
6396
6397 # Check for Boehm's garbage collector
6398 # Check whether --enable-objc-gc was given.
6399 if test "${enable_objc_gc+set}" = set; then :
6400 enableval=$enable_objc_gc;
6401 fi
6402
6403
6404 # Check whether --with-target-bdw-gc was given.
6405 if test "${with_target_bdw_gc+set}" = set; then :
6406 withval=$with_target_bdw_gc;
6407 fi
6408
6409
6410 # Check whether --with-target-bdw-gc-include was given.
6411 if test "${with_target_bdw_gc_include+set}" = set; then :
6412 withval=$with_target_bdw_gc_include;
6413 fi
6414
6415
6416 # Check whether --with-target-bdw-gc-lib was given.
6417 if test "${with_target_bdw_gc_lib+set}" = set; then :
6418 withval=$with_target_bdw_gc_lib;
6419 fi
6420
6421
6422 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6424 $as_echo_n "checking for bdw garbage collector... " >&6; }
6425 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6427 $as_echo "using bdw-gc in default locations" >&6; }
6428 else
6429 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6430 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6431 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6432 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6433 else
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6435 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6436 fi
6437 fi
6438 esac
6439
6440 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6441 case ,${enable_languages}, in
6442 *,c++,*)
6443 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6444 case "${noconfigdirs}" in
6445 *target-libstdc++-v3*)
6446 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6447 ;;
6448 *) ;;
6449 esac
6450 ;;
6451 *)
6452 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6453 ;;
6454 esac
6455
6456 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6457 # $build_configdirs and $target_configdirs.
6458 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6459
6460 notsupp=""
6461 for dir in . $skipdirs $noconfigdirs ; do
6462 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6463 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6464 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6465 if test -r $srcdir/$dirname/configure ; then
6466 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6467 true
6468 else
6469 notsupp="$notsupp $dir"
6470 fi
6471 fi
6472 fi
6473 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6474 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6475 if test -r $srcdir/$dirname/configure ; then
6476 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6477 true
6478 else
6479 notsupp="$notsupp $dir"
6480 fi
6481 fi
6482 fi
6483 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6484 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6485 if test -r $srcdir/$dirname/configure ; then
6486 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6487 true
6488 else
6489 notsupp="$notsupp $dir"
6490 fi
6491 fi
6492 fi
6493 done
6494
6495 # Quietly strip out all directories which aren't configurable in this tree.
6496 # This relies on all configurable subdirectories being autoconfiscated, which
6497 # is now the case.
6498 build_configdirs_all="$build_configdirs"
6499 build_configdirs=
6500 for i in ${build_configdirs_all} ; do
6501 j=`echo $i | sed -e s/build-//g`
6502 if test -f ${srcdir}/$j/configure ; then
6503 build_configdirs="${build_configdirs} $i"
6504 fi
6505 done
6506
6507 configdirs_all="$configdirs"
6508 configdirs=
6509 for i in ${configdirs_all} ; do
6510 if test -f ${srcdir}/$i/configure ; then
6511 configdirs="${configdirs} $i"
6512 fi
6513 done
6514
6515 target_configdirs_all="$target_configdirs"
6516 target_configdirs=
6517 for i in ${target_configdirs_all} ; do
6518 j=`echo $i | sed -e s/target-//g`
6519 if test -f ${srcdir}/$j/configure ; then
6520 target_configdirs="${target_configdirs} $i"
6521 fi
6522 done
6523
6524 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6525 # so we have to add it after the preceding checks.
6526 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6527 then
6528 case " $configdirs " in
6529 *" libiberty "*)
6530 # If we can build libiberty, we can also build libiberty-linker-plugin.
6531 configdirs="$configdirs libiberty-linker-plugin"
6532 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6533 --with-libiberty=../libiberty-linker-plugin";;
6534 *)
6535 as_fn_error "libiberty missing" "$LINENO" 5;;
6536 esac
6537 fi
6538
6539 # Sometimes we have special requirements for the host libiberty.
6540 extra_host_libiberty_configure_flags=
6541 extra_host_zlib_configure_flags=
6542 case " $configdirs " in
6543 *" lto-plugin "* | *" libcc1 "*)
6544 # When these are to be built as shared libraries, the same applies to
6545 # libiberty.
6546 extra_host_libiberty_configure_flags=--enable-shared
6547 ;;
6548 *" bfd "*)
6549 # When bfd is to be built as a shared library, the same applies to
6550 # zlib.
6551 if test "$enable_shared" = "yes"; then
6552 extra_host_zlib_configure_flags=--enable-host-shared
6553 fi
6554 ;;
6555 esac
6556
6557
6558
6559 # Produce a warning message for the subdirs we can't configure.
6560 # This isn't especially interesting in the Cygnus tree, but in the individual
6561 # FSF releases, it's important to let people know when their machine isn't
6562 # supported by the one or two programs in a package.
6563
6564 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6565 # If $appdirs is non-empty, at least one of those directories must still
6566 # be configured, or we error out. (E.g., if the gas release supports a
6567 # specified target in some subdirs but not the gas subdir, we shouldn't
6568 # pretend that all is well.)
6569 if test -n "$appdirs" ; then
6570 for dir in $appdirs ; do
6571 if test -r $dir/Makefile.in ; then
6572 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6573 appdirs=""
6574 break
6575 fi
6576 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6577 appdirs=""
6578 break
6579 fi
6580 fi
6581 done
6582 if test -n "$appdirs" ; then
6583 echo "*** This configuration is not supported by this package." 1>&2
6584 exit 1
6585 fi
6586 fi
6587 # Okay, some application will build, or we don't care to check. Still
6588 # notify of subdirs not getting built.
6589 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6590 echo " ${notsupp}" 1>&2
6591 echo " (Any other directories should still work fine.)" 1>&2
6592 fi
6593
6594 case "$host" in
6595 *msdosdjgpp*)
6596 enable_gdbtk=no ;;
6597 esac
6598
6599 # To find our prefix, in gcc_cv_tool_prefix.
6600
6601 # The user is always right.
6602 if test "${PATH_SEPARATOR+set}" != set; then
6603 echo "#! /bin/sh" >conf$$.sh
6604 echo "exit 0" >>conf$$.sh
6605 chmod +x conf$$.sh
6606 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6607 PATH_SEPARATOR=';'
6608 else
6609 PATH_SEPARATOR=:
6610 fi
6611 rm -f conf$$.sh
6612 fi
6613
6614
6615
6616 if test "x$exec_prefix" = xNONE; then
6617 if test "x$prefix" = xNONE; then
6618 gcc_cv_tool_prefix=$ac_default_prefix
6619 else
6620 gcc_cv_tool_prefix=$prefix
6621 fi
6622 else
6623 gcc_cv_tool_prefix=$exec_prefix
6624 fi
6625
6626 # If there is no compiler in the tree, use the PATH only. In any
6627 # case, if there is no compiler in the tree nobody should use
6628 # AS_FOR_TARGET and LD_FOR_TARGET.
6629 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6630 gcc_version=`cat $srcdir/gcc/BASE-VER`
6631 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6632 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6633 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6634 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6635 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6636 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6637 else
6638 gcc_cv_tool_dirs=
6639 fi
6640
6641 if test x$build = x$target && test -n "$md_exec_prefix"; then
6642 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6643 fi
6644
6645
6646
6647 copy_dirs=
6648
6649
6650 # Check whether --with-build-sysroot was given.
6651 if test "${with_build_sysroot+set}" = set; then :
6652 withval=$with_build_sysroot; if test x"$withval" != x ; then
6653 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6654 fi
6655 else
6656 SYSROOT_CFLAGS_FOR_TARGET=
6657 fi
6658
6659
6660
6661
6662 # Check whether --with-debug-prefix-map was given.
6663 if test "${with_debug_prefix_map+set}" = set; then :
6664 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6665 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6666 for debug_map in $withval; do
6667 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6668 done
6669 fi
6670 else
6671 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6672 fi
6673
6674
6675
6676 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6677 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6678 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6679 # We want to ensure that TARGET libraries (which we know are built with
6680 # gcc) are built with "-O2 -g", so include those options when setting
6681 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6682 if test "x$CFLAGS_FOR_TARGET" = x; then
6683 if test "x${is_cross_compiler}" = xyes; then
6684 CFLAGS_FOR_TARGET="-g -O2"
6685 else
6686 CFLAGS_FOR_TARGET=$CFLAGS
6687 case " $CFLAGS " in
6688 *" -O2 "*) ;;
6689 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6690 esac
6691 case " $CFLAGS " in
6692 *" -g "* | *" -g3 "*) ;;
6693 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6694 esac
6695 fi
6696 fi
6697
6698
6699 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6700 if test "x${is_cross_compiler}" = xyes; then
6701 CXXFLAGS_FOR_TARGET="-g -O2"
6702 else
6703 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6704 case " $CXXFLAGS " in
6705 *" -O2 "*) ;;
6706 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6707 esac
6708 case " $CXXFLAGS " in
6709 *" -g "* | *" -g3 "*) ;;
6710 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6711 esac
6712 fi
6713 fi
6714
6715
6716
6717
6718 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6719 # the named directory are copied to $(tooldir)/sys-include.
6720 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6721 if test x${is_cross_compiler} = xno ; then
6722 echo 1>&2 '***' --with-headers is only supported when cross compiling
6723 exit 1
6724 fi
6725 if test x"${with_headers}" != xyes ; then
6726 x=${gcc_cv_tool_prefix}
6727 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6728 fi
6729 fi
6730
6731 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6732 # the name directories are copied to $(tooldir)/lib. Multiple directories
6733 # are permitted.
6734 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6735 if test x${is_cross_compiler} = xno ; then
6736 echo 1>&2 '***' --with-libs is only supported when cross compiling
6737 exit 1
6738 fi
6739 if test x"${with_libs}" != xyes ; then
6740 # Copy the libraries in reverse order, so that files in the first named
6741 # library override files in subsequent libraries.
6742 x=${gcc_cv_tool_prefix}
6743 for l in ${with_libs}; do
6744 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6745 done
6746 fi
6747 fi
6748
6749 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6750 #
6751 # This is done by determining whether or not the appropriate directory
6752 # is available, and by checking whether or not specific configurations
6753 # have requested that this magic not happen.
6754 #
6755 # The command line options always override the explicit settings in
6756 # configure.ac, and the settings in configure.ac override this magic.
6757 #
6758 # If the default for a toolchain is to use GNU as and ld, and you don't
6759 # want to do that, then you should use the --without-gnu-as and
6760 # --without-gnu-ld options for the configure script. Similarly, if
6761 # the default is to use the included zlib and you don't want to do that,
6762 # you should use the --with-system-zlib option for the configure script.
6763
6764 if test x${use_gnu_as} = x &&
6765 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6766 with_gnu_as=yes
6767 extra_host_args="$extra_host_args --with-gnu-as"
6768 fi
6769
6770 if test x${use_gnu_ld} = x &&
6771 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6772 with_gnu_ld=yes
6773 extra_host_args="$extra_host_args --with-gnu-ld"
6774 fi
6775
6776 if test x${use_included_zlib} = x &&
6777 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6778 :
6779 else
6780 with_system_zlib=yes
6781 extra_host_args="$extra_host_args --with-system-zlib"
6782 fi
6783
6784 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6785 # can detect this case.
6786
6787 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6788 with_newlib=yes
6789 extra_host_args="$extra_host_args --with-newlib"
6790 fi
6791
6792 # Handle ${copy_dirs}
6793 set fnord ${copy_dirs}
6794 shift
6795 while test $# != 0 ; do
6796 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6797 :
6798 else
6799 echo Copying $1 to $2
6800
6801 # Use the install script to create the directory and all required
6802 # parent directories.
6803 if test -d $2 ; then
6804 :
6805 else
6806 echo >config.temp
6807 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6808 fi
6809
6810 # Copy the directory, assuming we have tar.
6811 # FIXME: Should we use B in the second tar? Not all systems support it.
6812 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6813
6814 # It is the responsibility of the user to correctly adjust all
6815 # symlinks. If somebody can figure out how to handle them correctly
6816 # here, feel free to add the code.
6817
6818 echo $1 > $2/COPIED
6819 fi
6820 shift; shift
6821 done
6822
6823 # Determine a target-dependent exec_prefix that the installed
6824 # gcc will search in. Keep this list sorted by triplet, with
6825 # the *-*-osname triplets last.
6826 md_exec_prefix=
6827 case "${target}" in
6828 i[34567]86-pc-msdosdjgpp*)
6829 md_exec_prefix=/dev/env/DJDIR/bin
6830 ;;
6831 *-*-hpux* | \
6832 *-*-nto-qnx* | \
6833 *-*-solaris2*)
6834 md_exec_prefix=/usr/ccs/bin
6835 ;;
6836 esac
6837
6838 extra_arflags_for_target=
6839 extra_nmflags_for_target=
6840 extra_ranlibflags_for_target=
6841 target_makefile_frag=/dev/null
6842 case "${target}" in
6843 spu-*-*)
6844 target_makefile_frag="config/mt-spu"
6845 ;;
6846 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6847 target_makefile_frag="config/mt-sde"
6848 ;;
6849 mipsisa*-*-elfoabi*)
6850 target_makefile_frag="config/mt-mips-elfoabi"
6851 ;;
6852 mips*-*-*linux* | mips*-*-gnu*)
6853 target_makefile_frag="config/mt-mips-gnu"
6854 ;;
6855 nios2-*-elf*)
6856 target_makefile_frag="config/mt-nios2-elf"
6857 ;;
6858 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6859 target_makefile_frag="config/mt-gnu"
6860 ;;
6861 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6862 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6863 # commands to handle both 32-bit and 64-bit objects. These flags are
6864 # harmless if we're using GNU nm or ar.
6865 extra_arflags_for_target=" -X32_64"
6866 extra_nmflags_for_target=" -B -X32_64"
6867 ;;
6868 esac
6869
6870 alphaieee_frag=/dev/null
6871 case $target in
6872 alpha*-*-*)
6873 # This just makes sure to use the -mieee option to build target libs.
6874 # This should probably be set individually by each library.
6875 alphaieee_frag="config/mt-alphaieee"
6876 ;;
6877 esac
6878
6879 # If --enable-target-optspace always use -Os instead of -O2 to build
6880 # the target libraries, similarly if it is not specified, use -Os
6881 # on selected platforms.
6882 ospace_frag=/dev/null
6883 case "${enable_target_optspace}:${target}" in
6884 yes:*)
6885 ospace_frag="config/mt-ospace"
6886 ;;
6887 :d30v-*)
6888 ospace_frag="config/mt-d30v"
6889 ;;
6890 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6891 ospace_frag="config/mt-ospace"
6892 ;;
6893 no:* | :*)
6894 ;;
6895 *)
6896 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6897 ;;
6898 esac
6899
6900 # Some systems (e.g., one of the i386-aix systems the gas testers are
6901 # using) don't handle "\$" correctly, so don't use it here.
6902 tooldir='${exec_prefix}'/${target_noncanonical}
6903 build_tooldir=${tooldir}
6904
6905 # Create a .gdbinit file which runs the one in srcdir
6906 # and tells GDB to look there for source files.
6907
6908 if test -r ${srcdir}/.gdbinit ; then
6909 case ${srcdir} in
6910 .) ;;
6911 *) cat > ./.gdbinit <<EOF
6912 # ${NO_EDIT}
6913 dir ${srcdir}
6914 dir .
6915 source ${srcdir}/.gdbinit
6916 EOF
6917 ;;
6918 esac
6919 fi
6920
6921 # Make sure that the compiler is able to generate an executable. If it
6922 # can't, we are probably in trouble. We don't care whether we can run the
6923 # executable--we might be using a cross compiler--we only care whether it
6924 # can be created. At this point the main configure script has set CC.
6925 we_are_ok=no
6926 echo "int main () { return 0; }" > conftest.c
6927 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6928 if test $? = 0 ; then
6929 if test -s conftest || test -s conftest.exe ; then
6930 we_are_ok=yes
6931 fi
6932 fi
6933 case $we_are_ok in
6934 no)
6935 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6936 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6937 rm -f conftest*
6938 exit 1
6939 ;;
6940 esac
6941 rm -f conftest*
6942
6943 # Decide which environment variable is used to find dynamic libraries.
6944 case "${host}" in
6945 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6946 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6947 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6948 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6949 esac
6950
6951 # On systems where the dynamic library environment variable is PATH,
6952 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6953 # built executables to PATH.
6954 if test "$RPATH_ENVVAR" = PATH; then
6955 GCC_SHLIB_SUBDIR=/shlib
6956 else
6957 GCC_SHLIB_SUBDIR=
6958 fi
6959
6960 # Adjust the toplevel makefile according to whether bootstrap was selected.
6961 case $enable_bootstrap in
6962 yes)
6963 bootstrap_suffix=bootstrap
6964 BUILD_CONFIG=bootstrap-debug
6965 ;;
6966 no)
6967 bootstrap_suffix=no-bootstrap
6968 BUILD_CONFIG=
6969 ;;
6970 esac
6971
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6973 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6974
6975
6976 # Check whether --with-build-config was given.
6977 if test "${with_build_config+set}" = set; then :
6978 withval=$with_build_config; case $with_build_config in
6979 yes) with_build_config= ;;
6980 no) with_build_config= BUILD_CONFIG= ;;
6981 esac
6982 fi
6983
6984
6985 if test "x${with_build_config}" != x; then
6986 BUILD_CONFIG=$with_build_config
6987 else
6988 case $BUILD_CONFIG in
6989 bootstrap-debug)
6990 if echo "int f (void) { return 0; }" > conftest.c &&
6991 ${CC} -c conftest.c &&
6992 mv conftest.o conftest.o.g0 &&
6993 ${CC} -c -g conftest.c &&
6994 mv conftest.o conftest.o.g &&
6995 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6996 :
6997 else
6998 BUILD_CONFIG=
6999 fi
7000 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7001 ;;
7002 esac
7003 fi
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7005 $as_echo "$BUILD_CONFIG" >&6; }
7006
7007
7008 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7010 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7011 # Check whether --enable-vtable-verify was given.
7012 if test "${enable_vtable_verify+set}" = set; then :
7013 enableval=$enable_vtable_verify; case "$enableval" in
7014 yes) enable_vtable_verify=yes ;;
7015 no) enable_vtable_verify=no ;;
7016 *) enable_vtable_verify=no;;
7017 esac
7018 else
7019 enable_vtable_verify=no
7020 fi
7021
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7023 $as_echo "$enable_vtable_verify" >&6; }
7024
7025 # Record target_configdirs and the configure arguments for target and
7026 # build configuration in Makefile.
7027 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7028 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7029 bootstrap_fixincludes=no
7030
7031 # If we are building libgomp, bootstrap it.
7032 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7033 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7034 fi
7035
7036 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7037 # or bootstrap-ubsan, bootstrap it.
7038 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7039 case "$BUILD_CONFIG" in
7040 *bootstrap-asan* | *bootstrap-ubsan* )
7041 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7042 bootstrap_fixincludes=yes
7043 ;;
7044 esac
7045 fi
7046
7047 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7048 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7049 test "$enable_vtable_verify" != no; then
7050 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7051 fi
7052
7053 # If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx,
7054 # bootstrap it.
7055 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7056 case "$BUILD_CONFIG" in
7057 *bootstrap-mpx* )
7058 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7059 ;;
7060 esac
7061 fi
7062
7063 # Determine whether gdb needs tk/tcl or not.
7064 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7065 # and in that case we want gdb to be built without tk. Ugh!
7066 # In fact I believe gdb is the *only* package directly dependent on tk,
7067 # so we should be able to put the 'maybe's in unconditionally and
7068 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7069 # 100% sure that that's safe though.
7070
7071 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7072 case "$enable_gdbtk" in
7073 no)
7074 GDB_TK="" ;;
7075 yes)
7076 GDB_TK="${gdb_tk}" ;;
7077 *)
7078 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7079 # distro. Eventually someone will fix this and move Insight, nee
7080 # gdbtk to a separate directory.
7081 if test -d ${srcdir}/gdb/gdbtk ; then
7082 GDB_TK="${gdb_tk}"
7083 else
7084 GDB_TK=""
7085 fi
7086 ;;
7087 esac
7088 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7089 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7090
7091 # Strip out unwanted targets.
7092
7093 # While at that, we remove Makefiles if we were started for recursive
7094 # configuration, so that the top-level Makefile reconfigures them,
7095 # like we used to do when configure itself was recursive.
7096
7097 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7098 # but now we're fixing up the Makefile ourselves with the additional
7099 # commands passed to AC_CONFIG_FILES. Use separate variables
7100 # extrasub-{build,host,target} not because there is any reason to split
7101 # the substitutions up that way, but only to remain below the limit of
7102 # 99 commands in a script, for HP-UX sed.
7103 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7104
7105 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7106 yes:yes:*\ gold\ *:*,c++,*) ;;
7107 yes:yes:*\ gold\ *:*)
7108 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7109 ;;
7110 esac
7111
7112 extrasub_build=
7113 for module in ${build_configdirs} ; do
7114 if test -z "${no_recursion}" \
7115 && test -f ${build_subdir}/${module}/Makefile; then
7116 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7117 rm -f ${build_subdir}/${module}/Makefile
7118 fi
7119 extrasub_build="$extrasub_build
7120 /^@if build-$module\$/d
7121 /^@endif build-$module\$/d
7122 /^@if build-$module-$bootstrap_suffix\$/d
7123 /^@endif build-$module-$bootstrap_suffix\$/d"
7124 done
7125 extrasub_host=
7126 for module in ${configdirs} ; do
7127 if test -z "${no_recursion}"; then
7128 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7129 if test -f ${file}; then
7130 echo 1>&2 "*** removing ${file} to force reconfigure"
7131 rm -f ${file}
7132 fi
7133 done
7134 fi
7135 case ${module},${bootstrap_fixincludes} in
7136 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7137 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7138 esac
7139 extrasub_host="$extrasub_host
7140 /^@if $module\$/d
7141 /^@endif $module\$/d
7142 /^@if $module-$host_bootstrap_suffix\$/d
7143 /^@endif $module-$host_bootstrap_suffix\$/d"
7144 done
7145 extrasub_target=
7146 for module in ${target_configdirs} ; do
7147 if test -z "${no_recursion}" \
7148 && test -f ${target_subdir}/${module}/Makefile; then
7149 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7150 rm -f ${target_subdir}/${module}/Makefile
7151 fi
7152
7153 # We only bootstrap target libraries listed in bootstrap_target_libs.
7154 case $bootstrap_target_libs in
7155 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7156 *) target_bootstrap_suffix=no-bootstrap ;;
7157 esac
7158
7159 extrasub_target="$extrasub_target
7160 /^@if target-$module\$/d
7161 /^@endif target-$module\$/d
7162 /^@if target-$module-$target_bootstrap_suffix\$/d
7163 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7164 done
7165
7166 # Do the final fixup along with target modules.
7167 extrasub_target="$extrasub_target
7168 /^@if /,/^@endif /d"
7169
7170 # Create the serialization dependencies. This uses a temporary file.
7171
7172 # Check whether --enable-serial-configure was given.
7173 if test "${enable_serial_configure+set}" = set; then :
7174 enableval=$enable_serial_configure;
7175 fi
7176
7177
7178 case ${enable_serial_configure} in
7179 yes)
7180 enable_serial_build_configure=yes
7181 enable_serial_host_configure=yes
7182 enable_serial_target_configure=yes
7183 ;;
7184 esac
7185
7186 # These force 'configure's to be done one at a time, to avoid problems
7187 # with contention over a shared config.cache.
7188 rm -f serdep.tmp
7189 echo '# serdep.tmp' > serdep.tmp
7190 olditem=
7191 test "x${enable_serial_build_configure}" = xyes &&
7192 for item in ${build_configdirs} ; do
7193 case ${olditem} in
7194 "") ;;
7195 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7196 esac
7197 olditem=${item}
7198 done
7199 olditem=
7200 test "x${enable_serial_host_configure}" = xyes &&
7201 for item in ${configdirs} ; do
7202 case ${olditem} in
7203 "") ;;
7204 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7205 esac
7206 olditem=${item}
7207 done
7208 olditem=
7209 test "x${enable_serial_target_configure}" = xyes &&
7210 for item in ${target_configdirs} ; do
7211 case ${olditem} in
7212 "") ;;
7213 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7214 esac
7215 olditem=${item}
7216 done
7217 serialization_dependencies=serdep.tmp
7218
7219
7220 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7221 # target, nonopt, and variable assignments. These are the ones we
7222 # might not want to pass down to subconfigures. The exception being
7223 # --cache-file=/dev/null, which is used to turn off the use of cache
7224 # files altogether, and which should be passed on to subconfigures.
7225 # Also strip program-prefix, program-suffix, and program-transform-name,
7226 # so that we can pass down a consistent program-transform-name.
7227 baseargs=
7228 tbaseargs=
7229 keep_next=no
7230 skip_next=no
7231 eval "set -- $ac_configure_args"
7232 for ac_arg
7233 do
7234 if test X"$skip_next" = X"yes"; then
7235 skip_next=no
7236 continue
7237 fi
7238 if test X"$keep_next" = X"yes"; then
7239 case $ac_arg in
7240 *\'*)
7241 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7242 esac
7243 baseargs="$baseargs '$ac_arg'"
7244 tbaseargs="$tbaseargs '$ac_arg'"
7245 keep_next=no
7246 continue
7247 fi
7248
7249 # Handle separated arguments. Based on the logic generated by
7250 # autoconf 2.59.
7251 case $ac_arg in
7252 *=* | --config-cache | -C | -disable-* | --disable-* \
7253 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7254 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7255 | -with-* | --with-* | -without-* | --without-* | --x)
7256 separate_arg=no
7257 ;;
7258 -*)
7259 separate_arg=yes
7260 ;;
7261 *)
7262 separate_arg=no
7263 ;;
7264 esac
7265
7266 skip_targ=no
7267 case $ac_arg in
7268
7269 --with-* | --without-*)
7270 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7271
7272 case $libopt in
7273 *[-_]include)
7274 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7275 ;;
7276 *[-_]lib)
7277 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7278 ;;
7279 *)
7280 lib=$libopt
7281 ;;
7282 esac
7283
7284
7285 case $lib in
7286 mpc | mpfr | gmp | isl)
7287 # If we're processing --with-$lib, --with-$lib-include or
7288 # --with-$lib-lib, for one of the libs above, and target is
7289 # different from host, don't pass the current argument to any
7290 # target library's configure.
7291 if test x$is_cross_compiler = xyes; then
7292 skip_targ=yes
7293 fi
7294 ;;
7295 esac
7296 ;;
7297 esac
7298
7299 case "$ac_arg" in
7300 --cache-file=/dev/null | \
7301 -cache-file=/dev/null )
7302 # Handled here to avoid the test to skip args below.
7303 baseargs="$baseargs '$ac_arg'"
7304 tbaseargs="$tbaseargs '$ac_arg'"
7305 # Assert: $separate_arg should always be no.
7306 keep_next=$separate_arg
7307 ;;
7308 --no*)
7309 continue
7310 ;;
7311 --c* | \
7312 --sr* | \
7313 --ho* | \
7314 --bu* | \
7315 --t* | \
7316 --program-* | \
7317 -cache_file* | \
7318 -srcdir* | \
7319 -host* | \
7320 -build* | \
7321 -target* | \
7322 -program-prefix* | \
7323 -program-suffix* | \
7324 -program-transform-name* )
7325 skip_next=$separate_arg
7326 continue
7327 ;;
7328 -*)
7329 # An option. Add it.
7330 case $ac_arg in
7331 *\'*)
7332 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7333 esac
7334 baseargs="$baseargs '$ac_arg'"
7335 if test X"$skip_targ" = Xno; then
7336 tbaseargs="$tbaseargs '$ac_arg'"
7337 fi
7338 keep_next=$separate_arg
7339 ;;
7340 *)
7341 # Either a variable assignment, or a nonopt (triplet). Don't
7342 # pass it down; let the Makefile handle this.
7343 continue
7344 ;;
7345 esac
7346 done
7347 # Remove the initial space we just introduced and, as these will be
7348 # expanded by make, quote '$'.
7349 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7350
7351 # Add in --program-transform-name, after --program-prefix and
7352 # --program-suffix have been applied to it. Autoconf has already
7353 # doubled dollar signs and backslashes in program_transform_name; we want
7354 # the backslashes un-doubled, and then the entire thing wrapped in single
7355 # quotes, because this will be expanded first by make and then by the shell.
7356 # Also, because we want to override the logic in subdir configure scripts to
7357 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7358 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7359 ${program_transform_name}
7360 EOF_SED
7361 gcc_transform_name=`cat conftestsed.out`
7362 rm -f conftestsed.out
7363 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7364 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7365 if test "$silent" = yes; then
7366 baseargs="$baseargs --silent"
7367 tbaseargs="$tbaseargs --silent"
7368 fi
7369 baseargs="$baseargs --disable-option-checking"
7370 tbaseargs="$tbaseargs --disable-option-checking"
7371
7372 # Record and document user additions to sub configure arguments.
7373
7374
7375
7376
7377 # For the build-side libraries, we just need to pretend we're native,
7378 # and not use the same cache file. Multilibs are neither needed nor
7379 # desired. We can't even use the same cache file for all build-side
7380 # libraries, as they're compiled differently; some with C, some with
7381 # C++ or with different feature-enabling options.
7382 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7383
7384 # For host modules, accept cache file option, or specification as blank.
7385 case "${cache_file}" in
7386 "") # empty
7387 cache_file_option="" ;;
7388 /* | [A-Za-z]:[\\/]* ) # absolute path
7389 cache_file_option="--cache-file=${cache_file}" ;;
7390 *) # relative path
7391 cache_file_option="--cache-file=../${cache_file}" ;;
7392 esac
7393
7394 # Host dirs don't like to share a cache file either, horribly enough.
7395 # This seems to be due to autoconf 2.5x stupidity.
7396 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7397
7398 target_configargs="$target_configargs ${tbaseargs}"
7399
7400 # Passing a --with-cross-host argument lets the target libraries know
7401 # whether they are being built with a cross-compiler or being built
7402 # native. However, it would be better to use other mechanisms to make the
7403 # sorts of decisions they want to make on this basis. Please consider
7404 # this option to be deprecated. FIXME.
7405 if test x${is_cross_compiler} = xyes ; then
7406 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7407 fi
7408
7409 # Special user-friendly check for native x86_64-linux build, if
7410 # multilib is not explicitly enabled.
7411 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7412 x86_64-*linux*:yes:$build:$build:)
7413 # Make sure we have a development environment that handles 32-bit
7414 dev64=no
7415 echo "int main () { return 0; }" > conftest.c
7416 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7417 if test $? = 0 ; then
7418 if test -s conftest || test -s conftest.exe ; then
7419 dev64=yes
7420 fi
7421 fi
7422 rm -f conftest*
7423 if test x${dev64} != xyes ; then
7424 as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7425 fi
7426 ;;
7427 esac
7428
7429 # Default to --enable-multilib.
7430 if test x${enable_multilib} = x ; then
7431 target_configargs="--enable-multilib ${target_configargs}"
7432 fi
7433
7434 # Pass --with-newlib if appropriate. Note that target_configdirs has
7435 # changed from the earlier setting of with_newlib.
7436 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7437 target_configargs="--with-newlib ${target_configargs}"
7438 fi
7439
7440 # Different target subdirs use different values of certain variables
7441 # (notably CXX). Worse, multilibs use *lots* of different values.
7442 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7443 # it doesn't automatically accept command-line overrides of them.
7444 # This means it's not safe for target subdirs to share a cache file,
7445 # which is disgusting, but there you have it. Hopefully this can be
7446 # fixed in future. It's still worthwhile to use a cache file for each
7447 # directory. I think.
7448
7449 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7450 # We need to pass --target, as newer autoconf's requires consistency
7451 # for target_alias and gcc doesn't manage it consistently.
7452 target_configargs="--cache-file=./config.cache ${target_configargs}"
7453
7454 FLAGS_FOR_TARGET=
7455 case " $target_configdirs " in
7456 *" newlib "*)
7457 case " $target_configargs " in
7458 *" --with-newlib "*)
7459 case "$target" in
7460 *-cygwin*)
7461 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7462 ;;
7463 esac
7464
7465 # If we're not building GCC, don't discard standard headers.
7466 if test -d ${srcdir}/gcc; then
7467 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7468
7469 if test "${build}" != "${host}"; then
7470 # On Canadian crosses, CC_FOR_TARGET will have already been set
7471 # by `configure', so we won't have an opportunity to add -Bgcc/
7472 # to it. This is right: we don't want to search that directory
7473 # for binaries, but we want the header files in there, so add
7474 # them explicitly.
7475 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7476
7477 # Someone might think of using the pre-installed headers on
7478 # Canadian crosses, in case the installed compiler is not fully
7479 # compatible with the compiler being built. In this case, it
7480 # would be better to flag an error than risking having
7481 # incompatible object files being constructed. We can't
7482 # guarantee that an error will be flagged, but let's hope the
7483 # compiler will do it, when presented with incompatible header
7484 # files.
7485 fi
7486 fi
7487
7488 case "${target}-${is_cross_compiler}" in
7489 i[3456789]86-*-linux*-no)
7490 # Here host == target, so we don't need to build gcc,
7491 # so we don't want to discard standard headers.
7492 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7493 ;;
7494 *)
7495 # If we're building newlib, use its generic headers last, but search
7496 # for any libc-related directories first (so make it the last -B
7497 # switch).
7498 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7499
7500 # If we're building libgloss, find the startup file, simulator library
7501 # and linker script.
7502 case " $target_configdirs " in
7503 *" libgloss "*)
7504 # Look for startup file, simulator library and maybe linker script.
7505 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7506 # Look for libnosys.a in case the target needs it.
7507 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7508 # Most targets have the linker script in the source directory.
7509 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7510 ;;
7511 esac
7512 ;;
7513 esac
7514 ;;
7515 esac
7516 ;;
7517 esac
7518
7519 case "$target" in
7520 x86_64-*mingw* | *-w64-mingw*)
7521 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7522 # however, use a symlink named 'mingw' in ${prefix} .
7523 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7524 ;;
7525 *-mingw*)
7526 # MinGW can't be handled as Cygwin above since it does not use newlib.
7527 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'
7528 ;;
7529 esac
7530
7531 # Allow the user to override the flags for
7532 # our build compiler if desired.
7533 if test x"${build}" = x"${host}" ; then
7534 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7535 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7536 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7537 fi
7538
7539 # On Canadian crosses, we'll be searching the right directories for
7540 # the previously-installed cross compiler, so don't bother to add
7541 # flags for directories within the install tree of the compiler
7542 # being built; programs in there won't even run.
7543 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7544 # Search for pre-installed headers if nothing else fits.
7545 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7546 fi
7547
7548 if test "x${use_gnu_ld}" = x &&
7549 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7550 # Arrange for us to find uninstalled linker scripts.
7551 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7552 fi
7553
7554 # Search for other target-specific linker scripts and such.
7555 case "${target}" in
7556 mep*)
7557 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7558 ;;
7559 esac
7560
7561 # Makefile fragments.
7562 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7563 do
7564 eval fragval=\$$frag
7565 if test $fragval != /dev/null; then
7566 eval $frag=${srcdir}/$fragval
7567 fi
7568 done
7569
7570
7571
7572
7573
7574 # Miscellanea: directories, flags, etc.
7575
7576
7577
7578
7579
7580
7581
7582
7583 # Build module lists & subconfigure args.
7584
7585
7586
7587 # Host module lists & subconfigure args.
7588
7589
7590
7591
7592 # Target module lists & subconfigure args.
7593
7594
7595
7596 # Build tools.
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613 # Generate default definitions for YACC, M4, LEX and other programs that run
7614 # on the build machine. These are used if the Makefile can't locate these
7615 # programs in objdir.
7616 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7617
7618 for ac_prog in 'bison -y' byacc yacc
7619 do
7620 # Extract the first word of "$ac_prog", so it can be a program name with args.
7621 set dummy $ac_prog; ac_word=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if test "${ac_cv_prog_YACC+set}" = set; then :
7625 $as_echo_n "(cached) " >&6
7626 else
7627 if test -n "$YACC"; then
7628 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7629 else
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7632 do
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7637 ac_cv_prog_YACC="$ac_prog"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 break 2
7640 fi
7641 done
7642 done
7643 IFS=$as_save_IFS
7644
7645 fi
7646 fi
7647 YACC=$ac_cv_prog_YACC
7648 if test -n "$YACC"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7650 $as_echo "$YACC" >&6; }
7651 else
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7654 fi
7655
7656
7657 test -n "$YACC" && break
7658 done
7659 test -n "$YACC" || YACC="$MISSING bison -y"
7660
7661 case " $build_configdirs " in
7662 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7663 esac
7664
7665 for ac_prog in bison
7666 do
7667 # Extract the first word of "$ac_prog", so it can be a program name with args.
7668 set dummy $ac_prog; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if test "${ac_cv_prog_BISON+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 if test -n "$BISON"; then
7675 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684 ac_cv_prog_BISON="$ac_prog"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7687 fi
7688 done
7689 done
7690 IFS=$as_save_IFS
7691
7692 fi
7693 fi
7694 BISON=$ac_cv_prog_BISON
7695 if test -n "$BISON"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7697 $as_echo "$BISON" >&6; }
7698 else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7701 fi
7702
7703
7704 test -n "$BISON" && break
7705 done
7706 test -n "$BISON" || BISON="$MISSING bison"
7707
7708 case " $build_configdirs " in
7709 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7710 esac
7711
7712 for ac_prog in gm4 gnum4 m4
7713 do
7714 # Extract the first word of "$ac_prog", so it can be a program name with args.
7715 set dummy $ac_prog; ac_word=$2
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717 $as_echo_n "checking for $ac_word... " >&6; }
7718 if test "${ac_cv_prog_M4+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 if test -n "$M4"; then
7722 ac_cv_prog_M4="$M4" # Let the user override the test.
7723 else
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7726 do
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_prog_M4="$ac_prog"
7732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7733 break 2
7734 fi
7735 done
7736 done
7737 IFS=$as_save_IFS
7738
7739 fi
7740 fi
7741 M4=$ac_cv_prog_M4
7742 if test -n "$M4"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7744 $as_echo "$M4" >&6; }
7745 else
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7748 fi
7749
7750
7751 test -n "$M4" && break
7752 done
7753 test -n "$M4" || M4="$MISSING m4"
7754
7755 case " $build_configdirs " in
7756 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7757 esac
7758
7759 for ac_prog in flex lex
7760 do
7761 # Extract the first word of "$ac_prog", so it can be a program name with args.
7762 set dummy $ac_prog; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_prog_LEX+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 if test -n "$LEX"; then
7769 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_prog_LEX="$ac_prog"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7781 fi
7782 done
7783 done
7784 IFS=$as_save_IFS
7785
7786 fi
7787 fi
7788 LEX=$ac_cv_prog_LEX
7789 if test -n "$LEX"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7791 $as_echo "$LEX" >&6; }
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7795 fi
7796
7797
7798 test -n "$LEX" && break
7799 done
7800 test -n "$LEX" || LEX="$MISSING flex"
7801
7802 case " $build_configdirs " in
7803 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7804 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7805 esac
7806
7807 for ac_prog in flex
7808 do
7809 # Extract the first word of "$ac_prog", so it can be a program name with args.
7810 set dummy $ac_prog; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if test "${ac_cv_prog_FLEX+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 if test -n "$FLEX"; then
7817 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_FLEX="$ac_prog"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7829 fi
7830 done
7831 done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 FLEX=$ac_cv_prog_FLEX
7837 if test -n "$FLEX"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7839 $as_echo "$FLEX" >&6; }
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 fi
7844
7845
7846 test -n "$FLEX" && break
7847 done
7848 test -n "$FLEX" || FLEX="$MISSING flex"
7849
7850 case " $build_configdirs " in
7851 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7852 esac
7853
7854 for ac_prog in makeinfo
7855 do
7856 # Extract the first word of "$ac_prog", so it can be a program name with args.
7857 set dummy $ac_prog; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 if test -n "$MAKEINFO"; then
7864 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7873 ac_cv_prog_MAKEINFO="$ac_prog"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7876 fi
7877 done
7878 done
7879 IFS=$as_save_IFS
7880
7881 fi
7882 fi
7883 MAKEINFO=$ac_cv_prog_MAKEINFO
7884 if test -n "$MAKEINFO"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7886 $as_echo "$MAKEINFO" >&6; }
7887 else
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7890 fi
7891
7892
7893 test -n "$MAKEINFO" && break
7894 done
7895 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7896
7897 case " $build_configdirs " in
7898 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7899 *)
7900
7901 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7902 # higher, else we use the "missing" dummy.
7903 if ${MAKEINFO} --version \
7904 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7905 :
7906 else
7907 MAKEINFO="$MISSING makeinfo"
7908 fi
7909 ;;
7910
7911 esac
7912
7913 # FIXME: expect and dejagnu may become build tools?
7914
7915 for ac_prog in expect
7916 do
7917 # Extract the first word of "$ac_prog", so it can be a program name with args.
7918 set dummy $ac_prog; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 if test -n "$EXPECT"; then
7925 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7926 else
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 for as_dir in $PATH
7929 do
7930 IFS=$as_save_IFS
7931 test -z "$as_dir" && as_dir=.
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7934 ac_cv_prog_EXPECT="$ac_prog"
7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 break 2
7937 fi
7938 done
7939 done
7940 IFS=$as_save_IFS
7941
7942 fi
7943 fi
7944 EXPECT=$ac_cv_prog_EXPECT
7945 if test -n "$EXPECT"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7947 $as_echo "$EXPECT" >&6; }
7948 else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7951 fi
7952
7953
7954 test -n "$EXPECT" && break
7955 done
7956 test -n "$EXPECT" || EXPECT="expect"
7957
7958 case " $configdirs " in
7959 *" expect "*)
7960 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7961 ;;
7962 esac
7963
7964 for ac_prog in runtest
7965 do
7966 # Extract the first word of "$ac_prog", so it can be a program name with args.
7967 set dummy $ac_prog; ac_word=$2
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 $as_echo_n "checking for $ac_word... " >&6; }
7970 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 if test -n "$RUNTEST"; then
7974 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7975 else
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7978 do
7979 IFS=$as_save_IFS
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7983 ac_cv_prog_RUNTEST="$ac_prog"
7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 break 2
7986 fi
7987 done
7988 done
7989 IFS=$as_save_IFS
7990
7991 fi
7992 fi
7993 RUNTEST=$ac_cv_prog_RUNTEST
7994 if test -n "$RUNTEST"; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7996 $as_echo "$RUNTEST" >&6; }
7997 else
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 $as_echo "no" >&6; }
8000 fi
8001
8002
8003 test -n "$RUNTEST" && break
8004 done
8005 test -n "$RUNTEST" || RUNTEST="runtest"
8006
8007 case " $configdirs " in
8008 *" dejagnu "*)
8009 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8010 ;;
8011 esac
8012
8013
8014 # Host tools.
8015 ncn_tool_prefix=
8016 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8017 ncn_target_tool_prefix=
8018 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8019
8020
8021
8022 if test -n "$AR"; then
8023 ac_cv_prog_AR=$AR
8024 elif test -n "$ac_cv_prog_AR"; then
8025 AR=$ac_cv_prog_AR
8026 fi
8027
8028 if test -n "$ac_cv_prog_AR"; then
8029 for ncn_progname in ar; do
8030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8031 set dummy ${ncn_progname}; ac_word=$2
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033 $as_echo_n "checking for $ac_word... " >&6; }
8034 if test "${ac_cv_prog_AR+set}" = set; then :
8035 $as_echo_n "(cached) " >&6
8036 else
8037 if test -n "$AR"; then
8038 ac_cv_prog_AR="$AR" # Let the user override the test.
8039 else
8040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041 for as_dir in $PATH
8042 do
8043 IFS=$as_save_IFS
8044 test -z "$as_dir" && as_dir=.
8045 for ac_exec_ext in '' $ac_executable_extensions; do
8046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8047 ac_cv_prog_AR="${ncn_progname}"
8048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8049 break 2
8050 fi
8051 done
8052 done
8053 IFS=$as_save_IFS
8054
8055 fi
8056 fi
8057 AR=$ac_cv_prog_AR
8058 if test -n "$AR"; then
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8060 $as_echo "$AR" >&6; }
8061 else
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 $as_echo "no" >&6; }
8064 fi
8065
8066
8067 done
8068 fi
8069
8070 for ncn_progname in ar; do
8071 if test -n "$ncn_tool_prefix"; then
8072 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8073 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if test "${ac_cv_prog_AR+set}" = set; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079 if test -n "$AR"; then
8080 ac_cv_prog_AR="$AR" # Let the user override the test.
8081 else
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8084 do
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8089 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 break 2
8092 fi
8093 done
8094 done
8095 IFS=$as_save_IFS
8096
8097 fi
8098 fi
8099 AR=$ac_cv_prog_AR
8100 if test -n "$AR"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8102 $as_echo "$AR" >&6; }
8103 else
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8106 fi
8107
8108
8109 fi
8110 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8112 set dummy ${ncn_progname}; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if test "${ac_cv_prog_AR+set}" = set; then :
8116 $as_echo_n "(cached) " >&6
8117 else
8118 if test -n "$AR"; then
8119 ac_cv_prog_AR="$AR" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8128 ac_cv_prog_AR="${ncn_progname}"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 break 2
8131 fi
8132 done
8133 done
8134 IFS=$as_save_IFS
8135
8136 fi
8137 fi
8138 AR=$ac_cv_prog_AR
8139 if test -n "$AR"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8141 $as_echo "$AR" >&6; }
8142 else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8145 fi
8146
8147
8148 fi
8149 test -n "$ac_cv_prog_AR" && break
8150 done
8151
8152 if test -z "$ac_cv_prog_AR" ; then
8153 set dummy ar
8154 if test $build = $host ; then
8155 AR="$2"
8156 else
8157 AR="${ncn_tool_prefix}$2"
8158 fi
8159 fi
8160
8161
8162
8163 if test -n "$AS"; then
8164 ac_cv_prog_AS=$AS
8165 elif test -n "$ac_cv_prog_AS"; then
8166 AS=$ac_cv_prog_AS
8167 fi
8168
8169 if test -n "$ac_cv_prog_AS"; then
8170 for ncn_progname in as; do
8171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8172 set dummy ${ncn_progname}; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if test "${ac_cv_prog_AS+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 if test -n "$AS"; then
8179 ac_cv_prog_AS="$AS" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8183 do
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8188 ac_cv_prog_AS="${ncn_progname}"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8191 fi
8192 done
8193 done
8194 IFS=$as_save_IFS
8195
8196 fi
8197 fi
8198 AS=$ac_cv_prog_AS
8199 if test -n "$AS"; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8201 $as_echo "$AS" >&6; }
8202 else
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8205 fi
8206
8207
8208 done
8209 fi
8210
8211 for ncn_progname in as; do
8212 if test -n "$ncn_tool_prefix"; then
8213 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8214 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if test "${ac_cv_prog_AS+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 if test -n "$AS"; then
8221 ac_cv_prog_AS="$AS" # Let the user override the test.
8222 else
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8225 do
8226 IFS=$as_save_IFS
8227 test -z "$as_dir" && as_dir=.
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8230 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232 break 2
8233 fi
8234 done
8235 done
8236 IFS=$as_save_IFS
8237
8238 fi
8239 fi
8240 AS=$ac_cv_prog_AS
8241 if test -n "$AS"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8243 $as_echo "$AS" >&6; }
8244 else
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8247 fi
8248
8249
8250 fi
8251 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8253 set dummy ${ncn_progname}; ac_word=$2
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255 $as_echo_n "checking for $ac_word... " >&6; }
8256 if test "${ac_cv_prog_AS+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 if test -n "$AS"; then
8260 ac_cv_prog_AS="$AS" # Let the user override the test.
8261 else
8262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263 for as_dir in $PATH
8264 do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8269 ac_cv_prog_AS="${ncn_progname}"
8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 break 2
8272 fi
8273 done
8274 done
8275 IFS=$as_save_IFS
8276
8277 fi
8278 fi
8279 AS=$ac_cv_prog_AS
8280 if test -n "$AS"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8282 $as_echo "$AS" >&6; }
8283 else
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 $as_echo "no" >&6; }
8286 fi
8287
8288
8289 fi
8290 test -n "$ac_cv_prog_AS" && break
8291 done
8292
8293 if test -z "$ac_cv_prog_AS" ; then
8294 set dummy as
8295 if test $build = $host ; then
8296 AS="$2"
8297 else
8298 AS="${ncn_tool_prefix}$2"
8299 fi
8300 fi
8301
8302
8303
8304 if test -n "$DLLTOOL"; then
8305 ac_cv_prog_DLLTOOL=$DLLTOOL
8306 elif test -n "$ac_cv_prog_DLLTOOL"; then
8307 DLLTOOL=$ac_cv_prog_DLLTOOL
8308 fi
8309
8310 if test -n "$ac_cv_prog_DLLTOOL"; then
8311 for ncn_progname in dlltool; do
8312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8313 set dummy ${ncn_progname}; ac_word=$2
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 $as_echo_n "checking for $ac_word... " >&6; }
8316 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 if test -n "$DLLTOOL"; then
8320 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8321 else
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 for as_dir in $PATH
8324 do
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8329 ac_cv_prog_DLLTOOL="${ncn_progname}"
8330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 break 2
8332 fi
8333 done
8334 done
8335 IFS=$as_save_IFS
8336
8337 fi
8338 fi
8339 DLLTOOL=$ac_cv_prog_DLLTOOL
8340 if test -n "$DLLTOOL"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8342 $as_echo "$DLLTOOL" >&6; }
8343 else
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8346 fi
8347
8348
8349 done
8350 fi
8351
8352 for ncn_progname in dlltool; do
8353 if test -n "$ncn_tool_prefix"; then
8354 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8355 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 if test -n "$DLLTOOL"; then
8362 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8374 fi
8375 done
8376 done
8377 IFS=$as_save_IFS
8378
8379 fi
8380 fi
8381 DLLTOOL=$ac_cv_prog_DLLTOOL
8382 if test -n "$DLLTOOL"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8384 $as_echo "$DLLTOOL" >&6; }
8385 else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8388 fi
8389
8390
8391 fi
8392 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8394 set dummy ${ncn_progname}; ac_word=$2
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396 $as_echo_n "checking for $ac_word... " >&6; }
8397 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 if test -n "$DLLTOOL"; then
8401 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8402 else
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 for as_dir in $PATH
8405 do
8406 IFS=$as_save_IFS
8407 test -z "$as_dir" && as_dir=.
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8410 ac_cv_prog_DLLTOOL="${ncn_progname}"
8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412 break 2
8413 fi
8414 done
8415 done
8416 IFS=$as_save_IFS
8417
8418 fi
8419 fi
8420 DLLTOOL=$ac_cv_prog_DLLTOOL
8421 if test -n "$DLLTOOL"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8423 $as_echo "$DLLTOOL" >&6; }
8424 else
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8427 fi
8428
8429
8430 fi
8431 test -n "$ac_cv_prog_DLLTOOL" && break
8432 done
8433
8434 if test -z "$ac_cv_prog_DLLTOOL" ; then
8435 set dummy dlltool
8436 if test $build = $host ; then
8437 DLLTOOL="$2"
8438 else
8439 DLLTOOL="${ncn_tool_prefix}$2"
8440 fi
8441 fi
8442
8443
8444
8445 if test -n "$LD"; then
8446 ac_cv_prog_LD=$LD
8447 elif test -n "$ac_cv_prog_LD"; then
8448 LD=$ac_cv_prog_LD
8449 fi
8450
8451 if test -n "$ac_cv_prog_LD"; then
8452 for ncn_progname in ld; do
8453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8454 set dummy ${ncn_progname}; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if test "${ac_cv_prog_LD+set}" = set; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 if test -n "$LD"; then
8461 ac_cv_prog_LD="$LD" # Let the user override the test.
8462 else
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 for as_dir in $PATH
8465 do
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8470 ac_cv_prog_LD="${ncn_progname}"
8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 break 2
8473 fi
8474 done
8475 done
8476 IFS=$as_save_IFS
8477
8478 fi
8479 fi
8480 LD=$ac_cv_prog_LD
8481 if test -n "$LD"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8483 $as_echo "$LD" >&6; }
8484 else
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8487 fi
8488
8489
8490 done
8491 fi
8492
8493 for ncn_progname in ld; do
8494 if test -n "$ncn_tool_prefix"; then
8495 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8496 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498 $as_echo_n "checking for $ac_word... " >&6; }
8499 if test "${ac_cv_prog_LD+set}" = set; then :
8500 $as_echo_n "(cached) " >&6
8501 else
8502 if test -n "$LD"; then
8503 ac_cv_prog_LD="$LD" # Let the user override the test.
8504 else
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 for as_dir in $PATH
8507 do
8508 IFS=$as_save_IFS
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8512 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 break 2
8515 fi
8516 done
8517 done
8518 IFS=$as_save_IFS
8519
8520 fi
8521 fi
8522 LD=$ac_cv_prog_LD
8523 if test -n "$LD"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8525 $as_echo "$LD" >&6; }
8526 else
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528 $as_echo "no" >&6; }
8529 fi
8530
8531
8532 fi
8533 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8535 set dummy ${ncn_progname}; ac_word=$2
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537 $as_echo_n "checking for $ac_word... " >&6; }
8538 if test "${ac_cv_prog_LD+set}" = set; then :
8539 $as_echo_n "(cached) " >&6
8540 else
8541 if test -n "$LD"; then
8542 ac_cv_prog_LD="$LD" # Let the user override the test.
8543 else
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 for as_dir in $PATH
8546 do
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8551 ac_cv_prog_LD="${ncn_progname}"
8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 break 2
8554 fi
8555 done
8556 done
8557 IFS=$as_save_IFS
8558
8559 fi
8560 fi
8561 LD=$ac_cv_prog_LD
8562 if test -n "$LD"; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8564 $as_echo "$LD" >&6; }
8565 else
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 $as_echo "no" >&6; }
8568 fi
8569
8570
8571 fi
8572 test -n "$ac_cv_prog_LD" && break
8573 done
8574
8575 if test -z "$ac_cv_prog_LD" ; then
8576 set dummy ld
8577 if test $build = $host ; then
8578 LD="$2"
8579 else
8580 LD="${ncn_tool_prefix}$2"
8581 fi
8582 fi
8583
8584
8585
8586 if test -n "$LIPO"; then
8587 ac_cv_prog_LIPO=$LIPO
8588 elif test -n "$ac_cv_prog_LIPO"; then
8589 LIPO=$ac_cv_prog_LIPO
8590 fi
8591
8592 if test -n "$ac_cv_prog_LIPO"; then
8593 for ncn_progname in lipo; do
8594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8595 set dummy ${ncn_progname}; ac_word=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if test "${ac_cv_prog_LIPO+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 if test -n "$LIPO"; then
8602 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8603 else
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 for as_dir in $PATH
8606 do
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8611 ac_cv_prog_LIPO="${ncn_progname}"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 break 2
8614 fi
8615 done
8616 done
8617 IFS=$as_save_IFS
8618
8619 fi
8620 fi
8621 LIPO=$ac_cv_prog_LIPO
8622 if test -n "$LIPO"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8624 $as_echo "$LIPO" >&6; }
8625 else
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8628 fi
8629
8630
8631 done
8632 fi
8633
8634 for ncn_progname in lipo; do
8635 if test -n "$ncn_tool_prefix"; then
8636 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8637 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639 $as_echo_n "checking for $ac_word... " >&6; }
8640 if test "${ac_cv_prog_LIPO+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 if test -n "$LIPO"; then
8644 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8645 else
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 for as_dir in $PATH
8648 do
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8653 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 break 2
8656 fi
8657 done
8658 done
8659 IFS=$as_save_IFS
8660
8661 fi
8662 fi
8663 LIPO=$ac_cv_prog_LIPO
8664 if test -n "$LIPO"; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8666 $as_echo "$LIPO" >&6; }
8667 else
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 $as_echo "no" >&6; }
8670 fi
8671
8672
8673 fi
8674 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8676 set dummy ${ncn_progname}; ac_word=$2
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 $as_echo_n "checking for $ac_word... " >&6; }
8679 if test "${ac_cv_prog_LIPO+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
8681 else
8682 if test -n "$LIPO"; then
8683 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8684 else
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 for as_dir in $PATH
8687 do
8688 IFS=$as_save_IFS
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8692 ac_cv_prog_LIPO="${ncn_progname}"
8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8694 break 2
8695 fi
8696 done
8697 done
8698 IFS=$as_save_IFS
8699
8700 fi
8701 fi
8702 LIPO=$ac_cv_prog_LIPO
8703 if test -n "$LIPO"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8705 $as_echo "$LIPO" >&6; }
8706 else
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8709 fi
8710
8711
8712 fi
8713 test -n "$ac_cv_prog_LIPO" && break
8714 done
8715
8716 if test -z "$ac_cv_prog_LIPO" ; then
8717 set dummy lipo
8718 if test $build = $host ; then
8719 LIPO="$2"
8720 else
8721 LIPO="${ncn_tool_prefix}$2"
8722 fi
8723 fi
8724
8725
8726
8727 if test -n "$NM"; then
8728 ac_cv_prog_NM=$NM
8729 elif test -n "$ac_cv_prog_NM"; then
8730 NM=$ac_cv_prog_NM
8731 fi
8732
8733 if test -n "$ac_cv_prog_NM"; then
8734 for ncn_progname in nm; do
8735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8736 set dummy ${ncn_progname}; ac_word=$2
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738 $as_echo_n "checking for $ac_word... " >&6; }
8739 if test "${ac_cv_prog_NM+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 if test -n "$NM"; then
8743 ac_cv_prog_NM="$NM" # Let the user override the test.
8744 else
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 for as_dir in $PATH
8747 do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8752 ac_cv_prog_NM="${ncn_progname}"
8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756 done
8757 done
8758 IFS=$as_save_IFS
8759
8760 fi
8761 fi
8762 NM=$ac_cv_prog_NM
8763 if test -n "$NM"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8765 $as_echo "$NM" >&6; }
8766 else
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768 $as_echo "no" >&6; }
8769 fi
8770
8771
8772 done
8773 fi
8774
8775 for ncn_progname in nm; do
8776 if test -n "$ncn_tool_prefix"; then
8777 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8778 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8780 $as_echo_n "checking for $ac_word... " >&6; }
8781 if test "${ac_cv_prog_NM+set}" = set; then :
8782 $as_echo_n "(cached) " >&6
8783 else
8784 if test -n "$NM"; then
8785 ac_cv_prog_NM="$NM" # Let the user override the test.
8786 else
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 for as_dir in $PATH
8789 do
8790 IFS=$as_save_IFS
8791 test -z "$as_dir" && as_dir=.
8792 for ac_exec_ext in '' $ac_executable_extensions; do
8793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8794 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8796 break 2
8797 fi
8798 done
8799 done
8800 IFS=$as_save_IFS
8801
8802 fi
8803 fi
8804 NM=$ac_cv_prog_NM
8805 if test -n "$NM"; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8807 $as_echo "$NM" >&6; }
8808 else
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 $as_echo "no" >&6; }
8811 fi
8812
8813
8814 fi
8815 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8817 set dummy ${ncn_progname}; ac_word=$2
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8819 $as_echo_n "checking for $ac_word... " >&6; }
8820 if test "${ac_cv_prog_NM+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
8822 else
8823 if test -n "$NM"; then
8824 ac_cv_prog_NM="$NM" # Let the user override the test.
8825 else
8826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827 for as_dir in $PATH
8828 do
8829 IFS=$as_save_IFS
8830 test -z "$as_dir" && as_dir=.
8831 for ac_exec_ext in '' $ac_executable_extensions; do
8832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8833 ac_cv_prog_NM="${ncn_progname}"
8834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8835 break 2
8836 fi
8837 done
8838 done
8839 IFS=$as_save_IFS
8840
8841 fi
8842 fi
8843 NM=$ac_cv_prog_NM
8844 if test -n "$NM"; then
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8846 $as_echo "$NM" >&6; }
8847 else
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8849 $as_echo "no" >&6; }
8850 fi
8851
8852
8853 fi
8854 test -n "$ac_cv_prog_NM" && break
8855 done
8856
8857 if test -z "$ac_cv_prog_NM" ; then
8858 set dummy nm
8859 if test $build = $host ; then
8860 NM="$2"
8861 else
8862 NM="${ncn_tool_prefix}$2"
8863 fi
8864 fi
8865
8866
8867
8868 if test -n "$RANLIB"; then
8869 ac_cv_prog_RANLIB=$RANLIB
8870 elif test -n "$ac_cv_prog_RANLIB"; then
8871 RANLIB=$ac_cv_prog_RANLIB
8872 fi
8873
8874 if test -n "$ac_cv_prog_RANLIB"; then
8875 for ncn_progname in ranlib; do
8876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8877 set dummy ${ncn_progname}; ac_word=$2
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 $as_echo_n "checking for $ac_word... " >&6; }
8880 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 if test -n "$RANLIB"; then
8884 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8885 else
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887 for as_dir in $PATH
8888 do
8889 IFS=$as_save_IFS
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8893 ac_cv_prog_RANLIB="${ncn_progname}"
8894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8895 break 2
8896 fi
8897 done
8898 done
8899 IFS=$as_save_IFS
8900
8901 fi
8902 fi
8903 RANLIB=$ac_cv_prog_RANLIB
8904 if test -n "$RANLIB"; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8906 $as_echo "$RANLIB" >&6; }
8907 else
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8909 $as_echo "no" >&6; }
8910 fi
8911
8912
8913 done
8914 fi
8915
8916 for ncn_progname in ranlib; do
8917 if test -n "$ncn_tool_prefix"; then
8918 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8919 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921 $as_echo_n "checking for $ac_word... " >&6; }
8922 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 if test -n "$RANLIB"; then
8926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8927 else
8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929 for as_dir in $PATH
8930 do
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8935 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8938 fi
8939 done
8940 done
8941 IFS=$as_save_IFS
8942
8943 fi
8944 fi
8945 RANLIB=$ac_cv_prog_RANLIB
8946 if test -n "$RANLIB"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8948 $as_echo "$RANLIB" >&6; }
8949 else
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8952 fi
8953
8954
8955 fi
8956 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8958 set dummy ${ncn_progname}; ac_word=$2
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8960 $as_echo_n "checking for $ac_word... " >&6; }
8961 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8962 $as_echo_n "(cached) " >&6
8963 else
8964 if test -n "$RANLIB"; then
8965 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8966 else
8967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8968 for as_dir in $PATH
8969 do
8970 IFS=$as_save_IFS
8971 test -z "$as_dir" && as_dir=.
8972 for ac_exec_ext in '' $ac_executable_extensions; do
8973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8974 ac_cv_prog_RANLIB="${ncn_progname}"
8975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8976 break 2
8977 fi
8978 done
8979 done
8980 IFS=$as_save_IFS
8981
8982 fi
8983 fi
8984 RANLIB=$ac_cv_prog_RANLIB
8985 if test -n "$RANLIB"; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8987 $as_echo "$RANLIB" >&6; }
8988 else
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8990 $as_echo "no" >&6; }
8991 fi
8992
8993
8994 fi
8995 test -n "$ac_cv_prog_RANLIB" && break
8996 done
8997
8998 if test -z "$ac_cv_prog_RANLIB" ; then
8999 RANLIB="true"
9000 fi
9001
9002
9003
9004 if test -n "$STRIP"; then
9005 ac_cv_prog_STRIP=$STRIP
9006 elif test -n "$ac_cv_prog_STRIP"; then
9007 STRIP=$ac_cv_prog_STRIP
9008 fi
9009
9010 if test -n "$ac_cv_prog_STRIP"; then
9011 for ncn_progname in strip; do
9012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9013 set dummy ${ncn_progname}; ac_word=$2
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9015 $as_echo_n "checking for $ac_word... " >&6; }
9016 if test "${ac_cv_prog_STRIP+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 if test -n "$STRIP"; then
9020 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9021 else
9022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023 for as_dir in $PATH
9024 do
9025 IFS=$as_save_IFS
9026 test -z "$as_dir" && as_dir=.
9027 for ac_exec_ext in '' $ac_executable_extensions; do
9028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9029 ac_cv_prog_STRIP="${ncn_progname}"
9030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9031 break 2
9032 fi
9033 done
9034 done
9035 IFS=$as_save_IFS
9036
9037 fi
9038 fi
9039 STRIP=$ac_cv_prog_STRIP
9040 if test -n "$STRIP"; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9042 $as_echo "$STRIP" >&6; }
9043 else
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 $as_echo "no" >&6; }
9046 fi
9047
9048
9049 done
9050 fi
9051
9052 for ncn_progname in strip; do
9053 if test -n "$ncn_tool_prefix"; then
9054 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9055 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9057 $as_echo_n "checking for $ac_word... " >&6; }
9058 if test "${ac_cv_prog_STRIP+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 if test -n "$STRIP"; then
9062 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9063 else
9064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065 for as_dir in $PATH
9066 do
9067 IFS=$as_save_IFS
9068 test -z "$as_dir" && as_dir=.
9069 for ac_exec_ext in '' $ac_executable_extensions; do
9070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9071 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9073 break 2
9074 fi
9075 done
9076 done
9077 IFS=$as_save_IFS
9078
9079 fi
9080 fi
9081 STRIP=$ac_cv_prog_STRIP
9082 if test -n "$STRIP"; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9084 $as_echo "$STRIP" >&6; }
9085 else
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9088 fi
9089
9090
9091 fi
9092 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9094 set dummy ${ncn_progname}; ac_word=$2
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9096 $as_echo_n "checking for $ac_word... " >&6; }
9097 if test "${ac_cv_prog_STRIP+set}" = set; then :
9098 $as_echo_n "(cached) " >&6
9099 else
9100 if test -n "$STRIP"; then
9101 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9102 else
9103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9104 for as_dir in $PATH
9105 do
9106 IFS=$as_save_IFS
9107 test -z "$as_dir" && as_dir=.
9108 for ac_exec_ext in '' $ac_executable_extensions; do
9109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9110 ac_cv_prog_STRIP="${ncn_progname}"
9111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9112 break 2
9113 fi
9114 done
9115 done
9116 IFS=$as_save_IFS
9117
9118 fi
9119 fi
9120 STRIP=$ac_cv_prog_STRIP
9121 if test -n "$STRIP"; then
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9123 $as_echo "$STRIP" >&6; }
9124 else
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9126 $as_echo "no" >&6; }
9127 fi
9128
9129
9130 fi
9131 test -n "$ac_cv_prog_STRIP" && break
9132 done
9133
9134 if test -z "$ac_cv_prog_STRIP" ; then
9135 STRIP="true"
9136 fi
9137
9138
9139
9140 if test -n "$WINDRES"; then
9141 ac_cv_prog_WINDRES=$WINDRES
9142 elif test -n "$ac_cv_prog_WINDRES"; then
9143 WINDRES=$ac_cv_prog_WINDRES
9144 fi
9145
9146 if test -n "$ac_cv_prog_WINDRES"; then
9147 for ncn_progname in windres; do
9148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9149 set dummy ${ncn_progname}; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155 if test -n "$WINDRES"; then
9156 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9157 else
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159 for as_dir in $PATH
9160 do
9161 IFS=$as_save_IFS
9162 test -z "$as_dir" && as_dir=.
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165 ac_cv_prog_WINDRES="${ncn_progname}"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167 break 2
9168 fi
9169 done
9170 done
9171 IFS=$as_save_IFS
9172
9173 fi
9174 fi
9175 WINDRES=$ac_cv_prog_WINDRES
9176 if test -n "$WINDRES"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9178 $as_echo "$WINDRES" >&6; }
9179 else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9182 fi
9183
9184
9185 done
9186 fi
9187
9188 for ncn_progname in windres; do
9189 if test -n "$ncn_tool_prefix"; then
9190 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9191 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9193 $as_echo_n "checking for $ac_word... " >&6; }
9194 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 if test -n "$WINDRES"; then
9198 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9199 else
9200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201 for as_dir in $PATH
9202 do
9203 IFS=$as_save_IFS
9204 test -z "$as_dir" && as_dir=.
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9207 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9209 break 2
9210 fi
9211 done
9212 done
9213 IFS=$as_save_IFS
9214
9215 fi
9216 fi
9217 WINDRES=$ac_cv_prog_WINDRES
9218 if test -n "$WINDRES"; then
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9220 $as_echo "$WINDRES" >&6; }
9221 else
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 $as_echo "no" >&6; }
9224 fi
9225
9226
9227 fi
9228 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9230 set dummy ${ncn_progname}; ac_word=$2
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9232 $as_echo_n "checking for $ac_word... " >&6; }
9233 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9234 $as_echo_n "(cached) " >&6
9235 else
9236 if test -n "$WINDRES"; then
9237 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9238 else
9239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 for as_dir in $PATH
9241 do
9242 IFS=$as_save_IFS
9243 test -z "$as_dir" && as_dir=.
9244 for ac_exec_ext in '' $ac_executable_extensions; do
9245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9246 ac_cv_prog_WINDRES="${ncn_progname}"
9247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9248 break 2
9249 fi
9250 done
9251 done
9252 IFS=$as_save_IFS
9253
9254 fi
9255 fi
9256 WINDRES=$ac_cv_prog_WINDRES
9257 if test -n "$WINDRES"; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9259 $as_echo "$WINDRES" >&6; }
9260 else
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9262 $as_echo "no" >&6; }
9263 fi
9264
9265
9266 fi
9267 test -n "$ac_cv_prog_WINDRES" && break
9268 done
9269
9270 if test -z "$ac_cv_prog_WINDRES" ; then
9271 set dummy windres
9272 if test $build = $host ; then
9273 WINDRES="$2"
9274 else
9275 WINDRES="${ncn_tool_prefix}$2"
9276 fi
9277 fi
9278
9279
9280
9281 if test -n "$WINDMC"; then
9282 ac_cv_prog_WINDMC=$WINDMC
9283 elif test -n "$ac_cv_prog_WINDMC"; then
9284 WINDMC=$ac_cv_prog_WINDMC
9285 fi
9286
9287 if test -n "$ac_cv_prog_WINDMC"; then
9288 for ncn_progname in windmc; do
9289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9290 set dummy ${ncn_progname}; ac_word=$2
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292 $as_echo_n "checking for $ac_word... " >&6; }
9293 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 if test -n "$WINDMC"; then
9297 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9298 else
9299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300 for as_dir in $PATH
9301 do
9302 IFS=$as_save_IFS
9303 test -z "$as_dir" && as_dir=.
9304 for ac_exec_ext in '' $ac_executable_extensions; do
9305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9306 ac_cv_prog_WINDMC="${ncn_progname}"
9307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9308 break 2
9309 fi
9310 done
9311 done
9312 IFS=$as_save_IFS
9313
9314 fi
9315 fi
9316 WINDMC=$ac_cv_prog_WINDMC
9317 if test -n "$WINDMC"; then
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9319 $as_echo "$WINDMC" >&6; }
9320 else
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322 $as_echo "no" >&6; }
9323 fi
9324
9325
9326 done
9327 fi
9328
9329 for ncn_progname in windmc; do
9330 if test -n "$ncn_tool_prefix"; then
9331 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9332 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9334 $as_echo_n "checking for $ac_word... " >&6; }
9335 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9336 $as_echo_n "(cached) " >&6
9337 else
9338 if test -n "$WINDMC"; then
9339 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9340 else
9341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342 for as_dir in $PATH
9343 do
9344 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9348 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9350 break 2
9351 fi
9352 done
9353 done
9354 IFS=$as_save_IFS
9355
9356 fi
9357 fi
9358 WINDMC=$ac_cv_prog_WINDMC
9359 if test -n "$WINDMC"; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9361 $as_echo "$WINDMC" >&6; }
9362 else
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364 $as_echo "no" >&6; }
9365 fi
9366
9367
9368 fi
9369 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9371 set dummy ${ncn_progname}; ac_word=$2
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9373 $as_echo_n "checking for $ac_word... " >&6; }
9374 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9375 $as_echo_n "(cached) " >&6
9376 else
9377 if test -n "$WINDMC"; then
9378 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9379 else
9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381 for as_dir in $PATH
9382 do
9383 IFS=$as_save_IFS
9384 test -z "$as_dir" && as_dir=.
9385 for ac_exec_ext in '' $ac_executable_extensions; do
9386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9387 ac_cv_prog_WINDMC="${ncn_progname}"
9388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9389 break 2
9390 fi
9391 done
9392 done
9393 IFS=$as_save_IFS
9394
9395 fi
9396 fi
9397 WINDMC=$ac_cv_prog_WINDMC
9398 if test -n "$WINDMC"; then
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9400 $as_echo "$WINDMC" >&6; }
9401 else
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403 $as_echo "no" >&6; }
9404 fi
9405
9406
9407 fi
9408 test -n "$ac_cv_prog_WINDMC" && break
9409 done
9410
9411 if test -z "$ac_cv_prog_WINDMC" ; then
9412 set dummy windmc
9413 if test $build = $host ; then
9414 WINDMC="$2"
9415 else
9416 WINDMC="${ncn_tool_prefix}$2"
9417 fi
9418 fi
9419
9420
9421
9422 if test -n "$OBJCOPY"; then
9423 ac_cv_prog_OBJCOPY=$OBJCOPY
9424 elif test -n "$ac_cv_prog_OBJCOPY"; then
9425 OBJCOPY=$ac_cv_prog_OBJCOPY
9426 fi
9427
9428 if test -n "$ac_cv_prog_OBJCOPY"; then
9429 for ncn_progname in objcopy; do
9430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9431 set dummy ${ncn_progname}; ac_word=$2
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433 $as_echo_n "checking for $ac_word... " >&6; }
9434 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9435 $as_echo_n "(cached) " >&6
9436 else
9437 if test -n "$OBJCOPY"; then
9438 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9439 else
9440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441 for as_dir in $PATH
9442 do
9443 IFS=$as_save_IFS
9444 test -z "$as_dir" && as_dir=.
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9447 ac_cv_prog_OBJCOPY="${ncn_progname}"
9448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9449 break 2
9450 fi
9451 done
9452 done
9453 IFS=$as_save_IFS
9454
9455 fi
9456 fi
9457 OBJCOPY=$ac_cv_prog_OBJCOPY
9458 if test -n "$OBJCOPY"; then
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9460 $as_echo "$OBJCOPY" >&6; }
9461 else
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463 $as_echo "no" >&6; }
9464 fi
9465
9466
9467 done
9468 fi
9469
9470 for ncn_progname in objcopy; do
9471 if test -n "$ncn_tool_prefix"; then
9472 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9473 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9475 $as_echo_n "checking for $ac_word... " >&6; }
9476 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9477 $as_echo_n "(cached) " >&6
9478 else
9479 if test -n "$OBJCOPY"; then
9480 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9481 else
9482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9483 for as_dir in $PATH
9484 do
9485 IFS=$as_save_IFS
9486 test -z "$as_dir" && as_dir=.
9487 for ac_exec_ext in '' $ac_executable_extensions; do
9488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9489 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9491 break 2
9492 fi
9493 done
9494 done
9495 IFS=$as_save_IFS
9496
9497 fi
9498 fi
9499 OBJCOPY=$ac_cv_prog_OBJCOPY
9500 if test -n "$OBJCOPY"; then
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9502 $as_echo "$OBJCOPY" >&6; }
9503 else
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9505 $as_echo "no" >&6; }
9506 fi
9507
9508
9509 fi
9510 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9512 set dummy ${ncn_progname}; ac_word=$2
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9514 $as_echo_n "checking for $ac_word... " >&6; }
9515 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9516 $as_echo_n "(cached) " >&6
9517 else
9518 if test -n "$OBJCOPY"; then
9519 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9520 else
9521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9522 for as_dir in $PATH
9523 do
9524 IFS=$as_save_IFS
9525 test -z "$as_dir" && as_dir=.
9526 for ac_exec_ext in '' $ac_executable_extensions; do
9527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9528 ac_cv_prog_OBJCOPY="${ncn_progname}"
9529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9530 break 2
9531 fi
9532 done
9533 done
9534 IFS=$as_save_IFS
9535
9536 fi
9537 fi
9538 OBJCOPY=$ac_cv_prog_OBJCOPY
9539 if test -n "$OBJCOPY"; then
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9541 $as_echo "$OBJCOPY" >&6; }
9542 else
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9545 fi
9546
9547
9548 fi
9549 test -n "$ac_cv_prog_OBJCOPY" && break
9550 done
9551
9552 if test -z "$ac_cv_prog_OBJCOPY" ; then
9553 set dummy objcopy
9554 if test $build = $host ; then
9555 OBJCOPY="$2"
9556 else
9557 OBJCOPY="${ncn_tool_prefix}$2"
9558 fi
9559 fi
9560
9561
9562
9563 if test -n "$OBJDUMP"; then
9564 ac_cv_prog_OBJDUMP=$OBJDUMP
9565 elif test -n "$ac_cv_prog_OBJDUMP"; then
9566 OBJDUMP=$ac_cv_prog_OBJDUMP
9567 fi
9568
9569 if test -n "$ac_cv_prog_OBJDUMP"; then
9570 for ncn_progname in objdump; do
9571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9572 set dummy ${ncn_progname}; ac_word=$2
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9574 $as_echo_n "checking for $ac_word... " >&6; }
9575 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 if test -n "$OBJDUMP"; then
9579 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9580 else
9581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9582 for as_dir in $PATH
9583 do
9584 IFS=$as_save_IFS
9585 test -z "$as_dir" && as_dir=.
9586 for ac_exec_ext in '' $ac_executable_extensions; do
9587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9588 ac_cv_prog_OBJDUMP="${ncn_progname}"
9589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9590 break 2
9591 fi
9592 done
9593 done
9594 IFS=$as_save_IFS
9595
9596 fi
9597 fi
9598 OBJDUMP=$ac_cv_prog_OBJDUMP
9599 if test -n "$OBJDUMP"; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9601 $as_echo "$OBJDUMP" >&6; }
9602 else
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604 $as_echo "no" >&6; }
9605 fi
9606
9607
9608 done
9609 fi
9610
9611 for ncn_progname in objdump; do
9612 if test -n "$ncn_tool_prefix"; then
9613 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9614 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616 $as_echo_n "checking for $ac_word... " >&6; }
9617 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 if test -n "$OBJDUMP"; then
9621 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9622 else
9623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9624 for as_dir in $PATH
9625 do
9626 IFS=$as_save_IFS
9627 test -z "$as_dir" && as_dir=.
9628 for ac_exec_ext in '' $ac_executable_extensions; do
9629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9630 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9632 break 2
9633 fi
9634 done
9635 done
9636 IFS=$as_save_IFS
9637
9638 fi
9639 fi
9640 OBJDUMP=$ac_cv_prog_OBJDUMP
9641 if test -n "$OBJDUMP"; then
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9643 $as_echo "$OBJDUMP" >&6; }
9644 else
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646 $as_echo "no" >&6; }
9647 fi
9648
9649
9650 fi
9651 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9653 set dummy ${ncn_progname}; ac_word=$2
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655 $as_echo_n "checking for $ac_word... " >&6; }
9656 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
9658 else
9659 if test -n "$OBJDUMP"; then
9660 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9661 else
9662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663 for as_dir in $PATH
9664 do
9665 IFS=$as_save_IFS
9666 test -z "$as_dir" && as_dir=.
9667 for ac_exec_ext in '' $ac_executable_extensions; do
9668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9669 ac_cv_prog_OBJDUMP="${ncn_progname}"
9670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9671 break 2
9672 fi
9673 done
9674 done
9675 IFS=$as_save_IFS
9676
9677 fi
9678 fi
9679 OBJDUMP=$ac_cv_prog_OBJDUMP
9680 if test -n "$OBJDUMP"; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9682 $as_echo "$OBJDUMP" >&6; }
9683 else
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685 $as_echo "no" >&6; }
9686 fi
9687
9688
9689 fi
9690 test -n "$ac_cv_prog_OBJDUMP" && break
9691 done
9692
9693 if test -z "$ac_cv_prog_OBJDUMP" ; then
9694 set dummy objdump
9695 if test $build = $host ; then
9696 OBJDUMP="$2"
9697 else
9698 OBJDUMP="${ncn_tool_prefix}$2"
9699 fi
9700 fi
9701
9702
9703
9704 if test -n "$READELF"; then
9705 ac_cv_prog_READELF=$READELF
9706 elif test -n "$ac_cv_prog_READELF"; then
9707 READELF=$ac_cv_prog_READELF
9708 fi
9709
9710 if test -n "$ac_cv_prog_READELF"; then
9711 for ncn_progname in readelf; do
9712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9713 set dummy ${ncn_progname}; ac_word=$2
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9715 $as_echo_n "checking for $ac_word... " >&6; }
9716 if test "${ac_cv_prog_READELF+set}" = set; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 if test -n "$READELF"; then
9720 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9721 else
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723 for as_dir in $PATH
9724 do
9725 IFS=$as_save_IFS
9726 test -z "$as_dir" && as_dir=.
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9729 ac_cv_prog_READELF="${ncn_progname}"
9730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9731 break 2
9732 fi
9733 done
9734 done
9735 IFS=$as_save_IFS
9736
9737 fi
9738 fi
9739 READELF=$ac_cv_prog_READELF
9740 if test -n "$READELF"; then
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9742 $as_echo "$READELF" >&6; }
9743 else
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 $as_echo "no" >&6; }
9746 fi
9747
9748
9749 done
9750 fi
9751
9752 for ncn_progname in readelf; do
9753 if test -n "$ncn_tool_prefix"; then
9754 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9755 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9757 $as_echo_n "checking for $ac_word... " >&6; }
9758 if test "${ac_cv_prog_READELF+set}" = set; then :
9759 $as_echo_n "(cached) " >&6
9760 else
9761 if test -n "$READELF"; then
9762 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9763 else
9764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9765 for as_dir in $PATH
9766 do
9767 IFS=$as_save_IFS
9768 test -z "$as_dir" && as_dir=.
9769 for ac_exec_ext in '' $ac_executable_extensions; do
9770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9771 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9773 break 2
9774 fi
9775 done
9776 done
9777 IFS=$as_save_IFS
9778
9779 fi
9780 fi
9781 READELF=$ac_cv_prog_READELF
9782 if test -n "$READELF"; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9784 $as_echo "$READELF" >&6; }
9785 else
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787 $as_echo "no" >&6; }
9788 fi
9789
9790
9791 fi
9792 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9794 set dummy ${ncn_progname}; ac_word=$2
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if test "${ac_cv_prog_READELF+set}" = set; then :
9798 $as_echo_n "(cached) " >&6
9799 else
9800 if test -n "$READELF"; then
9801 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9802 else
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804 for as_dir in $PATH
9805 do
9806 IFS=$as_save_IFS
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9810 ac_cv_prog_READELF="${ncn_progname}"
9811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9812 break 2
9813 fi
9814 done
9815 done
9816 IFS=$as_save_IFS
9817
9818 fi
9819 fi
9820 READELF=$ac_cv_prog_READELF
9821 if test -n "$READELF"; then
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9823 $as_echo "$READELF" >&6; }
9824 else
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 $as_echo "no" >&6; }
9827 fi
9828
9829
9830 fi
9831 test -n "$ac_cv_prog_READELF" && break
9832 done
9833
9834 if test -z "$ac_cv_prog_READELF" ; then
9835 set dummy readelf
9836 if test $build = $host ; then
9837 READELF="$2"
9838 else
9839 READELF="${ncn_tool_prefix}$2"
9840 fi
9841 fi
9842
9843
9844
9845
9846
9847
9848 # Target tools.
9849
9850 # Check whether --with-build-time-tools was given.
9851 if test "${with_build_time_tools+set}" = set; then :
9852 withval=$with_build_time_tools; case x"$withval" in
9853 x/*) ;;
9854 *)
9855 with_build_time_tools=
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9857 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9858 ;;
9859 esac
9860 else
9861 with_build_time_tools=
9862 fi
9863
9864
9865
9866
9867 if test -n "$CC_FOR_TARGET"; then
9868 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9869 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9870 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9871 fi
9872
9873 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9874 for ncn_progname in cc gcc; do
9875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9876 set dummy ${ncn_progname}; ac_word=$2
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9878 $as_echo_n "checking for $ac_word... " >&6; }
9879 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9880 $as_echo_n "(cached) " >&6
9881 else
9882 if test -n "$CC_FOR_TARGET"; then
9883 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9884 else
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH
9887 do
9888 IFS=$as_save_IFS
9889 test -z "$as_dir" && as_dir=.
9890 for ac_exec_ext in '' $ac_executable_extensions; do
9891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9892 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9894 break 2
9895 fi
9896 done
9897 done
9898 IFS=$as_save_IFS
9899
9900 fi
9901 fi
9902 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9903 if test -n "$CC_FOR_TARGET"; then
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9905 $as_echo "$CC_FOR_TARGET" >&6; }
9906 else
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9908 $as_echo "no" >&6; }
9909 fi
9910
9911
9912 done
9913 fi
9914
9915 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9916 for ncn_progname in cc gcc; do
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9918 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9919 if test -x $with_build_time_tools/${ncn_progname}; then
9920 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9922 $as_echo "yes" >&6; }
9923 break
9924 else
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926 $as_echo "no" >&6; }
9927 fi
9928 done
9929 fi
9930
9931 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9932 for ncn_progname in cc gcc; do
9933 if test -n "$ncn_target_tool_prefix"; then
9934 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9935 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9937 $as_echo_n "checking for $ac_word... " >&6; }
9938 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9939 $as_echo_n "(cached) " >&6
9940 else
9941 if test -n "$CC_FOR_TARGET"; then
9942 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9943 else
9944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9945 for as_dir in $PATH
9946 do
9947 IFS=$as_save_IFS
9948 test -z "$as_dir" && as_dir=.
9949 for ac_exec_ext in '' $ac_executable_extensions; do
9950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9951 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9953 break 2
9954 fi
9955 done
9956 done
9957 IFS=$as_save_IFS
9958
9959 fi
9960 fi
9961 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9962 if test -n "$CC_FOR_TARGET"; then
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9964 $as_echo "$CC_FOR_TARGET" >&6; }
9965 else
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9967 $as_echo "no" >&6; }
9968 fi
9969
9970
9971 fi
9972 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9974 set dummy ${ncn_progname}; ac_word=$2
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9976 $as_echo_n "checking for $ac_word... " >&6; }
9977 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9978 $as_echo_n "(cached) " >&6
9979 else
9980 if test -n "$CC_FOR_TARGET"; then
9981 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9982 else
9983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9984 for as_dir in $PATH
9985 do
9986 IFS=$as_save_IFS
9987 test -z "$as_dir" && as_dir=.
9988 for ac_exec_ext in '' $ac_executable_extensions; do
9989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9990 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9992 break 2
9993 fi
9994 done
9995 done
9996 IFS=$as_save_IFS
9997
9998 fi
9999 fi
10000 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10001 if test -n "$CC_FOR_TARGET"; then
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10003 $as_echo "$CC_FOR_TARGET" >&6; }
10004 else
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10006 $as_echo "no" >&6; }
10007 fi
10008
10009
10010 fi
10011 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10012 done
10013 fi
10014
10015 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10016 set dummy cc gcc
10017 if test $build = $target ; then
10018 CC_FOR_TARGET="$2"
10019 else
10020 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10021 fi
10022 else
10023 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10024 fi
10025
10026
10027
10028 if test -n "$CXX_FOR_TARGET"; then
10029 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10030 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10031 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10032 fi
10033
10034 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10035 for ncn_progname in c++ g++ cxx gxx; do
10036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10037 set dummy ${ncn_progname}; ac_word=$2
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039 $as_echo_n "checking for $ac_word... " >&6; }
10040 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 if test -n "$CXX_FOR_TARGET"; then
10044 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10045 else
10046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047 for as_dir in $PATH
10048 do
10049 IFS=$as_save_IFS
10050 test -z "$as_dir" && as_dir=.
10051 for ac_exec_ext in '' $ac_executable_extensions; do
10052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10053 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10055 break 2
10056 fi
10057 done
10058 done
10059 IFS=$as_save_IFS
10060
10061 fi
10062 fi
10063 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10064 if test -n "$CXX_FOR_TARGET"; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10066 $as_echo "$CXX_FOR_TARGET" >&6; }
10067 else
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10070 fi
10071
10072
10073 done
10074 fi
10075
10076 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10077 for ncn_progname in c++ g++ cxx gxx; do
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10079 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10080 if test -x $with_build_time_tools/${ncn_progname}; then
10081 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10083 $as_echo "yes" >&6; }
10084 break
10085 else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10088 fi
10089 done
10090 fi
10091
10092 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10093 for ncn_progname in c++ g++ cxx gxx; do
10094 if test -n "$ncn_target_tool_prefix"; then
10095 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10096 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10098 $as_echo_n "checking for $ac_word... " >&6; }
10099 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10100 $as_echo_n "(cached) " >&6
10101 else
10102 if test -n "$CXX_FOR_TARGET"; then
10103 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10104 else
10105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106 for as_dir in $PATH
10107 do
10108 IFS=$as_save_IFS
10109 test -z "$as_dir" && as_dir=.
10110 for ac_exec_ext in '' $ac_executable_extensions; do
10111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10112 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10114 break 2
10115 fi
10116 done
10117 done
10118 IFS=$as_save_IFS
10119
10120 fi
10121 fi
10122 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10123 if test -n "$CXX_FOR_TARGET"; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10125 $as_echo "$CXX_FOR_TARGET" >&6; }
10126 else
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10128 $as_echo "no" >&6; }
10129 fi
10130
10131
10132 fi
10133 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10135 set dummy ${ncn_progname}; ac_word=$2
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10137 $as_echo_n "checking for $ac_word... " >&6; }
10138 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10139 $as_echo_n "(cached) " >&6
10140 else
10141 if test -n "$CXX_FOR_TARGET"; then
10142 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10143 else
10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145 for as_dir in $PATH
10146 do
10147 IFS=$as_save_IFS
10148 test -z "$as_dir" && as_dir=.
10149 for ac_exec_ext in '' $ac_executable_extensions; do
10150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10151 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10153 break 2
10154 fi
10155 done
10156 done
10157 IFS=$as_save_IFS
10158
10159 fi
10160 fi
10161 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10162 if test -n "$CXX_FOR_TARGET"; then
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10164 $as_echo "$CXX_FOR_TARGET" >&6; }
10165 else
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10168 fi
10169
10170
10171 fi
10172 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10173 done
10174 fi
10175
10176 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10177 set dummy c++ g++ cxx gxx
10178 if test $build = $target ; then
10179 CXX_FOR_TARGET="$2"
10180 else
10181 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10182 fi
10183 else
10184 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10185 fi
10186
10187
10188
10189 if test -n "$GCC_FOR_TARGET"; then
10190 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10191 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10192 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10193 fi
10194
10195 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10196 for ncn_progname in gcc; do
10197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10198 set dummy ${ncn_progname}; ac_word=$2
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200 $as_echo_n "checking for $ac_word... " >&6; }
10201 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
10203 else
10204 if test -n "$GCC_FOR_TARGET"; then
10205 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10206 else
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10209 do
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 break 2
10217 fi
10218 done
10219 done
10220 IFS=$as_save_IFS
10221
10222 fi
10223 fi
10224 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10225 if test -n "$GCC_FOR_TARGET"; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10227 $as_echo "$GCC_FOR_TARGET" >&6; }
10228 else
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230 $as_echo "no" >&6; }
10231 fi
10232
10233
10234 done
10235 fi
10236
10237 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10238 for ncn_progname in gcc; do
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10240 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10241 if test -x $with_build_time_tools/${ncn_progname}; then
10242 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10244 $as_echo "yes" >&6; }
10245 break
10246 else
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 $as_echo "no" >&6; }
10249 fi
10250 done
10251 fi
10252
10253 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10254 for ncn_progname in gcc; do
10255 if test -n "$ncn_target_tool_prefix"; then
10256 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10257 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259 $as_echo_n "checking for $ac_word... " >&6; }
10260 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10261 $as_echo_n "(cached) " >&6
10262 else
10263 if test -n "$GCC_FOR_TARGET"; then
10264 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10265 else
10266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267 for as_dir in $PATH
10268 do
10269 IFS=$as_save_IFS
10270 test -z "$as_dir" && as_dir=.
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10273 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10275 break 2
10276 fi
10277 done
10278 done
10279 IFS=$as_save_IFS
10280
10281 fi
10282 fi
10283 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10284 if test -n "$GCC_FOR_TARGET"; then
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10286 $as_echo "$GCC_FOR_TARGET" >&6; }
10287 else
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10289 $as_echo "no" >&6; }
10290 fi
10291
10292
10293 fi
10294 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10296 set dummy ${ncn_progname}; ac_word=$2
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10298 $as_echo_n "checking for $ac_word... " >&6; }
10299 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10300 $as_echo_n "(cached) " >&6
10301 else
10302 if test -n "$GCC_FOR_TARGET"; then
10303 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10304 else
10305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306 for as_dir in $PATH
10307 do
10308 IFS=$as_save_IFS
10309 test -z "$as_dir" && as_dir=.
10310 for ac_exec_ext in '' $ac_executable_extensions; do
10311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10312 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10314 break 2
10315 fi
10316 done
10317 done
10318 IFS=$as_save_IFS
10319
10320 fi
10321 fi
10322 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10323 if test -n "$GCC_FOR_TARGET"; then
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10325 $as_echo "$GCC_FOR_TARGET" >&6; }
10326 else
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328 $as_echo "no" >&6; }
10329 fi
10330
10331
10332 fi
10333 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10334 done
10335 fi
10336
10337 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10338 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10339 else
10340 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10341 fi
10342
10343
10344
10345 if test -n "$GFORTRAN_FOR_TARGET"; then
10346 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10347 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10348 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10349 fi
10350
10351 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10352 for ncn_progname in gfortran; do
10353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10354 set dummy ${ncn_progname}; ac_word=$2
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356 $as_echo_n "checking for $ac_word... " >&6; }
10357 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10358 $as_echo_n "(cached) " >&6
10359 else
10360 if test -n "$GFORTRAN_FOR_TARGET"; then
10361 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10362 else
10363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364 for as_dir in $PATH
10365 do
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10370 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 break 2
10373 fi
10374 done
10375 done
10376 IFS=$as_save_IFS
10377
10378 fi
10379 fi
10380 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10381 if test -n "$GFORTRAN_FOR_TARGET"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10383 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10384 else
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10387 fi
10388
10389
10390 done
10391 fi
10392
10393 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10394 for ncn_progname in gfortran; do
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10396 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10397 if test -x $with_build_time_tools/${ncn_progname}; then
10398 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10400 $as_echo "yes" >&6; }
10401 break
10402 else
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; }
10405 fi
10406 done
10407 fi
10408
10409 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10410 for ncn_progname in gfortran; do
10411 if test -n "$ncn_target_tool_prefix"; then
10412 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10413 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10415 $as_echo_n "checking for $ac_word... " >&6; }
10416 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10419 if test -n "$GFORTRAN_FOR_TARGET"; then
10420 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10421 else
10422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423 for as_dir in $PATH
10424 do
10425 IFS=$as_save_IFS
10426 test -z "$as_dir" && as_dir=.
10427 for ac_exec_ext in '' $ac_executable_extensions; do
10428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10429 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10431 break 2
10432 fi
10433 done
10434 done
10435 IFS=$as_save_IFS
10436
10437 fi
10438 fi
10439 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10440 if test -n "$GFORTRAN_FOR_TARGET"; then
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10442 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10443 else
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10445 $as_echo "no" >&6; }
10446 fi
10447
10448
10449 fi
10450 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10452 set dummy ${ncn_progname}; ac_word=$2
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10454 $as_echo_n "checking for $ac_word... " >&6; }
10455 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10456 $as_echo_n "(cached) " >&6
10457 else
10458 if test -n "$GFORTRAN_FOR_TARGET"; then
10459 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10460 else
10461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10462 for as_dir in $PATH
10463 do
10464 IFS=$as_save_IFS
10465 test -z "$as_dir" && as_dir=.
10466 for ac_exec_ext in '' $ac_executable_extensions; do
10467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10468 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10470 break 2
10471 fi
10472 done
10473 done
10474 IFS=$as_save_IFS
10475
10476 fi
10477 fi
10478 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10479 if test -n "$GFORTRAN_FOR_TARGET"; then
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10481 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10482 else
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484 $as_echo "no" >&6; }
10485 fi
10486
10487
10488 fi
10489 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10490 done
10491 fi
10492
10493 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10494 set dummy gfortran
10495 if test $build = $target ; then
10496 GFORTRAN_FOR_TARGET="$2"
10497 else
10498 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10499 fi
10500 else
10501 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10502 fi
10503
10504
10505
10506 if test -n "$GOC_FOR_TARGET"; then
10507 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10508 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10509 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10510 fi
10511
10512 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10513 for ncn_progname in gccgo; 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_GOC_FOR_TARGET+set}" = set; then :
10519 $as_echo_n "(cached) " >&6
10520 else
10521 if test -n "$GOC_FOR_TARGET"; then
10522 ac_cv_prog_GOC_FOR_TARGET="$GOC_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_GOC_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 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10542 if test -n "$GOC_FOR_TARGET"; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10544 $as_echo "$GOC_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_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10555 for ncn_progname in gccgo; 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_GOC_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_GOC_FOR_TARGET"; then
10571 for ncn_progname in gccgo; 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_GOC_FOR_TARGET+set}" = set; then :
10578 $as_echo_n "(cached) " >&6
10579 else
10580 if test -n "$GOC_FOR_TARGET"; then
10581 ac_cv_prog_GOC_FOR_TARGET="$GOC_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_GOC_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 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10601 if test -n "$GOC_FOR_TARGET"; then
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10603 $as_echo "$GOC_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_GOC_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_GOC_FOR_TARGET+set}" = set; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 if test -n "$GOC_FOR_TARGET"; then
10620 ac_cv_prog_GOC_FOR_TARGET="$GOC_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_GOC_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 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10640 if test -n "$GOC_FOR_TARGET"; then
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10642 $as_echo "$GOC_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_GOC_FOR_TARGET" && break
10651 done
10652 fi
10653
10654 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10655 set dummy gccgo
10656 if test $build = $target ; then
10657 GOC_FOR_TARGET="$2"
10658 else
10659 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10660 fi
10661 else
10662 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10663 fi
10664
10665
10666
10667 cat > conftest.c << \EOF
10668 #ifdef __GNUC__
10669 gcc_yay;
10670 #endif
10671 EOF
10672 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10673 have_gcc_for_target=yes
10674 else
10675 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10676 have_gcc_for_target=no
10677 fi
10678 rm conftest.c
10679
10680
10681
10682
10683 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10684 if test -n "$with_build_time_tools"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10686 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10687 if test -x $with_build_time_tools/ar; then
10688 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10689 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10691 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10692 else
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10695 fi
10696 elif test $build != $host && test $have_gcc_for_target = yes; then
10697 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10698 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10699 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10700 fi
10701 fi
10702 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10703 # Extract the first word of "ar", so it can be a program name with args.
10704 set dummy ar; ac_word=$2
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706 $as_echo_n "checking for $ac_word... " >&6; }
10707 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 case $AR_FOR_TARGET in
10711 [\\/]* | ?:[\\/]*)
10712 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10713 ;;
10714 *)
10715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716 for as_dir in $gcc_cv_tool_dirs
10717 do
10718 IFS=$as_save_IFS
10719 test -z "$as_dir" && as_dir=.
10720 for ac_exec_ext in '' $ac_executable_extensions; do
10721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10722 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10724 break 2
10725 fi
10726 done
10727 done
10728 IFS=$as_save_IFS
10729
10730 ;;
10731 esac
10732 fi
10733 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10734 if test -n "$AR_FOR_TARGET"; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10736 $as_echo "$AR_FOR_TARGET" >&6; }
10737 else
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739 $as_echo "no" >&6; }
10740 fi
10741
10742
10743 fi
10744 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10745
10746
10747 if test -n "$AR_FOR_TARGET"; then
10748 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10749 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10750 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10751 fi
10752
10753 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10754 for ncn_progname in ar; do
10755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10756 set dummy ${ncn_progname}; ac_word=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 if test -n "$AR_FOR_TARGET"; then
10763 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10764 else
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766 for as_dir in $PATH
10767 do
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10772 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 break 2
10775 fi
10776 done
10777 done
10778 IFS=$as_save_IFS
10779
10780 fi
10781 fi
10782 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10783 if test -n "$AR_FOR_TARGET"; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10785 $as_echo "$AR_FOR_TARGET" >&6; }
10786 else
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788 $as_echo "no" >&6; }
10789 fi
10790
10791
10792 done
10793 fi
10794
10795 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10796 for ncn_progname in ar; do
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10798 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10799 if test -x $with_build_time_tools/${ncn_progname}; then
10800 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10802 $as_echo "yes" >&6; }
10803 break
10804 else
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10806 $as_echo "no" >&6; }
10807 fi
10808 done
10809 fi
10810
10811 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10812 for ncn_progname in ar; do
10813 if test -n "$ncn_target_tool_prefix"; then
10814 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10815 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10817 $as_echo_n "checking for $ac_word... " >&6; }
10818 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
10820 else
10821 if test -n "$AR_FOR_TARGET"; then
10822 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10823 else
10824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825 for as_dir in $PATH
10826 do
10827 IFS=$as_save_IFS
10828 test -z "$as_dir" && as_dir=.
10829 for ac_exec_ext in '' $ac_executable_extensions; do
10830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10831 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10833 break 2
10834 fi
10835 done
10836 done
10837 IFS=$as_save_IFS
10838
10839 fi
10840 fi
10841 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10842 if test -n "$AR_FOR_TARGET"; then
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10844 $as_echo "$AR_FOR_TARGET" >&6; }
10845 else
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847 $as_echo "no" >&6; }
10848 fi
10849
10850
10851 fi
10852 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10854 set dummy ${ncn_progname}; ac_word=$2
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10856 $as_echo_n "checking for $ac_word... " >&6; }
10857 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10858 $as_echo_n "(cached) " >&6
10859 else
10860 if test -n "$AR_FOR_TARGET"; then
10861 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10862 else
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH
10865 do
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10870 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10873 fi
10874 done
10875 done
10876 IFS=$as_save_IFS
10877
10878 fi
10879 fi
10880 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10881 if test -n "$AR_FOR_TARGET"; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10883 $as_echo "$AR_FOR_TARGET" >&6; }
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886 $as_echo "no" >&6; }
10887 fi
10888
10889
10890 fi
10891 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10892 done
10893 fi
10894
10895 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10896 set dummy ar
10897 if test $build = $target ; then
10898 AR_FOR_TARGET="$2"
10899 else
10900 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10901 fi
10902 else
10903 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10904 fi
10905
10906 else
10907 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10908 fi
10909
10910
10911
10912
10913 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10914 if test -n "$with_build_time_tools"; then
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10916 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10917 if test -x $with_build_time_tools/as; then
10918 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10919 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10921 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10922 else
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924 $as_echo "no" >&6; }
10925 fi
10926 elif test $build != $host && test $have_gcc_for_target = yes; then
10927 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10928 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10929 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10930 fi
10931 fi
10932 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10933 # Extract the first word of "as", so it can be a program name with args.
10934 set dummy as; ac_word=$2
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936 $as_echo_n "checking for $ac_word... " >&6; }
10937 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 case $AS_FOR_TARGET in
10941 [\\/]* | ?:[\\/]*)
10942 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10943 ;;
10944 *)
10945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946 for as_dir in $gcc_cv_tool_dirs
10947 do
10948 IFS=$as_save_IFS
10949 test -z "$as_dir" && as_dir=.
10950 for ac_exec_ext in '' $ac_executable_extensions; do
10951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10952 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10954 break 2
10955 fi
10956 done
10957 done
10958 IFS=$as_save_IFS
10959
10960 ;;
10961 esac
10962 fi
10963 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10964 if test -n "$AS_FOR_TARGET"; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10966 $as_echo "$AS_FOR_TARGET" >&6; }
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969 $as_echo "no" >&6; }
10970 fi
10971
10972
10973 fi
10974 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10975
10976
10977 if test -n "$AS_FOR_TARGET"; then
10978 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10979 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10980 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10981 fi
10982
10983 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10984 for ncn_progname in as; do
10985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10986 set dummy ${ncn_progname}; ac_word=$2
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10988 $as_echo_n "checking for $ac_word... " >&6; }
10989 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 if test -n "$AS_FOR_TARGET"; then
10993 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10994 else
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $PATH
10997 do
10998 IFS=$as_save_IFS
10999 test -z "$as_dir" && as_dir=.
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11002 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11004 break 2
11005 fi
11006 done
11007 done
11008 IFS=$as_save_IFS
11009
11010 fi
11011 fi
11012 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11013 if test -n "$AS_FOR_TARGET"; then
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11015 $as_echo "$AS_FOR_TARGET" >&6; }
11016 else
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018 $as_echo "no" >&6; }
11019 fi
11020
11021
11022 done
11023 fi
11024
11025 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11026 for ncn_progname in as; do
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11028 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11029 if test -x $with_build_time_tools/${ncn_progname}; then
11030 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11032 $as_echo "yes" >&6; }
11033 break
11034 else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036 $as_echo "no" >&6; }
11037 fi
11038 done
11039 fi
11040
11041 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11042 for ncn_progname in as; do
11043 if test -n "$ncn_target_tool_prefix"; then
11044 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11045 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11047 $as_echo_n "checking for $ac_word... " >&6; }
11048 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 if test -n "$AS_FOR_TARGET"; then
11052 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11053 else
11054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055 for as_dir in $PATH
11056 do
11057 IFS=$as_save_IFS
11058 test -z "$as_dir" && as_dir=.
11059 for ac_exec_ext in '' $ac_executable_extensions; do
11060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11061 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11063 break 2
11064 fi
11065 done
11066 done
11067 IFS=$as_save_IFS
11068
11069 fi
11070 fi
11071 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11072 if test -n "$AS_FOR_TARGET"; then
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11074 $as_echo "$AS_FOR_TARGET" >&6; }
11075 else
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077 $as_echo "no" >&6; }
11078 fi
11079
11080
11081 fi
11082 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11084 set dummy ${ncn_progname}; ac_word=$2
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086 $as_echo_n "checking for $ac_word... " >&6; }
11087 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11090 if test -n "$AS_FOR_TARGET"; then
11091 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11092 else
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $PATH
11095 do
11096 IFS=$as_save_IFS
11097 test -z "$as_dir" && as_dir=.
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11100 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11102 break 2
11103 fi
11104 done
11105 done
11106 IFS=$as_save_IFS
11107
11108 fi
11109 fi
11110 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11111 if test -n "$AS_FOR_TARGET"; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11113 $as_echo "$AS_FOR_TARGET" >&6; }
11114 else
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11117 fi
11118
11119
11120 fi
11121 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11122 done
11123 fi
11124
11125 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11126 set dummy as
11127 if test $build = $target ; then
11128 AS_FOR_TARGET="$2"
11129 else
11130 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11131 fi
11132 else
11133 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11134 fi
11135
11136 else
11137 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11138 fi
11139
11140
11141
11142
11143 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11144 if test -n "$with_build_time_tools"; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11146 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11147 if test -x $with_build_time_tools/dlltool; then
11148 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11149 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11151 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11152 else
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11155 fi
11156 elif test $build != $host && test $have_gcc_for_target = yes; then
11157 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11158 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11159 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11160 fi
11161 fi
11162 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11163 # Extract the first word of "dlltool", so it can be a program name with args.
11164 set dummy dlltool; ac_word=$2
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11166 $as_echo_n "checking for $ac_word... " >&6; }
11167 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11168 $as_echo_n "(cached) " >&6
11169 else
11170 case $DLLTOOL_FOR_TARGET in
11171 [\\/]* | ?:[\\/]*)
11172 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11173 ;;
11174 *)
11175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176 for as_dir in $gcc_cv_tool_dirs
11177 do
11178 IFS=$as_save_IFS
11179 test -z "$as_dir" && as_dir=.
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11182 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 break 2
11185 fi
11186 done
11187 done
11188 IFS=$as_save_IFS
11189
11190 ;;
11191 esac
11192 fi
11193 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11194 if test -n "$DLLTOOL_FOR_TARGET"; then
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11196 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11197 else
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199 $as_echo "no" >&6; }
11200 fi
11201
11202
11203 fi
11204 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11205
11206
11207 if test -n "$DLLTOOL_FOR_TARGET"; then
11208 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11209 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11210 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11211 fi
11212
11213 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11214 for ncn_progname in dlltool; do
11215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11216 set dummy ${ncn_progname}; ac_word=$2
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11218 $as_echo_n "checking for $ac_word... " >&6; }
11219 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11220 $as_echo_n "(cached) " >&6
11221 else
11222 if test -n "$DLLTOOL_FOR_TARGET"; then
11223 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11224 else
11225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226 for as_dir in $PATH
11227 do
11228 IFS=$as_save_IFS
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11232 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11234 break 2
11235 fi
11236 done
11237 done
11238 IFS=$as_save_IFS
11239
11240 fi
11241 fi
11242 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11243 if test -n "$DLLTOOL_FOR_TARGET"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11245 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11246 else
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248 $as_echo "no" >&6; }
11249 fi
11250
11251
11252 done
11253 fi
11254
11255 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11256 for ncn_progname in dlltool; do
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11258 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11259 if test -x $with_build_time_tools/${ncn_progname}; then
11260 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11262 $as_echo "yes" >&6; }
11263 break
11264 else
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266 $as_echo "no" >&6; }
11267 fi
11268 done
11269 fi
11270
11271 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11272 for ncn_progname in dlltool; do
11273 if test -n "$ncn_target_tool_prefix"; then
11274 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11275 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11277 $as_echo_n "checking for $ac_word... " >&6; }
11278 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
11280 else
11281 if test -n "$DLLTOOL_FOR_TARGET"; then
11282 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11283 else
11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285 for as_dir in $PATH
11286 do
11287 IFS=$as_save_IFS
11288 test -z "$as_dir" && as_dir=.
11289 for ac_exec_ext in '' $ac_executable_extensions; do
11290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11291 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11293 break 2
11294 fi
11295 done
11296 done
11297 IFS=$as_save_IFS
11298
11299 fi
11300 fi
11301 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11302 if test -n "$DLLTOOL_FOR_TARGET"; then
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11304 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11305 else
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307 $as_echo "no" >&6; }
11308 fi
11309
11310
11311 fi
11312 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11314 set dummy ${ncn_progname}; ac_word=$2
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316 $as_echo_n "checking for $ac_word... " >&6; }
11317 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 if test -n "$DLLTOOL_FOR_TARGET"; then
11321 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11322 else
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11325 do
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11330 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 break 2
11333 fi
11334 done
11335 done
11336 IFS=$as_save_IFS
11337
11338 fi
11339 fi
11340 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11341 if test -n "$DLLTOOL_FOR_TARGET"; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11343 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11344 else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11347 fi
11348
11349
11350 fi
11351 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11352 done
11353 fi
11354
11355 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11356 set dummy dlltool
11357 if test $build = $target ; then
11358 DLLTOOL_FOR_TARGET="$2"
11359 else
11360 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11361 fi
11362 else
11363 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11364 fi
11365
11366 else
11367 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11368 fi
11369
11370
11371
11372
11373 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11374 if test -n "$with_build_time_tools"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11376 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11377 if test -x $with_build_time_tools/ld; then
11378 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11379 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11381 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11382 else
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384 $as_echo "no" >&6; }
11385 fi
11386 elif test $build != $host && test $have_gcc_for_target = yes; then
11387 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11388 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11389 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11390 fi
11391 fi
11392 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11393 # Extract the first word of "ld", so it can be a program name with args.
11394 set dummy ld; ac_word=$2
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396 $as_echo_n "checking for $ac_word... " >&6; }
11397 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 case $LD_FOR_TARGET in
11401 [\\/]* | ?:[\\/]*)
11402 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11403 ;;
11404 *)
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $gcc_cv_tool_dirs
11407 do
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11412 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11414 break 2
11415 fi
11416 done
11417 done
11418 IFS=$as_save_IFS
11419
11420 ;;
11421 esac
11422 fi
11423 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11424 if test -n "$LD_FOR_TARGET"; then
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11426 $as_echo "$LD_FOR_TARGET" >&6; }
11427 else
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429 $as_echo "no" >&6; }
11430 fi
11431
11432
11433 fi
11434 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11435
11436
11437 if test -n "$LD_FOR_TARGET"; then
11438 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11439 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11440 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11441 fi
11442
11443 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11444 for ncn_progname in ld; do
11445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11446 set dummy ${ncn_progname}; ac_word=$2
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11448 $as_echo_n "checking for $ac_word... " >&6; }
11449 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
11451 else
11452 if test -n "$LD_FOR_TARGET"; then
11453 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11454 else
11455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11456 for as_dir in $PATH
11457 do
11458 IFS=$as_save_IFS
11459 test -z "$as_dir" && as_dir=.
11460 for ac_exec_ext in '' $ac_executable_extensions; do
11461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11462 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11464 break 2
11465 fi
11466 done
11467 done
11468 IFS=$as_save_IFS
11469
11470 fi
11471 fi
11472 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11473 if test -n "$LD_FOR_TARGET"; then
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11475 $as_echo "$LD_FOR_TARGET" >&6; }
11476 else
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478 $as_echo "no" >&6; }
11479 fi
11480
11481
11482 done
11483 fi
11484
11485 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11486 for ncn_progname in ld; do
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11488 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11489 if test -x $with_build_time_tools/${ncn_progname}; then
11490 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11492 $as_echo "yes" >&6; }
11493 break
11494 else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496 $as_echo "no" >&6; }
11497 fi
11498 done
11499 fi
11500
11501 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11502 for ncn_progname in ld; do
11503 if test -n "$ncn_target_tool_prefix"; then
11504 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11505 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507 $as_echo_n "checking for $ac_word... " >&6; }
11508 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11509 $as_echo_n "(cached) " >&6
11510 else
11511 if test -n "$LD_FOR_TARGET"; then
11512 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11513 else
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11516 do
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11521 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 break 2
11524 fi
11525 done
11526 done
11527 IFS=$as_save_IFS
11528
11529 fi
11530 fi
11531 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11532 if test -n "$LD_FOR_TARGET"; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11534 $as_echo "$LD_FOR_TARGET" >&6; }
11535 else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11538 fi
11539
11540
11541 fi
11542 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11544 set dummy ${ncn_progname}; ac_word=$2
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11546 $as_echo_n "checking for $ac_word... " >&6; }
11547 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11549 else
11550 if test -n "$LD_FOR_TARGET"; then
11551 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11552 else
11553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554 for as_dir in $PATH
11555 do
11556 IFS=$as_save_IFS
11557 test -z "$as_dir" && as_dir=.
11558 for ac_exec_ext in '' $ac_executable_extensions; do
11559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11560 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11562 break 2
11563 fi
11564 done
11565 done
11566 IFS=$as_save_IFS
11567
11568 fi
11569 fi
11570 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11571 if test -n "$LD_FOR_TARGET"; then
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11573 $as_echo "$LD_FOR_TARGET" >&6; }
11574 else
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576 $as_echo "no" >&6; }
11577 fi
11578
11579
11580 fi
11581 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11582 done
11583 fi
11584
11585 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11586 set dummy ld
11587 if test $build = $target ; then
11588 LD_FOR_TARGET="$2"
11589 else
11590 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11591 fi
11592 else
11593 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11594 fi
11595
11596 else
11597 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11598 fi
11599
11600
11601
11602
11603 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11604 if test -n "$with_build_time_tools"; then
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11606 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11607 if test -x $with_build_time_tools/lipo; then
11608 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11609 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11611 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11612 else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11615 fi
11616 elif test $build != $host && test $have_gcc_for_target = yes; then
11617 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11618 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11619 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11620 fi
11621 fi
11622 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11623 # Extract the first word of "lipo", so it can be a program name with args.
11624 set dummy lipo; ac_word=$2
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11626 $as_echo_n "checking for $ac_word... " >&6; }
11627 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11628 $as_echo_n "(cached) " >&6
11629 else
11630 case $LIPO_FOR_TARGET in
11631 [\\/]* | ?:[\\/]*)
11632 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11633 ;;
11634 *)
11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $gcc_cv_tool_dirs
11637 do
11638 IFS=$as_save_IFS
11639 test -z "$as_dir" && as_dir=.
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11642 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11644 break 2
11645 fi
11646 done
11647 done
11648 IFS=$as_save_IFS
11649
11650 ;;
11651 esac
11652 fi
11653 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11654 if test -n "$LIPO_FOR_TARGET"; then
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11656 $as_echo "$LIPO_FOR_TARGET" >&6; }
11657 else
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11660 fi
11661
11662
11663 fi
11664 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11665
11666
11667 if test -n "$LIPO_FOR_TARGET"; then
11668 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11669 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11670 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11671 fi
11672
11673 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11674 for ncn_progname in lipo; do
11675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11676 set dummy ${ncn_progname}; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 if test -n "$LIPO_FOR_TARGET"; then
11683 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11684 else
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11692 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11695 fi
11696 done
11697 done
11698 IFS=$as_save_IFS
11699
11700 fi
11701 fi
11702 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11703 if test -n "$LIPO_FOR_TARGET"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11705 $as_echo "$LIPO_FOR_TARGET" >&6; }
11706 else
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11709 fi
11710
11711
11712 done
11713 fi
11714
11715 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11716 for ncn_progname in lipo; do
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11718 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11719 if test -x $with_build_time_tools/${ncn_progname}; then
11720 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11722 $as_echo "yes" >&6; }
11723 break
11724 else
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11727 fi
11728 done
11729 fi
11730
11731 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11732 for ncn_progname in lipo; do
11733 if test -n "$ncn_target_tool_prefix"; then
11734 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11735 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11737 $as_echo_n "checking for $ac_word... " >&6; }
11738 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11739 $as_echo_n "(cached) " >&6
11740 else
11741 if test -n "$LIPO_FOR_TARGET"; then
11742 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11743 else
11744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745 for as_dir in $PATH
11746 do
11747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11751 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 break 2
11754 fi
11755 done
11756 done
11757 IFS=$as_save_IFS
11758
11759 fi
11760 fi
11761 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11762 if test -n "$LIPO_FOR_TARGET"; then
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11764 $as_echo "$LIPO_FOR_TARGET" >&6; }
11765 else
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767 $as_echo "no" >&6; }
11768 fi
11769
11770
11771 fi
11772 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11774 set dummy ${ncn_progname}; ac_word=$2
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776 $as_echo_n "checking for $ac_word... " >&6; }
11777 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11778 $as_echo_n "(cached) " >&6
11779 else
11780 if test -n "$LIPO_FOR_TARGET"; then
11781 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11782 else
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11785 do
11786 IFS=$as_save_IFS
11787 test -z "$as_dir" && as_dir=.
11788 for ac_exec_ext in '' $ac_executable_extensions; do
11789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11790 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11792 break 2
11793 fi
11794 done
11795 done
11796 IFS=$as_save_IFS
11797
11798 fi
11799 fi
11800 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11801 if test -n "$LIPO_FOR_TARGET"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11803 $as_echo "$LIPO_FOR_TARGET" >&6; }
11804 else
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11807 fi
11808
11809
11810 fi
11811 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11812 done
11813 fi
11814
11815 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11816 set dummy lipo
11817 if test $build = $target ; then
11818 LIPO_FOR_TARGET="$2"
11819 else
11820 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11821 fi
11822 else
11823 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11824 fi
11825
11826 else
11827 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11828 fi
11829
11830
11831
11832
11833 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11834 if test -n "$with_build_time_tools"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11836 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11837 if test -x $with_build_time_tools/nm; then
11838 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11839 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11841 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 $as_echo "no" >&6; }
11845 fi
11846 elif test $build != $host && test $have_gcc_for_target = yes; then
11847 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11848 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11849 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11850 fi
11851 fi
11852 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11853 # Extract the first word of "nm", so it can be a program name with args.
11854 set dummy nm; ac_word=$2
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856 $as_echo_n "checking for $ac_word... " >&6; }
11857 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 case $NM_FOR_TARGET in
11861 [\\/]* | ?:[\\/]*)
11862 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11863 ;;
11864 *)
11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $gcc_cv_tool_dirs
11867 do
11868 IFS=$as_save_IFS
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11872 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874 break 2
11875 fi
11876 done
11877 done
11878 IFS=$as_save_IFS
11879
11880 ;;
11881 esac
11882 fi
11883 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11884 if test -n "$NM_FOR_TARGET"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11886 $as_echo "$NM_FOR_TARGET" >&6; }
11887 else
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889 $as_echo "no" >&6; }
11890 fi
11891
11892
11893 fi
11894 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11895
11896
11897 if test -n "$NM_FOR_TARGET"; then
11898 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11899 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11900 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11901 fi
11902
11903 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11904 for ncn_progname in nm; do
11905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11906 set dummy ${ncn_progname}; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 if test -n "$NM_FOR_TARGET"; then
11913 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11914 else
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $PATH
11917 do
11918 IFS=$as_save_IFS
11919 test -z "$as_dir" && as_dir=.
11920 for ac_exec_ext in '' $ac_executable_extensions; do
11921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11922 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924 break 2
11925 fi
11926 done
11927 done
11928 IFS=$as_save_IFS
11929
11930 fi
11931 fi
11932 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11933 if test -n "$NM_FOR_TARGET"; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11935 $as_echo "$NM_FOR_TARGET" >&6; }
11936 else
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11939 fi
11940
11941
11942 done
11943 fi
11944
11945 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11946 for ncn_progname in nm; do
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11948 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11949 if test -x $with_build_time_tools/${ncn_progname}; then
11950 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11952 $as_echo "yes" >&6; }
11953 break
11954 else
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956 $as_echo "no" >&6; }
11957 fi
11958 done
11959 fi
11960
11961 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11962 for ncn_progname in nm; do
11963 if test -n "$ncn_target_tool_prefix"; then
11964 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11965 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967 $as_echo_n "checking for $ac_word... " >&6; }
11968 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 if test -n "$NM_FOR_TARGET"; then
11972 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11973 else
11974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975 for as_dir in $PATH
11976 do
11977 IFS=$as_save_IFS
11978 test -z "$as_dir" && as_dir=.
11979 for ac_exec_ext in '' $ac_executable_extensions; do
11980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11981 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11983 break 2
11984 fi
11985 done
11986 done
11987 IFS=$as_save_IFS
11988
11989 fi
11990 fi
11991 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11992 if test -n "$NM_FOR_TARGET"; then
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11994 $as_echo "$NM_FOR_TARGET" >&6; }
11995 else
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 $as_echo "no" >&6; }
11998 fi
11999
12000
12001 fi
12002 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12004 set dummy ${ncn_progname}; ac_word=$2
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006 $as_echo_n "checking for $ac_word... " >&6; }
12007 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 if test -n "$NM_FOR_TARGET"; then
12011 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12012 else
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12015 do
12016 IFS=$as_save_IFS
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12020 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12022 break 2
12023 fi
12024 done
12025 done
12026 IFS=$as_save_IFS
12027
12028 fi
12029 fi
12030 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12031 if test -n "$NM_FOR_TARGET"; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12033 $as_echo "$NM_FOR_TARGET" >&6; }
12034 else
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12037 fi
12038
12039
12040 fi
12041 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12042 done
12043 fi
12044
12045 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12046 set dummy nm
12047 if test $build = $target ; then
12048 NM_FOR_TARGET="$2"
12049 else
12050 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12051 fi
12052 else
12053 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12054 fi
12055
12056 else
12057 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12058 fi
12059
12060
12061
12062
12063 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12064 if test -n "$with_build_time_tools"; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12066 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12067 if test -x $with_build_time_tools/objcopy; then
12068 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12069 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12071 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12072 else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12075 fi
12076 elif test $build != $host && test $have_gcc_for_target = yes; then
12077 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12078 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12079 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12080 fi
12081 fi
12082 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12083 # Extract the first word of "objcopy", so it can be a program name with args.
12084 set dummy objcopy; ac_word=$2
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086 $as_echo_n "checking for $ac_word... " >&6; }
12087 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 case $OBJCOPY_FOR_TARGET in
12091 [\\/]* | ?:[\\/]*)
12092 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12093 ;;
12094 *)
12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096 for as_dir in $gcc_cv_tool_dirs
12097 do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12102 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 break 2
12105 fi
12106 done
12107 done
12108 IFS=$as_save_IFS
12109
12110 ;;
12111 esac
12112 fi
12113 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12114 if test -n "$OBJCOPY_FOR_TARGET"; then
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12116 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12117 else
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119 $as_echo "no" >&6; }
12120 fi
12121
12122
12123 fi
12124 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12125
12126
12127 if test -n "$OBJCOPY_FOR_TARGET"; then
12128 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12129 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12130 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12131 fi
12132
12133 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12134 for ncn_progname in objcopy; do
12135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12136 set dummy ${ncn_progname}; ac_word=$2
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12138 $as_echo_n "checking for $ac_word... " >&6; }
12139 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12140 $as_echo_n "(cached) " >&6
12141 else
12142 if test -n "$OBJCOPY_FOR_TARGET"; then
12143 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12144 else
12145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146 for as_dir in $PATH
12147 do
12148 IFS=$as_save_IFS
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
12151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12152 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12154 break 2
12155 fi
12156 done
12157 done
12158 IFS=$as_save_IFS
12159
12160 fi
12161 fi
12162 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12163 if test -n "$OBJCOPY_FOR_TARGET"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12165 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12166 else
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12169 fi
12170
12171
12172 done
12173 fi
12174
12175 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12176 for ncn_progname in objcopy; do
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12178 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12179 if test -x $with_build_time_tools/${ncn_progname}; then
12180 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12182 $as_echo "yes" >&6; }
12183 break
12184 else
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 $as_echo "no" >&6; }
12187 fi
12188 done
12189 fi
12190
12191 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12192 for ncn_progname in objcopy; do
12193 if test -n "$ncn_target_tool_prefix"; then
12194 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12195 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197 $as_echo_n "checking for $ac_word... " >&6; }
12198 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12199 $as_echo_n "(cached) " >&6
12200 else
12201 if test -n "$OBJCOPY_FOR_TARGET"; then
12202 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12203 else
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12206 do
12207 IFS=$as_save_IFS
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12211 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12213 break 2
12214 fi
12215 done
12216 done
12217 IFS=$as_save_IFS
12218
12219 fi
12220 fi
12221 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12222 if test -n "$OBJCOPY_FOR_TARGET"; then
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12224 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12225 else
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12228 fi
12229
12230
12231 fi
12232 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12234 set dummy ${ncn_progname}; ac_word=$2
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12236 $as_echo_n "checking for $ac_word... " >&6; }
12237 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12238 $as_echo_n "(cached) " >&6
12239 else
12240 if test -n "$OBJCOPY_FOR_TARGET"; then
12241 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12242 else
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in $PATH
12245 do
12246 IFS=$as_save_IFS
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12250 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 break 2
12253 fi
12254 done
12255 done
12256 IFS=$as_save_IFS
12257
12258 fi
12259 fi
12260 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12261 if test -n "$OBJCOPY_FOR_TARGET"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12263 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12264 else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267 fi
12268
12269
12270 fi
12271 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12272 done
12273 fi
12274
12275 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12276 set dummy objcopy
12277 if test $build = $target ; then
12278 OBJCOPY_FOR_TARGET="$2"
12279 else
12280 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12281 fi
12282 else
12283 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12284 fi
12285
12286 else
12287 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12288 fi
12289
12290
12291
12292
12293 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12294 if test -n "$with_build_time_tools"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12296 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12297 if test -x $with_build_time_tools/objdump; then
12298 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12299 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12301 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12302 else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12305 fi
12306 elif test $build != $host && test $have_gcc_for_target = yes; then
12307 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12308 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12309 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12310 fi
12311 fi
12312 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12313 # Extract the first word of "objdump", so it can be a program name with args.
12314 set dummy objdump; ac_word=$2
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316 $as_echo_n "checking for $ac_word... " >&6; }
12317 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12318 $as_echo_n "(cached) " >&6
12319 else
12320 case $OBJDUMP_FOR_TARGET in
12321 [\\/]* | ?:[\\/]*)
12322 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12323 ;;
12324 *)
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $gcc_cv_tool_dirs
12327 do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12332 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 break 2
12335 fi
12336 done
12337 done
12338 IFS=$as_save_IFS
12339
12340 ;;
12341 esac
12342 fi
12343 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12344 if test -n "$OBJDUMP_FOR_TARGET"; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12346 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12347 else
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; }
12350 fi
12351
12352
12353 fi
12354 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12355
12356
12357 if test -n "$OBJDUMP_FOR_TARGET"; then
12358 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12359 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12360 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12361 fi
12362
12363 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12364 for ncn_progname in objdump; do
12365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12366 set dummy ${ncn_progname}; ac_word=$2
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12368 $as_echo_n "checking for $ac_word... " >&6; }
12369 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12370 $as_echo_n "(cached) " >&6
12371 else
12372 if test -n "$OBJDUMP_FOR_TARGET"; then
12373 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12374 else
12375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376 for as_dir in $PATH
12377 do
12378 IFS=$as_save_IFS
12379 test -z "$as_dir" && as_dir=.
12380 for ac_exec_ext in '' $ac_executable_extensions; do
12381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12382 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12384 break 2
12385 fi
12386 done
12387 done
12388 IFS=$as_save_IFS
12389
12390 fi
12391 fi
12392 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12393 if test -n "$OBJDUMP_FOR_TARGET"; then
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12395 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12396 else
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; }
12399 fi
12400
12401
12402 done
12403 fi
12404
12405 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12406 for ncn_progname in objdump; do
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12408 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12409 if test -x $with_build_time_tools/${ncn_progname}; then
12410 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12412 $as_echo "yes" >&6; }
12413 break
12414 else
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416 $as_echo "no" >&6; }
12417 fi
12418 done
12419 fi
12420
12421 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12422 for ncn_progname in objdump; do
12423 if test -n "$ncn_target_tool_prefix"; then
12424 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12425 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427 $as_echo_n "checking for $ac_word... " >&6; }
12428 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 if test -n "$OBJDUMP_FOR_TARGET"; then
12432 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12433 else
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12436 do
12437 IFS=$as_save_IFS
12438 test -z "$as_dir" && as_dir=.
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12441 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12443 break 2
12444 fi
12445 done
12446 done
12447 IFS=$as_save_IFS
12448
12449 fi
12450 fi
12451 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12452 if test -n "$OBJDUMP_FOR_TARGET"; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12454 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12455 else
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12458 fi
12459
12460
12461 fi
12462 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12464 set dummy ${ncn_progname}; ac_word=$2
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12466 $as_echo_n "checking for $ac_word... " >&6; }
12467 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12468 $as_echo_n "(cached) " >&6
12469 else
12470 if test -n "$OBJDUMP_FOR_TARGET"; then
12471 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12472 else
12473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474 for as_dir in $PATH
12475 do
12476 IFS=$as_save_IFS
12477 test -z "$as_dir" && as_dir=.
12478 for ac_exec_ext in '' $ac_executable_extensions; do
12479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12480 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12482 break 2
12483 fi
12484 done
12485 done
12486 IFS=$as_save_IFS
12487
12488 fi
12489 fi
12490 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12491 if test -n "$OBJDUMP_FOR_TARGET"; then
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12493 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12494 else
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496 $as_echo "no" >&6; }
12497 fi
12498
12499
12500 fi
12501 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12502 done
12503 fi
12504
12505 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12506 set dummy objdump
12507 if test $build = $target ; then
12508 OBJDUMP_FOR_TARGET="$2"
12509 else
12510 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12511 fi
12512 else
12513 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12514 fi
12515
12516 else
12517 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12518 fi
12519
12520
12521
12522
12523 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12524 if test -n "$with_build_time_tools"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12526 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12527 if test -x $with_build_time_tools/ranlib; then
12528 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12529 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12531 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12532 else
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 $as_echo "no" >&6; }
12535 fi
12536 elif test $build != $host && test $have_gcc_for_target = yes; then
12537 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12538 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12539 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12540 fi
12541 fi
12542 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12543 # Extract the first word of "ranlib", so it can be a program name with args.
12544 set dummy ranlib; ac_word=$2
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546 $as_echo_n "checking for $ac_word... " >&6; }
12547 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 case $RANLIB_FOR_TARGET in
12551 [\\/]* | ?:[\\/]*)
12552 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12553 ;;
12554 *)
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $gcc_cv_tool_dirs
12557 do
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12562 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564 break 2
12565 fi
12566 done
12567 done
12568 IFS=$as_save_IFS
12569
12570 ;;
12571 esac
12572 fi
12573 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12574 if test -n "$RANLIB_FOR_TARGET"; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12576 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12577 else
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12580 fi
12581
12582
12583 fi
12584 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12585
12586
12587 if test -n "$RANLIB_FOR_TARGET"; then
12588 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12589 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12590 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12591 fi
12592
12593 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12594 for ncn_progname in ranlib; do
12595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12596 set dummy ${ncn_progname}; ac_word=$2
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12598 $as_echo_n "checking for $ac_word... " >&6; }
12599 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12600 $as_echo_n "(cached) " >&6
12601 else
12602 if test -n "$RANLIB_FOR_TARGET"; then
12603 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12604 else
12605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12606 for as_dir in $PATH
12607 do
12608 IFS=$as_save_IFS
12609 test -z "$as_dir" && as_dir=.
12610 for ac_exec_ext in '' $ac_executable_extensions; do
12611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12612 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12614 break 2
12615 fi
12616 done
12617 done
12618 IFS=$as_save_IFS
12619
12620 fi
12621 fi
12622 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12623 if test -n "$RANLIB_FOR_TARGET"; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12625 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12626 else
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 $as_echo "no" >&6; }
12629 fi
12630
12631
12632 done
12633 fi
12634
12635 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12636 for ncn_progname in ranlib; do
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12638 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12639 if test -x $with_build_time_tools/${ncn_progname}; then
12640 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12642 $as_echo "yes" >&6; }
12643 break
12644 else
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646 $as_echo "no" >&6; }
12647 fi
12648 done
12649 fi
12650
12651 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12652 for ncn_progname in ranlib; do
12653 if test -n "$ncn_target_tool_prefix"; then
12654 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12655 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12657 $as_echo_n "checking for $ac_word... " >&6; }
12658 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12659 $as_echo_n "(cached) " >&6
12660 else
12661 if test -n "$RANLIB_FOR_TARGET"; then
12662 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12663 else
12664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665 for as_dir in $PATH
12666 do
12667 IFS=$as_save_IFS
12668 test -z "$as_dir" && as_dir=.
12669 for ac_exec_ext in '' $ac_executable_extensions; do
12670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12671 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12673 break 2
12674 fi
12675 done
12676 done
12677 IFS=$as_save_IFS
12678
12679 fi
12680 fi
12681 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12682 if test -n "$RANLIB_FOR_TARGET"; then
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12684 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12685 else
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687 $as_echo "no" >&6; }
12688 fi
12689
12690
12691 fi
12692 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12694 set dummy ${ncn_progname}; ac_word=$2
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12696 $as_echo_n "checking for $ac_word... " >&6; }
12697 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12698 $as_echo_n "(cached) " >&6
12699 else
12700 if test -n "$RANLIB_FOR_TARGET"; then
12701 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12702 else
12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704 for as_dir in $PATH
12705 do
12706 IFS=$as_save_IFS
12707 test -z "$as_dir" && as_dir=.
12708 for ac_exec_ext in '' $ac_executable_extensions; do
12709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12710 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12712 break 2
12713 fi
12714 done
12715 done
12716 IFS=$as_save_IFS
12717
12718 fi
12719 fi
12720 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12721 if test -n "$RANLIB_FOR_TARGET"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12723 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12724 else
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12727 fi
12728
12729
12730 fi
12731 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12732 done
12733 fi
12734
12735 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12736 set dummy ranlib
12737 if test $build = $target ; then
12738 RANLIB_FOR_TARGET="$2"
12739 else
12740 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12741 fi
12742 else
12743 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12744 fi
12745
12746 else
12747 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12748 fi
12749
12750
12751
12752
12753 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12754 if test -n "$with_build_time_tools"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12756 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12757 if test -x $with_build_time_tools/readelf; then
12758 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12759 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12761 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12762 else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12765 fi
12766 elif test $build != $host && test $have_gcc_for_target = yes; then
12767 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12768 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12769 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12770 fi
12771 fi
12772 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12773 # Extract the first word of "readelf", so it can be a program name with args.
12774 set dummy readelf; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 case $READELF_FOR_TARGET in
12781 [\\/]* | ?:[\\/]*)
12782 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12783 ;;
12784 *)
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $gcc_cv_tool_dirs
12787 do
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12792 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 break 2
12795 fi
12796 done
12797 done
12798 IFS=$as_save_IFS
12799
12800 ;;
12801 esac
12802 fi
12803 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12804 if test -n "$READELF_FOR_TARGET"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12806 $as_echo "$READELF_FOR_TARGET" >&6; }
12807 else
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12810 fi
12811
12812
12813 fi
12814 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12815
12816
12817 if test -n "$READELF_FOR_TARGET"; then
12818 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12819 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12820 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12821 fi
12822
12823 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12824 for ncn_progname in readelf; do
12825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12826 set dummy ${ncn_progname}; ac_word=$2
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828 $as_echo_n "checking for $ac_word... " >&6; }
12829 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12830 $as_echo_n "(cached) " >&6
12831 else
12832 if test -n "$READELF_FOR_TARGET"; then
12833 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12834 else
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836 for as_dir in $PATH
12837 do
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12842 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 break 2
12845 fi
12846 done
12847 done
12848 IFS=$as_save_IFS
12849
12850 fi
12851 fi
12852 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12853 if test -n "$READELF_FOR_TARGET"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12855 $as_echo "$READELF_FOR_TARGET" >&6; }
12856 else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12859 fi
12860
12861
12862 done
12863 fi
12864
12865 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12866 for ncn_progname in readelf; do
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12868 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12869 if test -x $with_build_time_tools/${ncn_progname}; then
12870 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12872 $as_echo "yes" >&6; }
12873 break
12874 else
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876 $as_echo "no" >&6; }
12877 fi
12878 done
12879 fi
12880
12881 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12882 for ncn_progname in readelf; do
12883 if test -n "$ncn_target_tool_prefix"; then
12884 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12885 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887 $as_echo_n "checking for $ac_word... " >&6; }
12888 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12889 $as_echo_n "(cached) " >&6
12890 else
12891 if test -n "$READELF_FOR_TARGET"; then
12892 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12893 else
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12896 do
12897 IFS=$as_save_IFS
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12901 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 break 2
12904 fi
12905 done
12906 done
12907 IFS=$as_save_IFS
12908
12909 fi
12910 fi
12911 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12912 if test -n "$READELF_FOR_TARGET"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12914 $as_echo "$READELF_FOR_TARGET" >&6; }
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12918 fi
12919
12920
12921 fi
12922 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12924 set dummy ${ncn_progname}; ac_word=$2
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12926 $as_echo_n "checking for $ac_word... " >&6; }
12927 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12928 $as_echo_n "(cached) " >&6
12929 else
12930 if test -n "$READELF_FOR_TARGET"; then
12931 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12932 else
12933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12934 for as_dir in $PATH
12935 do
12936 IFS=$as_save_IFS
12937 test -z "$as_dir" && as_dir=.
12938 for ac_exec_ext in '' $ac_executable_extensions; do
12939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12940 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12942 break 2
12943 fi
12944 done
12945 done
12946 IFS=$as_save_IFS
12947
12948 fi
12949 fi
12950 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12951 if test -n "$READELF_FOR_TARGET"; then
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12953 $as_echo "$READELF_FOR_TARGET" >&6; }
12954 else
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12957 fi
12958
12959
12960 fi
12961 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12962 done
12963 fi
12964
12965 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12966 set dummy readelf
12967 if test $build = $target ; then
12968 READELF_FOR_TARGET="$2"
12969 else
12970 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12971 fi
12972 else
12973 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12974 fi
12975
12976 else
12977 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12978 fi
12979
12980
12981
12982
12983 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12984 if test -n "$with_build_time_tools"; then
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12986 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12987 if test -x $with_build_time_tools/strip; then
12988 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12989 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12991 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12992 else
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 $as_echo "no" >&6; }
12995 fi
12996 elif test $build != $host && test $have_gcc_for_target = yes; then
12997 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12998 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12999 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13000 fi
13001 fi
13002 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13003 # Extract the first word of "strip", so it can be a program name with args.
13004 set dummy strip; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006 $as_echo_n "checking for $ac_word... " >&6; }
13007 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13008 $as_echo_n "(cached) " >&6
13009 else
13010 case $STRIP_FOR_TARGET in
13011 [\\/]* | ?:[\\/]*)
13012 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13013 ;;
13014 *)
13015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $gcc_cv_tool_dirs
13017 do
13018 IFS=$as_save_IFS
13019 test -z "$as_dir" && as_dir=.
13020 for ac_exec_ext in '' $ac_executable_extensions; do
13021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13022 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13024 break 2
13025 fi
13026 done
13027 done
13028 IFS=$as_save_IFS
13029
13030 ;;
13031 esac
13032 fi
13033 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13034 if test -n "$STRIP_FOR_TARGET"; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13036 $as_echo "$STRIP_FOR_TARGET" >&6; }
13037 else
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13040 fi
13041
13042
13043 fi
13044 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13045
13046
13047 if test -n "$STRIP_FOR_TARGET"; then
13048 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13049 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13050 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13051 fi
13052
13053 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13054 for ncn_progname in strip; do
13055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13056 set dummy ${ncn_progname}; ac_word=$2
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058 $as_echo_n "checking for $ac_word... " >&6; }
13059 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 if test -n "$STRIP_FOR_TARGET"; then
13063 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13064 else
13065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066 for as_dir in $PATH
13067 do
13068 IFS=$as_save_IFS
13069 test -z "$as_dir" && as_dir=.
13070 for ac_exec_ext in '' $ac_executable_extensions; do
13071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13072 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13074 break 2
13075 fi
13076 done
13077 done
13078 IFS=$as_save_IFS
13079
13080 fi
13081 fi
13082 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13083 if test -n "$STRIP_FOR_TARGET"; then
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13085 $as_echo "$STRIP_FOR_TARGET" >&6; }
13086 else
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13089 fi
13090
13091
13092 done
13093 fi
13094
13095 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13096 for ncn_progname in strip; do
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13098 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13099 if test -x $with_build_time_tools/${ncn_progname}; then
13100 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13102 $as_echo "yes" >&6; }
13103 break
13104 else
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 $as_echo "no" >&6; }
13107 fi
13108 done
13109 fi
13110
13111 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13112 for ncn_progname in strip; do
13113 if test -n "$ncn_target_tool_prefix"; then
13114 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13115 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13117 $as_echo_n "checking for $ac_word... " >&6; }
13118 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13119 $as_echo_n "(cached) " >&6
13120 else
13121 if test -n "$STRIP_FOR_TARGET"; then
13122 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13123 else
13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 for as_dir in $PATH
13126 do
13127 IFS=$as_save_IFS
13128 test -z "$as_dir" && as_dir=.
13129 for ac_exec_ext in '' $ac_executable_extensions; do
13130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13131 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13133 break 2
13134 fi
13135 done
13136 done
13137 IFS=$as_save_IFS
13138
13139 fi
13140 fi
13141 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13142 if test -n "$STRIP_FOR_TARGET"; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13144 $as_echo "$STRIP_FOR_TARGET" >&6; }
13145 else
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147 $as_echo "no" >&6; }
13148 fi
13149
13150
13151 fi
13152 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13154 set dummy ${ncn_progname}; ac_word=$2
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13156 $as_echo_n "checking for $ac_word... " >&6; }
13157 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13158 $as_echo_n "(cached) " >&6
13159 else
13160 if test -n "$STRIP_FOR_TARGET"; then
13161 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13162 else
13163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13164 for as_dir in $PATH
13165 do
13166 IFS=$as_save_IFS
13167 test -z "$as_dir" && as_dir=.
13168 for ac_exec_ext in '' $ac_executable_extensions; do
13169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13170 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13172 break 2
13173 fi
13174 done
13175 done
13176 IFS=$as_save_IFS
13177
13178 fi
13179 fi
13180 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13181 if test -n "$STRIP_FOR_TARGET"; then
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13183 $as_echo "$STRIP_FOR_TARGET" >&6; }
13184 else
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 $as_echo "no" >&6; }
13187 fi
13188
13189
13190 fi
13191 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13192 done
13193 fi
13194
13195 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13196 set dummy strip
13197 if test $build = $target ; then
13198 STRIP_FOR_TARGET="$2"
13199 else
13200 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13201 fi
13202 else
13203 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13204 fi
13205
13206 else
13207 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13208 fi
13209
13210
13211
13212
13213 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13214 if test -n "$with_build_time_tools"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13216 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13217 if test -x $with_build_time_tools/windres; then
13218 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13219 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13221 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13222 else
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13225 fi
13226 elif test $build != $host && test $have_gcc_for_target = yes; then
13227 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13228 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13229 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13230 fi
13231 fi
13232 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13233 # Extract the first word of "windres", so it can be a program name with args.
13234 set dummy windres; ac_word=$2
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236 $as_echo_n "checking for $ac_word... " >&6; }
13237 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 case $WINDRES_FOR_TARGET in
13241 [\\/]* | ?:[\\/]*)
13242 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13243 ;;
13244 *)
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $gcc_cv_tool_dirs
13247 do
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13252 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13254 break 2
13255 fi
13256 done
13257 done
13258 IFS=$as_save_IFS
13259
13260 ;;
13261 esac
13262 fi
13263 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13264 if test -n "$WINDRES_FOR_TARGET"; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13266 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13267 else
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269 $as_echo "no" >&6; }
13270 fi
13271
13272
13273 fi
13274 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13275
13276
13277 if test -n "$WINDRES_FOR_TARGET"; then
13278 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13279 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13280 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13281 fi
13282
13283 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13284 for ncn_progname in windres; do
13285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13286 set dummy ${ncn_progname}; ac_word=$2
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288 $as_echo_n "checking for $ac_word... " >&6; }
13289 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13290 $as_echo_n "(cached) " >&6
13291 else
13292 if test -n "$WINDRES_FOR_TARGET"; then
13293 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13294 else
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13297 do
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13302 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 break 2
13305 fi
13306 done
13307 done
13308 IFS=$as_save_IFS
13309
13310 fi
13311 fi
13312 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13313 if test -n "$WINDRES_FOR_TARGET"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13315 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13316 else
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 $as_echo "no" >&6; }
13319 fi
13320
13321
13322 done
13323 fi
13324
13325 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13326 for ncn_progname in windres; do
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13328 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13329 if test -x $with_build_time_tools/${ncn_progname}; then
13330 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13332 $as_echo "yes" >&6; }
13333 break
13334 else
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336 $as_echo "no" >&6; }
13337 fi
13338 done
13339 fi
13340
13341 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13342 for ncn_progname in windres; do
13343 if test -n "$ncn_target_tool_prefix"; then
13344 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13345 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13347 $as_echo_n "checking for $ac_word... " >&6; }
13348 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13349 $as_echo_n "(cached) " >&6
13350 else
13351 if test -n "$WINDRES_FOR_TARGET"; then
13352 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13353 else
13354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13355 for as_dir in $PATH
13356 do
13357 IFS=$as_save_IFS
13358 test -z "$as_dir" && as_dir=.
13359 for ac_exec_ext in '' $ac_executable_extensions; do
13360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13361 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13363 break 2
13364 fi
13365 done
13366 done
13367 IFS=$as_save_IFS
13368
13369 fi
13370 fi
13371 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13372 if test -n "$WINDRES_FOR_TARGET"; then
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13374 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13375 else
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377 $as_echo "no" >&6; }
13378 fi
13379
13380
13381 fi
13382 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13384 set dummy ${ncn_progname}; ac_word=$2
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13386 $as_echo_n "checking for $ac_word... " >&6; }
13387 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 if test -n "$WINDRES_FOR_TARGET"; then
13391 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13392 else
13393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $PATH
13395 do
13396 IFS=$as_save_IFS
13397 test -z "$as_dir" && as_dir=.
13398 for ac_exec_ext in '' $ac_executable_extensions; do
13399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13400 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13402 break 2
13403 fi
13404 done
13405 done
13406 IFS=$as_save_IFS
13407
13408 fi
13409 fi
13410 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13411 if test -n "$WINDRES_FOR_TARGET"; then
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13413 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13414 else
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416 $as_echo "no" >&6; }
13417 fi
13418
13419
13420 fi
13421 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13422 done
13423 fi
13424
13425 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13426 set dummy windres
13427 if test $build = $target ; then
13428 WINDRES_FOR_TARGET="$2"
13429 else
13430 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13431 fi
13432 else
13433 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13434 fi
13435
13436 else
13437 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13438 fi
13439
13440
13441
13442
13443 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13444 if test -n "$with_build_time_tools"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13446 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13447 if test -x $with_build_time_tools/windmc; then
13448 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13449 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13451 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13452 else
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454 $as_echo "no" >&6; }
13455 fi
13456 elif test $build != $host && test $have_gcc_for_target = yes; then
13457 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13458 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13459 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13460 fi
13461 fi
13462 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13463 # Extract the first word of "windmc", so it can be a program name with args.
13464 set dummy windmc; ac_word=$2
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13466 $as_echo_n "checking for $ac_word... " >&6; }
13467 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13468 $as_echo_n "(cached) " >&6
13469 else
13470 case $WINDMC_FOR_TARGET in
13471 [\\/]* | ?:[\\/]*)
13472 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13473 ;;
13474 *)
13475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13476 for as_dir in $gcc_cv_tool_dirs
13477 do
13478 IFS=$as_save_IFS
13479 test -z "$as_dir" && as_dir=.
13480 for ac_exec_ext in '' $ac_executable_extensions; do
13481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13482 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13484 break 2
13485 fi
13486 done
13487 done
13488 IFS=$as_save_IFS
13489
13490 ;;
13491 esac
13492 fi
13493 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13494 if test -n "$WINDMC_FOR_TARGET"; then
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13496 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13497 else
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13499 $as_echo "no" >&6; }
13500 fi
13501
13502
13503 fi
13504 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13505
13506
13507 if test -n "$WINDMC_FOR_TARGET"; then
13508 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13509 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13510 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13511 fi
13512
13513 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13514 for ncn_progname in windmc; do
13515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13516 set dummy ${ncn_progname}; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518 $as_echo_n "checking for $ac_word... " >&6; }
13519 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13522 if test -n "$WINDMC_FOR_TARGET"; then
13523 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13524 else
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13527 do
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13532 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534 break 2
13535 fi
13536 done
13537 done
13538 IFS=$as_save_IFS
13539
13540 fi
13541 fi
13542 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13543 if test -n "$WINDMC_FOR_TARGET"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13545 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13546 else
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13549 fi
13550
13551
13552 done
13553 fi
13554
13555 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13556 for ncn_progname in windmc; do
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13558 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13559 if test -x $with_build_time_tools/${ncn_progname}; then
13560 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13562 $as_echo "yes" >&6; }
13563 break
13564 else
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566 $as_echo "no" >&6; }
13567 fi
13568 done
13569 fi
13570
13571 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13572 for ncn_progname in windmc; do
13573 if test -n "$ncn_target_tool_prefix"; then
13574 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13575 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13577 $as_echo_n "checking for $ac_word... " >&6; }
13578 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13579 $as_echo_n "(cached) " >&6
13580 else
13581 if test -n "$WINDMC_FOR_TARGET"; then
13582 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13583 else
13584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13585 for as_dir in $PATH
13586 do
13587 IFS=$as_save_IFS
13588 test -z "$as_dir" && as_dir=.
13589 for ac_exec_ext in '' $ac_executable_extensions; do
13590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13591 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13593 break 2
13594 fi
13595 done
13596 done
13597 IFS=$as_save_IFS
13598
13599 fi
13600 fi
13601 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13602 if test -n "$WINDMC_FOR_TARGET"; then
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13604 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13605 else
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13607 $as_echo "no" >&6; }
13608 fi
13609
13610
13611 fi
13612 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13614 set dummy ${ncn_progname}; ac_word=$2
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13616 $as_echo_n "checking for $ac_word... " >&6; }
13617 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13618 $as_echo_n "(cached) " >&6
13619 else
13620 if test -n "$WINDMC_FOR_TARGET"; then
13621 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13622 else
13623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13624 for as_dir in $PATH
13625 do
13626 IFS=$as_save_IFS
13627 test -z "$as_dir" && as_dir=.
13628 for ac_exec_ext in '' $ac_executable_extensions; do
13629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13630 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13632 break 2
13633 fi
13634 done
13635 done
13636 IFS=$as_save_IFS
13637
13638 fi
13639 fi
13640 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13641 if test -n "$WINDMC_FOR_TARGET"; then
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13643 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13644 else
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13646 $as_echo "no" >&6; }
13647 fi
13648
13649
13650 fi
13651 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13652 done
13653 fi
13654
13655 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13656 set dummy windmc
13657 if test $build = $target ; then
13658 WINDMC_FOR_TARGET="$2"
13659 else
13660 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13661 fi
13662 else
13663 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13664 fi
13665
13666 else
13667 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13668 fi
13669
13670
13671 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13672
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13674 $as_echo_n "checking where to find the target ar... " >&6; }
13675 if test "x${build}" != "x${host}" ; then
13676 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13677 # We already found the complete path
13678 ac_dir=`dirname $AR_FOR_TARGET`
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13680 $as_echo "pre-installed in $ac_dir" >&6; }
13681 else
13682 # Canadian cross, just use what we found
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13684 $as_echo "pre-installed" >&6; }
13685 fi
13686 else
13687 ok=yes
13688 case " ${configdirs} " in
13689 *" binutils "*) ;;
13690 *) ok=no ;;
13691 esac
13692
13693 if test $ok = yes; then
13694 # An in-tree tool is available and we can use it
13695 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13697 $as_echo "just compiled" >&6; }
13698 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13699 # We already found the complete path
13700 ac_dir=`dirname $AR_FOR_TARGET`
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13702 $as_echo "pre-installed in $ac_dir" >&6; }
13703 elif test "x$target" = "x$host"; then
13704 # We can use an host tool
13705 AR_FOR_TARGET='$(AR)'
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13707 $as_echo "host tool" >&6; }
13708 else
13709 # We need a cross tool
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13711 $as_echo "pre-installed" >&6; }
13712 fi
13713 fi
13714
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13716 $as_echo_n "checking where to find the target as... " >&6; }
13717 if test "x${build}" != "x${host}" ; then
13718 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13719 # We already found the complete path
13720 ac_dir=`dirname $AS_FOR_TARGET`
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13722 $as_echo "pre-installed in $ac_dir" >&6; }
13723 else
13724 # Canadian cross, just use what we found
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13726 $as_echo "pre-installed" >&6; }
13727 fi
13728 else
13729 ok=yes
13730 case " ${configdirs} " in
13731 *" gas "*) ;;
13732 *) ok=no ;;
13733 esac
13734
13735 if test $ok = yes; then
13736 # An in-tree tool is available and we can use it
13737 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13739 $as_echo "just compiled" >&6; }
13740 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13741 # We already found the complete path
13742 ac_dir=`dirname $AS_FOR_TARGET`
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13744 $as_echo "pre-installed in $ac_dir" >&6; }
13745 elif test "x$target" = "x$host"; then
13746 # We can use an host tool
13747 AS_FOR_TARGET='$(AS)'
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13749 $as_echo "host tool" >&6; }
13750 else
13751 # We need a cross tool
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13753 $as_echo "pre-installed" >&6; }
13754 fi
13755 fi
13756
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13758 $as_echo_n "checking where to find the target cc... " >&6; }
13759 if test "x${build}" != "x${host}" ; then
13760 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13761 # We already found the complete path
13762 ac_dir=`dirname $CC_FOR_TARGET`
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13764 $as_echo "pre-installed in $ac_dir" >&6; }
13765 else
13766 # Canadian cross, just use what we found
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13768 $as_echo "pre-installed" >&6; }
13769 fi
13770 else
13771 ok=yes
13772 case " ${configdirs} " in
13773 *" gcc "*) ;;
13774 *) ok=no ;;
13775 esac
13776
13777 if test $ok = yes; then
13778 # An in-tree tool is available and we can use it
13779 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13781 $as_echo "just compiled" >&6; }
13782 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13783 # We already found the complete path
13784 ac_dir=`dirname $CC_FOR_TARGET`
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13786 $as_echo "pre-installed in $ac_dir" >&6; }
13787 elif test "x$target" = "x$host"; then
13788 # We can use an host tool
13789 CC_FOR_TARGET='$(CC)'
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13791 $as_echo "host tool" >&6; }
13792 else
13793 # We need a cross tool
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13795 $as_echo "pre-installed" >&6; }
13796 fi
13797 fi
13798
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13800 $as_echo_n "checking where to find the target c++... " >&6; }
13801 if test "x${build}" != "x${host}" ; then
13802 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13803 # We already found the complete path
13804 ac_dir=`dirname $CXX_FOR_TARGET`
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13806 $as_echo "pre-installed in $ac_dir" >&6; }
13807 else
13808 # Canadian cross, just use what we found
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13810 $as_echo "pre-installed" >&6; }
13811 fi
13812 else
13813 ok=yes
13814 case " ${configdirs} " in
13815 *" gcc "*) ;;
13816 *) ok=no ;;
13817 esac
13818 case ,${enable_languages}, in
13819 *,c++,*) ;;
13820 *) ok=no ;;
13821 esac
13822 if test $ok = yes; then
13823 # An in-tree tool is available and we can use it
13824 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13826 $as_echo "just compiled" >&6; }
13827 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13828 # We already found the complete path
13829 ac_dir=`dirname $CXX_FOR_TARGET`
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13831 $as_echo "pre-installed in $ac_dir" >&6; }
13832 elif test "x$target" = "x$host"; then
13833 # We can use an host tool
13834 CXX_FOR_TARGET='$(CXX)'
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13836 $as_echo "host tool" >&6; }
13837 else
13838 # We need a cross tool
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13840 $as_echo "pre-installed" >&6; }
13841 fi
13842 fi
13843
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13845 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13846 if test "x${build}" != "x${host}" ; then
13847 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13848 # We already found the complete path
13849 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13851 $as_echo "pre-installed in $ac_dir" >&6; }
13852 else
13853 # Canadian cross, just use what we found
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13855 $as_echo "pre-installed" >&6; }
13856 fi
13857 else
13858 ok=yes
13859 case " ${configdirs} " in
13860 *" gcc "*) ;;
13861 *) ok=no ;;
13862 esac
13863 case ,${enable_languages}, in
13864 *,c++,*) ;;
13865 *) ok=no ;;
13866 esac
13867 if test $ok = yes; then
13868 # An in-tree tool is available and we can use it
13869 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13871 $as_echo "just compiled" >&6; }
13872 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13873 # We already found the complete path
13874 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13876 $as_echo "pre-installed in $ac_dir" >&6; }
13877 elif test "x$target" = "x$host"; then
13878 # We can use an host tool
13879 RAW_CXX_FOR_TARGET='$(CXX)'
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13881 $as_echo "host tool" >&6; }
13882 else
13883 # We need a cross tool
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13885 $as_echo "pre-installed" >&6; }
13886 fi
13887 fi
13888
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13890 $as_echo_n "checking where to find the target dlltool... " >&6; }
13891 if test "x${build}" != "x${host}" ; then
13892 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13893 # We already found the complete path
13894 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13896 $as_echo "pre-installed in $ac_dir" >&6; }
13897 else
13898 # Canadian cross, just use what we found
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13900 $as_echo "pre-installed" >&6; }
13901 fi
13902 else
13903 ok=yes
13904 case " ${configdirs} " in
13905 *" binutils "*) ;;
13906 *) ok=no ;;
13907 esac
13908
13909 if test $ok = yes; then
13910 # An in-tree tool is available and we can use it
13911 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13913 $as_echo "just compiled" >&6; }
13914 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13915 # We already found the complete path
13916 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13918 $as_echo "pre-installed in $ac_dir" >&6; }
13919 elif test "x$target" = "x$host"; then
13920 # We can use an host tool
13921 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13923 $as_echo "host tool" >&6; }
13924 else
13925 # We need a cross tool
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13927 $as_echo "pre-installed" >&6; }
13928 fi
13929 fi
13930
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13932 $as_echo_n "checking where to find the target gcc... " >&6; }
13933 if test "x${build}" != "x${host}" ; then
13934 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13935 # We already found the complete path
13936 ac_dir=`dirname $GCC_FOR_TARGET`
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13938 $as_echo "pre-installed in $ac_dir" >&6; }
13939 else
13940 # Canadian cross, just use what we found
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13942 $as_echo "pre-installed" >&6; }
13943 fi
13944 else
13945 ok=yes
13946 case " ${configdirs} " in
13947 *" gcc "*) ;;
13948 *) ok=no ;;
13949 esac
13950
13951 if test $ok = yes; then
13952 # An in-tree tool is available and we can use it
13953 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13955 $as_echo "just compiled" >&6; }
13956 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13957 # We already found the complete path
13958 ac_dir=`dirname $GCC_FOR_TARGET`
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13960 $as_echo "pre-installed in $ac_dir" >&6; }
13961 elif test "x$target" = "x$host"; then
13962 # We can use an host tool
13963 GCC_FOR_TARGET='$()'
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13965 $as_echo "host tool" >&6; }
13966 else
13967 # We need a cross tool
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13969 $as_echo "pre-installed" >&6; }
13970 fi
13971 fi
13972
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13974 $as_echo_n "checking where to find the target gfortran... " >&6; }
13975 if test "x${build}" != "x${host}" ; then
13976 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13977 # We already found the complete path
13978 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13980 $as_echo "pre-installed in $ac_dir" >&6; }
13981 else
13982 # Canadian cross, just use what we found
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13984 $as_echo "pre-installed" >&6; }
13985 fi
13986 else
13987 ok=yes
13988 case " ${configdirs} " in
13989 *" gcc "*) ;;
13990 *) ok=no ;;
13991 esac
13992 case ,${enable_languages}, in
13993 *,fortran,*) ;;
13994 *) ok=no ;;
13995 esac
13996 if test $ok = yes; then
13997 # An in-tree tool is available and we can use it
13998 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14000 $as_echo "just compiled" >&6; }
14001 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14002 # We already found the complete path
14003 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14005 $as_echo "pre-installed in $ac_dir" >&6; }
14006 elif test "x$target" = "x$host"; then
14007 # We can use an host tool
14008 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14010 $as_echo "host tool" >&6; }
14011 else
14012 # We need a cross tool
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14014 $as_echo "pre-installed" >&6; }
14015 fi
14016 fi
14017
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14019 $as_echo_n "checking where to find the target gccgo... " >&6; }
14020 if test "x${build}" != "x${host}" ; then
14021 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14022 # We already found the complete path
14023 ac_dir=`dirname $GOC_FOR_TARGET`
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14025 $as_echo "pre-installed in $ac_dir" >&6; }
14026 else
14027 # Canadian cross, just use what we found
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14029 $as_echo "pre-installed" >&6; }
14030 fi
14031 else
14032 ok=yes
14033 case " ${configdirs} " in
14034 *" gcc "*) ;;
14035 *) ok=no ;;
14036 esac
14037 case ,${enable_languages}, in
14038 *,go,*) ;;
14039 *) ok=no ;;
14040 esac
14041 if test $ok = yes; then
14042 # An in-tree tool is available and we can use it
14043 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14045 $as_echo "just compiled" >&6; }
14046 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14047 # We already found the complete path
14048 ac_dir=`dirname $GOC_FOR_TARGET`
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14050 $as_echo "pre-installed in $ac_dir" >&6; }
14051 elif test "x$target" = "x$host"; then
14052 # We can use an host tool
14053 GOC_FOR_TARGET='$(GOC)'
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14055 $as_echo "host tool" >&6; }
14056 else
14057 # We need a cross tool
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14059 $as_echo "pre-installed" >&6; }
14060 fi
14061 fi
14062
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14064 $as_echo_n "checking where to find the target ld... " >&6; }
14065 if test "x${build}" != "x${host}" ; then
14066 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14067 # We already found the complete path
14068 ac_dir=`dirname $LD_FOR_TARGET`
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14070 $as_echo "pre-installed in $ac_dir" >&6; }
14071 else
14072 # Canadian cross, just use what we found
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14074 $as_echo "pre-installed" >&6; }
14075 fi
14076 else
14077 ok=yes
14078 case " ${configdirs} " in
14079 *" ld "*) ;;
14080 *) ok=no ;;
14081 esac
14082
14083 if test $ok = yes; then
14084 # An in-tree tool is available and we can use it
14085 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14087 $as_echo "just compiled" >&6; }
14088 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14089 # We already found the complete path
14090 ac_dir=`dirname $LD_FOR_TARGET`
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14092 $as_echo "pre-installed in $ac_dir" >&6; }
14093 elif test "x$target" = "x$host"; then
14094 # We can use an host tool
14095 LD_FOR_TARGET='$(LD)'
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14097 $as_echo "host tool" >&6; }
14098 else
14099 # We need a cross tool
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14101 $as_echo "pre-installed" >&6; }
14102 fi
14103 fi
14104
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14106 $as_echo_n "checking where to find the target lipo... " >&6; }
14107 if test "x${build}" != "x${host}" ; then
14108 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14109 # We already found the complete path
14110 ac_dir=`dirname $LIPO_FOR_TARGET`
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14112 $as_echo "pre-installed in $ac_dir" >&6; }
14113 else
14114 # Canadian cross, just use what we found
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14116 $as_echo "pre-installed" >&6; }
14117 fi
14118 else
14119 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14120 # We already found the complete path
14121 ac_dir=`dirname $LIPO_FOR_TARGET`
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14123 $as_echo "pre-installed in $ac_dir" >&6; }
14124 elif test "x$target" = "x$host"; then
14125 # We can use an host tool
14126 LIPO_FOR_TARGET='$(LIPO)'
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14128 $as_echo "host tool" >&6; }
14129 else
14130 # We need a cross tool
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14132 $as_echo "pre-installed" >&6; }
14133 fi
14134 fi
14135
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14137 $as_echo_n "checking where to find the target nm... " >&6; }
14138 if test "x${build}" != "x${host}" ; then
14139 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14140 # We already found the complete path
14141 ac_dir=`dirname $NM_FOR_TARGET`
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14143 $as_echo "pre-installed in $ac_dir" >&6; }
14144 else
14145 # Canadian cross, just use what we found
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14147 $as_echo "pre-installed" >&6; }
14148 fi
14149 else
14150 ok=yes
14151 case " ${configdirs} " in
14152 *" binutils "*) ;;
14153 *) ok=no ;;
14154 esac
14155
14156 if test $ok = yes; then
14157 # An in-tree tool is available and we can use it
14158 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14160 $as_echo "just compiled" >&6; }
14161 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14162 # We already found the complete path
14163 ac_dir=`dirname $NM_FOR_TARGET`
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14165 $as_echo "pre-installed in $ac_dir" >&6; }
14166 elif test "x$target" = "x$host"; then
14167 # We can use an host tool
14168 NM_FOR_TARGET='$(NM)'
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14170 $as_echo "host tool" >&6; }
14171 else
14172 # We need a cross tool
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14174 $as_echo "pre-installed" >&6; }
14175 fi
14176 fi
14177
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14179 $as_echo_n "checking where to find the target objcopy... " >&6; }
14180 if test "x${build}" != "x${host}" ; then
14181 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14182 # We already found the complete path
14183 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185 $as_echo "pre-installed in $ac_dir" >&6; }
14186 else
14187 # Canadian cross, just use what we found
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14189 $as_echo "pre-installed" >&6; }
14190 fi
14191 else
14192 ok=yes
14193 case " ${configdirs} " in
14194 *" binutils "*) ;;
14195 *) ok=no ;;
14196 esac
14197
14198 if test $ok = yes; then
14199 # An in-tree tool is available and we can use it
14200 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14202 $as_echo "just compiled" >&6; }
14203 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14204 # We already found the complete path
14205 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14207 $as_echo "pre-installed in $ac_dir" >&6; }
14208 elif test "x$target" = "x$host"; then
14209 # We can use an host tool
14210 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14212 $as_echo "host tool" >&6; }
14213 else
14214 # We need a cross tool
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14216 $as_echo "pre-installed" >&6; }
14217 fi
14218 fi
14219
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14221 $as_echo_n "checking where to find the target objdump... " >&6; }
14222 if test "x${build}" != "x${host}" ; then
14223 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14224 # We already found the complete path
14225 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14227 $as_echo "pre-installed in $ac_dir" >&6; }
14228 else
14229 # Canadian cross, just use what we found
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14231 $as_echo "pre-installed" >&6; }
14232 fi
14233 else
14234 ok=yes
14235 case " ${configdirs} " in
14236 *" binutils "*) ;;
14237 *) ok=no ;;
14238 esac
14239
14240 if test $ok = yes; then
14241 # An in-tree tool is available and we can use it
14242 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14244 $as_echo "just compiled" >&6; }
14245 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14246 # We already found the complete path
14247 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14249 $as_echo "pre-installed in $ac_dir" >&6; }
14250 elif test "x$target" = "x$host"; then
14251 # We can use an host tool
14252 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14254 $as_echo "host tool" >&6; }
14255 else
14256 # We need a cross tool
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14258 $as_echo "pre-installed" >&6; }
14259 fi
14260 fi
14261
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14263 $as_echo_n "checking where to find the target ranlib... " >&6; }
14264 if test "x${build}" != "x${host}" ; then
14265 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14266 # We already found the complete path
14267 ac_dir=`dirname $RANLIB_FOR_TARGET`
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14269 $as_echo "pre-installed in $ac_dir" >&6; }
14270 else
14271 # Canadian cross, just use what we found
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14273 $as_echo "pre-installed" >&6; }
14274 fi
14275 else
14276 ok=yes
14277 case " ${configdirs} " in
14278 *" binutils "*) ;;
14279 *) ok=no ;;
14280 esac
14281
14282 if test $ok = yes; then
14283 # An in-tree tool is available and we can use it
14284 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14286 $as_echo "just compiled" >&6; }
14287 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14288 # We already found the complete path
14289 ac_dir=`dirname $RANLIB_FOR_TARGET`
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14291 $as_echo "pre-installed in $ac_dir" >&6; }
14292 elif test "x$target" = "x$host"; then
14293 # We can use an host tool
14294 RANLIB_FOR_TARGET='$(RANLIB)'
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14296 $as_echo "host tool" >&6; }
14297 else
14298 # We need a cross tool
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14300 $as_echo "pre-installed" >&6; }
14301 fi
14302 fi
14303
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14305 $as_echo_n "checking where to find the target readelf... " >&6; }
14306 if test "x${build}" != "x${host}" ; then
14307 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14308 # We already found the complete path
14309 ac_dir=`dirname $READELF_FOR_TARGET`
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14311 $as_echo "pre-installed in $ac_dir" >&6; }
14312 else
14313 # Canadian cross, just use what we found
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14315 $as_echo "pre-installed" >&6; }
14316 fi
14317 else
14318 ok=yes
14319 case " ${configdirs} " in
14320 *" binutils "*) ;;
14321 *) ok=no ;;
14322 esac
14323
14324 if test $ok = yes; then
14325 # An in-tree tool is available and we can use it
14326 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14328 $as_echo "just compiled" >&6; }
14329 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14330 # We already found the complete path
14331 ac_dir=`dirname $READELF_FOR_TARGET`
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14333 $as_echo "pre-installed in $ac_dir" >&6; }
14334 elif test "x$target" = "x$host"; then
14335 # We can use an host tool
14336 READELF_FOR_TARGET='$(READELF)'
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14338 $as_echo "host tool" >&6; }
14339 else
14340 # We need a cross tool
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14342 $as_echo "pre-installed" >&6; }
14343 fi
14344 fi
14345
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14347 $as_echo_n "checking where to find the target strip... " >&6; }
14348 if test "x${build}" != "x${host}" ; then
14349 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14350 # We already found the complete path
14351 ac_dir=`dirname $STRIP_FOR_TARGET`
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14353 $as_echo "pre-installed in $ac_dir" >&6; }
14354 else
14355 # Canadian cross, just use what we found
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14357 $as_echo "pre-installed" >&6; }
14358 fi
14359 else
14360 ok=yes
14361 case " ${configdirs} " in
14362 *" binutils "*) ;;
14363 *) ok=no ;;
14364 esac
14365
14366 if test $ok = yes; then
14367 # An in-tree tool is available and we can use it
14368 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14370 $as_echo "just compiled" >&6; }
14371 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14372 # We already found the complete path
14373 ac_dir=`dirname $STRIP_FOR_TARGET`
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14375 $as_echo "pre-installed in $ac_dir" >&6; }
14376 elif test "x$target" = "x$host"; then
14377 # We can use an host tool
14378 STRIP_FOR_TARGET='$(STRIP)'
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14380 $as_echo "host tool" >&6; }
14381 else
14382 # We need a cross tool
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14384 $as_echo "pre-installed" >&6; }
14385 fi
14386 fi
14387
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14389 $as_echo_n "checking where to find the target windres... " >&6; }
14390 if test "x${build}" != "x${host}" ; then
14391 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14392 # We already found the complete path
14393 ac_dir=`dirname $WINDRES_FOR_TARGET`
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14395 $as_echo "pre-installed in $ac_dir" >&6; }
14396 else
14397 # Canadian cross, just use what we found
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14399 $as_echo "pre-installed" >&6; }
14400 fi
14401 else
14402 ok=yes
14403 case " ${configdirs} " in
14404 *" binutils "*) ;;
14405 *) ok=no ;;
14406 esac
14407
14408 if test $ok = yes; then
14409 # An in-tree tool is available and we can use it
14410 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14412 $as_echo "just compiled" >&6; }
14413 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14414 # We already found the complete path
14415 ac_dir=`dirname $WINDRES_FOR_TARGET`
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14417 $as_echo "pre-installed in $ac_dir" >&6; }
14418 elif test "x$target" = "x$host"; then
14419 # We can use an host tool
14420 WINDRES_FOR_TARGET='$(WINDRES)'
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14422 $as_echo "host tool" >&6; }
14423 else
14424 # We need a cross tool
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14426 $as_echo "pre-installed" >&6; }
14427 fi
14428 fi
14429
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14431 $as_echo_n "checking where to find the target windmc... " >&6; }
14432 if test "x${build}" != "x${host}" ; then
14433 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14434 # We already found the complete path
14435 ac_dir=`dirname $WINDMC_FOR_TARGET`
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14437 $as_echo "pre-installed in $ac_dir" >&6; }
14438 else
14439 # Canadian cross, just use what we found
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14441 $as_echo "pre-installed" >&6; }
14442 fi
14443 else
14444 ok=yes
14445 case " ${configdirs} " in
14446 *" binutils "*) ;;
14447 *) ok=no ;;
14448 esac
14449
14450 if test $ok = yes; then
14451 # An in-tree tool is available and we can use it
14452 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14454 $as_echo "just compiled" >&6; }
14455 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14456 # We already found the complete path
14457 ac_dir=`dirname $WINDMC_FOR_TARGET`
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14459 $as_echo "pre-installed in $ac_dir" >&6; }
14460 elif test "x$target" = "x$host"; then
14461 # We can use an host tool
14462 WINDMC_FOR_TARGET='$(WINDMC)'
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14464 $as_echo "host tool" >&6; }
14465 else
14466 # We need a cross tool
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14468 $as_echo "pre-installed" >&6; }
14469 fi
14470 fi
14471
14472
14473
14474
14475
14476 # Certain tools may need extra flags.
14477 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14478 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14479 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14480
14481 # When building target libraries, except in a Canadian cross, we use
14482 # the same toolchain as the compiler we just built.
14483 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14484 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14485 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14486 if test $host = $build; then
14487 case " $configdirs " in
14488 *" gcc "*)
14489 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14490 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14491 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14492 ;;
14493 esac
14494 fi
14495
14496
14497
14498
14499
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14501 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14502 # Check whether --enable-maintainer-mode was given.
14503 if test "${enable_maintainer_mode+set}" = set; then :
14504 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14505 else
14506 USE_MAINTAINER_MODE=no
14507 fi
14508
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14510 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14511
14512
14513 if test "$USE_MAINTAINER_MODE" = yes; then
14514 MAINTAINER_MODE_TRUE=
14515 MAINTAINER_MODE_FALSE='#'
14516 else
14517 MAINTAINER_MODE_TRUE='#'
14518 MAINTAINER_MODE_FALSE=
14519 fi
14520 MAINT=$MAINTAINER_MODE_TRUE
14521
14522 # ---------------------
14523 # GCC bootstrap support
14524 # ---------------------
14525
14526 # Stage specific cflags for build.
14527 stage1_cflags="-g"
14528 case $build in
14529 vax-*-*)
14530 case ${GCC} in
14531 yes) stage1_cflags="-g -Wa,-J" ;;
14532 *) stage1_cflags="-g -J" ;;
14533 esac ;;
14534 esac
14535
14536
14537
14538 # Enable --enable-checking in stage1 of the compiler.
14539 # Check whether --enable-stage1-checking was given.
14540 if test "${enable_stage1_checking+set}" = set; then :
14541 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14542 else
14543 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14544 # For --disable-checking or implicit --enable-checking=release, avoid
14545 # setting --enable-checking=gc in the default stage1 checking for LTO
14546 # bootstraps. See PR62077.
14547 case $BUILD_CONFIG in
14548 *lto*)
14549 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14550 *)
14551 stage1_checking=--enable-checking=yes,types;;
14552 esac
14553 if test "x$enable_checking" = x && \
14554 test -d ${srcdir}/gcc && \
14555 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14556 stage1_checking=--enable-checking=yes,types,extra
14557 fi
14558 else
14559 stage1_checking=--enable-checking=$enable_checking,types
14560 fi
14561 fi
14562
14563
14564
14565 # Enable -Werror in bootstrap stage2 and later.
14566 # Check whether --enable-werror was given.
14567 if test "${enable_werror+set}" = set; then :
14568 enableval=$enable_werror;
14569 else
14570 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14571 enable_werror=yes
14572 else
14573 enable_werror=no
14574 fi
14575 fi
14576
14577 case ${enable_werror} in
14578 yes) stage2_werror_flag="--enable-werror-always" ;;
14579 *) stage2_werror_flag="" ;;
14580 esac
14581
14582
14583 # Enable --enable-host-shared.
14584 # Check whether --enable-host-shared was given.
14585 if test "${enable_host_shared+set}" = set; then :
14586 enableval=$enable_host_shared; host_shared=$enableval
14587 else
14588 host_shared=no
14589 fi
14590
14591
14592
14593 # PR jit/64780: Require the user to explicitly specify
14594 # --enable-host-shared if the jit is enabled, hinting
14595 # that they might want to do a separate configure/build of
14596 # the jit, to avoid users from slowing down the rest of the
14597 # compiler by enabling the jit.
14598 if test ${host_shared} = "no" ; then
14599 case "${enable_languages}" in
14600 *jit*)
14601 as_fn_error "
14602 Enabling language \"jit\" requires --enable-host-shared.
14603
14604 --enable-host-shared typically slows the rest of the compiler down by
14605 a few %, so you must explicitly enable it.
14606
14607 If you want to build both the jit and the regular compiler, it is often
14608 best to do this via two separate configure/builds, in separate
14609 directories, to avoid imposing the performance cost of
14610 --enable-host-shared on the regular compiler." "$LINENO" 5
14611 ;;
14612 *)
14613 ;;
14614 esac
14615 fi
14616
14617 # Specify what files to not compare during bootstrap.
14618
14619 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14620 case "$target" in
14621 hppa*64*-*-hpux*) ;;
14622 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14623 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14624 esac
14625
14626
14627 ac_config_files="$ac_config_files Makefile"
14628
14629 cat >confcache <<\_ACEOF
14630 # This file is a shell script that caches the results of configure
14631 # tests run on this system so they can be shared between configure
14632 # scripts and configure runs, see configure's option --config-cache.
14633 # It is not useful on other systems. If it contains results you don't
14634 # want to keep, you may remove or edit it.
14635 #
14636 # config.status only pays attention to the cache file if you give it
14637 # the --recheck option to rerun configure.
14638 #
14639 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14640 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14641 # following values.
14642
14643 _ACEOF
14644
14645 # The following way of writing the cache mishandles newlines in values,
14646 # but we know of no workaround that is simple, portable, and efficient.
14647 # So, we kill variables containing newlines.
14648 # Ultrix sh set writes to stderr and can't be redirected directly,
14649 # and sets the high bit in the cache file unless we assign to the vars.
14650 (
14651 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14652 eval ac_val=\$$ac_var
14653 case $ac_val in #(
14654 *${as_nl}*)
14655 case $ac_var in #(
14656 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14657 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14658 esac
14659 case $ac_var in #(
14660 _ | IFS | as_nl) ;; #(
14661 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14662 *) { eval $ac_var=; unset $ac_var;} ;;
14663 esac ;;
14664 esac
14665 done
14666
14667 (set) 2>&1 |
14668 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14669 *${as_nl}ac_space=\ *)
14670 # `set' does not quote correctly, so add quotes: double-quote
14671 # substitution turns \\\\ into \\, and sed turns \\ into \.
14672 sed -n \
14673 "s/'/'\\\\''/g;
14674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14675 ;; #(
14676 *)
14677 # `set' quotes correctly as required by POSIX, so do not add quotes.
14678 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14679 ;;
14680 esac |
14681 sort
14682 ) |
14683 sed '
14684 /^ac_cv_env_/b end
14685 t clear
14686 :clear
14687 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14688 t end
14689 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14690 :end' >>confcache
14691 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14692 if test -w "$cache_file"; then
14693 test "x$cache_file" != "x/dev/null" &&
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14695 $as_echo "$as_me: updating cache $cache_file" >&6;}
14696 cat confcache >$cache_file
14697 else
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14699 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14700 fi
14701 fi
14702 rm -f confcache
14703
14704 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14705 # Let make expand exec_prefix.
14706 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14707
14708 # Transform confdefs.h into DEFS.
14709 # Protect against shell expansion while executing Makefile rules.
14710 # Protect against Makefile macro expansion.
14711 #
14712 # If the first sed substitution is executed (which looks for macros that
14713 # take arguments), then branch to the quote section. Otherwise,
14714 # look for a macro that doesn't take arguments.
14715 ac_script='
14716 :mline
14717 /\\$/{
14718 N
14719 s,\\\n,,
14720 b mline
14721 }
14722 t clear
14723 :clear
14724 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14725 t quote
14726 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14727 t quote
14728 b any
14729 :quote
14730 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14731 s/\[/\\&/g
14732 s/\]/\\&/g
14733 s/\$/$$/g
14734 H
14735 :any
14736 ${
14737 g
14738 s/^\n//
14739 s/\n/ /g
14740 p
14741 }
14742 '
14743 DEFS=`sed -n "$ac_script" confdefs.h`
14744
14745
14746 ac_libobjs=
14747 ac_ltlibobjs=
14748 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14749 # 1. Remove the extension, and $U if already installed.
14750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14753 # will be set to the directory where LIBOBJS objects are built.
14754 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14755 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14756 done
14757 LIBOBJS=$ac_libobjs
14758
14759 LTLIBOBJS=$ac_ltlibobjs
14760
14761
14762
14763 : ${CONFIG_STATUS=./config.status}
14764 ac_write_fail=0
14765 ac_clean_files_save=$ac_clean_files
14766 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14768 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14769 as_write_fail=0
14770 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14771 #! $SHELL
14772 # Generated by $as_me.
14773 # Run this file to recreate the current configuration.
14774 # Compiler output produced by configure, useful for debugging
14775 # configure, is in config.log if it exists.
14776
14777 debug=false
14778 ac_cs_recheck=false
14779 ac_cs_silent=false
14780
14781 SHELL=\${CONFIG_SHELL-$SHELL}
14782 export SHELL
14783 _ASEOF
14784 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14785 ## -------------------- ##
14786 ## M4sh Initialization. ##
14787 ## -------------------- ##
14788
14789 # Be more Bourne compatible
14790 DUALCASE=1; export DUALCASE # for MKS sh
14791 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14792 emulate sh
14793 NULLCMD=:
14794 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14795 # is contrary to our usage. Disable this feature.
14796 alias -g '${1+"$@"}'='"$@"'
14797 setopt NO_GLOB_SUBST
14798 else
14799 case `(set -o) 2>/dev/null` in #(
14800 *posix*) :
14801 set -o posix ;; #(
14802 *) :
14803 ;;
14804 esac
14805 fi
14806
14807
14808 as_nl='
14809 '
14810 export as_nl
14811 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14812 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14813 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14814 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14815 # Prefer a ksh shell builtin over an external printf program on Solaris,
14816 # but without wasting forks for bash or zsh.
14817 if test -z "$BASH_VERSION$ZSH_VERSION" \
14818 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14819 as_echo='print -r --'
14820 as_echo_n='print -rn --'
14821 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14822 as_echo='printf %s\n'
14823 as_echo_n='printf %s'
14824 else
14825 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14826 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14827 as_echo_n='/usr/ucb/echo -n'
14828 else
14829 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14830 as_echo_n_body='eval
14831 arg=$1;
14832 case $arg in #(
14833 *"$as_nl"*)
14834 expr "X$arg" : "X\\(.*\\)$as_nl";
14835 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14836 esac;
14837 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14838 '
14839 export as_echo_n_body
14840 as_echo_n='sh -c $as_echo_n_body as_echo'
14841 fi
14842 export as_echo_body
14843 as_echo='sh -c $as_echo_body as_echo'
14844 fi
14845
14846 # The user is always right.
14847 if test "${PATH_SEPARATOR+set}" != set; then
14848 PATH_SEPARATOR=:
14849 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14850 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14851 PATH_SEPARATOR=';'
14852 }
14853 fi
14854
14855
14856 # IFS
14857 # We need space, tab and new line, in precisely that order. Quoting is
14858 # there to prevent editors from complaining about space-tab.
14859 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14860 # splitting by setting IFS to empty value.)
14861 IFS=" "" $as_nl"
14862
14863 # Find who we are. Look in the path if we contain no directory separator.
14864 case $0 in #((
14865 *[\\/]* ) as_myself=$0 ;;
14866 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867 for as_dir in $PATH
14868 do
14869 IFS=$as_save_IFS
14870 test -z "$as_dir" && as_dir=.
14871 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14872 done
14873 IFS=$as_save_IFS
14874
14875 ;;
14876 esac
14877 # We did not find ourselves, most probably we were run as `sh COMMAND'
14878 # in which case we are not to be found in the path.
14879 if test "x$as_myself" = x; then
14880 as_myself=$0
14881 fi
14882 if test ! -f "$as_myself"; then
14883 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14884 exit 1
14885 fi
14886
14887 # Unset variables that we do not need and which cause bugs (e.g. in
14888 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14889 # suppresses any "Segmentation fault" message there. '((' could
14890 # trigger a bug in pdksh 5.2.14.
14891 for as_var in BASH_ENV ENV MAIL MAILPATH
14892 do eval test x\${$as_var+set} = xset \
14893 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14894 done
14895 PS1='$ '
14896 PS2='> '
14897 PS4='+ '
14898
14899 # NLS nuisances.
14900 LC_ALL=C
14901 export LC_ALL
14902 LANGUAGE=C
14903 export LANGUAGE
14904
14905 # CDPATH.
14906 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14907
14908
14909 # as_fn_error ERROR [LINENO LOG_FD]
14910 # ---------------------------------
14911 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14912 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14913 # script with status $?, using 1 if that was 0.
14914 as_fn_error ()
14915 {
14916 as_status=$?; test $as_status -eq 0 && as_status=1
14917 if test "$3"; then
14918 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14919 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14920 fi
14921 $as_echo "$as_me: error: $1" >&2
14922 as_fn_exit $as_status
14923 } # as_fn_error
14924
14925
14926 # as_fn_set_status STATUS
14927 # -----------------------
14928 # Set $? to STATUS, without forking.
14929 as_fn_set_status ()
14930 {
14931 return $1
14932 } # as_fn_set_status
14933
14934 # as_fn_exit STATUS
14935 # -----------------
14936 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14937 as_fn_exit ()
14938 {
14939 set +e
14940 as_fn_set_status $1
14941 exit $1
14942 } # as_fn_exit
14943
14944 # as_fn_unset VAR
14945 # ---------------
14946 # Portably unset VAR.
14947 as_fn_unset ()
14948 {
14949 { eval $1=; unset $1;}
14950 }
14951 as_unset=as_fn_unset
14952 # as_fn_append VAR VALUE
14953 # ----------------------
14954 # Append the text in VALUE to the end of the definition contained in VAR. Take
14955 # advantage of any shell optimizations that allow amortized linear growth over
14956 # repeated appends, instead of the typical quadratic growth present in naive
14957 # implementations.
14958 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14959 eval 'as_fn_append ()
14960 {
14961 eval $1+=\$2
14962 }'
14963 else
14964 as_fn_append ()
14965 {
14966 eval $1=\$$1\$2
14967 }
14968 fi # as_fn_append
14969
14970 # as_fn_arith ARG...
14971 # ------------------
14972 # Perform arithmetic evaluation on the ARGs, and store the result in the
14973 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14974 # must be portable across $(()) and expr.
14975 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14976 eval 'as_fn_arith ()
14977 {
14978 as_val=$(( $* ))
14979 }'
14980 else
14981 as_fn_arith ()
14982 {
14983 as_val=`expr "$@" || test $? -eq 1`
14984 }
14985 fi # as_fn_arith
14986
14987
14988 if expr a : '\(a\)' >/dev/null 2>&1 &&
14989 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14990 as_expr=expr
14991 else
14992 as_expr=false
14993 fi
14994
14995 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14996 as_basename=basename
14997 else
14998 as_basename=false
14999 fi
15000
15001 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15002 as_dirname=dirname
15003 else
15004 as_dirname=false
15005 fi
15006
15007 as_me=`$as_basename -- "$0" ||
15008 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15009 X"$0" : 'X\(//\)$' \| \
15010 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15011 $as_echo X/"$0" |
15012 sed '/^.*\/\([^/][^/]*\)\/*$/{
15013 s//\1/
15014 q
15015 }
15016 /^X\/\(\/\/\)$/{
15017 s//\1/
15018 q
15019 }
15020 /^X\/\(\/\).*/{
15021 s//\1/
15022 q
15023 }
15024 s/.*/./; q'`
15025
15026 # Avoid depending upon Character Ranges.
15027 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15028 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15029 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15030 as_cr_digits='0123456789'
15031 as_cr_alnum=$as_cr_Letters$as_cr_digits
15032
15033 ECHO_C= ECHO_N= ECHO_T=
15034 case `echo -n x` in #(((((
15035 -n*)
15036 case `echo 'xy\c'` in
15037 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15038 xy) ECHO_C='\c';;
15039 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15040 ECHO_T=' ';;
15041 esac;;
15042 *)
15043 ECHO_N='-n';;
15044 esac
15045
15046 rm -f conf$$ conf$$.exe conf$$.file
15047 if test -d conf$$.dir; then
15048 rm -f conf$$.dir/conf$$.file
15049 else
15050 rm -f conf$$.dir
15051 mkdir conf$$.dir 2>/dev/null
15052 fi
15053 if (echo >conf$$.file) 2>/dev/null; then
15054 if ln -s conf$$.file conf$$ 2>/dev/null; then
15055 as_ln_s='ln -s'
15056 # ... but there are two gotchas:
15057 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15058 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15059 # In both cases, we have to default to `cp -p'.
15060 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15061 as_ln_s='cp -p'
15062 elif ln conf$$.file conf$$ 2>/dev/null; then
15063 as_ln_s=ln
15064 else
15065 as_ln_s='cp -p'
15066 fi
15067 else
15068 as_ln_s='cp -p'
15069 fi
15070 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15071 rmdir conf$$.dir 2>/dev/null
15072
15073
15074 # as_fn_mkdir_p
15075 # -------------
15076 # Create "$as_dir" as a directory, including parents if necessary.
15077 as_fn_mkdir_p ()
15078 {
15079
15080 case $as_dir in #(
15081 -*) as_dir=./$as_dir;;
15082 esac
15083 test -d "$as_dir" || eval $as_mkdir_p || {
15084 as_dirs=
15085 while :; do
15086 case $as_dir in #(
15087 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15088 *) as_qdir=$as_dir;;
15089 esac
15090 as_dirs="'$as_qdir' $as_dirs"
15091 as_dir=`$as_dirname -- "$as_dir" ||
15092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15093 X"$as_dir" : 'X\(//\)[^/]' \| \
15094 X"$as_dir" : 'X\(//\)$' \| \
15095 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15096 $as_echo X"$as_dir" |
15097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15098 s//\1/
15099 q
15100 }
15101 /^X\(\/\/\)[^/].*/{
15102 s//\1/
15103 q
15104 }
15105 /^X\(\/\/\)$/{
15106 s//\1/
15107 q
15108 }
15109 /^X\(\/\).*/{
15110 s//\1/
15111 q
15112 }
15113 s/.*/./; q'`
15114 test -d "$as_dir" && break
15115 done
15116 test -z "$as_dirs" || eval "mkdir $as_dirs"
15117 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15118
15119
15120 } # as_fn_mkdir_p
15121 if mkdir -p . 2>/dev/null; then
15122 as_mkdir_p='mkdir -p "$as_dir"'
15123 else
15124 test -d ./-p && rmdir ./-p
15125 as_mkdir_p=false
15126 fi
15127
15128 if test -x / >/dev/null 2>&1; then
15129 as_test_x='test -x'
15130 else
15131 if ls -dL / >/dev/null 2>&1; then
15132 as_ls_L_option=L
15133 else
15134 as_ls_L_option=
15135 fi
15136 as_test_x='
15137 eval sh -c '\''
15138 if test -d "$1"; then
15139 test -d "$1/.";
15140 else
15141 case $1 in #(
15142 -*)set "./$1";;
15143 esac;
15144 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15145 ???[sx]*):;;*)false;;esac;fi
15146 '\'' sh
15147 '
15148 fi
15149 as_executable_p=$as_test_x
15150
15151 # Sed expression to map a string onto a valid CPP name.
15152 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15153
15154 # Sed expression to map a string onto a valid variable name.
15155 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15156
15157
15158 exec 6>&1
15159 ## ----------------------------------- ##
15160 ## Main body of $CONFIG_STATUS script. ##
15161 ## ----------------------------------- ##
15162 _ASEOF
15163 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15164
15165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15166 # Save the log message, to keep $0 and so on meaningful, and to
15167 # report actual input values of CONFIG_FILES etc. instead of their
15168 # values after options handling.
15169 ac_log="
15170 This file was extended by $as_me, which was
15171 generated by GNU Autoconf 2.64. Invocation command line was
15172
15173 CONFIG_FILES = $CONFIG_FILES
15174 CONFIG_HEADERS = $CONFIG_HEADERS
15175 CONFIG_LINKS = $CONFIG_LINKS
15176 CONFIG_COMMANDS = $CONFIG_COMMANDS
15177 $ $0 $@
15178
15179 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15180 "
15181
15182 _ACEOF
15183
15184 case $ac_config_files in *"
15185 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15186 esac
15187
15188
15189
15190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15191 # Files that config.status was made for.
15192 config_files="$ac_config_files"
15193
15194 _ACEOF
15195
15196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15197 ac_cs_usage="\
15198 \`$as_me' instantiates files and other configuration actions
15199 from templates according to the current configuration. Unless the files
15200 and actions are specified as TAGs, all are instantiated by default.
15201
15202 Usage: $0 [OPTION]... [TAG]...
15203
15204 -h, --help print this help, then exit
15205 -V, --version print version number and configuration settings, then exit
15206 -q, --quiet, --silent
15207 do not print progress messages
15208 -d, --debug don't remove temporary files
15209 --recheck update $as_me by reconfiguring in the same conditions
15210 --file=FILE[:TEMPLATE]
15211 instantiate the configuration file FILE
15212
15213 Configuration files:
15214 $config_files
15215
15216 Report bugs to the package provider."
15217
15218 _ACEOF
15219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15220 ac_cs_version="\\
15221 config.status
15222 configured by $0, generated by GNU Autoconf 2.64,
15223 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15224
15225 Copyright (C) 2009 Free Software Foundation, Inc.
15226 This config.status script is free software; the Free Software Foundation
15227 gives unlimited permission to copy, distribute and modify it."
15228
15229 ac_pwd='$ac_pwd'
15230 srcdir='$srcdir'
15231 INSTALL='$INSTALL'
15232 AWK='$AWK'
15233 test -n "\$AWK" || AWK=awk
15234 _ACEOF
15235
15236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15237 # The default lists apply if the user does not specify any file.
15238 ac_need_defaults=:
15239 while test $# != 0
15240 do
15241 case $1 in
15242 --*=*)
15243 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15244 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15245 ac_shift=:
15246 ;;
15247 *)
15248 ac_option=$1
15249 ac_optarg=$2
15250 ac_shift=shift
15251 ;;
15252 esac
15253
15254 case $ac_option in
15255 # Handling of the options.
15256 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15257 ac_cs_recheck=: ;;
15258 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15259 $as_echo "$ac_cs_version"; exit ;;
15260 --debug | --debu | --deb | --de | --d | -d )
15261 debug=: ;;
15262 --file | --fil | --fi | --f )
15263 $ac_shift
15264 case $ac_optarg in
15265 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15266 esac
15267 as_fn_append CONFIG_FILES " '$ac_optarg'"
15268 ac_need_defaults=false;;
15269 --he | --h | --help | --hel | -h )
15270 $as_echo "$ac_cs_usage"; exit ;;
15271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15272 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15273 ac_cs_silent=: ;;
15274
15275 # This is an error.
15276 -*) as_fn_error "unrecognized option: \`$1'
15277 Try \`$0 --help' for more information." ;;
15278
15279 *) as_fn_append ac_config_targets " $1"
15280 ac_need_defaults=false ;;
15281
15282 esac
15283 shift
15284 done
15285
15286 ac_configure_extra_args=
15287
15288 if $ac_cs_silent; then
15289 exec 6>/dev/null
15290 ac_configure_extra_args="$ac_configure_extra_args --silent"
15291 fi
15292
15293 _ACEOF
15294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15295 if \$ac_cs_recheck; then
15296 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15297 shift
15298 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15299 CONFIG_SHELL='$SHELL'
15300 export CONFIG_SHELL
15301 exec "\$@"
15302 fi
15303
15304 _ACEOF
15305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15306 exec 5>>config.log
15307 {
15308 echo
15309 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15310 ## Running $as_me. ##
15311 _ASBOX
15312 $as_echo "$ac_log"
15313 } >&5
15314
15315 _ACEOF
15316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15317 #
15318 # INIT-COMMANDS
15319 #
15320 extrasub_build="$extrasub_build"
15321 extrasub_host="$extrasub_host"
15322 extrasub_target="$extrasub_target"
15323
15324 _ACEOF
15325
15326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15327
15328 # Handling of arguments.
15329 for ac_config_target in $ac_config_targets
15330 do
15331 case $ac_config_target in
15332 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15333
15334 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15335 esac
15336 done
15337
15338
15339 # If the user did not use the arguments to specify the items to instantiate,
15340 # then the envvar interface is used. Set only those that are not.
15341 # We use the long form for the default assignment because of an extremely
15342 # bizarre bug on SunOS 4.1.3.
15343 if $ac_need_defaults; then
15344 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15345 fi
15346
15347 # Have a temporary directory for convenience. Make it in the build tree
15348 # simply because there is no reason against having it here, and in addition,
15349 # creating and moving files from /tmp can sometimes cause problems.
15350 # Hook for its removal unless debugging.
15351 # Note that there is a small window in which the directory will not be cleaned:
15352 # after its creation but before its name has been assigned to `$tmp'.
15353 $debug ||
15354 {
15355 tmp=
15356 trap 'exit_status=$?
15357 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15358 ' 0
15359 trap 'as_fn_exit 1' 1 2 13 15
15360 }
15361 # Create a (secure) tmp directory for tmp files.
15362
15363 {
15364 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15365 test -n "$tmp" && test -d "$tmp"
15366 } ||
15367 {
15368 tmp=./conf$$-$RANDOM
15369 (umask 077 && mkdir "$tmp")
15370 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15371
15372 # Set up the scripts for CONFIG_FILES section.
15373 # No need to generate them if there are no CONFIG_FILES.
15374 # This happens for instance with `./config.status config.h'.
15375 if test -n "$CONFIG_FILES"; then
15376
15377 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15378 ac_cs_awk_getline=:
15379 ac_cs_awk_pipe_init=
15380 ac_cs_awk_read_file='
15381 while ((getline aline < (F[key])) > 0)
15382 print(aline)
15383 close(F[key])'
15384 ac_cs_awk_pipe_fini=
15385 else
15386 ac_cs_awk_getline=false
15387 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15388 ac_cs_awk_read_file='
15389 print "|#_!!_#|"
15390 print "cat " F[key] " &&"
15391 '$ac_cs_awk_pipe_init
15392 # The final `:' finishes the AND list.
15393 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15394 fi
15395 ac_cr=`echo X | tr X '\015'`
15396 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15397 # But we know of no other shell where ac_cr would be empty at this
15398 # point, so we can use a bashism as a fallback.
15399 if test "x$ac_cr" = x; then
15400 eval ac_cr=\$\'\\r\'
15401 fi
15402 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15403 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15404 ac_cs_awk_cr='\r'
15405 else
15406 ac_cs_awk_cr=$ac_cr
15407 fi
15408
15409 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15410 _ACEOF
15411
15412 # Create commands to substitute file output variables.
15413 {
15414 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15415 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15416 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15417 echo "_ACAWK" &&
15418 echo "_ACEOF"
15419 } >conf$$files.sh &&
15420 . ./conf$$files.sh ||
15421 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15422 rm -f conf$$files.sh
15423
15424 {
15425 echo "cat >conf$$subs.awk <<_ACEOF" &&
15426 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15427 echo "_ACEOF"
15428 } >conf$$subs.sh ||
15429 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15430 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15431 ac_delim='%!_!# '
15432 for ac_last_try in false false false false false :; do
15433 . ./conf$$subs.sh ||
15434 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15435
15436 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15437 if test $ac_delim_n = $ac_delim_num; then
15438 break
15439 elif $ac_last_try; then
15440 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15441 else
15442 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15443 fi
15444 done
15445 rm -f conf$$subs.sh
15446
15447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15448 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15449 _ACEOF
15450 sed -n '
15451 h
15452 s/^/S["/; s/!.*/"]=/
15453 p
15454 g
15455 s/^[^!]*!//
15456 :repl
15457 t repl
15458 s/'"$ac_delim"'$//
15459 t delim
15460 :nl
15461 h
15462 s/\(.\{148\}\).*/\1/
15463 t more1
15464 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15465 p
15466 n
15467 b repl
15468 :more1
15469 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15470 p
15471 g
15472 s/.\{148\}//
15473 t nl
15474 :delim
15475 h
15476 s/\(.\{148\}\).*/\1/
15477 t more2
15478 s/["\\]/\\&/g; s/^/"/; s/$/"/
15479 p
15480 b
15481 :more2
15482 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15483 p
15484 g
15485 s/.\{148\}//
15486 t delim
15487 ' <conf$$subs.awk | sed '
15488 /^[^""]/{
15489 N
15490 s/\n//
15491 }
15492 ' >>$CONFIG_STATUS || ac_write_fail=1
15493 rm -f conf$$subs.awk
15494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15495 _ACAWK
15496 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15497 for (key in S) S_is_set[key] = 1
15498 FS = "\a"
15499 \$ac_cs_awk_pipe_init
15500 }
15501 {
15502 line = $ 0
15503 nfields = split(line, field, "@")
15504 substed = 0
15505 len = length(field[1])
15506 for (i = 2; i < nfields; i++) {
15507 key = field[i]
15508 keylen = length(key)
15509 if (S_is_set[key]) {
15510 value = S[key]
15511 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15512 len += length(value) + length(field[++i])
15513 substed = 1
15514 } else
15515 len += 1 + keylen
15516 }
15517 if (nfields == 3 && !substed) {
15518 key = field[2]
15519 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15520 \$ac_cs_awk_read_file
15521 next
15522 }
15523 }
15524 print line
15525 }
15526 \$ac_cs_awk_pipe_fini
15527 _ACAWK
15528 _ACEOF
15529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15530 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15531 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15532 else
15533 cat
15534 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15535 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15536 _ACEOF
15537
15538 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15539 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15540 # trailing colons and then remove the whole line if VPATH becomes empty
15541 # (actually we leave an empty line to preserve line numbers).
15542 if test "x$srcdir" = x.; then
15543 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15544 s/:*\$(srcdir):*/:/
15545 s/:*\${srcdir}:*/:/
15546 s/:*@srcdir@:*/:/
15547 s/^\([^=]*=[ ]*\):*/\1/
15548 s/:*$//
15549 s/^[^=]*=[ ]*$//
15550 }'
15551 fi
15552
15553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15554 fi # test -n "$CONFIG_FILES"
15555
15556
15557 eval set X " :F $CONFIG_FILES "
15558 shift
15559 for ac_tag
15560 do
15561 case $ac_tag in
15562 :[FHLC]) ac_mode=$ac_tag; continue;;
15563 esac
15564 case $ac_mode$ac_tag in
15565 :[FHL]*:*);;
15566 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15567 :[FH]-) ac_tag=-:-;;
15568 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15569 esac
15570 ac_save_IFS=$IFS
15571 IFS=:
15572 set x $ac_tag
15573 IFS=$ac_save_IFS
15574 shift
15575 ac_file=$1
15576 shift
15577
15578 case $ac_mode in
15579 :L) ac_source=$1;;
15580 :[FH])
15581 ac_file_inputs=
15582 for ac_f
15583 do
15584 case $ac_f in
15585 -) ac_f="$tmp/stdin";;
15586 *) # Look for the file first in the build tree, then in the source tree
15587 # (if the path is not absolute). The absolute path cannot be DOS-style,
15588 # because $ac_f cannot contain `:'.
15589 test -f "$ac_f" ||
15590 case $ac_f in
15591 [\\/$]*) false;;
15592 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15593 esac ||
15594 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15595 esac
15596 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15597 as_fn_append ac_file_inputs " '$ac_f'"
15598 done
15599
15600 # Let's still pretend it is `configure' which instantiates (i.e., don't
15601 # use $as_me), people would be surprised to read:
15602 # /* config.h. Generated by config.status. */
15603 configure_input='Generated from '`
15604 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15605 `' by configure.'
15606 if test x"$ac_file" != x-; then
15607 configure_input="$ac_file. $configure_input"
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15609 $as_echo "$as_me: creating $ac_file" >&6;}
15610 fi
15611 # Neutralize special characters interpreted by sed in replacement strings.
15612 case $configure_input in #(
15613 *\&* | *\|* | *\\* )
15614 ac_sed_conf_input=`$as_echo "$configure_input" |
15615 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15616 *) ac_sed_conf_input=$configure_input;;
15617 esac
15618
15619 case $ac_tag in
15620 *:-:* | *:-) cat >"$tmp/stdin" \
15621 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15622 esac
15623 ;;
15624 esac
15625
15626 ac_dir=`$as_dirname -- "$ac_file" ||
15627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15628 X"$ac_file" : 'X\(//\)[^/]' \| \
15629 X"$ac_file" : 'X\(//\)$' \| \
15630 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15631 $as_echo X"$ac_file" |
15632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15633 s//\1/
15634 q
15635 }
15636 /^X\(\/\/\)[^/].*/{
15637 s//\1/
15638 q
15639 }
15640 /^X\(\/\/\)$/{
15641 s//\1/
15642 q
15643 }
15644 /^X\(\/\).*/{
15645 s//\1/
15646 q
15647 }
15648 s/.*/./; q'`
15649 as_dir="$ac_dir"; as_fn_mkdir_p
15650 ac_builddir=.
15651
15652 case "$ac_dir" in
15653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15654 *)
15655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15656 # A ".." for each directory in $ac_dir_suffix.
15657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15658 case $ac_top_builddir_sub in
15659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15661 esac ;;
15662 esac
15663 ac_abs_top_builddir=$ac_pwd
15664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15665 # for backward compatibility:
15666 ac_top_builddir=$ac_top_build_prefix
15667
15668 case $srcdir in
15669 .) # We are building in place.
15670 ac_srcdir=.
15671 ac_top_srcdir=$ac_top_builddir_sub
15672 ac_abs_top_srcdir=$ac_pwd ;;
15673 [\\/]* | ?:[\\/]* ) # Absolute name.
15674 ac_srcdir=$srcdir$ac_dir_suffix;
15675 ac_top_srcdir=$srcdir
15676 ac_abs_top_srcdir=$srcdir ;;
15677 *) # Relative name.
15678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15679 ac_top_srcdir=$ac_top_build_prefix$srcdir
15680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15681 esac
15682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15683
15684
15685 case $ac_mode in
15686 :F)
15687 #
15688 # CONFIG_FILE
15689 #
15690
15691 case $INSTALL in
15692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15693 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15694 esac
15695 _ACEOF
15696
15697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15698 # If the template does not know about datarootdir, expand it.
15699 # FIXME: This hack should be removed a few years after 2.60.
15700 ac_datarootdir_hack=; ac_datarootdir_seen=
15701 ac_sed_dataroot='
15702 /datarootdir/ {
15703 p
15704 q
15705 }
15706 /@datadir@/p
15707 /@docdir@/p
15708 /@infodir@/p
15709 /@localedir@/p
15710 /@mandir@/p'
15711 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15712 *datarootdir*) ac_datarootdir_seen=yes;;
15713 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15715 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15716 _ACEOF
15717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15718 ac_datarootdir_hack='
15719 s&@datadir@&$datadir&g
15720 s&@docdir@&$docdir&g
15721 s&@infodir@&$infodir&g
15722 s&@localedir@&$localedir&g
15723 s&@mandir@&$mandir&g
15724 s&\\\${datarootdir}&$datarootdir&g' ;;
15725 esac
15726 _ACEOF
15727
15728 # Neutralize VPATH when `$srcdir' = `.'.
15729 # Shell code in configure.ac might set extrasub.
15730 # FIXME: do we really want to maintain this feature?
15731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15732 ac_sed_extra="$ac_vpsub
15733 $extrasub
15734 _ACEOF
15735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15736 :t
15737 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15738 s|@configure_input@|$ac_sed_conf_input|;t t
15739 s&@top_builddir@&$ac_top_builddir_sub&;t t
15740 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15741 s&@srcdir@&$ac_srcdir&;t t
15742 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15743 s&@top_srcdir@&$ac_top_srcdir&;t t
15744 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15745 s&@builddir@&$ac_builddir&;t t
15746 s&@abs_builddir@&$ac_abs_builddir&;t t
15747 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15748 s&@INSTALL@&$ac_INSTALL&;t t
15749 $ac_datarootdir_hack
15750 "
15751 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15752 if $ac_cs_awk_getline; then
15753 $AWK -f "$tmp/subs.awk"
15754 else
15755 $AWK -f "$tmp/subs.awk" | $SHELL
15756 fi >$tmp/out \
15757 || as_fn_error "could not create $ac_file" "$LINENO" 5
15758
15759 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15760 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15761 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15763 which seems to be undefined. Please make sure it is defined." >&5
15764 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15765 which seems to be undefined. Please make sure it is defined." >&2;}
15766
15767 rm -f "$tmp/stdin"
15768 case $ac_file in
15769 -) cat "$tmp/out" && rm -f "$tmp/out";;
15770 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15771 esac \
15772 || as_fn_error "could not create $ac_file" "$LINENO" 5
15773 ;;
15774
15775
15776
15777 esac
15778
15779
15780 case $ac_file$ac_mode in
15781 "Makefile":F) sed "$extrasub_build" Makefile |
15782 sed "$extrasub_host" |
15783 sed "$extrasub_target" > mf$$
15784 mv -f mf$$ Makefile ;;
15785
15786 esac
15787 done # for ac_tag
15788
15789
15790 as_fn_exit 0
15791 _ACEOF
15792 ac_clean_files=$ac_clean_files_save
15793
15794 test $ac_write_fail = 0 ||
15795 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15796
15797
15798 # configure is writing to config.log, and then calls config.status.
15799 # config.status does its own redirection, appending to config.log.
15800 # Unfortunately, on DOS this fails, as config.log is still kept open
15801 # by configure, so config.status won't be able to write to it; its
15802 # output is simply discarded. So we exec the FD to /dev/null,
15803 # effectively closing config.log, so it can be properly (re)opened and
15804 # appended to by config.status. When coming back to configure, we
15805 # need to make the FD available again.
15806 if test "$no_create" != yes; then
15807 ac_cs_success=:
15808 ac_config_status_args=
15809 test "$silent" = yes &&
15810 ac_config_status_args="$ac_config_status_args --quiet"
15811 exec 5>/dev/null
15812 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15813 exec 5>>config.log
15814 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15815 # would make configure fail if this is the last instruction.
15816 $ac_cs_success || as_fn_exit $?
15817 fi
15818 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15820 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15821 fi
15822
This page took 0.363657 seconds and 5 git commands to generate.