]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
ipa-prop.h (ipa_known_type_data): Remove.
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
596 NM
597 LIPO
598 LD
599 DLLTOOL
600 AS
601 AR
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
606 LEX
607 M4
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 GCJ_FOR_BUILD
619 DLLTOOL_FOR_BUILD
620 CXX_FOR_BUILD
621 CXXFLAGS_FOR_BUILD
622 CFLAGS_FOR_BUILD
623 CC_FOR_BUILD
624 AS_FOR_BUILD
625 AR_FOR_BUILD
626 target_configdirs
627 configdirs
628 build_configdirs
629 INSTALL_GDB_TK
630 GDB_TK
631 CONFIGURE_GDB_TK
632 build_tooldir
633 tooldir
634 GCC_SHLIB_SUBDIR
635 RPATH_ENVVAR
636 target_configargs
637 host_configargs
638 build_configargs
639 BUILD_CONFIG
640 LDFLAGS_FOR_TARGET
641 CXXFLAGS_FOR_TARGET
642 CFLAGS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
645 extra_host_libiberty_configure_flags
646 stage1_languages
647 extra_linker_plugin_flags
648 extra_linker_plugin_configure_flags
649 islinc
650 isllibs
651 poststage1_ldflags
652 poststage1_libs
653 stage1_ldflags
654 stage1_libs
655 extra_isl_gmp_configure_flags
656 extra_mpc_mpfr_configure_flags
657 extra_mpc_gmp_configure_flags
658 extra_mpfr_configure_flags
659 gmpinc
660 gmplibs
661 do_compare
662 GNATMAKE
663 GNATBIND
664 ac_ct_CXX
665 CXXFLAGS
666 CXX
667 OBJEXT
668 EXEEXT
669 ac_ct_CC
670 CPPFLAGS
671 LDFLAGS
672 CFLAGS
673 CC
674 EXTRA_CONFIGARGS_LIBJAVA
675 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 enable_as_accelerator_for
750 enable_offload_targets
751 enable_gold
752 enable_ld
753 enable_libquadmath
754 enable_libquadmath_support
755 enable_libada
756 enable_libssp
757 enable_libstdcxx
758 enable_liboffloadmic
759 enable_static_libjava
760 enable_bootstrap
761 with_mpc
762 with_mpc_include
763 with_mpc_lib
764 with_mpfr_dir
765 with_mpfr
766 with_mpfr_include
767 with_mpfr_lib
768 with_gmp_dir
769 with_gmp
770 with_gmp_include
771 with_gmp_lib
772 with_host_libstdcxx
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_build_sysroot
787 with_debug_prefix_map
788 with_build_config
789 enable_vtable_verify
790 enable_serial_configure
791 with_build_time_tools
792 enable_maintainer_mode
793 enable_stage1_checking
794 enable_werror
795 enable_host_shared
796 '
797 ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CC
801 CFLAGS
802 LDFLAGS
803 LIBS
804 CPPFLAGS
805 CXX
806 CXXFLAGS
807 CCC
808 build_configargs
809 host_configargs
810 target_configargs
811 AR
812 AS
813 DLLTOOL
814 LD
815 LIPO
816 NM
817 RANLIB
818 STRIP
819 WINDRES
820 WINDMC
821 OBJCOPY
822 OBJDUMP
823 READELF
824 CC_FOR_TARGET
825 CXX_FOR_TARGET
826 GCC_FOR_TARGET
827 GCJ_FOR_TARGET
828 GFORTRAN_FOR_TARGET
829 GOC_FOR_TARGET
830 AR_FOR_TARGET
831 AS_FOR_TARGET
832 DLLTOOL_FOR_TARGET
833 LD_FOR_TARGET
834 LIPO_FOR_TARGET
835 NM_FOR_TARGET
836 OBJDUMP_FOR_TARGET
837 RANLIB_FOR_TARGET
838 READELF_FOR_TARGET
839 STRIP_FOR_TARGET
840 WINDRES_FOR_TARGET
841 WINDMC_FOR_TARGET'
842
843
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
865
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
891
892 ac_prev=
893 ac_dashdash=
894 for ac_option
895 do
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
901 fi
902
903 case $ac_option in
904 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *) ac_optarg=yes ;;
906 esac
907
908 # Accept the important Cygnus configure options, so we can diagnose typos.
909
910 case $ac_dashdash$ac_option in
911 --)
912 ac_dashdash=yes ;;
913
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
918
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
923
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
930
931 --config-cache | -C)
932 cache_file=config.cache ;;
933
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
938
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
945
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
961
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
966
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
971
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
987
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
996
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1000
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1007
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1012
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1018
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1025
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1030
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1035
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1042
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1047
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1054
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1059
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1063
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1067
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1071
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1080
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1085
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1092
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1099
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1116
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1121
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1126
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1130
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1136
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1147
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1152
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1157
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1164
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1169
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1172
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1175
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1191
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1207
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1211
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1218
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1225
1226 -*) as_fn_error "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information."
1228 ;;
1229
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1239
1240 *)
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1246 ;;
1247
1248 esac
1249 done
1250
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error "missing argument to $ac_option"
1254 fi
1255
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1262 fi
1263
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1269 do
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1284
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1291
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1297 If a cross compiler is detected then cross compile mode will be used." >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1300 fi
1301 fi
1302
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306 test "$silent" = yes && exec 6>/dev/null
1307
1308
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error "pwd does not report name of working directory"
1315
1316
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\).*/{
1340 s//\1/
1341 q
1342 }
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1347 fi
1348 else
1349 ac_srcdir_defaulted=no
1350 fi
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1354 fi
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 case $srcdir in
1370 *" "*)
1371 as_fn_error "path to source, $srcdir, contains spaces"
1372 ;;
1373 esac
1374 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1375
1376 for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 done
1382
1383 #
1384 # Report the --help message.
1385 #
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390 \`configure' configures this package to adapt to many kinds of systems.
1391
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397 Defaults for the options are specified in brackets.
1398
1399 Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 [PREFIX]
1415
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1420
1421 For better control, use the options below.
1422
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1443 _ACEOF
1444
1445 cat <<\_ACEOF
1446
1447 Program names:
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451
1452 System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 --target=TARGET configure for building compilers for TARGET [HOST]
1456 _ACEOF
1457 fi
1458
1459 if test -n "$ac_init_help"; then
1460
1461 cat <<\_ACEOF
1462
1463 Optional Features:
1464 --disable-option-checking ignore unrecognized --enable/--with options
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --enable-as-accelerator-for=ARG
1468 build as offload target compiler. Specify offload
1469 host triple by ARG
1470 --enable-offload-targets=LIST
1471 enable offloading to devices from comma-separated
1472 LIST of TARGET[=DIR]. Use optional path to find
1473 offload target compiler during the build
1474 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1475 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1476 --disable-libquadmath do not build libquadmath directory
1477 --disable-libquadmath-support
1478 disable libquadmath support for Fortran
1479 --enable-libada build libada directory
1480 --enable-libssp build libssp directory
1481 --disable-libstdcxx do not build libstdc++-v3 directory
1482 --enable-liboffloadmic=ARG
1483 build liboffloadmic [ARG={no,host,target}]
1484 --enable-static-libjava[=ARG]
1485 build static libjava [default=no]
1486 --enable-bootstrap enable bootstrapping [yes if native build]
1487 --disable-isl-version-check
1488 disable check for ISL version
1489 --enable-lto enable link time optimization support
1490 --enable-linker-plugin-configure-flags=FLAGS
1491 additional flags for configuring linker plugins
1492 [none]
1493 --enable-linker-plugin-flags=FLAGS
1494 additional flags for configuring and building linker
1495 plugins [none]
1496 --enable-stage1-languages[=all]
1497 choose additional languages to build during stage1.
1498 Mostly useful for compiler development
1499 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1500 Objective-C runtime
1501 --enable-vtable-verify Enable vtable verification feature
1502 --enable-serial-[{host,target,build}-]configure
1503 force sequential configuration of sub-packages for
1504 the host, target or build machine, or all
1505 sub-packages
1506 --enable-maintainer-mode
1507 enable make rules and dependencies not useful (and
1508 sometimes confusing) to the casual installer
1509 --enable-stage1-checking[=all]
1510 choose additional checking for stage1 of the
1511 compiler
1512 --enable-werror enable -Werror in bootstrap stage2 and later
1513 --enable-host-shared build host code as shared libraries
1514
1515 Optional Packages:
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-build-libsubdir=DIR Directory where to find libraries for build system
1519 --with-mpc=PATH specify prefix directory for installed MPC package.
1520 Equivalent to --with-mpc-include=PATH/include plus
1521 --with-mpc-lib=PATH/lib
1522 --with-mpc-include=PATH specify directory for installed MPC include files
1523 --with-mpc-lib=PATH specify directory for the installed MPC library
1524 --with-mpfr-dir=PATH this option has been REMOVED
1525 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1526 Equivalent to --with-mpfr-include=PATH/include plus
1527 --with-mpfr-lib=PATH/lib
1528 --with-mpfr-include=PATH
1529 specify directory for installed MPFR include files
1530 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1531 --with-gmp-dir=PATH this option has been REMOVED
1532 --with-gmp=PATH specify prefix directory for the installed GMP
1533 package. Equivalent to
1534 --with-gmp-include=PATH/include plus
1535 --with-gmp-lib=PATH/lib
1536 --with-gmp-include=PATH specify directory for installed GMP include files
1537 --with-gmp-lib=PATH specify directory for the installed GMP library
1538 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1539 linking with PPL
1540 --with-stage1-libs=LIBS libraries for stage1
1541 --with-stage1-ldflags=FLAGS
1542 linker flags for stage1
1543 --with-boot-libs=LIBS libraries for stage2 and later
1544 --with-boot-ldflags=FLAGS
1545 linker flags for stage2 and later
1546 --with-isl=PATH Specify prefix directory for the installed ISL
1547 package. Equivalent to
1548 --with-isl-include=PATH/include plus
1549 --with-isl-lib=PATH/lib
1550 --with-isl-include=PATH Specify directory for installed ISL include files
1551 --with-isl-lib=PATH Specify the directory for the installed ISL library
1552 --with-build-sysroot=SYSROOT
1553 use sysroot as the system root during the build
1554 --with-debug-prefix-map='A=B C=D ...'
1555 map A to B, C to D ... in debug information
1556 --with-build-config='NAME NAME2...'
1557 use config/NAME.mk build configuration
1558 --with-build-time-tools=PATH
1559 use given path to find target tools during the build
1560
1561 Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
1569 CXX C++ compiler command
1570 CXXFLAGS C++ compiler flags
1571 build_configargs
1572 additional configure arguments for build directories
1573 host_configargs
1574 additional configure arguments for host directories
1575 target_configargs
1576 additional configure arguments for target directories
1577 AR AR for the host
1578 AS AS for the host
1579 DLLTOOL DLLTOOL for the host
1580 LD LD for the host
1581 LIPO LIPO for the host
1582 NM NM for the host
1583 RANLIB RANLIB for the host
1584 STRIP STRIP for the host
1585 WINDRES WINDRES for the host
1586 WINDMC WINDMC for the host
1587 OBJCOPY OBJCOPY for the host
1588 OBJDUMP OBJDUMP for the host
1589 READELF READELF for the host
1590 CC_FOR_TARGET
1591 CC for the target
1592 CXX_FOR_TARGET
1593 CXX for the target
1594 GCC_FOR_TARGET
1595 GCC for the target
1596 GCJ_FOR_TARGET
1597 GCJ for the target
1598 GFORTRAN_FOR_TARGET
1599 GFORTRAN for the target
1600 GOC_FOR_TARGET
1601 GOC for the target
1602 AR_FOR_TARGET
1603 AR for the target
1604 AS_FOR_TARGET
1605 AS for the target
1606 DLLTOOL_FOR_TARGET
1607 DLLTOOL for the target
1608 LD_FOR_TARGET
1609 LD for the target
1610 LIPO_FOR_TARGET
1611 LIPO for the target
1612 NM_FOR_TARGET
1613 NM for the target
1614 OBJDUMP_FOR_TARGET
1615 OBJDUMP for the target
1616 RANLIB_FOR_TARGET
1617 RANLIB for the target
1618 READELF_FOR_TARGET
1619 READELF for the target
1620 STRIP_FOR_TARGET
1621 STRIP for the target
1622 WINDRES_FOR_TARGET
1623 WINDRES for the target
1624 WINDMC_FOR_TARGET
1625 WINDMC for the target
1626
1627 Use these variables to override the choices made by `configure' or to help
1628 it to find libraries and programs with nonstandard names/locations.
1629
1630 Report bugs to the package provider.
1631 _ACEOF
1632 ac_status=$?
1633 fi
1634
1635 if test "$ac_init_help" = "recursive"; then
1636 # If there are subdirs, report their specific --help.
1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1638 test -d "$ac_dir" ||
1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1640 continue
1641 ac_builddir=.
1642
1643 case "$ac_dir" in
1644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645 *)
1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1647 # A ".." for each directory in $ac_dir_suffix.
1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1649 case $ac_top_builddir_sub in
1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1652 esac ;;
1653 esac
1654 ac_abs_top_builddir=$ac_pwd
1655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656 # for backward compatibility:
1657 ac_top_builddir=$ac_top_build_prefix
1658
1659 case $srcdir in
1660 .) # We are building in place.
1661 ac_srcdir=.
1662 ac_top_srcdir=$ac_top_builddir_sub
1663 ac_abs_top_srcdir=$ac_pwd ;;
1664 [\\/]* | ?:[\\/]* ) # Absolute name.
1665 ac_srcdir=$srcdir$ac_dir_suffix;
1666 ac_top_srcdir=$srcdir
1667 ac_abs_top_srcdir=$srcdir ;;
1668 *) # Relative name.
1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670 ac_top_srcdir=$ac_top_build_prefix$srcdir
1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1672 esac
1673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1674
1675 cd "$ac_dir" || { ac_status=$?; continue; }
1676 # Check for guested configure.
1677 if test -f "$ac_srcdir/configure.gnu"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680 elif test -f "$ac_srcdir/configure"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure" --help=recursive
1683 else
1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685 fi || ac_status=$?
1686 cd "$ac_pwd" || { ac_status=$?; break; }
1687 done
1688 fi
1689
1690 test -n "$ac_init_help" && exit $ac_status
1691 if $ac_init_version; then
1692 cat <<\_ACEOF
1693 configure
1694 generated by GNU Autoconf 2.64
1695
1696 Copyright (C) 2009 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1699 _ACEOF
1700 exit
1701 fi
1702
1703 ## ------------------------ ##
1704 ## Autoconf initialization. ##
1705 ## ------------------------ ##
1706
1707 # ac_fn_c_try_compile LINENO
1708 # --------------------------
1709 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_compile ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1727 fi
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=1
1739 fi
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 return $ac_retval
1742
1743 } # ac_fn_c_try_compile
1744
1745 # ac_fn_cxx_try_compile LINENO
1746 # ----------------------------
1747 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_cxx_try_compile ()
1749 {
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext
1752 if { { ac_try="$ac_compile"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_compile") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1765 fi
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_cxx_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest.$ac_objext; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1775
1776 ac_retval=1
1777 fi
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 return $ac_retval
1780
1781 } # ac_fn_cxx_try_compile
1782
1783 # ac_fn_cxx_try_link LINENO
1784 # -------------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_cxx_try_link ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_cxx_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 $as_test_x conftest$ac_exeext
1811 }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818 fi
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825 return $ac_retval
1826
1827 } # ac_fn_cxx_try_link
1828
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_link ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1849 fi
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 $as_test_x conftest$ac_exeext
1857 }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864 fi
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1872
1873 } # ac_fn_c_try_link
1874 cat >config.log <<_ACEOF
1875 This file contains any messages produced by compilers while
1876 running configure, to aid debugging if configure makes a mistake.
1877
1878 It was created by $as_me, which was
1879 generated by GNU Autoconf 2.64. Invocation command line was
1880
1881 $ $0 $@
1882
1883 _ACEOF
1884 exec 5>>config.log
1885 {
1886 cat <<_ASUNAME
1887 ## --------- ##
1888 ## Platform. ##
1889 ## --------- ##
1890
1891 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1892 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1893 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1894 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1895 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1896
1897 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1898 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1899
1900 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1901 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1902 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1903 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1904 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1905 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1906 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1907
1908 _ASUNAME
1909
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1912 do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 $as_echo "PATH: $as_dir"
1916 done
1917 IFS=$as_save_IFS
1918
1919 } >&5
1920
1921 cat >&5 <<_ACEOF
1922
1923
1924 ## ----------- ##
1925 ## Core tests. ##
1926 ## ----------- ##
1927
1928 _ACEOF
1929
1930
1931 # Keep a trace of the command line.
1932 # Strip out --no-create and --no-recursion so they do not pile up.
1933 # Strip out --silent because we don't want to record it for future runs.
1934 # Also quote any args containing shell meta-characters.
1935 # Make two passes to allow for proper duplicate-argument suppression.
1936 ac_configure_args=
1937 ac_configure_args0=
1938 ac_configure_args1=
1939 ac_must_keep_next=false
1940 for ac_pass in 1 2
1941 do
1942 for ac_arg
1943 do
1944 case $ac_arg in
1945 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1947 | -silent | --silent | --silen | --sile | --sil)
1948 continue ;;
1949 *\'*)
1950 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1951 esac
1952 case $ac_pass in
1953 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1954 2)
1955 as_fn_append ac_configure_args1 " '$ac_arg'"
1956 if test $ac_must_keep_next = true; then
1957 ac_must_keep_next=false # Got value, back to normal.
1958 else
1959 case $ac_arg in
1960 *=* | --config-cache | -C | -disable-* | --disable-* \
1961 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1962 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1963 | -with-* | --with-* | -without-* | --without-* | --x)
1964 case "$ac_configure_args0 " in
1965 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1966 esac
1967 ;;
1968 -* ) ac_must_keep_next=true ;;
1969 esac
1970 fi
1971 as_fn_append ac_configure_args " '$ac_arg'"
1972 ;;
1973 esac
1974 done
1975 done
1976 { ac_configure_args0=; unset ac_configure_args0;}
1977 { ac_configure_args1=; unset ac_configure_args1;}
1978
1979 # When interrupted or exit'd, cleanup temporary files, and complete
1980 # config.log. We remove comments because anyway the quotes in there
1981 # would cause problems or look ugly.
1982 # WARNING: Use '\'' to represent an apostrophe within the trap.
1983 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1984 trap 'exit_status=$?
1985 # Save into config.log some information that might help in debugging.
1986 {
1987 echo
1988
1989 cat <<\_ASBOX
1990 ## ---------------- ##
1991 ## Cache variables. ##
1992 ## ---------------- ##
1993 _ASBOX
1994 echo
1995 # The following way of writing the cache mishandles newlines in values,
1996 (
1997 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998 eval ac_val=\$$ac_var
1999 case $ac_val in #(
2000 *${as_nl}*)
2001 case $ac_var in #(
2002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2004 esac
2005 case $ac_var in #(
2006 _ | IFS | as_nl) ;; #(
2007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008 *) { eval $ac_var=; unset $ac_var;} ;;
2009 esac ;;
2010 esac
2011 done
2012 (set) 2>&1 |
2013 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2014 *${as_nl}ac_space=\ *)
2015 sed -n \
2016 "s/'\''/'\''\\\\'\'''\''/g;
2017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2018 ;; #(
2019 *)
2020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2021 ;;
2022 esac |
2023 sort
2024 )
2025 echo
2026
2027 cat <<\_ASBOX
2028 ## ----------------- ##
2029 ## Output variables. ##
2030 ## ----------------- ##
2031 _ASBOX
2032 echo
2033 for ac_var in $ac_subst_vars
2034 do
2035 eval ac_val=\$$ac_var
2036 case $ac_val in
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 esac
2039 $as_echo "$ac_var='\''$ac_val'\''"
2040 done | sort
2041 echo
2042
2043 if test -n "$ac_subst_files"; then
2044 cat <<\_ASBOX
2045 ## ------------------- ##
2046 ## File substitutions. ##
2047 ## ------------------- ##
2048 _ASBOX
2049 echo
2050 for ac_var in $ac_subst_files
2051 do
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
2057 done | sort
2058 echo
2059 fi
2060
2061 if test -s confdefs.h; then
2062 cat <<\_ASBOX
2063 ## ----------- ##
2064 ## confdefs.h. ##
2065 ## ----------- ##
2066 _ASBOX
2067 echo
2068 cat confdefs.h
2069 echo
2070 fi
2071 test "$ac_signal" != 0 &&
2072 $as_echo "$as_me: caught signal $ac_signal"
2073 $as_echo "$as_me: exit $exit_status"
2074 } >&5
2075 rm -f core *.core core.conftest.* &&
2076 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2077 exit $exit_status
2078 ' 0
2079 for ac_signal in 1 2 13 15; do
2080 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2081 done
2082 ac_signal=0
2083
2084 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2085 rm -f -r conftest* confdefs.h
2086
2087 $as_echo "/* confdefs.h */" > confdefs.h
2088
2089 # Predefined preprocessor variables.
2090
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_NAME "$PACKAGE_NAME"
2093 _ACEOF
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2097 _ACEOF
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2101 _ACEOF
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_STRING "$PACKAGE_STRING"
2105 _ACEOF
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109 _ACEOF
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_URL "$PACKAGE_URL"
2113 _ACEOF
2114
2115
2116 # Let the site file select an alternate cache file if it wants to.
2117 # Prefer an explicitly selected file to automatically selected ones.
2118 ac_site_file1=NONE
2119 ac_site_file2=NONE
2120 if test -n "$CONFIG_SITE"; then
2121 ac_site_file1=$CONFIG_SITE
2122 elif test "x$prefix" != xNONE; then
2123 ac_site_file1=$prefix/share/config.site
2124 ac_site_file2=$prefix/etc/config.site
2125 else
2126 ac_site_file1=$ac_default_prefix/share/config.site
2127 ac_site_file2=$ac_default_prefix/etc/config.site
2128 fi
2129 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2130 do
2131 test "x$ac_site_file" = xNONE && continue
2132 if test -r "$ac_site_file"; then
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2135 sed 's/^/| /' "$ac_site_file" >&5
2136 . "$ac_site_file"
2137 fi
2138 done
2139
2140 if test -r "$cache_file"; then
2141 # Some versions of bash will fail to source /dev/null (special
2142 # files actually), so we avoid doing that.
2143 if test -f "$cache_file"; then
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2145 $as_echo "$as_me: loading cache $cache_file" >&6;}
2146 case $cache_file in
2147 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2148 *) . "./$cache_file";;
2149 esac
2150 fi
2151 else
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2153 $as_echo "$as_me: creating cache $cache_file" >&6;}
2154 >$cache_file
2155 fi
2156
2157 # Check that the precious variables saved in the cache have kept the same
2158 # value.
2159 ac_cache_corrupted=false
2160 for ac_var in $ac_precious_vars; do
2161 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2162 eval ac_new_set=\$ac_env_${ac_var}_set
2163 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2164 eval ac_new_val=\$ac_env_${ac_var}_value
2165 case $ac_old_set,$ac_new_set in
2166 set,)
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2168 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2169 ac_cache_corrupted=: ;;
2170 ,set)
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2172 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2173 ac_cache_corrupted=: ;;
2174 ,);;
2175 *)
2176 if test "x$ac_old_val" != "x$ac_new_val"; then
2177 # differences in whitespace do not lead to failure.
2178 ac_old_val_w=`echo x $ac_old_val`
2179 ac_new_val_w=`echo x $ac_new_val`
2180 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2182 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2183 ac_cache_corrupted=:
2184 else
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2186 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2187 eval $ac_var=\$ac_old_val
2188 fi
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2190 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2192 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2193 fi;;
2194 esac
2195 # Pass precious variables to config.status.
2196 if test "$ac_new_set" = set; then
2197 case $ac_new_val in
2198 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2199 *) ac_arg=$ac_var=$ac_new_val ;;
2200 esac
2201 case " $ac_configure_args " in
2202 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2203 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2204 esac
2205 fi
2206 done
2207 if $ac_cache_corrupted; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2211 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2212 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2213 fi
2214 ## -------------------- ##
2215 ## Main body of script. ##
2216 ## -------------------- ##
2217
2218 ac_ext=c
2219 ac_cpp='$CPP $CPPFLAGS'
2220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232 progname=$0
2233 # if PWD already has a value, it is probably wrong.
2234 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2235
2236 # Export original configure arguments for use by sub-configures.
2237 # Quote arguments with shell meta charatcers.
2238 TOPLEVEL_CONFIGURE_ARGUMENTS=
2239 set -- "$progname" "$@"
2240 for ac_arg
2241 do
2242 case "$ac_arg" in
2243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2245 # if the argument is of the form -foo=baz, quote the baz part only
2246 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2247 *) ;;
2248 esac
2249 # Add the quoted argument to the list.
2250 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2251 done
2252 if test "$silent" = yes; then
2253 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2254 fi
2255 # Remove the initial space we just introduced and, as these will be
2256 # expanded by make, quote '$'.
2257 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2258
2259
2260 # Find the build, host, and target systems.
2261 ac_aux_dir=
2262 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2263 for ac_t in install-sh install.sh shtool; do
2264 if test -f "$ac_dir/$ac_t"; then
2265 ac_aux_dir=$ac_dir
2266 ac_install_sh="$ac_aux_dir/$ac_t -c"
2267 break 2
2268 fi
2269 done
2270 done
2271 if test -z "$ac_aux_dir"; then
2272 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2273 fi
2274
2275 # These three variables are undocumented and unsupported,
2276 # and are intended to be withdrawn in a future Autoconf release.
2277 # They can cause serious problems if a builder's source tree is in a directory
2278 # whose full name contains unusual characters.
2279 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2280 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2281 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2282
2283
2284 # Make sure we can run config.sub.
2285 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2286 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2287
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2289 $as_echo_n "checking build system type... " >&6; }
2290 if test "${ac_cv_build+set}" = set; then :
2291 $as_echo_n "(cached) " >&6
2292 else
2293 ac_build_alias=$build_alias
2294 test "x$ac_build_alias" = x &&
2295 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2296 test "x$ac_build_alias" = x &&
2297 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2298 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2299 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2300
2301 fi
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2303 $as_echo "$ac_cv_build" >&6; }
2304 case $ac_cv_build in
2305 *-*-*) ;;
2306 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2307 esac
2308 build=$ac_cv_build
2309 ac_save_IFS=$IFS; IFS='-'
2310 set x $ac_cv_build
2311 shift
2312 build_cpu=$1
2313 build_vendor=$2
2314 shift; shift
2315 # Remember, the first character of IFS is used to create $*,
2316 # except with old shells:
2317 build_os=$*
2318 IFS=$ac_save_IFS
2319 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2320
2321
2322 case ${build_alias} in
2323 "") build_noncanonical=${build} ;;
2324 *) build_noncanonical=${build_alias} ;;
2325 esac
2326
2327
2328
2329 case ${host_alias} in
2330 "") host_noncanonical=${build_noncanonical} ;;
2331 *) host_noncanonical=${host_alias} ;;
2332 esac
2333
2334
2335
2336 case ${target_alias} in
2337 "") target_noncanonical=${host_noncanonical} ;;
2338 *) target_noncanonical=${target_alias} ;;
2339 esac
2340
2341
2342
2343
2344 test "$host_noncanonical" = "$target_noncanonical" &&
2345 test "$program_prefix$program_suffix$program_transform_name" = \
2346 NONENONEs,x,x, &&
2347 program_transform_name=s,y,y,
2348
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2350 $as_echo_n "checking host system type... " >&6; }
2351 if test "${ac_cv_host+set}" = set; then :
2352 $as_echo_n "(cached) " >&6
2353 else
2354 if test "x$host_alias" = x; then
2355 ac_cv_host=$ac_cv_build
2356 else
2357 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2358 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2359 fi
2360
2361 fi
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2363 $as_echo "$ac_cv_host" >&6; }
2364 case $ac_cv_host in
2365 *-*-*) ;;
2366 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2367 esac
2368 host=$ac_cv_host
2369 ac_save_IFS=$IFS; IFS='-'
2370 set x $ac_cv_host
2371 shift
2372 host_cpu=$1
2373 host_vendor=$2
2374 shift; shift
2375 # Remember, the first character of IFS is used to create $*,
2376 # except with old shells:
2377 host_os=$*
2378 IFS=$ac_save_IFS
2379 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2380
2381
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2383 $as_echo_n "checking target system type... " >&6; }
2384 if test "${ac_cv_target+set}" = set; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 if test "x$target_alias" = x; then
2388 ac_cv_target=$ac_cv_host
2389 else
2390 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2391 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2392 fi
2393
2394 fi
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2396 $as_echo "$ac_cv_target" >&6; }
2397 case $ac_cv_target in
2398 *-*-*) ;;
2399 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2400 esac
2401 target=$ac_cv_target
2402 ac_save_IFS=$IFS; IFS='-'
2403 set x $ac_cv_target
2404 shift
2405 target_cpu=$1
2406 target_vendor=$2
2407 shift; shift
2408 # Remember, the first character of IFS is used to create $*,
2409 # except with old shells:
2410 target_os=$*
2411 IFS=$ac_save_IFS
2412 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2413
2414
2415 # The aliases save the names the user supplied, while $host etc.
2416 # will get canonicalized.
2417 test -n "$target_alias" &&
2418 test "$program_prefix$program_suffix$program_transform_name" = \
2419 NONENONEs,x,x, &&
2420 program_prefix=${target_alias}-
2421
2422 test "$program_prefix" != NONE &&
2423 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2424 # Use a double $ so make ignores it.
2425 test "$program_suffix" != NONE &&
2426 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2427 # Double any \ or $.
2428 # By default was `s,x,x', remove it if useless.
2429 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2430 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2431
2432
2433
2434 # Get 'install' or 'install-sh' and its variants.
2435 # Find a good install program. We prefer a C program (faster),
2436 # so one script is as good as another. But avoid the broken or
2437 # incompatible versions:
2438 # SysV /etc/install, /usr/sbin/install
2439 # SunOS /usr/etc/install
2440 # IRIX /sbin/install
2441 # AIX /bin/install
2442 # AmigaOS /C/install, which installs bootblocks on floppy discs
2443 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2444 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2445 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2446 # OS/2's system install, which has a completely different semantic
2447 # ./install, which can be erroneously created by make from ./install.sh.
2448 # Reject install programs that cannot install multiple files.
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2450 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2451 if test -z "$INSTALL"; then
2452 if test "${ac_cv_path_install+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 # Account for people who put trailing slashes in PATH elements.
2461 case $as_dir/ in #((
2462 ./ | .// | /[cC]/* | \
2463 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2464 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2465 /usr/ucb/* ) ;;
2466 *)
2467 # OSF1 and SCO ODT 3.0 have their own names for install.
2468 # Don't use installbsd from OSF since it installs stuff as root
2469 # by default.
2470 for ac_prog in ginstall scoinst install; do
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2473 if test $ac_prog = install &&
2474 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2475 # AIX install. It has an incompatible calling convention.
2476 :
2477 elif test $ac_prog = install &&
2478 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479 # program-specific install script used by HP pwplus--don't use.
2480 :
2481 else
2482 rm -rf conftest.one conftest.two conftest.dir
2483 echo one > conftest.one
2484 echo two > conftest.two
2485 mkdir conftest.dir
2486 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2487 test -s conftest.one && test -s conftest.two &&
2488 test -s conftest.dir/conftest.one &&
2489 test -s conftest.dir/conftest.two
2490 then
2491 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2492 break 3
2493 fi
2494 fi
2495 fi
2496 done
2497 done
2498 ;;
2499 esac
2500
2501 done
2502 IFS=$as_save_IFS
2503
2504 rm -rf conftest.one conftest.two conftest.dir
2505
2506 fi
2507 if test "${ac_cv_path_install+set}" = set; then
2508 INSTALL=$ac_cv_path_install
2509 else
2510 # As a last resort, use the slow shell script. Don't cache a
2511 # value for INSTALL within a source directory, because that will
2512 # break other packages using the cache if that directory is
2513 # removed, or if the value is a relative name.
2514 INSTALL=$ac_install_sh
2515 fi
2516 fi
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2518 $as_echo "$INSTALL" >&6; }
2519
2520 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2521 # It thinks the first close brace ends the variable substitution.
2522 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2523
2524 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2525
2526 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2527
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2529 $as_echo_n "checking whether ln works... " >&6; }
2530 if test "${acx_cv_prog_LN+set}" = set; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 rm -f conftestdata_t
2534 echo >conftestdata_f
2535 if ln conftestdata_f conftestdata_t 2>/dev/null
2536 then
2537 acx_cv_prog_LN=ln
2538 else
2539 acx_cv_prog_LN=no
2540 fi
2541 rm -f conftestdata_f conftestdata_t
2542
2543 fi
2544 if test $acx_cv_prog_LN = no; then
2545 LN="cp"
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2547 $as_echo "no, using $LN" >&6; }
2548 else
2549 LN="$acx_cv_prog_LN"
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2551 $as_echo "yes" >&6; }
2552 fi
2553
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2555 $as_echo_n "checking whether ln -s works... " >&6; }
2556 LN_S=$as_ln_s
2557 if test "$LN_S" = "ln -s"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2559 $as_echo "yes" >&6; }
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2562 $as_echo "no, using $LN_S" >&6; }
2563 fi
2564
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2566 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2567 if test "${ac_cv_path_SED+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2571 for ac_i in 1 2 3 4 5 6 7; do
2572 ac_script="$ac_script$as_nl$ac_script"
2573 done
2574 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2575 { ac_script=; unset ac_script;}
2576 if test -z "$SED"; then
2577 ac_path_SED_found=false
2578 # Loop through the user's path and test for each of PROGNAME-LIST
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_prog in sed gsed; do
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2587 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2588 # Check for GNU ac_path_SED and select it if it is found.
2589 # Check for GNU $ac_path_SED
2590 case `"$ac_path_SED" --version 2>&1` in
2591 *GNU*)
2592 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2593 *)
2594 ac_count=0
2595 $as_echo_n 0123456789 >"conftest.in"
2596 while :
2597 do
2598 cat "conftest.in" "conftest.in" >"conftest.tmp"
2599 mv "conftest.tmp" "conftest.in"
2600 cp "conftest.in" "conftest.nl"
2601 $as_echo '' >> "conftest.nl"
2602 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2604 as_fn_arith $ac_count + 1 && ac_count=$as_val
2605 if test $ac_count -gt ${ac_path_SED_max-0}; then
2606 # Best one so far, save it but keep looking for a better one
2607 ac_cv_path_SED="$ac_path_SED"
2608 ac_path_SED_max=$ac_count
2609 fi
2610 # 10*(2^10) chars as input seems more than enough
2611 test $ac_count -gt 10 && break
2612 done
2613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2614 esac
2615
2616 $ac_path_SED_found && break 3
2617 done
2618 done
2619 done
2620 IFS=$as_save_IFS
2621 if test -z "$ac_cv_path_SED"; then
2622 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2623 fi
2624 else
2625 ac_cv_path_SED=$SED
2626 fi
2627
2628 fi
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2630 $as_echo "$ac_cv_path_SED" >&6; }
2631 SED="$ac_cv_path_SED"
2632 rm -f conftest.sed
2633
2634 for ac_prog in gawk mawk nawk awk
2635 do
2636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2637 set dummy $ac_prog; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if test "${ac_cv_prog_AWK+set}" = set; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 if test -n "$AWK"; then
2644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_AWK="$ac_prog"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2656 fi
2657 done
2658 done
2659 IFS=$as_save_IFS
2660
2661 fi
2662 fi
2663 AWK=$ac_cv_prog_AWK
2664 if test -n "$AWK"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2666 $as_echo "$AWK" >&6; }
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2670 fi
2671
2672
2673 test -n "$AWK" && break
2674 done
2675
2676
2677 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2678
2679 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2680 # a relative path.
2681 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2682 INSTALL="${srcpwd}/install-sh -c"
2683 fi
2684
2685 # Set srcdir to "." if that's what it is.
2686 # This is important for multilib support.
2687 pwd=`${PWDCMD-pwd}`
2688 if test "${pwd}" = "${srcpwd}" ; then
2689 srcdir=.
2690 fi
2691
2692 topsrcdir=$srcpwd
2693
2694 extra_host_args=
2695
2696 ### To add a new directory to the tree, first choose whether it is a target
2697 ### or a host dependent tool. Then put it into the appropriate list
2698 ### (library or tools, host or target), doing a dependency sort.
2699
2700 # Subdirs will be configured in the order listed in build_configdirs,
2701 # configdirs, or target_configdirs; see the serialization section below.
2702
2703 # Dependency sorting is only needed when *configuration* must be done in
2704 # a particular order. In all cases a dependency should be specified in
2705 # the Makefile, whether or not it's implicitly specified here.
2706
2707 # Double entries in build_configdirs, configdirs, or target_configdirs may
2708 # cause circular dependencies and break everything horribly.
2709
2710 # these library is used by various programs built for the build
2711 # environment
2712 #
2713 build_libs="build-libiberty build-libcpp"
2714
2715 # these tools are built for the build environment
2716 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2717
2718 # these libraries are used by various programs built for the host environment
2719 #f
2720 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2721
2722 # these tools are built for the host environment
2723 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2724 # know that we are building the simulator.
2725 # binutils, gas and ld appear in that order because it makes sense to run
2726 # "make check" in that particular order.
2727 # If --enable-gold is used, "gold" may replace "ld".
2728 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1"
2729
2730 # libgcj represents the runtime libraries only used by gcj.
2731 libgcj="target-libffi \
2732 target-zlib \
2733 target-libjava"
2734
2735 # these libraries are built for the target environment, and are built after
2736 # the host libraries and the host tools (which may be a cross compiler)
2737 # Note that libiberty is not a target library.
2738 target_libraries="target-libgcc \
2739 target-libbacktrace \
2740 target-libgloss \
2741 target-newlib \
2742 target-libgomp \
2743 target-libcilkrts \
2744 target-liboffloadmic \
2745 target-libatomic \
2746 target-libitm \
2747 target-libstdc++-v3 \
2748 target-libsanitizer \
2749 target-libvtv \
2750 target-libssp \
2751 target-libquadmath \
2752 target-libgfortran \
2753 target-boehm-gc \
2754 ${libgcj} \
2755 target-libobjc \
2756 target-libada \
2757 target-libgo"
2758
2759 # these tools are built using the target libraries, and are intended to
2760 # run only in the target environment
2761 #
2762 # note: any program that *uses* libraries that are in the "target_libraries"
2763 # list belongs in this list.
2764 #
2765 target_tools="target-rda"
2766
2767 ################################################################################
2768
2769 ## All tools belong in one of the four categories, and are assigned above
2770 ## We assign ${configdirs} this way to remove all embedded newlines. This
2771 ## is important because configure will choke if they ever get through.
2772 ## ${configdirs} is directories we build using the host tools.
2773 ## ${target_configdirs} is directories we build using the target tools.
2774 configdirs=`echo ${host_libs} ${host_tools}`
2775 target_configdirs=`echo ${target_libraries} ${target_tools}`
2776 build_configdirs=`echo ${build_libs} ${build_tools}`
2777
2778
2779
2780 ################################################################################
2781
2782 srcname="gnu development package"
2783
2784 # This gets set non-empty for some net releases of packages.
2785 appdirs=""
2786
2787 # Define is_cross_compiler to save on calls to 'test'.
2788 is_cross_compiler=
2789 if test x"${host}" = x"${target}" ; then
2790 is_cross_compiler=no
2791 else
2792 is_cross_compiler=yes
2793 fi
2794
2795 # Find the build and target subdir names.
2796
2797 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2798 # have matching libraries, they should use host libraries: Makefile.tpl
2799 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2800 # However, they still use the build modules, because the corresponding
2801 # host modules (e.g. bison) are only built for the host when bootstrap
2802 # finishes. So:
2803 # - build_subdir is where we find build modules, and never changes.
2804 # - build_libsubdir is where we find build libraries, and can be overridden.
2805
2806 # Prefix 'build-' so this never conflicts with target_subdir.
2807 build_subdir="build-${build_noncanonical}"
2808
2809 # Check whether --with-build-libsubdir was given.
2810 if test "${with_build_libsubdir+set}" = set; then :
2811 withval=$with_build_libsubdir; build_libsubdir="$withval"
2812 else
2813 build_libsubdir="$build_subdir"
2814 fi
2815
2816 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2817 if ( test $srcdir = . && test -d gcc ) \
2818 || test -d $srcdir/../host-${host_noncanonical}; then
2819 host_subdir="host-${host_noncanonical}"
2820 else
2821 host_subdir=.
2822 fi
2823 # No prefix.
2824 target_subdir=${target_noncanonical}
2825
2826 # Be sure to cover against remnants of an in-tree build.
2827 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2828 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2829 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2830 fi
2831
2832 # Skipdirs are removed silently.
2833 skipdirs=
2834 # Noconfigdirs are removed loudly.
2835 noconfigdirs=""
2836
2837 use_gnu_ld=
2838 # Make sure we don't let GNU ld be added if we didn't want it.
2839 if test x$with_gnu_ld = xno ; then
2840 use_gnu_ld=no
2841 noconfigdirs="$noconfigdirs ld gold"
2842 fi
2843
2844 use_gnu_as=
2845 # Make sure we don't let GNU as be added if we didn't want it.
2846 if test x$with_gnu_as = xno ; then
2847 use_gnu_as=no
2848 noconfigdirs="$noconfigdirs gas"
2849 fi
2850
2851 use_included_zlib=
2852 # Make sure we don't let ZLIB be added if we didn't want it.
2853 if test x$with_system_zlib = xyes ; then
2854 use_included_zlib=no
2855 noconfigdirs="$noconfigdirs zlib"
2856 fi
2857
2858 # some tools are so dependent upon X11 that if we're not building with X,
2859 # it's not even worth trying to configure, much less build, that tool.
2860
2861 case ${with_x} in
2862 yes | "") ;; # the default value for this tree is that X11 is available
2863 no)
2864 skipdirs="${skipdirs} tk itcl libgui"
2865 # We won't be able to build gdbtk without X.
2866 enable_gdbtk=no
2867 ;;
2868 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2869 esac
2870
2871 # Some are only suitable for cross toolchains.
2872 # Remove these if host=target.
2873 cross_only="target-libgloss target-newlib target-opcodes"
2874
2875 case $is_cross_compiler in
2876 no) skipdirs="${skipdirs} ${cross_only}" ;;
2877 esac
2878
2879 # If both --with-headers and --with-libs are specified, default to
2880 # --without-newlib.
2881 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2882 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2883 if test x"${with_newlib}" = x ; then
2884 with_newlib=no
2885 fi
2886 fi
2887
2888 # Recognize --with-newlib/--without-newlib.
2889 case ${with_newlib} in
2890 no) skipdirs="${skipdirs} target-newlib" ;;
2891 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2892 esac
2893
2894 # Check whether --enable-as-accelerator-for was given.
2895 if test "${enable_as_accelerator_for+set}" = set; then :
2896 enableval=$enable_as_accelerator_for; ENABLE_AS_ACCELERATOR_FOR=$enableval
2897 else
2898 ENABLE_AS_ACCELERATOR_FOR=no
2899 fi
2900
2901
2902 # Check whether --enable-offload-targets was given.
2903 if test "${enable_offload_targets+set}" = set; then :
2904 enableval=$enable_offload_targets;
2905 if test x"$enable_offload_targets" = x; then
2906 as_fn_error "no offload targets specified" "$LINENO" 5
2907 fi
2908
2909 else
2910 enable_offload_targets=
2911 fi
2912
2913
2914 # Handle --enable-gold, --enable-ld.
2915 # --disable-gold [--enable-ld]
2916 # Build only ld. Default option.
2917 # --enable-gold [--enable-ld]
2918 # Build both gold and ld. Install gold as "ld.gold", install ld
2919 # as "ld.bfd" and "ld".
2920 # --enable-gold=default [--enable-ld]
2921 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2922 # install ld as "ld.bfd".
2923 # --enable-gold[=default] --disable-ld
2924 # Build only gold, which is then installed as both "ld.gold" and "ld".
2925 # --enable-gold --enable-ld=default
2926 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2927 # and ld.bfd).
2928 # In other words, ld is default
2929 # --enable-gold=default --enable-ld=default
2930 # Error.
2931
2932 default_ld=
2933 # Check whether --enable-gold was given.
2934 if test "${enable_gold+set}" = set; then :
2935 enableval=$enable_gold; ENABLE_GOLD=$enableval
2936 else
2937 ENABLE_GOLD=no
2938 fi
2939
2940 case "${ENABLE_GOLD}" in
2941 yes|default)
2942 # Check for ELF target.
2943 is_elf=no
2944 case "${target}" in
2945 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2946 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2947 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2948 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2949 case "${target}" in
2950 *-*-linux*aout* | *-*-linux*oldld*)
2951 ;;
2952 *)
2953 is_elf=yes
2954 ;;
2955 esac
2956 esac
2957
2958 if test "$is_elf" = "yes"; then
2959 # Check for target supported by gold.
2960 case "${target}" in
2961 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2962 | aarch64*-*-* | tilegx*-*-*)
2963 configdirs="$configdirs gold"
2964 if test x${ENABLE_GOLD} = xdefault; then
2965 default_ld=gold
2966 fi
2967 ENABLE_GOLD=yes
2968 ;;
2969 esac
2970 fi
2971 ;;
2972 no)
2973 ;;
2974 *)
2975 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2976 ;;
2977 esac
2978
2979 # Check whether --enable-ld was given.
2980 if test "${enable_ld+set}" = set; then :
2981 enableval=$enable_ld; ENABLE_LD=$enableval
2982 else
2983 ENABLE_LD=yes
2984 fi
2985
2986
2987 case "${ENABLE_LD}" in
2988 default)
2989 if test x${default_ld} != x; then
2990 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2991 fi
2992 ;;
2993 yes)
2994 ;;
2995 no)
2996 if test x${ENABLE_GOLD} != xyes; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2998 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2999 fi
3000 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3001 ;;
3002 *)
3003 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3004 ;;
3005 esac
3006
3007 # Configure extra directories which are host specific
3008
3009 case "${host}" in
3010 *-cygwin*)
3011 configdirs="$configdirs libtermcap" ;;
3012 esac
3013
3014 # A target can indicate whether a language isn't supported for some reason.
3015 # Only spaces may be used in this macro; not newlines or tabs.
3016 unsupported_languages=
3017
3018 # Remove more programs from consideration, based on the host or
3019 # target this usually means that a port of the program doesn't
3020 # exist yet.
3021
3022 case "${host}" in
3023 i[3456789]86-*-msdosdjgpp*)
3024 noconfigdirs="$noconfigdirs tcl tk itcl"
3025 ;;
3026 esac
3027
3028
3029 # Check whether --enable-libquadmath was given.
3030 if test "${enable_libquadmath+set}" = set; then :
3031 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3032 else
3033 ENABLE_LIBQUADMATH=yes
3034 fi
3035
3036 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3037 noconfigdirs="$noconfigdirs target-libquadmath"
3038 fi
3039
3040
3041 # Check whether --enable-libquadmath-support was given.
3042 if test "${enable_libquadmath_support+set}" = set; then :
3043 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3044 else
3045 ENABLE_LIBQUADMATH_SUPPORT=yes
3046 fi
3047
3048 enable_libquadmath_support=
3049 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3050 enable_libquadmath_support=no
3051 fi
3052
3053
3054 # Check whether --enable-libada was given.
3055 if test "${enable_libada+set}" = set; then :
3056 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3057 else
3058 ENABLE_LIBADA=yes
3059 fi
3060
3061 if test "${ENABLE_LIBADA}" != "yes" ; then
3062 noconfigdirs="$noconfigdirs gnattools"
3063 fi
3064
3065 # Check whether --enable-libssp was given.
3066 if test "${enable_libssp+set}" = set; then :
3067 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3068 else
3069 ENABLE_LIBSSP=yes
3070 fi
3071
3072
3073 # Check whether --enable-libstdcxx was given.
3074 if test "${enable_libstdcxx+set}" = set; then :
3075 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3076 else
3077 ENABLE_LIBSTDCXX=default
3078 fi
3079
3080 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3081 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3082 fi
3083
3084 # If this is accelerator compiler and its target is intelmic we enable
3085 # target liboffloadmic by default. If this is compiler with offloading
3086 # for intelmic we enable host liboffloadmic by default. Otherwise
3087 # liboffloadmic is disabled by default.
3088 # Check whether --enable-liboffloadmic was given.
3089 if test "${enable_liboffloadmic+set}" = set; then :
3090 enableval=$enable_liboffloadmic; case "$enableval" in
3091 no | host | target)
3092 enable_liboffloadmic=$enableval ;;
3093 *)
3094 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3095 esac
3096 else
3097 if test "${ENABLE_AS_ACCELERATOR_FOR}" != "no"; then
3098 case "${target}" in
3099 *-intelmic-* | *-intelmicemul-*)
3100 enable_liboffloadmic=target
3101 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3102 ;;
3103 *)
3104 enable_liboffloadmic=no
3105 ;;
3106 esac
3107 else
3108 case "${enable_offload_targets}" in
3109 *-intelmic-* | *-intelmicemul-*)
3110 enable_liboffloadmic=host
3111 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3112 ;;
3113 *)
3114 enable_liboffloadmic=no
3115 ;;
3116 esac
3117 fi
3118 fi
3119
3120
3121
3122 # Save it here so that, even in case of --enable-libgcj, if the Java
3123 # front-end isn't enabled, we still get libgcj disabled.
3124 libgcj_saved=$libgcj
3125 case $enable_libgcj in
3126 yes)
3127 # If we reset it here, it won't get added to noconfigdirs in the
3128 # target-specific build rules, so it will be forcibly enabled
3129 # (unless the Java language itself isn't enabled).
3130 libgcj=
3131 ;;
3132 no)
3133 # Make sure we get it printed in the list of not supported target libs.
3134 # Don't disable libffi, though, other languages use it.
3135 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3136 # Clear libgcj_saved so that even if java is enabled libffi won't be
3137 # built.
3138 libgcj_saved=
3139 ;;
3140 esac
3141
3142 # Check whether --enable-static-libjava was given.
3143 if test "${enable_static_libjava+set}" = set; then :
3144 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3145 else
3146 ENABLE_STATIC_LIBJAVA=no
3147 fi
3148
3149 enable_static_libjava=
3150 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3151 enable_static_libjava=yes
3152 fi
3153
3154 if test x$enable_static_libjava != xyes ; then
3155 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3156 fi
3157
3158
3159 # Disable libgomp on non POSIX hosted systems.
3160 if test x$enable_libgomp = x ; then
3161 # Enable libgomp by default on hosted POSIX systems.
3162 case "${target}" in
3163 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3164 ;;
3165 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3166 ;;
3167 *-*-solaris2* | *-*-hpux11*)
3168 ;;
3169 *-*-darwin* | *-*-aix*)
3170 ;;
3171 *)
3172 noconfigdirs="$noconfigdirs target-libgomp"
3173 ;;
3174 esac
3175 fi
3176
3177 # Disable libatomic on unsupported systems.
3178 if test -d ${srcdir}/libatomic; then
3179 if test x$enable_libatomic = x; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3181 $as_echo_n "checking for libatomic support... " >&6; }
3182 if (srcdir=${srcdir}/libatomic; \
3183 . ${srcdir}/configure.tgt; \
3184 test -n "$UNSUPPORTED")
3185 then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 noconfigdirs="$noconfigdirs target-libatomic"
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191 $as_echo "yes" >&6; }
3192 fi
3193 fi
3194 fi
3195
3196 # Disable libcilkrts on unsupported systems.
3197 if test -d ${srcdir}/libcilkrts; then
3198 if test x$enable_libcilkrts = x; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3200 $as_echo_n "checking for libcilkrts support... " >&6; }
3201 if (srcdir=${srcdir}/libcilkrts; \
3202 . ${srcdir}/configure.tgt; \
3203 test -n "$UNSUPPORTED")
3204 then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 noconfigdirs="$noconfigdirs target-libcilkrts"
3208 else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3210 $as_echo "yes" >&6; }
3211 fi
3212 fi
3213 fi
3214
3215 # Disable liboffloadmic on unsupported systems.
3216 if test -d ${srcdir}/liboffloadmic; then
3217 if test x$enable_liboffloadmic != xno; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3219 $as_echo_n "checking for liboffloadmic support... " >&6; }
3220 if (srcdir=${srcdir}/liboffloadmic; \
3221 . ${srcdir}/configure.tgt; \
3222 test -n "$UNSUPPORTED")
3223 then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 noconfigdirs="$noconfigdirs target-liboffloadmic"
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3229 $as_echo "yes" >&6; }
3230 fi
3231 fi
3232 fi
3233
3234 # Disable libitm on unsupported systems.
3235 if test -d ${srcdir}/libitm; then
3236 if test x$enable_libitm = x; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3238 $as_echo_n "checking for libitm support... " >&6; }
3239 if (srcdir=${srcdir}/libitm; \
3240 . ${srcdir}/configure.tgt; \
3241 test -n "$UNSUPPORTED")
3242 then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 noconfigdirs="$noconfigdirs target-libitm"
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248 $as_echo "yes" >&6; }
3249 fi
3250 fi
3251 fi
3252
3253 # Disable libsanitizer on unsupported systems.
3254 if test -d ${srcdir}/libsanitizer; then
3255 if test x$enable_libsanitizer = x; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3257 $as_echo_n "checking for libsanitizer support... " >&6; }
3258 if (srcdir=${srcdir}/libsanitizer; \
3259 . ${srcdir}/configure.tgt; \
3260 test -n "$UNSUPPORTED")
3261 then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 noconfigdirs="$noconfigdirs target-libsanitizer"
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267 $as_echo "yes" >&6; }
3268 fi
3269 fi
3270 fi
3271
3272 # Disable libvtv on unsupported systems.
3273 if test -d ${srcdir}/libvtv; then
3274 if test x$enable_libvtv = x; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3276 $as_echo_n "checking for libvtv support... " >&6; }
3277 if (srcdir=${srcdir}/libvtv; \
3278 . ${srcdir}/configure.tgt; \
3279 test "$VTV_SUPPORTED" != "yes")
3280 then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 noconfigdirs="$noconfigdirs target-libvtv"
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286 $as_echo "yes" >&6; }
3287 fi
3288 fi
3289 fi
3290
3291 # Disable libquadmath for some systems.
3292 case "${target}" in
3293 avr-*-*)
3294 noconfigdirs="$noconfigdirs target-libquadmath"
3295 ;;
3296 # libquadmath is unused on AIX and libquadmath build process use of
3297 # LD_LIBRARY_PATH can break AIX bootstrap.
3298 powerpc-*-aix* | rs6000-*-aix*)
3299 noconfigdirs="$noconfigdirs target-libquadmath"
3300 ;;
3301 esac
3302
3303 # Disable libssp for some systems.
3304 case "${target}" in
3305 avr-*-*)
3306 # No hosted I/O support.
3307 noconfigdirs="$noconfigdirs target-libssp"
3308 ;;
3309 powerpc-*-aix* | rs6000-*-aix*)
3310 noconfigdirs="$noconfigdirs target-libssp"
3311 ;;
3312 rl78-*-*)
3313 # libssp uses a misaligned load to trigger a fault, but the RL78
3314 # doesn't fault for those - instead, it gives a build-time error
3315 # for explicit misaligned loads.
3316 noconfigdirs="$noconfigdirs target-libssp"
3317 ;;
3318 esac
3319
3320 # Disable libstdc++-v3 for some systems.
3321 # Allow user to override this if they pass --enable-libstdc++-v3
3322 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3323 case "${target}" in
3324 *-*-vxworks*)
3325 # VxWorks uses the Dinkumware C++ library.
3326 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3327 ;;
3328 arm*-wince-pe*)
3329 # the C++ libraries don't build on top of CE's C libraries
3330 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3331 ;;
3332 avr-*-*)
3333 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3334 ;;
3335 esac
3336 fi
3337
3338 # Disable Fortran for some systems.
3339 case "${target}" in
3340 mmix-*-*)
3341 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3342 unsupported_languages="$unsupported_languages fortran"
3343 ;;
3344 esac
3345
3346 # Disable Java if libffi is not supported.
3347 case "${target}" in
3348 aarch64-*-*)
3349 ;;
3350 alpha*-*-*)
3351 ;;
3352 arm*-*-*)
3353 ;;
3354 cris-*-*)
3355 ;;
3356 frv-*-*)
3357 ;;
3358 hppa*-*-linux*)
3359 ;;
3360 hppa*-*-hpux*)
3361 ;;
3362 i?86-*-*)
3363 ;;
3364 ia64*-*-*)
3365 ;;
3366 m32r*-*-*)
3367 ;;
3368 m68k-*-*)
3369 ;;
3370 mips*-*-rtems*)
3371 ;;
3372 mips*-*-linux*)
3373 ;;
3374 powerpc*-*-linux*)
3375 ;;
3376 powerpc-*-darwin*)
3377 ;;
3378 powerpc-*-aix* | rs6000-*-aix*)
3379 ;;
3380 powerpc-*-freebsd*)
3381 ;;
3382 powerpc64-*-freebsd*)
3383 ;;
3384 powerpc*-*-rtems*)
3385 ;;
3386 s390-*-* | s390x-*-*)
3387 ;;
3388 sh-*-* | sh[34]*-*-*)
3389 ;;
3390 sh64-*-* | sh5*-*-*)
3391 ;;
3392 sparc*-*-*)
3393 ;;
3394 x86_64-*-*)
3395 ;;
3396 *-*-*)
3397 unsupported_languages="$unsupported_languages java"
3398 ;;
3399 esac
3400
3401 # Disable Java, libgcj or related libraries for some systems.
3402 case "${target}" in
3403 powerpc-*-darwin*)
3404 ;;
3405 i[3456789]86-*-darwin*)
3406 ;;
3407 x86_64-*-darwin[912]*)
3408 ;;
3409 *-*-darwin*)
3410 noconfigdirs="$noconfigdirs ${libgcj}"
3411 ;;
3412 *-*-netware*)
3413 noconfigdirs="$noconfigdirs ${libgcj}"
3414 ;;
3415 *-*-rtems*)
3416 noconfigdirs="$noconfigdirs ${libgcj}"
3417 ;;
3418 *-*-tpf*)
3419 noconfigdirs="$noconfigdirs ${libgcj}"
3420 ;;
3421 *-*-uclinux*)
3422 noconfigdirs="$noconfigdirs ${libgcj}"
3423 ;;
3424 *-*-vxworks*)
3425 noconfigdirs="$noconfigdirs ${libgcj}"
3426 ;;
3427 alpha*-*-*vms*)
3428 noconfigdirs="$noconfigdirs ${libgcj}"
3429 ;;
3430 arm-wince-pe)
3431 noconfigdirs="$noconfigdirs ${libgcj}"
3432 ;;
3433 arm*-*-symbianelf*)
3434 noconfigdirs="$noconfigdirs ${libgcj}"
3435 ;;
3436 bfin-*-*)
3437 noconfigdirs="$noconfigdirs target-boehm-gc"
3438 ;;
3439 cris-*-* | crisv32-*-*)
3440 unsupported_languages="$unsupported_languages java"
3441 case "${target}" in
3442 *-*-linux*)
3443 ;;
3444 *) # See PR46792 regarding target-libffi.
3445 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3446 esac
3447 ;;
3448 hppa*64*-*-linux*)
3449 # In this case, it's because the hppa64-linux target is for
3450 # the kernel only at this point and has no libc, and thus no
3451 # headers, crt*.o, etc., all of which are needed by these.
3452 unsupported_languages="$unsupported_languages java"
3453 ;;
3454 hppa*64*-*-hpux*)
3455 noconfigdirs="$noconfigdirs ${libgcj}"
3456 ;;
3457 hppa*-hp-hpux11*)
3458 ;;
3459 hppa*-*-hpux*)
3460 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3461 # build on HP-UX 10.20.
3462 noconfigdirs="$noconfigdirs ${libgcj}"
3463 ;;
3464 ia64*-*-*vms*)
3465 noconfigdirs="$noconfigdirs ${libgcj}"
3466 ;;
3467 i[3456789]86-w64-mingw*)
3468 noconfigdirs="$noconfigdirs ${libgcj}"
3469 ;;
3470 i[3456789]86-*-mingw*)
3471 noconfigdirs="$noconfigdirs ${libgcj}"
3472 ;;
3473 x86_64-*-mingw*)
3474 noconfigdirs="$noconfigdirs ${libgcj}"
3475 ;;
3476 mmix-*-*)
3477 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3478 ;;
3479 powerpc-*-aix*)
3480 # copied from rs6000-*-* entry
3481 noconfigdirs="$noconfigdirs ${libgcj}"
3482 ;;
3483 rs6000-*-aix*)
3484 noconfigdirs="$noconfigdirs ${libgcj}"
3485 ;;
3486 *-*-lynxos*)
3487 noconfigdirs="$noconfigdirs ${libgcj}"
3488 ;;
3489 esac
3490
3491 # Disable the go frontend on systems where it is known to not work. Please keep
3492 # this in sync with contrib/config-list.mk.
3493 case "${target}" in
3494 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3495 unsupported_languages="$unsupported_languages go"
3496 ;;
3497 esac
3498
3499 # Disable libgo for some systems where it is known to not work.
3500 # For testing, you can easily override this with --enable-libgo.
3501 if test x$enable_libgo = x; then
3502 case "${target}" in
3503 *-*-darwin*)
3504 # PR 46986
3505 noconfigdirs="$noconfigdirs target-libgo"
3506 ;;
3507 *-*-cygwin* | *-*-mingw*)
3508 noconfigdirs="$noconfigdirs target-libgo"
3509 ;;
3510 *-*-aix*)
3511 noconfigdirs="$noconfigdirs target-libgo"
3512 ;;
3513 esac
3514 fi
3515
3516 # Default libgloss CPU subdirectory.
3517 libgloss_dir="$target_cpu"
3518
3519 case "${target}" in
3520 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3521 libgloss_dir=wince
3522 ;;
3523 aarch64*-*-* )
3524 libgloss_dir=aarch64
3525 ;;
3526 arm*-*-*)
3527 libgloss_dir=arm
3528 ;;
3529 cris-*-* | crisv32-*-*)
3530 libgloss_dir=cris
3531 ;;
3532 hppa*-*-*)
3533 libgloss_dir=pa
3534 ;;
3535 i[3456789]86-*-*)
3536 libgloss_dir=i386
3537 ;;
3538 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3539 libgloss_dir=m68hc11
3540 ;;
3541 m68*-*-* | fido-*-*)
3542 libgloss_dir=m68k
3543 ;;
3544 mips*-*-*)
3545 libgloss_dir=mips
3546 ;;
3547 powerpc*-*-*)
3548 libgloss_dir=rs6000
3549 ;;
3550 sparc*-*-*)
3551 libgloss_dir=sparc
3552 ;;
3553 esac
3554
3555 # Disable newlib and libgloss for various target OSes.
3556 case "${target}" in
3557 alpha*-dec-osf*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3559 ;;
3560 i[3456789]86-*-linux*)
3561 # This section makes it possible to build newlib natively on linux.
3562 # If we are using a cross compiler then don't configure newlib.
3563 if test x${is_cross_compiler} != xno ; then
3564 noconfigdirs="$noconfigdirs target-newlib"
3565 fi
3566 noconfigdirs="$noconfigdirs target-libgloss"
3567 # If we are not using a cross compiler, do configure newlib.
3568 # Note however, that newlib will only be configured in this situation
3569 # if the --with-newlib option has been given, because otherwise
3570 # 'target-newlib' will appear in skipdirs.
3571 ;;
3572 i[3456789]86-*-rdos*)
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3574 ;;
3575 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3576 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3577 ;;
3578 sparc-*-sunos4*)
3579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3580 ;;
3581 *-*-aix*)
3582 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3583 ;;
3584 *-*-beos*)
3585 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3586 ;;
3587 *-*-chorusos)
3588 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3589 ;;
3590 *-*-dragonfly*)
3591 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3592 ;;
3593 *-*-freebsd*)
3594 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3595 ;;
3596 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3597 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3598 ;;
3599 *-*-lynxos*)
3600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3601 ;;
3602 *-*-mingw*)
3603 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3604 ;;
3605 *-*-netbsd*)
3606 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3607 ;;
3608 *-*-netware*)
3609 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3610 ;;
3611 *-*-tpf*)
3612 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3613 ;;
3614 *-*-uclinux*)
3615 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3616 ;;
3617 *-*-vxworks*)
3618 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3619 ;;
3620 esac
3621
3622 case "${target}" in
3623 *-*-chorusos)
3624 ;;
3625 powerpc-*-darwin*)
3626 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3627 noconfigdirs="$noconfigdirs sim target-rda"
3628 ;;
3629 i[3456789]86-*-darwin*)
3630 noconfigdirs="$noconfigdirs ld gprof"
3631 noconfigdirs="$noconfigdirs sim target-rda"
3632 ;;
3633 x86_64-*-darwin[912]*)
3634 noconfigdirs="$noconfigdirs ld gas gprof"
3635 noconfigdirs="$noconfigdirs sim target-rda"
3636 ;;
3637 *-*-darwin*)
3638 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3639 noconfigdirs="$noconfigdirs sim target-rda"
3640 ;;
3641 *-*-dragonfly*)
3642 ;;
3643 *-*-freebsd*)
3644 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3645 && test -f /usr/local/include/gmp.h; then
3646 with_gmp=/usr/local
3647 fi
3648 ;;
3649 *-*-kaos*)
3650 # Remove unsupported stuff on all kaOS configurations.
3651 noconfigdirs="$noconfigdirs target-libgloss"
3652 ;;
3653 *-*-netbsd*)
3654 ;;
3655 *-*-netware*)
3656 ;;
3657 *-*-rtems*)
3658 noconfigdirs="$noconfigdirs target-libgloss"
3659 ;;
3660 # The tpf target doesn't support gdb yet.
3661 *-*-tpf*)
3662 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3663 ;;
3664 *-*-uclinux*)
3665 noconfigdirs="$noconfigdirs target-rda"
3666 ;;
3667 *-*-vxworks*)
3668 ;;
3669 alpha*-dec-osf*)
3670 # ld works, but does not support shared libraries.
3671 # gas doesn't generate exception information.
3672 noconfigdirs="$noconfigdirs gas ld"
3673 ;;
3674 alpha*-*-*vms*)
3675 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3676 ;;
3677 alpha*-*-*)
3678 # newlib is not 64 bit ready
3679 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3680 ;;
3681 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3682 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3683 ;;
3684 arc-*-*|arceb-*-*)
3685 noconfigdirs="$noconfigdirs target-libgloss"
3686 ;;
3687 arm-*-pe*)
3688 noconfigdirs="$noconfigdirs target-libgloss"
3689 ;;
3690 arm-*-riscix*)
3691 noconfigdirs="$noconfigdirs ld target-libgloss"
3692 ;;
3693 avr-*-rtems*)
3694 ;;
3695 avr-*-*)
3696 if test x${with_avrlibc} != xno; then
3697 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 fi
3699 ;;
3700 c4x-*-* | tic4x-*-*)
3701 noconfigdirs="$noconfigdirs target-libgloss"
3702 ;;
3703 tic54x-*-*)
3704 noconfigdirs="$noconfigdirs target-libgloss gdb"
3705 ;;
3706 d10v-*-*)
3707 noconfigdirs="$noconfigdirs target-libgloss"
3708 ;;
3709 d30v-*-*)
3710 noconfigdirs="$noconfigdirs gdb"
3711 ;;
3712 fr30-*-elf*)
3713 noconfigdirs="$noconfigdirs gdb"
3714 ;;
3715 moxie-*-*)
3716 noconfigdirs="$noconfigdirs gprof"
3717 ;;
3718 h8300*-*-*)
3719 noconfigdirs="$noconfigdirs target-libgloss"
3720 ;;
3721 h8500-*-*)
3722 noconfigdirs="$noconfigdirs target-libgloss"
3723 ;;
3724 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3725 ;;
3726 hppa*64*-*-linux*)
3727 ;;
3728 hppa*-*-linux*)
3729 ;;
3730 hppa*-*-*elf* | \
3731 hppa*-*-lites* | \
3732 hppa*-*-openbsd* | \
3733 hppa*64*-*-*)
3734 ;;
3735 hppa*-hp-hpux11*)
3736 noconfigdirs="$noconfigdirs ld"
3737 ;;
3738 hppa*-*-pro*)
3739 ;;
3740 hppa*-*-*)
3741 noconfigdirs="$noconfigdirs ld"
3742 ;;
3743 i960-*-*)
3744 noconfigdirs="$noconfigdirs gdb"
3745 ;;
3746 ia64*-*-elf*)
3747 # No gdb support yet.
3748 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3749 ;;
3750 ia64*-**-hpux*)
3751 # No ld support yet.
3752 noconfigdirs="$noconfigdirs libgui itcl ld"
3753 ;;
3754 ia64*-*-*vms*)
3755 # No ld support yet.
3756 noconfigdirs="$noconfigdirs libgui itcl ld"
3757 ;;
3758 i[3456789]86-w64-mingw*)
3759 ;;
3760 i[3456789]86-*-mingw*)
3761 target_configdirs="$target_configdirs target-winsup"
3762 ;;
3763 *-*-cygwin*)
3764 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3765 noconfigdirs="$noconfigdirs target-libgloss"
3766 # always build newlib if winsup directory is present.
3767 if test -d "$srcdir/winsup/cygwin"; then
3768 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3769 elif test -d "$srcdir/newlib"; then
3770 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3771 fi
3772 ;;
3773 i[3456789]86-*-pe)
3774 noconfigdirs="$noconfigdirs target-libgloss"
3775 ;;
3776 i[3456789]86-*-sco3.2v5*)
3777 # The linker does not yet know about weak symbols in COFF,
3778 # and is not configured to handle mixed ELF and COFF.
3779 noconfigdirs="$noconfigdirs ld target-libgloss"
3780 ;;
3781 i[3456789]86-*-sco*)
3782 noconfigdirs="$noconfigdirs gprof target-libgloss"
3783 ;;
3784 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3785 noconfigdirs="$noconfigdirs target-libgloss"
3786 ;;
3787 i[3456789]86-*-sysv4*)
3788 noconfigdirs="$noconfigdirs target-libgloss"
3789 ;;
3790 i[3456789]86-*-beos*)
3791 noconfigdirs="$noconfigdirs gdb"
3792 ;;
3793 i[3456789]86-*-rdos*)
3794 noconfigdirs="$noconfigdirs gdb"
3795 ;;
3796 mmix-*-*)
3797 noconfigdirs="$noconfigdirs gdb"
3798 ;;
3799 mt-*-*)
3800 noconfigdirs="$noconfigdirs sim"
3801 ;;
3802 powerpc-*-aix*)
3803 # copied from rs6000-*-* entry
3804 noconfigdirs="$noconfigdirs gprof"
3805 ;;
3806 powerpc*-*-winnt* | powerpc*-*-pe*)
3807 target_configdirs="$target_configdirs target-winsup"
3808 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3809 # always build newlib.
3810 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3811 ;;
3812 # This is temporary until we can link against shared libraries
3813 powerpcle-*-solaris*)
3814 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3815 ;;
3816 powerpc-*-beos*)
3817 noconfigdirs="$noconfigdirs gdb"
3818 ;;
3819 rs6000-*-lynxos*)
3820 noconfigdirs="$noconfigdirs gprof"
3821 ;;
3822 rs6000-*-aix*)
3823 noconfigdirs="$noconfigdirs gprof"
3824 ;;
3825 rs6000-*-*)
3826 noconfigdirs="$noconfigdirs gprof"
3827 ;;
3828 m68k-apollo-*)
3829 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3830 ;;
3831 microblaze*)
3832 noconfigdirs="$noconfigdirs gprof"
3833 ;;
3834 mips*-sde-elf* | mips*-mti-elf*)
3835 if test x$with_newlib = xyes; then
3836 noconfigdirs="$noconfigdirs gprof"
3837 fi
3838 ;;
3839 mips*-*-irix5*)
3840 noconfigdirs="$noconfigdirs gprof target-libgloss"
3841 ;;
3842 mips*-*-irix6*)
3843 noconfigdirs="$noconfigdirs gprof target-libgloss"
3844 ;;
3845 mips*-*-bsd*)
3846 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3847 ;;
3848 mips*-*-linux*)
3849 ;;
3850 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3851 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3852 noconfigdirs="$noconfigdirs ld gas gprof"
3853 ;;
3854 mips*-*-*)
3855 noconfigdirs="$noconfigdirs gprof"
3856 ;;
3857 nvptx*-*-*)
3858 # nvptx is just a compiler
3859 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3860 ;;
3861 sh-*-* | sh64-*-*)
3862 case "${target}" in
3863 sh*-*-elf)
3864 ;;
3865 *)
3866 noconfigdirs="$noconfigdirs target-libgloss" ;;
3867 esac
3868 ;;
3869 sparc-*-sunos4*)
3870 if test x${is_cross_compiler} = xno ; then
3871 use_gnu_ld=no
3872 fi
3873 ;;
3874 tic6x-*-*)
3875 noconfigdirs="$noconfigdirs sim"
3876 ;;
3877 tilepro*-*-* | tilegx*-*-*)
3878 noconfigdirs="$noconfigdirs sim"
3879 ;;
3880 v810-*-*)
3881 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3882 ;;
3883 vax-*-*)
3884 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3885 ;;
3886 esac
3887
3888 # If we aren't building newlib, then don't build libgloss, since libgloss
3889 # depends upon some newlib header files.
3890 case "${noconfigdirs}" in
3891 *target-libgloss*) ;;
3892 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3893 esac
3894
3895 # Work in distributions that contain no compiler tools, like Autoconf.
3896 host_makefile_frag=/dev/null
3897 if test -d ${srcdir}/config ; then
3898 case "${host}" in
3899 i[3456789]86-*-msdosdjgpp*)
3900 host_makefile_frag="config/mh-djgpp"
3901 ;;
3902 *-cygwin*)
3903
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3905 $as_echo_n "checking to see if cat works as expected... " >&6; }
3906 echo a >cygwin-cat-check
3907 if test `cat cygwin-cat-check` = a ; then
3908 rm cygwin-cat-check
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3910 $as_echo "yes" >&6; }
3911 else
3912 rm cygwin-cat-check
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3915 as_fn_error "The cat command does not ignore carriage return characters.
3916 Please either mount the build directory in binary mode or run the following
3917 commands before running any configure script:
3918 set -o igncr
3919 export SHELLOPTS
3920 " "$LINENO" 5
3921 fi
3922
3923 host_makefile_frag="config/mh-cygwin"
3924 ;;
3925 *-mingw*)
3926 host_makefile_frag="config/mh-mingw"
3927 ;;
3928 alpha*-*-linux*)
3929 host_makefile_frag="config/mh-alpha-linux"
3930 ;;
3931 hppa*-hp-hpux10*)
3932 host_makefile_frag="config/mh-pa-hpux10"
3933 ;;
3934 hppa*-hp-hpux*)
3935 host_makefile_frag="config/mh-pa"
3936 ;;
3937 hppa*-*)
3938 host_makefile_frag="config/mh-pa"
3939 ;;
3940 *-*-darwin*)
3941 host_makefile_frag="config/mh-darwin"
3942 ;;
3943 powerpc-*-aix*)
3944 host_makefile_frag="config/mh-ppc-aix"
3945 ;;
3946 rs6000-*-aix*)
3947 host_makefile_frag="config/mh-ppc-aix"
3948 ;;
3949 esac
3950 fi
3951
3952 if test "${build}" != "${host}" ; then
3953 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3954 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3955 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3956 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3957 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3958 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3959 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3960 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3961 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3962 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3963 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3964 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3965 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3966 else
3967 AR_FOR_BUILD="\$(AR)"
3968 AS_FOR_BUILD="\$(AS)"
3969 CC_FOR_BUILD="\$(CC)"
3970 CXX_FOR_BUILD="\$(CXX)"
3971 GCJ_FOR_BUILD="\$(GCJ)"
3972 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3973 GOC_FOR_BUILD="\$(GOC)"
3974 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3975 LD_FOR_BUILD="\$(LD)"
3976 NM_FOR_BUILD="\$(NM)"
3977 RANLIB_FOR_BUILD="\$(RANLIB)"
3978 WINDRES_FOR_BUILD="\$(WINDRES)"
3979 WINDMC_FOR_BUILD="\$(WINDMC)"
3980 fi
3981
3982 ac_ext=c
3983 ac_cpp='$CPP $CPPFLAGS'
3984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987 if test -n "$ac_tool_prefix"; then
3988 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3989 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991 $as_echo_n "checking for $ac_word... " >&6; }
3992 if test "${ac_cv_prog_CC+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 if test -n "$CC"; then
3996 ac_cv_prog_CC="$CC" # Let the user override the test.
3997 else
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4000 do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 break 2
4008 fi
4009 done
4010 done
4011 IFS=$as_save_IFS
4012
4013 fi
4014 fi
4015 CC=$ac_cv_prog_CC
4016 if test -n "$CC"; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4018 $as_echo "$CC" >&6; }
4019 else
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4022 fi
4023
4024
4025 fi
4026 if test -z "$ac_cv_prog_CC"; then
4027 ac_ct_CC=$CC
4028 # Extract the first word of "gcc", so it can be a program name with args.
4029 set dummy gcc; ac_word=$2
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 if test -n "$ac_ct_CC"; then
4036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4037 else
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH
4040 do
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4045 ac_cv_prog_ac_ct_CC="gcc"
4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 break 2
4048 fi
4049 done
4050 done
4051 IFS=$as_save_IFS
4052
4053 fi
4054 fi
4055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4056 if test -n "$ac_ct_CC"; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4058 $as_echo "$ac_ct_CC" >&6; }
4059 else
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4062 fi
4063
4064 if test "x$ac_ct_CC" = x; then
4065 CC=""
4066 else
4067 case $cross_compiling:$ac_tool_warned in
4068 yes:)
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4071 ac_tool_warned=yes ;;
4072 esac
4073 CC=$ac_ct_CC
4074 fi
4075 else
4076 CC="$ac_cv_prog_CC"
4077 fi
4078
4079 if test -z "$CC"; then
4080 if test -n "$ac_tool_prefix"; then
4081 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4082 set dummy ${ac_tool_prefix}cc; ac_word=$2
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 $as_echo_n "checking for $ac_word... " >&6; }
4085 if test "${ac_cv_prog_CC+set}" = set; then :
4086 $as_echo_n "(cached) " >&6
4087 else
4088 if test -n "$CC"; then
4089 ac_cv_prog_CC="$CC" # Let the user override the test.
4090 else
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094 IFS=$as_save_IFS
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4098 ac_cv_prog_CC="${ac_tool_prefix}cc"
4099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4100 break 2
4101 fi
4102 done
4103 done
4104 IFS=$as_save_IFS
4105
4106 fi
4107 fi
4108 CC=$ac_cv_prog_CC
4109 if test -n "$CC"; then
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4111 $as_echo "$CC" >&6; }
4112 else
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4115 fi
4116
4117
4118 fi
4119 fi
4120 if test -z "$CC"; then
4121 # Extract the first word of "cc", so it can be a program name with args.
4122 set dummy cc; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if test "${ac_cv_prog_CC+set}" = set; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 if test -n "$CC"; then
4129 ac_cv_prog_CC="$CC" # Let the user override the test.
4130 else
4131 ac_prog_rejected=no
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4140 ac_prog_rejected=yes
4141 continue
4142 fi
4143 ac_cv_prog_CC="cc"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 break 2
4146 fi
4147 done
4148 done
4149 IFS=$as_save_IFS
4150
4151 if test $ac_prog_rejected = yes; then
4152 # We found a bogon in the path, so make sure we never use it.
4153 set dummy $ac_cv_prog_CC
4154 shift
4155 if test $# != 0; then
4156 # We chose a different compiler from the bogus one.
4157 # However, it has the same basename, so the bogon will be chosen
4158 # first if we set CC to just the basename; use the full file name.
4159 shift
4160 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4161 fi
4162 fi
4163 fi
4164 fi
4165 CC=$ac_cv_prog_CC
4166 if test -n "$CC"; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4168 $as_echo "$CC" >&6; }
4169 else
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 $as_echo "no" >&6; }
4172 fi
4173
4174
4175 fi
4176 if test -z "$CC"; then
4177 if test -n "$ac_tool_prefix"; then
4178 for ac_prog in cl.exe
4179 do
4180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if test "${ac_cv_prog_CC+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 if test -n "$CC"; then
4188 ac_cv_prog_CC="$CC" # Let the user override the test.
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4199 break 2
4200 fi
4201 done
4202 done
4203 IFS=$as_save_IFS
4204
4205 fi
4206 fi
4207 CC=$ac_cv_prog_CC
4208 if test -n "$CC"; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4210 $as_echo "$CC" >&6; }
4211 else
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4214 fi
4215
4216
4217 test -n "$CC" && break
4218 done
4219 fi
4220 if test -z "$CC"; then
4221 ac_ct_CC=$CC
4222 for ac_prog in cl.exe
4223 do
4224 # Extract the first word of "$ac_prog", so it can be a program name with args.
4225 set dummy $ac_prog; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 if test -n "$ac_ct_CC"; then
4232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241 ac_cv_prog_ac_ct_CC="$ac_prog"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4244 fi
4245 done
4246 done
4247 IFS=$as_save_IFS
4248
4249 fi
4250 fi
4251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4252 if test -n "$ac_ct_CC"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4254 $as_echo "$ac_ct_CC" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4258 fi
4259
4260
4261 test -n "$ac_ct_CC" && break
4262 done
4263
4264 if test "x$ac_ct_CC" = x; then
4265 CC=""
4266 else
4267 case $cross_compiling:$ac_tool_warned in
4268 yes:)
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4271 ac_tool_warned=yes ;;
4272 esac
4273 CC=$ac_ct_CC
4274 fi
4275 fi
4276
4277 fi
4278
4279
4280 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4282 as_fn_error "no acceptable C compiler found in \$PATH
4283 See \`config.log' for more details." "$LINENO" 5; }
4284
4285 # Provide some information about the compiler.
4286 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4287 set X $ac_compile
4288 ac_compiler=$2
4289 for ac_option in --version -v -V -qversion; do
4290 { { ac_try="$ac_compiler $ac_option >&5"
4291 case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4298 ac_status=$?
4299 if test -s conftest.err; then
4300 sed '10a\
4301 ... rest of stderr output deleted ...
4302 10q' conftest.err >conftest.er1
4303 cat conftest.er1 >&5
4304 rm -f conftest.er1 conftest.err
4305 fi
4306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307 test $ac_status = 0; }
4308 done
4309
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312
4313 int
4314 main ()
4315 {
4316
4317 ;
4318 return 0;
4319 }
4320 _ACEOF
4321 ac_clean_files_save=$ac_clean_files
4322 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4323 # Try to create an executable without -o first, disregard a.out.
4324 # It will help us diagnose broken compilers, and finding out an intuition
4325 # of exeext.
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4327 $as_echo_n "checking for C compiler default output file name... " >&6; }
4328 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4329
4330 # The possible output files:
4331 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4332
4333 ac_rmfiles=
4334 for ac_file in $ac_files
4335 do
4336 case $ac_file in
4337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4338 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4339 esac
4340 done
4341 rm -f $ac_rmfiles
4342
4343 if { { ac_try="$ac_link_default"
4344 case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347 esac
4348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349 $as_echo "$ac_try_echo"; } >&5
4350 (eval "$ac_link_default") 2>&5
4351 ac_status=$?
4352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353 test $ac_status = 0; }; then :
4354 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4355 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4356 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4357 # so that the user can short-circuit this test for compilers unknown to
4358 # Autoconf.
4359 for ac_file in $ac_files ''
4360 do
4361 test -f "$ac_file" || continue
4362 case $ac_file in
4363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4364 ;;
4365 [ab].out )
4366 # We found the default executable, but exeext='' is most
4367 # certainly right.
4368 break;;
4369 *.* )
4370 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4371 then :; else
4372 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4373 fi
4374 # We set ac_cv_exeext here because the later test for it is not
4375 # safe: cross compilers may not add the suffix if given an `-o'
4376 # argument, so we may need to know it at that point already.
4377 # Even if this section looks crufty: it has the advantage of
4378 # actually working.
4379 break;;
4380 * )
4381 break;;
4382 esac
4383 done
4384 test "$ac_cv_exeext" = no && ac_cv_exeext=
4385
4386 else
4387 ac_file=''
4388 fi
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4390 $as_echo "$ac_file" >&6; }
4391 if test -z "$ac_file"; then :
4392 $as_echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4394
4395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4397 { as_fn_set_status 77
4398 as_fn_error "C compiler cannot create executables
4399 See \`config.log' for more details." "$LINENO" 5; }; }
4400 fi
4401 ac_exeext=$ac_cv_exeext
4402
4403 # Check that the compiler produces executables we can run. If not, either
4404 # the compiler is broken, or we cross compile.
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4406 $as_echo_n "checking whether the C compiler works... " >&6; }
4407 # If not cross compiling, check that we can run a simple program.
4408 if test "$cross_compiling" != yes; then
4409 if { ac_try='./$ac_file'
4410 { { case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4413 esac
4414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4415 $as_echo "$ac_try_echo"; } >&5
4416 (eval "$ac_try") 2>&5
4417 ac_status=$?
4418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4419 test $ac_status = 0; }; }; then
4420 cross_compiling=no
4421 else
4422 if test "$cross_compiling" = maybe; then
4423 cross_compiling=yes
4424 else
4425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427 as_fn_error "cannot run C compiled programs.
4428 If you meant to cross compile, use \`--host'.
4429 See \`config.log' for more details." "$LINENO" 5; }
4430 fi
4431 fi
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4434 $as_echo "yes" >&6; }
4435
4436 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4437 ac_clean_files=$ac_clean_files_save
4438 # Check that the compiler produces executables we can run. If not, either
4439 # the compiler is broken, or we cross compile.
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4441 $as_echo_n "checking whether we are cross compiling... " >&6; }
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4443 $as_echo "$cross_compiling" >&6; }
4444
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4446 $as_echo_n "checking for suffix of executables... " >&6; }
4447 if { { ac_try="$ac_link"
4448 case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453 $as_echo "$ac_try_echo"; } >&5
4454 (eval "$ac_link") 2>&5
4455 ac_status=$?
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }; then :
4458 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4459 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4460 # work properly (i.e., refer to `conftest.exe'), while it won't with
4461 # `rm'.
4462 for ac_file in conftest.exe conftest conftest.*; do
4463 test -f "$ac_file" || continue
4464 case $ac_file in
4465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4466 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4467 break;;
4468 * ) break;;
4469 esac
4470 done
4471 else
4472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4474 as_fn_error "cannot compute suffix of executables: cannot compile and link
4475 See \`config.log' for more details." "$LINENO" 5; }
4476 fi
4477 rm -f conftest$ac_cv_exeext
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4479 $as_echo "$ac_cv_exeext" >&6; }
4480
4481 rm -f conftest.$ac_ext
4482 EXEEXT=$ac_cv_exeext
4483 ac_exeext=$EXEEXT
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4485 $as_echo_n "checking for suffix of object files... " >&6; }
4486 if test "${ac_cv_objext+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4491
4492 int
4493 main ()
4494 {
4495
4496 ;
4497 return 0;
4498 }
4499 _ACEOF
4500 rm -f conftest.o conftest.obj
4501 if { { ac_try="$ac_compile"
4502 case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4505 esac
4506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4507 $as_echo "$ac_try_echo"; } >&5
4508 (eval "$ac_compile") 2>&5
4509 ac_status=$?
4510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4511 test $ac_status = 0; }; then :
4512 for ac_file in conftest.o conftest.obj conftest.*; do
4513 test -f "$ac_file" || continue;
4514 case $ac_file in
4515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4516 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4517 break;;
4518 esac
4519 done
4520 else
4521 $as_echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4523
4524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4526 as_fn_error "cannot compute suffix of object files: cannot compile
4527 See \`config.log' for more details." "$LINENO" 5; }
4528 fi
4529 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4530 fi
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4532 $as_echo "$ac_cv_objext" >&6; }
4533 OBJEXT=$ac_cv_objext
4534 ac_objext=$OBJEXT
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4536 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4537 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542
4543 int
4544 main ()
4545 {
4546 #ifndef __GNUC__
4547 choke me
4548 #endif
4549
4550 ;
4551 return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_c_try_compile "$LINENO"; then :
4555 ac_compiler_gnu=yes
4556 else
4557 ac_compiler_gnu=no
4558 fi
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4561
4562 fi
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4564 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4565 if test $ac_compiler_gnu = yes; then
4566 GCC=yes
4567 else
4568 GCC=
4569 fi
4570 ac_test_CFLAGS=${CFLAGS+set}
4571 ac_save_CFLAGS=$CFLAGS
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4573 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4574 if test "${ac_cv_prog_cc_g+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 ac_save_c_werror_flag=$ac_c_werror_flag
4578 ac_c_werror_flag=yes
4579 ac_cv_prog_cc_g=no
4580 CFLAGS="-g"
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4583
4584 int
4585 main ()
4586 {
4587
4588 ;
4589 return 0;
4590 }
4591 _ACEOF
4592 if ac_fn_c_try_compile "$LINENO"; then :
4593 ac_cv_prog_cc_g=yes
4594 else
4595 CFLAGS=""
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598
4599 int
4600 main ()
4601 {
4602
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_c_try_compile "$LINENO"; then :
4608
4609 else
4610 ac_c_werror_flag=$ac_save_c_werror_flag
4611 CFLAGS="-g"
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614
4615 int
4616 main ()
4617 {
4618
4619 ;
4620 return 0;
4621 }
4622 _ACEOF
4623 if ac_fn_c_try_compile "$LINENO"; then :
4624 ac_cv_prog_cc_g=yes
4625 fi
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 fi
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 fi
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 ac_c_werror_flag=$ac_save_c_werror_flag
4632 fi
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4634 $as_echo "$ac_cv_prog_cc_g" >&6; }
4635 if test "$ac_test_CFLAGS" = set; then
4636 CFLAGS=$ac_save_CFLAGS
4637 elif test $ac_cv_prog_cc_g = yes; then
4638 if test "$GCC" = yes; then
4639 CFLAGS="-g -O2"
4640 else
4641 CFLAGS="-g"
4642 fi
4643 else
4644 if test "$GCC" = yes; then
4645 CFLAGS="-O2"
4646 else
4647 CFLAGS=
4648 fi
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4651 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4652 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 ac_cv_prog_cc_c89=no
4656 ac_save_CC=$CC
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4659 #include <stdarg.h>
4660 #include <stdio.h>
4661 #include <sys/types.h>
4662 #include <sys/stat.h>
4663 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4664 struct buf { int x; };
4665 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4666 static char *e (p, i)
4667 char **p;
4668 int i;
4669 {
4670 return p[i];
4671 }
4672 static char *f (char * (*g) (char **, int), char **p, ...)
4673 {
4674 char *s;
4675 va_list v;
4676 va_start (v,p);
4677 s = g (p, va_arg (v,int));
4678 va_end (v);
4679 return s;
4680 }
4681
4682 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4683 function prototypes and stuff, but not '\xHH' hex character constants.
4684 These don't provoke an error unfortunately, instead are silently treated
4685 as 'x'. The following induces an error, until -std is added to get
4686 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4687 array size at least. It's necessary to write '\x00'==0 to get something
4688 that's true only with -std. */
4689 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4690
4691 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4692 inside strings and character constants. */
4693 #define FOO(x) 'x'
4694 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4695
4696 int test (int i, double x);
4697 struct s1 {int (*f) (int a);};
4698 struct s2 {int (*f) (double a);};
4699 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4700 int argc;
4701 char **argv;
4702 int
4703 main ()
4704 {
4705 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4706 ;
4707 return 0;
4708 }
4709 _ACEOF
4710 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4711 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4712 do
4713 CC="$ac_save_CC $ac_arg"
4714 if ac_fn_c_try_compile "$LINENO"; then :
4715 ac_cv_prog_cc_c89=$ac_arg
4716 fi
4717 rm -f core conftest.err conftest.$ac_objext
4718 test "x$ac_cv_prog_cc_c89" != "xno" && break
4719 done
4720 rm -f conftest.$ac_ext
4721 CC=$ac_save_CC
4722
4723 fi
4724 # AC_CACHE_VAL
4725 case "x$ac_cv_prog_cc_c89" in
4726 x)
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4728 $as_echo "none needed" >&6; } ;;
4729 xno)
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4731 $as_echo "unsupported" >&6; } ;;
4732 *)
4733 CC="$CC $ac_cv_prog_cc_c89"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4735 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4736 esac
4737 if test "x$ac_cv_prog_cc_c89" != xno; then :
4738
4739 fi
4740
4741 ac_ext=c
4742 ac_cpp='$CPP $CPPFLAGS'
4743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4746
4747 ac_ext=cpp
4748 ac_cpp='$CXXCPP $CPPFLAGS'
4749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4752 if test -z "$CXX"; then
4753 if test -n "$CCC"; then
4754 CXX=$CCC
4755 else
4756 if test -n "$ac_tool_prefix"; then
4757 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4758 do
4759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4760 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762 $as_echo_n "checking for $ac_word... " >&6; }
4763 if test "${ac_cv_prog_CXX+set}" = set; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 if test -n "$CXX"; then
4767 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4768 else
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4771 do
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 break 2
4779 fi
4780 done
4781 done
4782 IFS=$as_save_IFS
4783
4784 fi
4785 fi
4786 CXX=$ac_cv_prog_CXX
4787 if test -n "$CXX"; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4789 $as_echo "$CXX" >&6; }
4790 else
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4793 fi
4794
4795
4796 test -n "$CXX" && break
4797 done
4798 fi
4799 if test -z "$CXX"; then
4800 ac_ct_CXX=$CXX
4801 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4802 do
4803 # Extract the first word of "$ac_prog", so it can be a program name with args.
4804 set dummy $ac_prog; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 if test -n "$ac_ct_CXX"; then
4811 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_ac_ct_CXX="$ac_prog"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4823 fi
4824 done
4825 done
4826 IFS=$as_save_IFS
4827
4828 fi
4829 fi
4830 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4831 if test -n "$ac_ct_CXX"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4833 $as_echo "$ac_ct_CXX" >&6; }
4834 else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4837 fi
4838
4839
4840 test -n "$ac_ct_CXX" && break
4841 done
4842
4843 if test "x$ac_ct_CXX" = x; then
4844 CXX="g++"
4845 else
4846 case $cross_compiling:$ac_tool_warned in
4847 yes:)
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4850 ac_tool_warned=yes ;;
4851 esac
4852 CXX=$ac_ct_CXX
4853 fi
4854 fi
4855
4856 fi
4857 fi
4858 # Provide some information about the compiler.
4859 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4860 set X $ac_compile
4861 ac_compiler=$2
4862 for ac_option in --version -v -V -qversion; do
4863 { { ac_try="$ac_compiler $ac_option >&5"
4864 case "(($ac_try" in
4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4867 esac
4868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4869 $as_echo "$ac_try_echo"; } >&5
4870 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4871 ac_status=$?
4872 if test -s conftest.err; then
4873 sed '10a\
4874 ... rest of stderr output deleted ...
4875 10q' conftest.err >conftest.er1
4876 cat conftest.er1 >&5
4877 rm -f conftest.er1 conftest.err
4878 fi
4879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4880 test $ac_status = 0; }
4881 done
4882
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4884 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4885 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890
4891 int
4892 main ()
4893 {
4894 #ifndef __GNUC__
4895 choke me
4896 #endif
4897
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 if ac_fn_cxx_try_compile "$LINENO"; then :
4903 ac_compiler_gnu=yes
4904 else
4905 ac_compiler_gnu=no
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4909
4910 fi
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4912 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4913 if test $ac_compiler_gnu = yes; then
4914 GXX=yes
4915 else
4916 GXX=
4917 fi
4918 ac_test_CXXFLAGS=${CXXFLAGS+set}
4919 ac_save_CXXFLAGS=$CXXFLAGS
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4921 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4922 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4926 ac_cxx_werror_flag=yes
4927 ac_cv_prog_cxx_g=no
4928 CXXFLAGS="-g"
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931
4932 int
4933 main ()
4934 {
4935
4936 ;
4937 return 0;
4938 }
4939 _ACEOF
4940 if ac_fn_cxx_try_compile "$LINENO"; then :
4941 ac_cv_prog_cxx_g=yes
4942 else
4943 CXXFLAGS=""
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946
4947 int
4948 main ()
4949 {
4950
4951 ;
4952 return 0;
4953 }
4954 _ACEOF
4955 if ac_fn_cxx_try_compile "$LINENO"; then :
4956
4957 else
4958 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4959 CXXFLAGS="-g"
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4962
4963 int
4964 main ()
4965 {
4966
4967 ;
4968 return 0;
4969 }
4970 _ACEOF
4971 if ac_fn_cxx_try_compile "$LINENO"; then :
4972 ac_cv_prog_cxx_g=yes
4973 fi
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 fi
4976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977 fi
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4982 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4983 if test "$ac_test_CXXFLAGS" = set; then
4984 CXXFLAGS=$ac_save_CXXFLAGS
4985 elif test $ac_cv_prog_cxx_g = yes; then
4986 if test "$GXX" = yes; then
4987 CXXFLAGS="-g -O2"
4988 else
4989 CXXFLAGS="-g"
4990 fi
4991 else
4992 if test "$GXX" = yes; then
4993 CXXFLAGS="-O2"
4994 else
4995 CXXFLAGS=
4996 fi
4997 fi
4998 ac_ext=c
4999 ac_cpp='$CPP $CPPFLAGS'
5000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5003
5004
5005 # We must set the default linker to the linker used by gcc for the correct
5006 # operation of libtool. If LD is not defined and we are using gcc, try to
5007 # set the LD default to the ld used by gcc.
5008 if test -z "$LD"; then
5009 if test "$GCC" = yes; then
5010 case $build in
5011 *-*-mingw*)
5012 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5013 *)
5014 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5015 esac
5016 case $gcc_prog_ld in
5017 # Accept absolute paths.
5018 [\\/]* | [A-Za-z]:[\\/]*)
5019 LD="$gcc_prog_ld" ;;
5020 esac
5021 fi
5022 fi
5023
5024 # Check whether -static-libstdc++ -static-libgcc is supported.
5025 have_static_libs=no
5026 if test "$GCC" = yes; then
5027 saved_LDFLAGS="$LDFLAGS"
5028
5029 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5031 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5032 ac_ext=cpp
5033 ac_cpp='$CXXCPP $CPPFLAGS'
5034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5037
5038
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5041
5042 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5043 #error -static-libstdc++ not implemented
5044 #endif
5045 int main() {}
5046 _ACEOF
5047 if ac_fn_cxx_try_link "$LINENO"; then :
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5049 $as_echo "yes" >&6; }; have_static_libs=yes
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5053 fi
5054 rm -f core conftest.err conftest.$ac_objext \
5055 conftest$ac_exeext conftest.$ac_ext
5056 ac_ext=c
5057 ac_cpp='$CPP $CPPFLAGS'
5058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5061
5062
5063 LDFLAGS="$saved_LDFLAGS"
5064 fi
5065
5066
5067
5068
5069 if test -n "$ac_tool_prefix"; then
5070 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5071 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 if test -n "$GNATBIND"; then
5078 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5079 else
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 break 2
5090 fi
5091 done
5092 done
5093 IFS=$as_save_IFS
5094
5095 fi
5096 fi
5097 GNATBIND=$ac_cv_prog_GNATBIND
5098 if test -n "$GNATBIND"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5100 $as_echo "$GNATBIND" >&6; }
5101 else
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5104 fi
5105
5106
5107 fi
5108 if test -z "$ac_cv_prog_GNATBIND"; then
5109 ac_ct_GNATBIND=$GNATBIND
5110 # Extract the first word of "gnatbind", so it can be a program name with args.
5111 set dummy gnatbind; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -n "$ac_ct_GNATBIND"; then
5118 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5122 do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131 done
5132 done
5133 IFS=$as_save_IFS
5134
5135 fi
5136 fi
5137 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5138 if test -n "$ac_ct_GNATBIND"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5140 $as_echo "$ac_ct_GNATBIND" >&6; }
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5144 fi
5145
5146 if test "x$ac_ct_GNATBIND" = x; then
5147 GNATBIND="no"
5148 else
5149 case $cross_compiling:$ac_tool_warned in
5150 yes:)
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5153 ac_tool_warned=yes ;;
5154 esac
5155 GNATBIND=$ac_ct_GNATBIND
5156 fi
5157 else
5158 GNATBIND="$ac_cv_prog_GNATBIND"
5159 fi
5160
5161 if test -n "$ac_tool_prefix"; then
5162 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5163 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 if test -n "$GNATMAKE"; then
5170 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5174 do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5182 fi
5183 done
5184 done
5185 IFS=$as_save_IFS
5186
5187 fi
5188 fi
5189 GNATMAKE=$ac_cv_prog_GNATMAKE
5190 if test -n "$GNATMAKE"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5192 $as_echo "$GNATMAKE" >&6; }
5193 else
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5196 fi
5197
5198
5199 fi
5200 if test -z "$ac_cv_prog_GNATMAKE"; then
5201 ac_ct_GNATMAKE=$GNATMAKE
5202 # Extract the first word of "gnatmake", so it can be a program name with args.
5203 set dummy gnatmake; ac_word=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 if test -n "$ac_ct_GNATMAKE"; then
5210 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5211 else
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5214 do
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 break 2
5222 fi
5223 done
5224 done
5225 IFS=$as_save_IFS
5226
5227 fi
5228 fi
5229 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5230 if test -n "$ac_ct_GNATMAKE"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5232 $as_echo "$ac_ct_GNATMAKE" >&6; }
5233 else
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 $as_echo "no" >&6; }
5236 fi
5237
5238 if test "x$ac_ct_GNATMAKE" = x; then
5239 GNATMAKE="no"
5240 else
5241 case $cross_compiling:$ac_tool_warned in
5242 yes:)
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5245 ac_tool_warned=yes ;;
5246 esac
5247 GNATMAKE=$ac_ct_GNATMAKE
5248 fi
5249 else
5250 GNATMAKE="$ac_cv_prog_GNATMAKE"
5251 fi
5252
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5254 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5255 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 cat >conftest.adb <<EOF
5259 procedure conftest is begin null; end conftest;
5260 EOF
5261 acx_cv_cc_gcc_supports_ada=no
5262 # There is a bug in old released versions of GCC which causes the
5263 # driver to exit successfully when the appropriate language module
5264 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5265 # Therefore we must check for the error message as well as an
5266 # unsuccessful exit.
5267 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5268 # given a .adb file, but produce no object file. So we must check
5269 # if an object file was really produced to guard against this.
5270 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5271 if test x"$errors" = x && test -f conftest.$ac_objext; then
5272 acx_cv_cc_gcc_supports_ada=yes
5273 fi
5274 rm -f conftest.*
5275 fi
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5277 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5278
5279 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5280 have_gnat=yes
5281 else
5282 have_gnat=no
5283 fi
5284
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5286 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5287 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 echo abfoo >t1
5291 echo cdfoo >t2
5292 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5293 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5294 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5295 :
5296 else
5297 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5298 fi
5299 fi
5300 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5301 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5302 :
5303 else
5304 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5305 fi
5306 fi
5307 rm t1 t2
5308
5309 fi
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5311 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5312 do_compare="$gcc_cv_prog_cmp_skip"
5313
5314
5315
5316 # Check whether --enable-bootstrap was given.
5317 if test "${enable_bootstrap+set}" = set; then :
5318 enableval=$enable_bootstrap;
5319 else
5320 enable_bootstrap=default
5321 fi
5322
5323
5324 # Issue errors and warnings for invalid/strange bootstrap combinations.
5325 if test -r $srcdir/gcc/configure; then
5326 have_compiler=yes
5327 else
5328 have_compiler=no
5329 fi
5330
5331 case "$have_compiler:$host:$target:$enable_bootstrap" in
5332 *:*:*:no) ;;
5333
5334 # Default behavior. Enable bootstrap if we have a compiler
5335 # and we are in a native configuration.
5336 yes:$build:$build:default)
5337 enable_bootstrap=yes ;;
5338
5339 *:*:*:default)
5340 enable_bootstrap=no ;;
5341
5342 # We have a compiler and we are in a native configuration, bootstrap is ok
5343 yes:$build:$build:yes)
5344 ;;
5345
5346 # Other configurations, but we have a compiler. Assume the user knows
5347 # what he's doing.
5348 yes:*:*:yes)
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5350 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5351 ;;
5352
5353 # No compiler: if they passed --enable-bootstrap explicitly, fail
5354 no:*:*:yes)
5355 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5356
5357 # Fail if wrong command line
5358 *)
5359 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5360 ;;
5361 esac
5362
5363 # Used for setting $lt_cv_objdir
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5365 $as_echo_n "checking for objdir... " >&6; }
5366 if test "${lt_cv_objdir+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 rm -f .libs 2>/dev/null
5370 mkdir .libs 2>/dev/null
5371 if test -d .libs; then
5372 lt_cv_objdir=.libs
5373 else
5374 # MS-DOS does not allow filenames that begin with a dot.
5375 lt_cv_objdir=_libs
5376 fi
5377 rmdir .libs 2>/dev/null
5378 fi
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5380 $as_echo "$lt_cv_objdir" >&6; }
5381 objdir=$lt_cv_objdir
5382
5383
5384
5385
5386
5387 cat >>confdefs.h <<_ACEOF
5388 #define LT_OBJDIR "$lt_cv_objdir/"
5389 _ACEOF
5390
5391
5392
5393 # Check for GMP, MPFR and MPC
5394 gmplibs="-lmpc -lmpfr -lgmp"
5395 gmpinc=
5396 have_gmp=no
5397
5398 # Specify a location for mpc
5399 # check for this first so it ends up on the link line before mpfr.
5400
5401 # Check whether --with-mpc was given.
5402 if test "${with_mpc+set}" = set; then :
5403 withval=$with_mpc;
5404 fi
5405
5406
5407 # Check whether --with-mpc-include was given.
5408 if test "${with_mpc_include+set}" = set; then :
5409 withval=$with_mpc_include;
5410 fi
5411
5412
5413 # Check whether --with-mpc-lib was given.
5414 if test "${with_mpc_lib+set}" = set; then :
5415 withval=$with_mpc_lib;
5416 fi
5417
5418
5419 if test "x$with_mpc" != x; then
5420 gmplibs="-L$with_mpc/lib $gmplibs"
5421 gmpinc="-I$with_mpc/include $gmpinc"
5422 fi
5423 if test "x$with_mpc_include" != x; then
5424 gmpinc="-I$with_mpc_include $gmpinc"
5425 fi
5426 if test "x$with_mpc_lib" != x; then
5427 gmplibs="-L$with_mpc_lib $gmplibs"
5428 fi
5429 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5430 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5431 gmpinc='-I$$s/mpc/src '"$gmpinc"
5432 # Do not test the mpc version. Assume that it is sufficient, since
5433 # it is in the source tree, and the library has not been built yet
5434 # but it would be included on the link line in the version check below
5435 # hence making the test fail.
5436 have_gmp=yes
5437 fi
5438
5439 # Specify a location for mpfr
5440 # check for this first so it ends up on the link line before gmp.
5441
5442 # Check whether --with-mpfr-dir was given.
5443 if test "${with_mpfr_dir+set}" = set; then :
5444 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5445 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5446 fi
5447
5448
5449
5450 # Check whether --with-mpfr was given.
5451 if test "${with_mpfr+set}" = set; then :
5452 withval=$with_mpfr;
5453 fi
5454
5455
5456 # Check whether --with-mpfr-include was given.
5457 if test "${with_mpfr_include+set}" = set; then :
5458 withval=$with_mpfr_include;
5459 fi
5460
5461
5462 # Check whether --with-mpfr-lib was given.
5463 if test "${with_mpfr_lib+set}" = set; then :
5464 withval=$with_mpfr_lib;
5465 fi
5466
5467
5468 if test "x$with_mpfr" != x; then
5469 gmplibs="-L$with_mpfr/lib $gmplibs"
5470 gmpinc="-I$with_mpfr/include $gmpinc"
5471 fi
5472 if test "x$with_mpfr_include" != x; then
5473 gmpinc="-I$with_mpfr_include $gmpinc"
5474 fi
5475 if test "x$with_mpfr_lib" != x; then
5476 gmplibs="-L$with_mpfr_lib $gmplibs"
5477 fi
5478 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5479 # MPFR v3.1.0 moved the sources into a src sub-directory.
5480 if test -d ${srcdir}/mpfr/src; then
5481 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5482 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5483 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5484 else
5485 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5486 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5487 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5488 fi
5489 # Do not test the mpfr version. Assume that it is sufficient, since
5490 # it is in the source tree, and the library has not been built yet
5491 # but it would be included on the link line in the version check below
5492 # hence making the test fail.
5493 have_gmp=yes
5494 fi
5495
5496 # Specify a location for gmp
5497
5498 # Check whether --with-gmp-dir was given.
5499 if test "${with_gmp_dir+set}" = set; then :
5500 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5501 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5502 fi
5503
5504
5505
5506 # Check whether --with-gmp was given.
5507 if test "${with_gmp+set}" = set; then :
5508 withval=$with_gmp;
5509 fi
5510
5511
5512 # Check whether --with-gmp-include was given.
5513 if test "${with_gmp_include+set}" = set; then :
5514 withval=$with_gmp_include;
5515 fi
5516
5517
5518 # Check whether --with-gmp-lib was given.
5519 if test "${with_gmp_lib+set}" = set; then :
5520 withval=$with_gmp_lib;
5521 fi
5522
5523
5524
5525 if test "x$with_gmp" != x; then
5526 gmplibs="-L$with_gmp/lib $gmplibs"
5527 gmpinc="-I$with_gmp/include $gmpinc"
5528 fi
5529 if test "x$with_gmp_include" != x; then
5530 gmpinc="-I$with_gmp_include $gmpinc"
5531 fi
5532 if test "x$with_gmp_lib" != x; then
5533 gmplibs="-L$with_gmp_lib $gmplibs"
5534 fi
5535 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5536 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5537 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5538 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5539 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5540 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5541 # Do not test the gmp version. Assume that it is sufficient, since
5542 # it is in the source tree, and the library has not been built yet
5543 # but it would be included on the link line in the version check below
5544 # hence making the test fail.
5545 have_gmp=yes
5546 fi
5547
5548 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5549 have_gmp=yes
5550 saved_CFLAGS="$CFLAGS"
5551 CFLAGS="$CFLAGS $gmpinc"
5552 # Check for the recommended and required versions of GMP.
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5554 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5555
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5558 #include "gmp.h"
5559 int
5560 main ()
5561 {
5562
5563 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5564 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5565 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5566 choke me
5567 #endif
5568
5569 ;
5570 return 0;
5571 }
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5576 #include <gmp.h>
5577 int
5578 main ()
5579 {
5580
5581 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5582 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5583 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5584 choke me
5585 #endif
5586
5587 ;
5588 return 0;
5589 }
5590 _ACEOF
5591 if ac_fn_c_try_compile "$LINENO"; then :
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5593 $as_echo "yes" >&6; }
5594 else
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5596 $as_echo "buggy but acceptable" >&6; }
5597 fi
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }; have_gmp=no
5602 fi
5603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5604
5605 # If we have GMP, check the MPFR version.
5606 if test x"$have_gmp" = xyes; then
5607 # Check for the recommended and required versions of MPFR.
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5609 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <gmp.h>
5613 #include <mpfr.h>
5614 int
5615 main ()
5616 {
5617
5618 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5619 choke me
5620 #endif
5621
5622 ;
5623 return 0;
5624 }
5625 _ACEOF
5626 if ac_fn_c_try_compile "$LINENO"; then :
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 #include <gmp.h>
5630 #include <mpfr.h>
5631 int
5632 main ()
5633 {
5634
5635 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5636 choke me
5637 #endif
5638
5639 ;
5640 return 0;
5641 }
5642 _ACEOF
5643 if ac_fn_c_try_compile "$LINENO"; then :
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5645 $as_echo "yes" >&6; }
5646 else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5648 $as_echo "buggy but acceptable" >&6; }
5649 fi
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }; have_gmp=no
5654 fi
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 fi
5657
5658 # Check for the MPC header version.
5659 if test x"$have_gmp" = xyes ; then
5660 # Check for the recommended and required versions of MPC.
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5662 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5665 #include <mpc.h>
5666 int
5667 main ()
5668 {
5669
5670 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5671 choke me
5672 #endif
5673
5674 ;
5675 return 0;
5676 }
5677 _ACEOF
5678 if ac_fn_c_try_compile "$LINENO"; then :
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 #include <mpc.h>
5682 int
5683 main ()
5684 {
5685
5686 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5687 choke me
5688 #endif
5689
5690 ;
5691 return 0;
5692 }
5693 _ACEOF
5694 if ac_fn_c_try_compile "$LINENO"; then :
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696 $as_echo "yes" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5699 $as_echo "buggy but acceptable" >&6; }
5700 fi
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }; have_gmp=no
5705 fi
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 fi
5708
5709 # Now check the MPFR library.
5710 if test x"$have_gmp" = xyes; then
5711 saved_LIBS="$LIBS"
5712 LIBS="$LIBS $gmplibs"
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5714 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717 #include <mpc.h>
5718 int
5719 main ()
5720 {
5721
5722 mpfr_t n;
5723 mpfr_t x;
5724 mpc_t c;
5725 int t;
5726 mpfr_init (n);
5727 mpfr_init (x);
5728 mpfr_atan2 (n, n, x, GMP_RNDN);
5729 mpfr_erfc (n, x, GMP_RNDN);
5730 mpfr_subnormalize (x, t, GMP_RNDN);
5731 mpfr_clear(n);
5732 mpfr_clear(x);
5733 mpc_init2 (c, 53);
5734 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5735 mpc_cosh (c, c, MPC_RNDNN);
5736 mpc_pow (c, c, c, MPC_RNDNN);
5737 mpc_acosh (c, c, MPC_RNDNN);
5738 mpc_clear (c);
5739
5740 ;
5741 return 0;
5742 }
5743 _ACEOF
5744 if ac_fn_c_try_link "$LINENO"; then :
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5746 $as_echo "yes" >&6; }
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }; have_gmp=no
5750 fi
5751 rm -f core conftest.err conftest.$ac_objext \
5752 conftest$ac_exeext conftest.$ac_ext
5753 LIBS="$saved_LIBS"
5754 fi
5755
5756 CFLAGS="$saved_CFLAGS"
5757
5758 # The library versions listed in the error message below should match
5759 # the HARD-minimums enforced above.
5760 if test x$have_gmp != xyes; then
5761 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5762 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5763 their locations. Source code for these libraries can be found at
5764 their respective hosting sites as well as at
5765 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5766 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5767 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5768 make sure that you have installed both the libraries and the header
5769 files. They may be located in separate packages." "$LINENO" 5
5770 fi
5771 fi
5772
5773 # Flags needed for both GMP, MPFR and/or MPC.
5774
5775
5776
5777
5778
5779
5780
5781 # Allow host libstdc++ to be specified for static linking with PPL.
5782
5783 # Check whether --with-host-libstdcxx was given.
5784 if test "${with_host_libstdcxx+set}" = set; then :
5785 withval=$with_host_libstdcxx;
5786 fi
5787
5788
5789 case $with_host_libstdcxx in
5790 no|yes)
5791 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5792 ;;
5793 esac
5794
5795 # Libraries to use for stage1 or when not bootstrapping.
5796
5797 # Check whether --with-stage1-libs was given.
5798 if test "${with_stage1_libs+set}" = set; then :
5799 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5800 stage1_libs=
5801 else
5802 stage1_libs=$withval
5803 fi
5804 else
5805 stage1_libs=$with_host_libstdcxx
5806 fi
5807
5808
5809
5810 # Linker flags to use for stage1 or when not bootstrapping.
5811
5812 # Check whether --with-stage1-ldflags was given.
5813 if test "${with_stage1_ldflags+set}" = set; then :
5814 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5815 stage1_ldflags=
5816 else
5817 stage1_ldflags=$withval
5818 fi
5819 else
5820 stage1_ldflags=
5821 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5822 # if supported. But if the user explicitly specified the libraries to use,
5823 # trust that they are doing what they want.
5824 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5825 stage1_ldflags="-static-libstdc++ -static-libgcc"
5826 fi
5827 fi
5828
5829
5830
5831 # Libraries to use for stage2 and later builds. This defaults to the
5832 # argument passed to --with-host-libstdcxx.
5833
5834 # Check whether --with-boot-libs was given.
5835 if test "${with_boot_libs+set}" = set; then :
5836 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5837 poststage1_libs=
5838 else
5839 poststage1_libs=$withval
5840 fi
5841 else
5842 poststage1_libs=$with_host_libstdcxx
5843 fi
5844
5845
5846
5847 # Linker flags to use for stage2 and later builds.
5848
5849 # Check whether --with-boot-ldflags was given.
5850 if test "${with_boot_ldflags+set}" = set; then :
5851 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5852 poststage1_ldflags=
5853 else
5854 poststage1_ldflags=$withval
5855 fi
5856 else
5857 poststage1_ldflags=
5858 # In stages 2 and 3, default to linking libstdc++ and libgcc
5859 # statically. But if the user explicitly specified the libraries to
5860 # use, trust that they are doing what they want.
5861 if test "$poststage1_libs" = ""; then
5862 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5863 fi
5864 fi
5865
5866
5867
5868 # GCC GRAPHITE dependency ISL.
5869 # Basic setup is inlined here, actual checks are in config/isl.m4
5870
5871
5872 # Check whether --with-isl was given.
5873 if test "${with_isl+set}" = set; then :
5874 withval=$with_isl;
5875 fi
5876
5877
5878 # Treat --without-isl as a request to disable
5879 # GRAPHITE support and skip all following checks.
5880 if test "x$with_isl" != "xno"; then
5881 # Check for ISL
5882
5883
5884 # Check whether --with-isl-include was given.
5885 if test "${with_isl_include+set}" = set; then :
5886 withval=$with_isl_include;
5887 fi
5888
5889
5890 # Check whether --with-isl-lib was given.
5891 if test "${with_isl_lib+set}" = set; then :
5892 withval=$with_isl_lib;
5893 fi
5894
5895
5896 # Check whether --enable-isl-version-check was given.
5897 if test "${enable_isl_version_check+set}" = set; then :
5898 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5899 else
5900 ENABLE_ISL_CHECK=yes
5901 fi
5902
5903
5904 # Initialize isllibs and islinc.
5905 case $with_isl in
5906 no)
5907 isllibs=
5908 islinc=
5909 ;;
5910 "" | yes)
5911 ;;
5912 *)
5913 isllibs="-L$with_isl/lib"
5914 islinc="-I$with_isl/include"
5915 ;;
5916 esac
5917 if test "x${with_isl_include}" != x ; then
5918 islinc="-I$with_isl_include"
5919 fi
5920 if test "x${with_isl_lib}" != x; then
5921 isllibs="-L$with_isl_lib"
5922 fi
5923 if test "x${islinc}" = x && test "x${isllibs}" = x \
5924 && test -d ${srcdir}/isl; then
5925 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5926 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5927 ENABLE_ISL_CHECK=no
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5929 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5930 fi
5931
5932 islinc="-DCLOOG_INT_GMP ${islinc}"
5933 isllibs="${isllibs} -lisl"
5934
5935
5936
5937 if test "${ENABLE_ISL_CHECK}" = yes ; then
5938 _isl_saved_CFLAGS=$CFLAGS
5939 _isl_saved_LDFLAGS=$LDFLAGS
5940 _isl_saved_LIBS=$LIBS
5941
5942 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5943 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5944 LIBS="${_isl_saved_LIBS} -lisl"
5945
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5947 $as_echo_n "checking for compatible ISL... " >&6; }
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5950 #include <isl/val.h>
5951 int
5952 main ()
5953 {
5954 ;
5955 ;
5956 return 0;
5957 }
5958 _ACEOF
5959 if ac_fn_c_try_link "$LINENO"; then :
5960 gcc_cv_isl=yes
5961 else
5962 gcc_cv_isl=no
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext \
5965 conftest$ac_exeext conftest.$ac_ext
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5967 $as_echo "$gcc_cv_isl" >&6; }
5968
5969 CFLAGS=$_isl_saved_CFLAGS
5970 LDFLAGS=$_isl_saved_LDFLAGS
5971 LIBS=$_isl_saved_LIBS
5972 fi
5973
5974
5975
5976
5977
5978
5979 if test "x${with_isl}" = xno; then
5980 graphite_requested=no
5981 elif test "x${with_isl}" != x \
5982 || test "x${with_isl_include}" != x \
5983 || test "x${with_isl_lib}" != x ; then
5984 graphite_requested=yes
5985 else
5986 graphite_requested=no
5987 fi
5988
5989
5990
5991 if test "${gcc_cv_isl}" = no ; then
5992 isllibs=
5993 islinc=
5994 fi
5995
5996 if test "${graphite_requested}" = yes \
5997 && test "x${isllibs}" = x \
5998 && test "x${islinc}" = x ; then
5999
6000 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6001 fi
6002
6003
6004 fi
6005
6006 # If the ISL check failed, disable builds of in-tree variant of ISL
6007 if test "x$with_isl" = xno ||
6008 test "x$gcc_cv_isl" = xno; then
6009 noconfigdirs="$noconfigdirs isl"
6010 islinc=
6011 fi
6012
6013
6014
6015
6016 # Check for LTO support.
6017 # Check whether --enable-lto was given.
6018 if test "${enable_lto+set}" = set; then :
6019 enableval=$enable_lto; enable_lto=$enableval
6020 else
6021 enable_lto=yes; default_enable_lto=yes
6022 fi
6023
6024
6025
6026
6027
6028 target_elf=no
6029 case $target in
6030 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6031 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6032 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6033 target_elf=no
6034 ;;
6035 *)
6036 target_elf=yes
6037 ;;
6038 esac
6039
6040 if test $target_elf = yes; then :
6041 # ELF platforms build the lto-plugin always.
6042 build_lto_plugin=yes
6043
6044 else
6045 if test x"$default_enable_lto" = x"yes" ; then
6046 case $target in
6047 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6048 # On other non-ELF platforms, LTO has yet to be validated.
6049 *) enable_lto=no ;;
6050 esac
6051 else
6052 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6053 # It would also be nice to check the binutils support, but we don't
6054 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6055 # warn during gcc/ subconfigure; unless you're bootstrapping with
6056 # -flto it won't be needed until after installation anyway.
6057 case $target in
6058 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6059 *) if test x"$enable_lto" = x"yes"; then
6060 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6061 fi
6062 ;;
6063 esac
6064 fi
6065 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6066 # Build it unless LTO was explicitly disabled.
6067 case $target in
6068 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6069 *) ;;
6070 esac
6071
6072 fi
6073
6074
6075 # Check whether --enable-linker-plugin-configure-flags was given.
6076 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6077 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6078 else
6079 extra_linker_plugin_configure_flags=
6080 fi
6081
6082
6083 # Check whether --enable-linker-plugin-flags was given.
6084 if test "${enable_linker_plugin_flags+set}" = set; then :
6085 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6086 else
6087 extra_linker_plugin_flags=
6088 fi
6089
6090
6091
6092
6093 # By default, C and C++ are the only stage 1 languages.
6094 stage1_languages=,c,
6095
6096 # Target libraries that we bootstrap.
6097 bootstrap_target_libs=,target-libgcc,
6098
6099 # Figure out what language subdirectories are present.
6100 # Look if the user specified --enable-languages="..."; if not, use
6101 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6102 # go away some day.
6103 # NB: embedded tabs in this IF block -- do not untabify
6104 if test -d ${srcdir}/gcc; then
6105 if test x"${enable_languages+set}" != xset; then
6106 if test x"${LANGUAGES+set}" = xset; then
6107 enable_languages="${LANGUAGES}"
6108 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6109 else
6110 enable_languages=all
6111 fi
6112 else
6113 if test x"${enable_languages}" = x ||
6114 test x"${enable_languages}" = xyes;
6115 then
6116 echo configure.in: --enable-languages needs at least one language argument 1>&2
6117 exit 1
6118 fi
6119 fi
6120 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6121
6122 # 'f95' is the old name for the 'fortran' language. We issue a warning
6123 # and make the substitution.
6124 case ,${enable_languages}, in
6125 *,f95,*)
6126 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6127 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6128 ;;
6129 esac
6130
6131 # If bootstrapping, C++ must be enabled.
6132 case ",$enable_languages,:$enable_bootstrap" in
6133 *,c++,*:*) ;;
6134 *:yes)
6135 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6136 enable_languages="${enable_languages},c++"
6137 else
6138 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6139 fi
6140 ;;
6141 esac
6142
6143 # First scan to see if an enabled language requires some other language.
6144 # We assume that a given config-lang.in will list all the language
6145 # front ends it requires, even if some are required indirectly.
6146 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6147 case ${lang_frag} in
6148 ..) ;;
6149 # The odd quoting in the next line works around
6150 # an apparent bug in bash 1.12 on linux.
6151 ${srcdir}/gcc/[*]/config-lang.in) ;;
6152 *)
6153 # From the config-lang.in, get $language, $lang_requires, and
6154 # $lang_requires_boot_languages.
6155 language=
6156 lang_requires=
6157 lang_requires_boot_languages=
6158 . ${lang_frag}
6159 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6160 case ,${enable_languages}, in
6161 *,$other,*) ;;
6162 *,all,*) ;;
6163 *,$language,*)
6164 echo " \`$other' language required by \`$language'; enabling" 1>&2
6165 enable_languages="${enable_languages},${other}"
6166 ;;
6167 esac
6168 done
6169 for other in ${lang_requires_boot_languages} ; do
6170 if test "$other" != "c"; then
6171 case ,${enable_stage1_languages}, in
6172 *,$other,*) ;;
6173 *,all,*) ;;
6174 *)
6175 case ,${enable_languages}, in
6176 *,$language,*)
6177 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6178 enable_stage1_languages="$enable_stage1_languages,${other}"
6179 ;;
6180 esac
6181 ;;
6182 esac
6183 fi
6184 done
6185 ;;
6186 esac
6187 done
6188
6189 new_enable_languages=,c,
6190
6191 # If LTO is enabled, add the LTO front end.
6192 if test "$enable_lto" = "yes" ; then
6193 case ,${enable_languages}, in
6194 *,lto,*) ;;
6195 *) enable_languages="${enable_languages},lto" ;;
6196 esac
6197 if test "${build_lto_plugin}" = "yes" ; then
6198 configdirs="$configdirs lto-plugin"
6199 fi
6200 fi
6201
6202 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6203 potential_languages=,c,
6204
6205 enabled_target_libs=
6206 disabled_target_libs=
6207
6208 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6209 case ${lang_frag} in
6210 ..) ;;
6211 # The odd quoting in the next line works around
6212 # an apparent bug in bash 1.12 on linux.
6213 ${srcdir}/gcc/[*]/config-lang.in) ;;
6214 *)
6215 # From the config-lang.in, get $language, $target_libs,
6216 # $lang_dirs, $boot_language, and $build_by_default
6217 language=
6218 target_libs=
6219 lang_dirs=
6220 subdir_requires=
6221 boot_language=no
6222 build_by_default=yes
6223 . ${lang_frag}
6224 if test x${language} = x; then
6225 echo "${lang_frag} doesn't set \$language." 1>&2
6226 exit 1
6227 fi
6228
6229 if test "$language" = "c++"; then
6230 boot_language=yes
6231 fi
6232
6233 add_this_lang=no
6234 case ,${enable_languages}, in
6235 *,${language},*)
6236 # Language was explicitly selected; include it
6237 # unless it is C, which is enabled by default.
6238 if test "$language" != "c"; then
6239 add_this_lang=yes
6240 fi
6241 ;;
6242 *,all,*)
6243 # 'all' was selected, select it if it is a default language
6244 if test "$language" != "c"; then
6245 add_this_lang=${build_by_default}
6246 fi
6247 ;;
6248 esac
6249
6250 # Disable languages that need other directories if these aren't available.
6251 for i in $subdir_requires; do
6252 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6253 case ,${enable_languages}, in
6254 *,${language},*)
6255 # Specifically requested language; tell them.
6256 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6257 ;;
6258 *)
6259 # Silently disable.
6260 add_this_lang=unsupported
6261 ;;
6262 esac
6263 done
6264
6265 # Disable Ada if no preexisting GNAT is available.
6266 case ,${enable_languages},:${language}:${have_gnat} in
6267 *,${language},*:ada:no)
6268 # Specifically requested language; tell them.
6269 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6270 ;;
6271 *:ada:no)
6272 # Silently disable.
6273 add_this_lang=unsupported
6274 ;;
6275 esac
6276
6277 # Disable a language that is unsupported by the target.
6278 case " $unsupported_languages " in
6279 *" $language "*)
6280 add_this_lang=unsupported
6281 ;;
6282 esac
6283
6284 case $add_this_lang in
6285 unsupported)
6286 # Remove language-dependent dirs.
6287 disabled_target_libs="$disabled_target_libs $target_libs"
6288 noconfigdirs="$noconfigdirs $lang_dirs"
6289 ;;
6290 no)
6291 # Remove language-dependent dirs; still show language as supported.
6292 disabled_target_libs="$disabled_target_libs $target_libs"
6293 noconfigdirs="$noconfigdirs $lang_dirs"
6294 potential_languages="${potential_languages}${language},"
6295 ;;
6296 yes)
6297 new_enable_languages="${new_enable_languages}${language},"
6298 potential_languages="${potential_languages}${language},"
6299 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6300 enabled_target_libs="$enabled_target_libs $target_libs"
6301 case "${boot_language}:,$enable_stage1_languages," in
6302 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6303 # Add to (comma-separated) list of stage 1 languages.
6304 case ",$stage1_languages," in
6305 *,$language,* | ,yes, | ,all,) ;;
6306 *) stage1_languages="${stage1_languages}${language}," ;;
6307 esac
6308 # We need to bootstrap any supporting libraries.
6309 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6310 ;;
6311 esac
6312 ;;
6313 esac
6314 ;;
6315 esac
6316 done
6317
6318 # Add target libraries which are only needed for disabled languages
6319 # to noconfigdirs.
6320 if test -n "$disabled_target_libs"; then
6321 for dir in $disabled_target_libs; do
6322 case " $enabled_target_libs " in
6323 *" ${dir} "*) ;;
6324 *) noconfigdirs="$noconfigdirs $dir" ;;
6325 esac
6326 done
6327 fi
6328
6329 # Check whether --enable-stage1-languages was given.
6330 if test "${enable_stage1_languages+set}" = set; then :
6331 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6332 ,no,|,,)
6333 # Set it to something that will have no effect in the loop below
6334 enable_stage1_languages=c ;;
6335 ,yes,)
6336 enable_stage1_languages=`echo $new_enable_languages | \
6337 sed -e "s/^,//" -e "s/,$//" ` ;;
6338 *,all,*)
6339 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6340 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6341 esac
6342
6343 # Add "good" languages from enable_stage1_languages to stage1_languages,
6344 # while "bad" languages go in missing_languages. Leave no duplicates.
6345 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6346 case $potential_languages in
6347 *,$i,*)
6348 case $stage1_languages in
6349 *,$i,*) ;;
6350 *) stage1_languages="$stage1_languages$i," ;;
6351 esac ;;
6352 *)
6353 case $missing_languages in
6354 *,$i,*) ;;
6355 *) missing_languages="$missing_languages$i," ;;
6356 esac ;;
6357 esac
6358 done
6359 fi
6360
6361
6362 # Remove leading/trailing commas that were added for simplicity
6363 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6364 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6365 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6366 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6367
6368 if test "x$missing_languages" != x; then
6369 as_fn_error "
6370 The following requested languages could not be built: ${missing_languages}
6371 Supported languages are: ${potential_languages}" "$LINENO" 5
6372 fi
6373 if test "x$new_enable_languages" != "x$enable_languages"; then
6374 echo The following languages will be built: ${new_enable_languages}
6375 enable_languages="$new_enable_languages"
6376 fi
6377
6378
6379 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6380 fi
6381
6382 # Handle --disable-<component> generically.
6383 for dir in $configdirs $build_configdirs $target_configdirs ; do
6384 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6385 varname=`echo $dirname | sed -e s/+/_/g`
6386 if eval test x\${enable_${varname}} "=" xno ; then
6387 noconfigdirs="$noconfigdirs $dir"
6388 fi
6389 done
6390
6391 # Check for Boehm's garbage collector
6392 # Check whether --enable-objc-gc was given.
6393 if test "${enable_objc_gc+set}" = set; then :
6394 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6395 *,objc,*:*:yes:*target-boehm-gc*)
6396 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6397 ;;
6398 esac
6399 fi
6400
6401
6402 # Make sure we only build Boehm's garbage collector if required.
6403 case ,${enable_languages},:${enable_objc_gc} in
6404 *,objc,*:yes)
6405 # Keep target-boehm-gc if requested for Objective-C.
6406 ;;
6407 *)
6408 # Otherwise remove target-boehm-gc depending on target-libjava.
6409 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6410 noconfigdirs="$noconfigdirs target-boehm-gc"
6411 fi
6412 ;;
6413 esac
6414
6415 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6416 case ,${enable_languages}, in
6417 *,c++,*)
6418 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6419 case "${noconfigdirs}" in
6420 *target-libstdc++-v3*)
6421 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6422 ;;
6423 *) ;;
6424 esac
6425 ;;
6426 *)
6427 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6428 ;;
6429 esac
6430
6431 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6432 # $build_configdirs and $target_configdirs.
6433 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6434
6435 notsupp=""
6436 for dir in . $skipdirs $noconfigdirs ; do
6437 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6438 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6439 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6440 if test -r $srcdir/$dirname/configure ; then
6441 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6442 true
6443 else
6444 notsupp="$notsupp $dir"
6445 fi
6446 fi
6447 fi
6448 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6449 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6450 if test -r $srcdir/$dirname/configure ; then
6451 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6452 true
6453 else
6454 notsupp="$notsupp $dir"
6455 fi
6456 fi
6457 fi
6458 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6459 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6460 if test -r $srcdir/$dirname/configure ; then
6461 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6462 true
6463 else
6464 notsupp="$notsupp $dir"
6465 fi
6466 fi
6467 fi
6468 done
6469
6470 # Quietly strip out all directories which aren't configurable in this tree.
6471 # This relies on all configurable subdirectories being autoconfiscated, which
6472 # is now the case.
6473 build_configdirs_all="$build_configdirs"
6474 build_configdirs=
6475 for i in ${build_configdirs_all} ; do
6476 j=`echo $i | sed -e s/build-//g`
6477 if test -f ${srcdir}/$j/configure ; then
6478 build_configdirs="${build_configdirs} $i"
6479 fi
6480 done
6481
6482 configdirs_all="$configdirs"
6483 configdirs=
6484 for i in ${configdirs_all} ; do
6485 if test -f ${srcdir}/$i/configure ; then
6486 configdirs="${configdirs} $i"
6487 fi
6488 done
6489
6490 target_configdirs_all="$target_configdirs"
6491 target_configdirs=
6492 for i in ${target_configdirs_all} ; do
6493 j=`echo $i | sed -e s/target-//g`
6494 if test -f ${srcdir}/$j/configure ; then
6495 target_configdirs="${target_configdirs} $i"
6496 fi
6497 done
6498
6499 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6500 # so we have to add it after the preceding checks.
6501 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6502 then
6503 case " $configdirs " in
6504 *" libiberty "*)
6505 # If we can build libiberty, we can also build libiberty-linker-plugin.
6506 configdirs="$configdirs libiberty-linker-plugin"
6507 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6508 --with-libiberty=../libiberty-linker-plugin";;
6509 *)
6510 as_fn_error "libiberty missing" "$LINENO" 5;;
6511 esac
6512 fi
6513
6514 # Sometimes we have special requirements for the host libiberty.
6515 extra_host_libiberty_configure_flags=
6516 case " $configdirs " in
6517 *" lto-plugin "* | *" libcc1 "*)
6518 # When these are to be built as shared libraries, the same applies to
6519 # libiberty.
6520 extra_host_libiberty_configure_flags=--enable-shared
6521 ;;
6522 esac
6523
6524
6525 # Produce a warning message for the subdirs we can't configure.
6526 # This isn't especially interesting in the Cygnus tree, but in the individual
6527 # FSF releases, it's important to let people know when their machine isn't
6528 # supported by the one or two programs in a package.
6529
6530 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6531 # If $appdirs is non-empty, at least one of those directories must still
6532 # be configured, or we error out. (E.g., if the gas release supports a
6533 # specified target in some subdirs but not the gas subdir, we shouldn't
6534 # pretend that all is well.)
6535 if test -n "$appdirs" ; then
6536 for dir in $appdirs ; do
6537 if test -r $dir/Makefile.in ; then
6538 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6539 appdirs=""
6540 break
6541 fi
6542 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6543 appdirs=""
6544 break
6545 fi
6546 fi
6547 done
6548 if test -n "$appdirs" ; then
6549 echo "*** This configuration is not supported by this package." 1>&2
6550 exit 1
6551 fi
6552 fi
6553 # Okay, some application will build, or we don't care to check. Still
6554 # notify of subdirs not getting built.
6555 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6556 echo " ${notsupp}" 1>&2
6557 echo " (Any other directories should still work fine.)" 1>&2
6558 fi
6559
6560 case "$host" in
6561 *msdosdjgpp*)
6562 enable_gdbtk=no ;;
6563 esac
6564
6565 # To find our prefix, in gcc_cv_tool_prefix.
6566
6567 # The user is always right.
6568 if test "${PATH_SEPARATOR+set}" != set; then
6569 echo "#! /bin/sh" >conf$$.sh
6570 echo "exit 0" >>conf$$.sh
6571 chmod +x conf$$.sh
6572 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6573 PATH_SEPARATOR=';'
6574 else
6575 PATH_SEPARATOR=:
6576 fi
6577 rm -f conf$$.sh
6578 fi
6579
6580
6581
6582 if test "x$exec_prefix" = xNONE; then
6583 if test "x$prefix" = xNONE; then
6584 gcc_cv_tool_prefix=$ac_default_prefix
6585 else
6586 gcc_cv_tool_prefix=$prefix
6587 fi
6588 else
6589 gcc_cv_tool_prefix=$exec_prefix
6590 fi
6591
6592 # If there is no compiler in the tree, use the PATH only. In any
6593 # case, if there is no compiler in the tree nobody should use
6594 # AS_FOR_TARGET and LD_FOR_TARGET.
6595 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6596 gcc_version=`cat $srcdir/gcc/BASE-VER`
6597 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6598 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6599 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6600 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6601 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6602 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6603 else
6604 gcc_cv_tool_dirs=
6605 fi
6606
6607 if test x$build = x$target && test -n "$md_exec_prefix"; then
6608 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6609 fi
6610
6611
6612
6613 copy_dirs=
6614
6615
6616 # Check whether --with-build-sysroot was given.
6617 if test "${with_build_sysroot+set}" = set; then :
6618 withval=$with_build_sysroot; if test x"$withval" != x ; then
6619 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6620 fi
6621 else
6622 SYSROOT_CFLAGS_FOR_TARGET=
6623 fi
6624
6625
6626
6627
6628 # Check whether --with-debug-prefix-map was given.
6629 if test "${with_debug_prefix_map+set}" = set; then :
6630 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6631 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6632 for debug_map in $withval; do
6633 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6634 done
6635 fi
6636 else
6637 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6638 fi
6639
6640
6641
6642 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6643 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6644 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6645 # We want to ensure that TARGET libraries (which we know are built with
6646 # gcc) are built with "-O2 -g", so include those options when setting
6647 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6648 if test "x$CFLAGS_FOR_TARGET" = x; then
6649 CFLAGS_FOR_TARGET=$CFLAGS
6650 case " $CFLAGS " in
6651 *" -O2 "*) ;;
6652 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6653 esac
6654 case " $CFLAGS " in
6655 *" -g "* | *" -g3 "*) ;;
6656 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6657 esac
6658 fi
6659
6660
6661 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6662 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6663 case " $CXXFLAGS " in
6664 *" -O2 "*) ;;
6665 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6666 esac
6667 case " $CXXFLAGS " in
6668 *" -g "* | *" -g3 "*) ;;
6669 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6670 esac
6671 fi
6672
6673
6674
6675
6676 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6677 # the named directory are copied to $(tooldir)/sys-include.
6678 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6679 if test x${is_cross_compiler} = xno ; then
6680 echo 1>&2 '***' --with-headers is only supported when cross compiling
6681 exit 1
6682 fi
6683 if test x"${with_headers}" != xyes ; then
6684 x=${gcc_cv_tool_prefix}
6685 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6686 fi
6687 fi
6688
6689 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6690 # the name directories are copied to $(tooldir)/lib. Multiple directories
6691 # are permitted.
6692 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6693 if test x${is_cross_compiler} = xno ; then
6694 echo 1>&2 '***' --with-libs is only supported when cross compiling
6695 exit 1
6696 fi
6697 if test x"${with_libs}" != xyes ; then
6698 # Copy the libraries in reverse order, so that files in the first named
6699 # library override files in subsequent libraries.
6700 x=${gcc_cv_tool_prefix}
6701 for l in ${with_libs}; do
6702 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6703 done
6704 fi
6705 fi
6706
6707 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6708 #
6709 # This is done by determining whether or not the appropriate directory
6710 # is available, and by checking whether or not specific configurations
6711 # have requested that this magic not happen.
6712 #
6713 # The command line options always override the explicit settings in
6714 # configure.in, and the settings in configure.in override this magic.
6715 #
6716 # If the default for a toolchain is to use GNU as and ld, and you don't
6717 # want to do that, then you should use the --without-gnu-as and
6718 # --without-gnu-ld options for the configure script. Similarly, if
6719 # the default is to use the included zlib and you don't want to do that,
6720 # you should use the --with-system-zlib option for the configure script.
6721
6722 if test x${use_gnu_as} = x &&
6723 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6724 with_gnu_as=yes
6725 extra_host_args="$extra_host_args --with-gnu-as"
6726 fi
6727
6728 if test x${use_gnu_ld} = x &&
6729 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6730 with_gnu_ld=yes
6731 extra_host_args="$extra_host_args --with-gnu-ld"
6732 fi
6733
6734 if test x${use_included_zlib} = x &&
6735 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6736 :
6737 else
6738 with_system_zlib=yes
6739 extra_host_args="$extra_host_args --with-system-zlib"
6740 fi
6741
6742 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6743 # can detect this case.
6744
6745 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6746 with_newlib=yes
6747 extra_host_args="$extra_host_args --with-newlib"
6748 fi
6749
6750 # Handle ${copy_dirs}
6751 set fnord ${copy_dirs}
6752 shift
6753 while test $# != 0 ; do
6754 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6755 :
6756 else
6757 echo Copying $1 to $2
6758
6759 # Use the install script to create the directory and all required
6760 # parent directories.
6761 if test -d $2 ; then
6762 :
6763 else
6764 echo >config.temp
6765 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6766 fi
6767
6768 # Copy the directory, assuming we have tar.
6769 # FIXME: Should we use B in the second tar? Not all systems support it.
6770 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6771
6772 # It is the responsibility of the user to correctly adjust all
6773 # symlinks. If somebody can figure out how to handle them correctly
6774 # here, feel free to add the code.
6775
6776 echo $1 > $2/COPIED
6777 fi
6778 shift; shift
6779 done
6780
6781 # Determine a target-dependent exec_prefix that the installed
6782 # gcc will search in. Keep this list sorted by triplet, with
6783 # the *-*-osname triplets last.
6784 md_exec_prefix=
6785 case "${target}" in
6786 i[34567]86-pc-msdosdjgpp*)
6787 md_exec_prefix=/dev/env/DJDIR/bin
6788 ;;
6789 *-*-hpux* | \
6790 *-*-nto-qnx* | \
6791 *-*-solaris2*)
6792 md_exec_prefix=/usr/ccs/bin
6793 ;;
6794 esac
6795
6796 extra_arflags_for_target=
6797 extra_nmflags_for_target=
6798 extra_ranlibflags_for_target=
6799 target_makefile_frag=/dev/null
6800 case "${target}" in
6801 spu-*-*)
6802 target_makefile_frag="config/mt-spu"
6803 ;;
6804 mips*-sde-elf* | mips*-mti-elf*)
6805 target_makefile_frag="config/mt-sde"
6806 ;;
6807 mipsisa*-*-elfoabi*)
6808 target_makefile_frag="config/mt-mips-elfoabi"
6809 ;;
6810 mips*-*-*linux* | mips*-*-gnu*)
6811 target_makefile_frag="config/mt-mips-gnu"
6812 ;;
6813 nios2-*-elf*)
6814 target_makefile_frag="config/mt-nios2-elf"
6815 ;;
6816 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6817 target_makefile_frag="config/mt-gnu"
6818 ;;
6819 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6820 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6821 # commands to handle both 32-bit and 64-bit objects. These flags are
6822 # harmless if we're using GNU nm or ar.
6823 extra_arflags_for_target=" -X32_64"
6824 extra_nmflags_for_target=" -B -X32_64"
6825 ;;
6826 esac
6827
6828 alphaieee_frag=/dev/null
6829 case $target in
6830 alpha*-*-*)
6831 # This just makes sure to use the -mieee option to build target libs.
6832 # This should probably be set individually by each library.
6833 alphaieee_frag="config/mt-alphaieee"
6834 ;;
6835 esac
6836
6837 # If --enable-target-optspace always use -Os instead of -O2 to build
6838 # the target libraries, similarly if it is not specified, use -Os
6839 # on selected platforms.
6840 ospace_frag=/dev/null
6841 case "${enable_target_optspace}:${target}" in
6842 yes:*)
6843 ospace_frag="config/mt-ospace"
6844 ;;
6845 :d30v-*)
6846 ospace_frag="config/mt-d30v"
6847 ;;
6848 :m32r-* | :d10v-* | :fr30-*)
6849 ospace_frag="config/mt-ospace"
6850 ;;
6851 no:* | :*)
6852 ;;
6853 *)
6854 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6855 ;;
6856 esac
6857
6858 # Some systems (e.g., one of the i386-aix systems the gas testers are
6859 # using) don't handle "\$" correctly, so don't use it here.
6860 tooldir='${exec_prefix}'/${target_noncanonical}
6861 build_tooldir=${tooldir}
6862
6863 # Create a .gdbinit file which runs the one in srcdir
6864 # and tells GDB to look there for source files.
6865
6866 if test -r ${srcdir}/.gdbinit ; then
6867 case ${srcdir} in
6868 .) ;;
6869 *) cat > ./.gdbinit <<EOF
6870 # ${NO_EDIT}
6871 dir ${srcdir}
6872 dir .
6873 source ${srcdir}/.gdbinit
6874 EOF
6875 ;;
6876 esac
6877 fi
6878
6879 # Make sure that the compiler is able to generate an executable. If it
6880 # can't, we are probably in trouble. We don't care whether we can run the
6881 # executable--we might be using a cross compiler--we only care whether it
6882 # can be created. At this point the main configure script has set CC.
6883 we_are_ok=no
6884 echo "int main () { return 0; }" > conftest.c
6885 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6886 if test $? = 0 ; then
6887 if test -s conftest || test -s conftest.exe ; then
6888 we_are_ok=yes
6889 fi
6890 fi
6891 case $we_are_ok in
6892 no)
6893 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6894 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6895 rm -f conftest*
6896 exit 1
6897 ;;
6898 esac
6899 rm -f conftest*
6900
6901 # Decide which environment variable is used to find dynamic libraries.
6902 case "${host}" in
6903 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6904 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6905 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6906 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6907 esac
6908
6909 # On systems where the dynamic library environment variable is PATH,
6910 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6911 # built executables to PATH.
6912 if test "$RPATH_ENVVAR" = PATH; then
6913 GCC_SHLIB_SUBDIR=/shlib
6914 else
6915 GCC_SHLIB_SUBDIR=
6916 fi
6917
6918 # Adjust the toplevel makefile according to whether bootstrap was selected.
6919 case $enable_bootstrap in
6920 yes)
6921 bootstrap_suffix=bootstrap
6922 BUILD_CONFIG=bootstrap-debug
6923 ;;
6924 no)
6925 bootstrap_suffix=no-bootstrap
6926 BUILD_CONFIG=
6927 ;;
6928 esac
6929
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6931 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6932
6933
6934 # Check whether --with-build-config was given.
6935 if test "${with_build_config+set}" = set; then :
6936 withval=$with_build_config; case $with_build_config in
6937 yes) with_build_config= ;;
6938 no) with_build_config= BUILD_CONFIG= ;;
6939 esac
6940 fi
6941
6942
6943 if test "x${with_build_config}" != x; then
6944 BUILD_CONFIG=$with_build_config
6945 else
6946 case $BUILD_CONFIG in
6947 bootstrap-debug)
6948 if echo "int f (void) { return 0; }" > conftest.c &&
6949 ${CC} -c conftest.c &&
6950 mv conftest.o conftest.o.g0 &&
6951 ${CC} -c -g conftest.c &&
6952 mv conftest.o conftest.o.g &&
6953 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6954 :
6955 else
6956 BUILD_CONFIG=
6957 fi
6958 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6959 ;;
6960 esac
6961 fi
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6963 $as_echo "$BUILD_CONFIG" >&6; }
6964
6965
6966 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
6968 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
6969 # Check whether --enable-vtable-verify was given.
6970 if test "${enable_vtable_verify+set}" = set; then :
6971 enableval=$enable_vtable_verify; case "$enableval" in
6972 yes) enable_vtable_verify=yes ;;
6973 no) enable_vtable_verify=no ;;
6974 *) enable_vtable_verify=no;;
6975 esac
6976 else
6977 enable_vtable_verify=no
6978 fi
6979
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
6981 $as_echo "$enable_vtable_verify" >&6; }
6982
6983 # Record target_configdirs and the configure arguments for target and
6984 # build configuration in Makefile.
6985 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6986 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6987 bootstrap_fixincludes=no
6988
6989 # If we are building libgomp, bootstrap it.
6990 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6991 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6992 fi
6993
6994 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
6995 # or bootstrap-ubsan, bootstrap it.
6996 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
6997 case "$BUILD_CONFIG" in
6998 *bootstrap-asan* | *bootstrap-ubsan* )
6999 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7000 bootstrap_fixincludes=yes
7001 ;;
7002 esac
7003 fi
7004
7005 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7006 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7007 test "$enable_vtable_verify" != no; then
7008 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7009 fi
7010
7011 # Determine whether gdb needs tk/tcl or not.
7012 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7013 # and in that case we want gdb to be built without tk. Ugh!
7014 # In fact I believe gdb is the *only* package directly dependent on tk,
7015 # so we should be able to put the 'maybe's in unconditionally and
7016 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7017 # 100% sure that that's safe though.
7018
7019 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7020 case "$enable_gdbtk" in
7021 no)
7022 GDB_TK="" ;;
7023 yes)
7024 GDB_TK="${gdb_tk}" ;;
7025 *)
7026 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7027 # distro. Eventually someone will fix this and move Insight, nee
7028 # gdbtk to a separate directory.
7029 if test -d ${srcdir}/gdb/gdbtk ; then
7030 GDB_TK="${gdb_tk}"
7031 else
7032 GDB_TK=""
7033 fi
7034 ;;
7035 esac
7036 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7037 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7038
7039 # Strip out unwanted targets.
7040
7041 # While at that, we remove Makefiles if we were started for recursive
7042 # configuration, so that the top-level Makefile reconfigures them,
7043 # like we used to do when configure itself was recursive.
7044
7045 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7046 # but now we're fixing up the Makefile ourselves with the additional
7047 # commands passed to AC_CONFIG_FILES. Use separate variables
7048 # extrasub-{build,host,target} not because there is any reason to split
7049 # the substitutions up that way, but only to remain below the limit of
7050 # 99 commands in a script, for HP-UX sed.
7051 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7052
7053 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7054 yes:yes:*\ gold\ *:*,c++,*) ;;
7055 yes:yes:*\ gold\ *:*)
7056 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7057 ;;
7058 esac
7059
7060 extrasub_build=
7061 for module in ${build_configdirs} ; do
7062 if test -z "${no_recursion}" \
7063 && test -f ${build_subdir}/${module}/Makefile; then
7064 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7065 rm -f ${build_subdir}/${module}/Makefile
7066 fi
7067 extrasub_build="$extrasub_build
7068 /^@if build-$module\$/d
7069 /^@endif build-$module\$/d
7070 /^@if build-$module-$bootstrap_suffix\$/d
7071 /^@endif build-$module-$bootstrap_suffix\$/d"
7072 done
7073 extrasub_host=
7074 for module in ${configdirs} ; do
7075 if test -z "${no_recursion}"; then
7076 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7077 if test -f ${file}; then
7078 echo 1>&2 "*** removing ${file} to force reconfigure"
7079 rm -f ${file}
7080 fi
7081 done
7082 fi
7083 case ${module},${bootstrap_fixincludes} in
7084 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7085 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7086 esac
7087 extrasub_host="$extrasub_host
7088 /^@if $module\$/d
7089 /^@endif $module\$/d
7090 /^@if $module-$host_bootstrap_suffix\$/d
7091 /^@endif $module-$host_bootstrap_suffix\$/d"
7092 done
7093 extrasub_target=
7094 for module in ${target_configdirs} ; do
7095 if test -z "${no_recursion}" \
7096 && test -f ${target_subdir}/${module}/Makefile; then
7097 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7098 rm -f ${target_subdir}/${module}/Makefile
7099 fi
7100
7101 # We only bootstrap target libraries listed in bootstrap_target_libs.
7102 case $bootstrap_target_libs in
7103 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7104 *) target_bootstrap_suffix=no-bootstrap ;;
7105 esac
7106
7107 extrasub_target="$extrasub_target
7108 /^@if target-$module\$/d
7109 /^@endif target-$module\$/d
7110 /^@if target-$module-$target_bootstrap_suffix\$/d
7111 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7112 done
7113
7114 # Do the final fixup along with target modules.
7115 extrasub_target="$extrasub_target
7116 /^@if /,/^@endif /d"
7117
7118 # Create the serialization dependencies. This uses a temporary file.
7119
7120 # Check whether --enable-serial-configure was given.
7121 if test "${enable_serial_configure+set}" = set; then :
7122 enableval=$enable_serial_configure;
7123 fi
7124
7125
7126 case ${enable_serial_configure} in
7127 yes)
7128 enable_serial_build_configure=yes
7129 enable_serial_host_configure=yes
7130 enable_serial_target_configure=yes
7131 ;;
7132 esac
7133
7134 # These force 'configure's to be done one at a time, to avoid problems
7135 # with contention over a shared config.cache.
7136 rm -f serdep.tmp
7137 echo '# serdep.tmp' > serdep.tmp
7138 olditem=
7139 test "x${enable_serial_build_configure}" = xyes &&
7140 for item in ${build_configdirs} ; do
7141 case ${olditem} in
7142 "") ;;
7143 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7144 esac
7145 olditem=${item}
7146 done
7147 olditem=
7148 test "x${enable_serial_host_configure}" = xyes &&
7149 for item in ${configdirs} ; do
7150 case ${olditem} in
7151 "") ;;
7152 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7153 esac
7154 olditem=${item}
7155 done
7156 olditem=
7157 test "x${enable_serial_target_configure}" = xyes &&
7158 for item in ${target_configdirs} ; do
7159 case ${olditem} in
7160 "") ;;
7161 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7162 esac
7163 olditem=${item}
7164 done
7165 serialization_dependencies=serdep.tmp
7166
7167
7168 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7169 # target, nonopt, and variable assignments. These are the ones we
7170 # might not want to pass down to subconfigures. The exception being
7171 # --cache-file=/dev/null, which is used to turn off the use of cache
7172 # files altogether, and which should be passed on to subconfigures.
7173 # Also strip program-prefix, program-suffix, and program-transform-name,
7174 # so that we can pass down a consistent program-transform-name.
7175 baseargs=
7176 tbaseargs=
7177 keep_next=no
7178 skip_next=no
7179 eval "set -- $ac_configure_args"
7180 for ac_arg
7181 do
7182 if test X"$skip_next" = X"yes"; then
7183 skip_next=no
7184 continue
7185 fi
7186 if test X"$keep_next" = X"yes"; then
7187 case $ac_arg in
7188 *\'*)
7189 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7190 esac
7191 baseargs="$baseargs '$ac_arg'"
7192 tbaseargs="$tbaseargs '$ac_arg'"
7193 keep_next=no
7194 continue
7195 fi
7196
7197 # Handle separated arguments. Based on the logic generated by
7198 # autoconf 2.59.
7199 case $ac_arg in
7200 *=* | --config-cache | -C | -disable-* | --disable-* \
7201 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7202 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7203 | -with-* | --with-* | -without-* | --without-* | --x)
7204 separate_arg=no
7205 ;;
7206 -*)
7207 separate_arg=yes
7208 ;;
7209 *)
7210 separate_arg=no
7211 ;;
7212 esac
7213
7214 skip_targ=no
7215 case $ac_arg in
7216
7217 --with-* | --without-*)
7218 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7219
7220 case $libopt in
7221 *[-_]include)
7222 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7223 ;;
7224 *[-_]lib)
7225 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7226 ;;
7227 *)
7228 lib=$libopt
7229 ;;
7230 esac
7231
7232
7233 case $lib in
7234 mpc | mpfr | gmp | isl)
7235 # If we're processing --with-$lib, --with-$lib-include or
7236 # --with-$lib-lib, for one of the libs above, and target is
7237 # different from host, don't pass the current argument to any
7238 # target library's configure.
7239 if test x$is_cross_compiler = xyes; then
7240 skip_targ=yes
7241 fi
7242 ;;
7243 esac
7244 ;;
7245 esac
7246
7247 case "$ac_arg" in
7248 --cache-file=/dev/null | \
7249 -cache-file=/dev/null )
7250 # Handled here to avoid the test to skip args below.
7251 baseargs="$baseargs '$ac_arg'"
7252 tbaseargs="$tbaseargs '$ac_arg'"
7253 # Assert: $separate_arg should always be no.
7254 keep_next=$separate_arg
7255 ;;
7256 --no*)
7257 continue
7258 ;;
7259 --c* | \
7260 --sr* | \
7261 --ho* | \
7262 --bu* | \
7263 --t* | \
7264 --program-* | \
7265 -cache_file* | \
7266 -srcdir* | \
7267 -host* | \
7268 -build* | \
7269 -target* | \
7270 -program-prefix* | \
7271 -program-suffix* | \
7272 -program-transform-name* )
7273 skip_next=$separate_arg
7274 continue
7275 ;;
7276 -*)
7277 # An option. Add it.
7278 case $ac_arg in
7279 *\'*)
7280 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7281 esac
7282 baseargs="$baseargs '$ac_arg'"
7283 if test X"$skip_targ" = Xno; then
7284 tbaseargs="$tbaseargs '$ac_arg'"
7285 fi
7286 keep_next=$separate_arg
7287 ;;
7288 *)
7289 # Either a variable assignment, or a nonopt (triplet). Don't
7290 # pass it down; let the Makefile handle this.
7291 continue
7292 ;;
7293 esac
7294 done
7295 # Remove the initial space we just introduced and, as these will be
7296 # expanded by make, quote '$'.
7297 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7298
7299 # Add in --program-transform-name, after --program-prefix and
7300 # --program-suffix have been applied to it. Autoconf has already
7301 # doubled dollar signs and backslashes in program_transform_name; we want
7302 # the backslashes un-doubled, and then the entire thing wrapped in single
7303 # quotes, because this will be expanded first by make and then by the shell.
7304 # Also, because we want to override the logic in subdir configure scripts to
7305 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7306 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7307 ${program_transform_name}
7308 EOF_SED
7309 gcc_transform_name=`cat conftestsed.out`
7310 rm -f conftestsed.out
7311 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7312 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7313 if test "$silent" = yes; then
7314 baseargs="$baseargs --silent"
7315 tbaseargs="$tbaseargs --silent"
7316 fi
7317 baseargs="$baseargs --disable-option-checking"
7318 tbaseargs="$tbaseargs --disable-option-checking"
7319
7320 # Record and document user additions to sub configure arguments.
7321
7322
7323
7324
7325 # For the build-side libraries, we just need to pretend we're native,
7326 # and not use the same cache file. Multilibs are neither needed nor
7327 # desired. We can't even use the same cache file for all build-side
7328 # libraries, as they're compiled differently; some with C, some with
7329 # C++ or with different feature-enabling options.
7330 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7331
7332 # For host modules, accept cache file option, or specification as blank.
7333 case "${cache_file}" in
7334 "") # empty
7335 cache_file_option="" ;;
7336 /* | [A-Za-z]:[\\/]* ) # absolute path
7337 cache_file_option="--cache-file=${cache_file}" ;;
7338 *) # relative path
7339 cache_file_option="--cache-file=../${cache_file}" ;;
7340 esac
7341
7342 # Host dirs don't like to share a cache file either, horribly enough.
7343 # This seems to be due to autoconf 2.5x stupidity.
7344 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7345
7346 target_configargs="$target_configargs ${tbaseargs}"
7347
7348 # Passing a --with-cross-host argument lets the target libraries know
7349 # whether they are being built with a cross-compiler or being built
7350 # native. However, it would be better to use other mechanisms to make the
7351 # sorts of decisions they want to make on this basis. Please consider
7352 # this option to be deprecated. FIXME.
7353 if test x${is_cross_compiler} = xyes ; then
7354 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7355 fi
7356
7357 # Special user-friendly check for native x86_64-linux build, if
7358 # multilib is not explicitly enabled.
7359 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7360 x86_64-*linux*:yes:$build:$build:)
7361 # Make sure we have a developement environment that handles 32-bit
7362 dev64=no
7363 echo "int main () { return 0; }" > conftest.c
7364 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7365 if test $? = 0 ; then
7366 if test -s conftest || test -s conftest.exe ; then
7367 dev64=yes
7368 fi
7369 fi
7370 rm -f conftest*
7371 if test x${dev64} != xyes ; then
7372 as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7373 fi
7374 ;;
7375 esac
7376
7377 # Default to --enable-multilib.
7378 if test x${enable_multilib} = x ; then
7379 target_configargs="--enable-multilib ${target_configargs}"
7380 fi
7381
7382 # Pass --with-newlib if appropriate. Note that target_configdirs has
7383 # changed from the earlier setting of with_newlib.
7384 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7385 target_configargs="--with-newlib ${target_configargs}"
7386 fi
7387
7388 # Different target subdirs use different values of certain variables
7389 # (notably CXX). Worse, multilibs use *lots* of different values.
7390 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7391 # it doesn't automatically accept command-line overrides of them.
7392 # This means it's not safe for target subdirs to share a cache file,
7393 # which is disgusting, but there you have it. Hopefully this can be
7394 # fixed in future. It's still worthwhile to use a cache file for each
7395 # directory. I think.
7396
7397 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7398 # We need to pass --target, as newer autoconf's requires consistency
7399 # for target_alias and gcc doesn't manage it consistently.
7400 target_configargs="--cache-file=./config.cache ${target_configargs}"
7401
7402 FLAGS_FOR_TARGET=
7403 case " $target_configdirs " in
7404 *" newlib "*)
7405 case " $target_configargs " in
7406 *" --with-newlib "*)
7407 case "$target" in
7408 *-cygwin*)
7409 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7410 ;;
7411 esac
7412
7413 # If we're not building GCC, don't discard standard headers.
7414 if test -d ${srcdir}/gcc; then
7415 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7416
7417 if test "${build}" != "${host}"; then
7418 # On Canadian crosses, CC_FOR_TARGET will have already been set
7419 # by `configure', so we won't have an opportunity to add -Bgcc/
7420 # to it. This is right: we don't want to search that directory
7421 # for binaries, but we want the header files in there, so add
7422 # them explicitly.
7423 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7424
7425 # Someone might think of using the pre-installed headers on
7426 # Canadian crosses, in case the installed compiler is not fully
7427 # compatible with the compiler being built. In this case, it
7428 # would be better to flag an error than risking having
7429 # incompatible object files being constructed. We can't
7430 # guarantee that an error will be flagged, but let's hope the
7431 # compiler will do it, when presented with incompatible header
7432 # files.
7433 fi
7434 fi
7435
7436 case "${target}-${is_cross_compiler}" in
7437 i[3456789]86-*-linux*-no)
7438 # Here host == target, so we don't need to build gcc,
7439 # so we don't want to discard standard headers.
7440 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7441 ;;
7442 *)
7443 # If we're building newlib, use its generic headers last, but search
7444 # for any libc-related directories first (so make it the last -B
7445 # switch).
7446 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7447
7448 # If we're building libgloss, find the startup file, simulator library
7449 # and linker script.
7450 case " $target_configdirs " in
7451 *" libgloss "*)
7452 # Look for startup file, simulator library and maybe linker script.
7453 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7454 # Look for libnosys.a in case the target needs it.
7455 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7456 # Most targets have the linker script in the source directory.
7457 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7458 ;;
7459 esac
7460 ;;
7461 esac
7462 ;;
7463 esac
7464 ;;
7465 esac
7466
7467 case "$target" in
7468 x86_64-*mingw* | *-w64-mingw*)
7469 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7470 # however, use a symlink named 'mingw' in ${prefix} .
7471 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7472 ;;
7473 *-mingw*)
7474 # MinGW can't be handled as Cygwin above since it does not use newlib.
7475 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'
7476 ;;
7477 esac
7478
7479 # Allow the user to override the flags for
7480 # our build compiler if desired.
7481 if test x"${build}" = x"${host}" ; then
7482 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7483 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7484 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7485 fi
7486
7487 # On Canadian crosses, we'll be searching the right directories for
7488 # the previously-installed cross compiler, so don't bother to add
7489 # flags for directories within the install tree of the compiler
7490 # being built; programs in there won't even run.
7491 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7492 # Search for pre-installed headers if nothing else fits.
7493 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7494 fi
7495
7496 if test "x${use_gnu_ld}" = x &&
7497 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7498 # Arrange for us to find uninstalled linker scripts.
7499 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7500 fi
7501
7502 # Search for other target-specific linker scripts and such.
7503 case "${target}" in
7504 mep*)
7505 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7506 ;;
7507 esac
7508
7509 # Makefile fragments.
7510 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7511 do
7512 eval fragval=\$$frag
7513 if test $fragval != /dev/null; then
7514 eval $frag=${srcdir}/$fragval
7515 fi
7516 done
7517
7518
7519
7520
7521
7522 # Miscellanea: directories, flags, etc.
7523
7524
7525
7526
7527
7528
7529
7530
7531 # Build module lists & subconfigure args.
7532
7533
7534
7535 # Host module lists & subconfigure args.
7536
7537
7538
7539
7540 # Target module lists & subconfigure args.
7541
7542
7543
7544 # Build tools.
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562 # Generate default definitions for YACC, M4, LEX and other programs that run
7563 # on the build machine. These are used if the Makefile can't locate these
7564 # programs in objdir.
7565 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7566
7567 for ac_prog in 'bison -y' byacc yacc
7568 do
7569 # Extract the first word of "$ac_prog", so it can be a program name with args.
7570 set dummy $ac_prog; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if test "${ac_cv_prog_YACC+set}" = set; then :
7574 $as_echo_n "(cached) " >&6
7575 else
7576 if test -n "$YACC"; then
7577 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7578 else
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH
7581 do
7582 IFS=$as_save_IFS
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7586 ac_cv_prog_YACC="$ac_prog"
7587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 break 2
7589 fi
7590 done
7591 done
7592 IFS=$as_save_IFS
7593
7594 fi
7595 fi
7596 YACC=$ac_cv_prog_YACC
7597 if test -n "$YACC"; then
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7599 $as_echo "$YACC" >&6; }
7600 else
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7603 fi
7604
7605
7606 test -n "$YACC" && break
7607 done
7608 test -n "$YACC" || YACC="$MISSING bison -y"
7609
7610 case " $build_configdirs " in
7611 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7612 esac
7613
7614 for ac_prog in bison
7615 do
7616 # Extract the first word of "$ac_prog", so it can be a program name with args.
7617 set dummy $ac_prog; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if test "${ac_cv_prog_BISON+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 if test -n "$BISON"; then
7624 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7625 else
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7633 ac_cv_prog_BISON="$ac_prog"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 break 2
7636 fi
7637 done
7638 done
7639 IFS=$as_save_IFS
7640
7641 fi
7642 fi
7643 BISON=$ac_cv_prog_BISON
7644 if test -n "$BISON"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7646 $as_echo "$BISON" >&6; }
7647 else
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7650 fi
7651
7652
7653 test -n "$BISON" && break
7654 done
7655 test -n "$BISON" || BISON="$MISSING bison"
7656
7657 case " $build_configdirs " in
7658 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7659 esac
7660
7661 for ac_prog in gm4 gnum4 m4
7662 do
7663 # Extract the first word of "$ac_prog", so it can be a program name with args.
7664 set dummy $ac_prog; ac_word=$2
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 $as_echo_n "checking for $ac_word... " >&6; }
7667 if test "${ac_cv_prog_M4+set}" = set; then :
7668 $as_echo_n "(cached) " >&6
7669 else
7670 if test -n "$M4"; then
7671 ac_cv_prog_M4="$M4" # Let the user override the test.
7672 else
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7680 ac_cv_prog_M4="$ac_prog"
7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684 done
7685 done
7686 IFS=$as_save_IFS
7687
7688 fi
7689 fi
7690 M4=$ac_cv_prog_M4
7691 if test -n "$M4"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7693 $as_echo "$M4" >&6; }
7694 else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7697 fi
7698
7699
7700 test -n "$M4" && break
7701 done
7702 test -n "$M4" || M4="$MISSING m4"
7703
7704 case " $build_configdirs " in
7705 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7706 esac
7707
7708 for ac_prog in flex lex
7709 do
7710 # Extract the first word of "$ac_prog", so it can be a program name with args.
7711 set dummy $ac_prog; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if test "${ac_cv_prog_LEX+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 if test -n "$LEX"; then
7718 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723 IFS=$as_save_IFS
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 ac_cv_prog_LEX="$ac_prog"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 break 2
7730 fi
7731 done
7732 done
7733 IFS=$as_save_IFS
7734
7735 fi
7736 fi
7737 LEX=$ac_cv_prog_LEX
7738 if test -n "$LEX"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7740 $as_echo "$LEX" >&6; }
7741 else
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7744 fi
7745
7746
7747 test -n "$LEX" && break
7748 done
7749 test -n "$LEX" || LEX="$MISSING flex"
7750
7751 case " $build_configdirs " in
7752 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7753 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7754 esac
7755
7756 for ac_prog in flex
7757 do
7758 # Extract the first word of "$ac_prog", so it can be a program name with args.
7759 set dummy $ac_prog; ac_word=$2
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761 $as_echo_n "checking for $ac_word... " >&6; }
7762 if test "${ac_cv_prog_FLEX+set}" = set; then :
7763 $as_echo_n "(cached) " >&6
7764 else
7765 if test -n "$FLEX"; then
7766 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7767 else
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7770 do
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7775 ac_cv_prog_FLEX="$ac_prog"
7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 break 2
7778 fi
7779 done
7780 done
7781 IFS=$as_save_IFS
7782
7783 fi
7784 fi
7785 FLEX=$ac_cv_prog_FLEX
7786 if test -n "$FLEX"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7788 $as_echo "$FLEX" >&6; }
7789 else
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7792 fi
7793
7794
7795 test -n "$FLEX" && break
7796 done
7797 test -n "$FLEX" || FLEX="$MISSING flex"
7798
7799 case " $build_configdirs " in
7800 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7801 esac
7802
7803 for ac_prog in makeinfo
7804 do
7805 # Extract the first word of "$ac_prog", so it can be a program name with args.
7806 set dummy $ac_prog; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 if test -n "$MAKEINFO"; then
7813 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_prog_MAKEINFO="$ac_prog"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7825 fi
7826 done
7827 done
7828 IFS=$as_save_IFS
7829
7830 fi
7831 fi
7832 MAKEINFO=$ac_cv_prog_MAKEINFO
7833 if test -n "$MAKEINFO"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7835 $as_echo "$MAKEINFO" >&6; }
7836 else
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7839 fi
7840
7841
7842 test -n "$MAKEINFO" && break
7843 done
7844 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7845
7846 case " $build_configdirs " in
7847 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7848 *)
7849
7850 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7851 # higher, else we use the "missing" dummy.
7852 if ${MAKEINFO} --version \
7853 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7854 :
7855 else
7856 MAKEINFO="$MISSING makeinfo"
7857 fi
7858 ;;
7859
7860 esac
7861
7862 # FIXME: expect and dejagnu may become build tools?
7863
7864 for ac_prog in expect
7865 do
7866 # Extract the first word of "$ac_prog", so it can be a program name with args.
7867 set dummy $ac_prog; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7873 if test -n "$EXPECT"; then
7874 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7875 else
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7878 do
7879 IFS=$as_save_IFS
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7883 ac_cv_prog_EXPECT="$ac_prog"
7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 break 2
7886 fi
7887 done
7888 done
7889 IFS=$as_save_IFS
7890
7891 fi
7892 fi
7893 EXPECT=$ac_cv_prog_EXPECT
7894 if test -n "$EXPECT"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7896 $as_echo "$EXPECT" >&6; }
7897 else
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7900 fi
7901
7902
7903 test -n "$EXPECT" && break
7904 done
7905 test -n "$EXPECT" || EXPECT="expect"
7906
7907 case " $configdirs " in
7908 *" expect "*)
7909 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7910 ;;
7911 esac
7912
7913 for ac_prog in runtest
7914 do
7915 # Extract the first word of "$ac_prog", so it can be a program name with args.
7916 set dummy $ac_prog; ac_word=$2
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918 $as_echo_n "checking for $ac_word... " >&6; }
7919 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 if test -n "$RUNTEST"; then
7923 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7924 else
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 for as_dir in $PATH
7927 do
7928 IFS=$as_save_IFS
7929 test -z "$as_dir" && as_dir=.
7930 for ac_exec_ext in '' $ac_executable_extensions; do
7931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7932 ac_cv_prog_RUNTEST="$ac_prog"
7933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7934 break 2
7935 fi
7936 done
7937 done
7938 IFS=$as_save_IFS
7939
7940 fi
7941 fi
7942 RUNTEST=$ac_cv_prog_RUNTEST
7943 if test -n "$RUNTEST"; then
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7945 $as_echo "$RUNTEST" >&6; }
7946 else
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7949 fi
7950
7951
7952 test -n "$RUNTEST" && break
7953 done
7954 test -n "$RUNTEST" || RUNTEST="runtest"
7955
7956 case " $configdirs " in
7957 *" dejagnu "*)
7958 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7959 ;;
7960 esac
7961
7962
7963 # Host tools.
7964 ncn_tool_prefix=
7965 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7966 ncn_target_tool_prefix=
7967 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7968
7969
7970
7971 if test -n "$AR"; then
7972 ac_cv_prog_AR=$AR
7973 elif test -n "$ac_cv_prog_AR"; then
7974 AR=$ac_cv_prog_AR
7975 fi
7976
7977 if test -n "$ac_cv_prog_AR"; then
7978 for ncn_progname in ar; do
7979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7980 set dummy ${ncn_progname}; ac_word=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if test "${ac_cv_prog_AR+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 if test -n "$AR"; then
7987 ac_cv_prog_AR="$AR" # Let the user override the test.
7988 else
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 for as_dir in $PATH
7991 do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7996 ac_cv_prog_AR="${ncn_progname}"
7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000 done
8001 done
8002 IFS=$as_save_IFS
8003
8004 fi
8005 fi
8006 AR=$ac_cv_prog_AR
8007 if test -n "$AR"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8009 $as_echo "$AR" >&6; }
8010 else
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8013 fi
8014
8015
8016 done
8017 fi
8018
8019 for ncn_progname in ar; do
8020 if test -n "$ncn_tool_prefix"; then
8021 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8022 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if test "${ac_cv_prog_AR+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 if test -n "$AR"; then
8029 ac_cv_prog_AR="$AR" # Let the user override the test.
8030 else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8038 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 break 2
8041 fi
8042 done
8043 done
8044 IFS=$as_save_IFS
8045
8046 fi
8047 fi
8048 AR=$ac_cv_prog_AR
8049 if test -n "$AR"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8051 $as_echo "$AR" >&6; }
8052 else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056
8057
8058 fi
8059 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8061 set dummy ${ncn_progname}; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if test "${ac_cv_prog_AR+set}" = set; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 if test -n "$AR"; then
8068 ac_cv_prog_AR="$AR" # Let the user override the test.
8069 else
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8072 do
8073 IFS=$as_save_IFS
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8077 ac_cv_prog_AR="${ncn_progname}"
8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 break 2
8080 fi
8081 done
8082 done
8083 IFS=$as_save_IFS
8084
8085 fi
8086 fi
8087 AR=$ac_cv_prog_AR
8088 if test -n "$AR"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8090 $as_echo "$AR" >&6; }
8091 else
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8094 fi
8095
8096
8097 fi
8098 test -n "$ac_cv_prog_AR" && break
8099 done
8100
8101 if test -z "$ac_cv_prog_AR" ; then
8102 set dummy ar
8103 if test $build = $host ; then
8104 AR="$2"
8105 else
8106 AR="${ncn_tool_prefix}$2"
8107 fi
8108 fi
8109
8110
8111
8112 if test -n "$AS"; then
8113 ac_cv_prog_AS=$AS
8114 elif test -n "$ac_cv_prog_AS"; then
8115 AS=$ac_cv_prog_AS
8116 fi
8117
8118 if test -n "$ac_cv_prog_AS"; then
8119 for ncn_progname in as; do
8120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8121 set dummy ${ncn_progname}; ac_word=$2
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123 $as_echo_n "checking for $ac_word... " >&6; }
8124 if test "${ac_cv_prog_AS+set}" = set; then :
8125 $as_echo_n "(cached) " >&6
8126 else
8127 if test -n "$AS"; then
8128 ac_cv_prog_AS="$AS" # Let the user override the test.
8129 else
8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 for as_dir in $PATH
8132 do
8133 IFS=$as_save_IFS
8134 test -z "$as_dir" && as_dir=.
8135 for ac_exec_ext in '' $ac_executable_extensions; do
8136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8137 ac_cv_prog_AS="${ncn_progname}"
8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 break 2
8140 fi
8141 done
8142 done
8143 IFS=$as_save_IFS
8144
8145 fi
8146 fi
8147 AS=$ac_cv_prog_AS
8148 if test -n "$AS"; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8150 $as_echo "$AS" >&6; }
8151 else
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153 $as_echo "no" >&6; }
8154 fi
8155
8156
8157 done
8158 fi
8159
8160 for ncn_progname in as; do
8161 if test -n "$ncn_tool_prefix"; then
8162 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8163 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165 $as_echo_n "checking for $ac_word... " >&6; }
8166 if test "${ac_cv_prog_AS+set}" = set; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 if test -n "$AS"; then
8170 ac_cv_prog_AS="$AS" # Let the user override the test.
8171 else
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in $PATH
8174 do
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8179 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183 done
8184 done
8185 IFS=$as_save_IFS
8186
8187 fi
8188 fi
8189 AS=$ac_cv_prog_AS
8190 if test -n "$AS"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8192 $as_echo "$AS" >&6; }
8193 else
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8196 fi
8197
8198
8199 fi
8200 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8202 set dummy ${ncn_progname}; ac_word=$2
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204 $as_echo_n "checking for $ac_word... " >&6; }
8205 if test "${ac_cv_prog_AS+set}" = set; then :
8206 $as_echo_n "(cached) " >&6
8207 else
8208 if test -n "$AS"; then
8209 ac_cv_prog_AS="$AS" # Let the user override the test.
8210 else
8211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 for as_dir in $PATH
8213 do
8214 IFS=$as_save_IFS
8215 test -z "$as_dir" && as_dir=.
8216 for ac_exec_ext in '' $ac_executable_extensions; do
8217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8218 ac_cv_prog_AS="${ncn_progname}"
8219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 break 2
8221 fi
8222 done
8223 done
8224 IFS=$as_save_IFS
8225
8226 fi
8227 fi
8228 AS=$ac_cv_prog_AS
8229 if test -n "$AS"; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8231 $as_echo "$AS" >&6; }
8232 else
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }
8235 fi
8236
8237
8238 fi
8239 test -n "$ac_cv_prog_AS" && break
8240 done
8241
8242 if test -z "$ac_cv_prog_AS" ; then
8243 set dummy as
8244 if test $build = $host ; then
8245 AS="$2"
8246 else
8247 AS="${ncn_tool_prefix}$2"
8248 fi
8249 fi
8250
8251
8252
8253 if test -n "$DLLTOOL"; then
8254 ac_cv_prog_DLLTOOL=$DLLTOOL
8255 elif test -n "$ac_cv_prog_DLLTOOL"; then
8256 DLLTOOL=$ac_cv_prog_DLLTOOL
8257 fi
8258
8259 if test -n "$ac_cv_prog_DLLTOOL"; then
8260 for ncn_progname in dlltool; do
8261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8262 set dummy ${ncn_progname}; ac_word=$2
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264 $as_echo_n "checking for $ac_word... " >&6; }
8265 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8268 if test -n "$DLLTOOL"; then
8269 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8270 else
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8273 do
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8278 ac_cv_prog_DLLTOOL="${ncn_progname}"
8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280 break 2
8281 fi
8282 done
8283 done
8284 IFS=$as_save_IFS
8285
8286 fi
8287 fi
8288 DLLTOOL=$ac_cv_prog_DLLTOOL
8289 if test -n "$DLLTOOL"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8291 $as_echo "$DLLTOOL" >&6; }
8292 else
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8295 fi
8296
8297
8298 done
8299 fi
8300
8301 for ncn_progname in dlltool; do
8302 if test -n "$ncn_tool_prefix"; then
8303 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8304 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306 $as_echo_n "checking for $ac_word... " >&6; }
8307 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 if test -n "$DLLTOOL"; then
8311 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8312 else
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 for as_dir in $PATH
8315 do
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8320 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 break 2
8323 fi
8324 done
8325 done
8326 IFS=$as_save_IFS
8327
8328 fi
8329 fi
8330 DLLTOOL=$ac_cv_prog_DLLTOOL
8331 if test -n "$DLLTOOL"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8333 $as_echo "$DLLTOOL" >&6; }
8334 else
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8337 fi
8338
8339
8340 fi
8341 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8343 set dummy ${ncn_progname}; ac_word=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 if test -n "$DLLTOOL"; then
8350 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8354 do
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 ac_cv_prog_DLLTOOL="${ncn_progname}"
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 break 2
8362 fi
8363 done
8364 done
8365 IFS=$as_save_IFS
8366
8367 fi
8368 fi
8369 DLLTOOL=$ac_cv_prog_DLLTOOL
8370 if test -n "$DLLTOOL"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8372 $as_echo "$DLLTOOL" >&6; }
8373 else
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8376 fi
8377
8378
8379 fi
8380 test -n "$ac_cv_prog_DLLTOOL" && break
8381 done
8382
8383 if test -z "$ac_cv_prog_DLLTOOL" ; then
8384 set dummy dlltool
8385 if test $build = $host ; then
8386 DLLTOOL="$2"
8387 else
8388 DLLTOOL="${ncn_tool_prefix}$2"
8389 fi
8390 fi
8391
8392
8393
8394 if test -n "$LD"; then
8395 ac_cv_prog_LD=$LD
8396 elif test -n "$ac_cv_prog_LD"; then
8397 LD=$ac_cv_prog_LD
8398 fi
8399
8400 if test -n "$ac_cv_prog_LD"; then
8401 for ncn_progname in ld; do
8402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8403 set dummy ${ncn_progname}; ac_word=$2
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 $as_echo_n "checking for $ac_word... " >&6; }
8406 if test "${ac_cv_prog_LD+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 if test -n "$LD"; then
8410 ac_cv_prog_LD="$LD" # Let the user override the test.
8411 else
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8414 do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419 ac_cv_prog_LD="${ncn_progname}"
8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8422 fi
8423 done
8424 done
8425 IFS=$as_save_IFS
8426
8427 fi
8428 fi
8429 LD=$ac_cv_prog_LD
8430 if test -n "$LD"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8432 $as_echo "$LD" >&6; }
8433 else
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8436 fi
8437
8438
8439 done
8440 fi
8441
8442 for ncn_progname in ld; do
8443 if test -n "$ncn_tool_prefix"; then
8444 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8445 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447 $as_echo_n "checking for $ac_word... " >&6; }
8448 if test "${ac_cv_prog_LD+set}" = set; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 if test -n "$LD"; then
8452 ac_cv_prog_LD="$LD" # Let the user override the test.
8453 else
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455 for as_dir in $PATH
8456 do
8457 IFS=$as_save_IFS
8458 test -z "$as_dir" && as_dir=.
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8461 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8463 break 2
8464 fi
8465 done
8466 done
8467 IFS=$as_save_IFS
8468
8469 fi
8470 fi
8471 LD=$ac_cv_prog_LD
8472 if test -n "$LD"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8474 $as_echo "$LD" >&6; }
8475 else
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8478 fi
8479
8480
8481 fi
8482 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8484 set dummy ${ncn_progname}; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if test "${ac_cv_prog_LD+set}" = set; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 if test -n "$LD"; then
8491 ac_cv_prog_LD="$LD" # Let the user override the test.
8492 else
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8495 do
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8500 ac_cv_prog_LD="${ncn_progname}"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 break 2
8503 fi
8504 done
8505 done
8506 IFS=$as_save_IFS
8507
8508 fi
8509 fi
8510 LD=$ac_cv_prog_LD
8511 if test -n "$LD"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8513 $as_echo "$LD" >&6; }
8514 else
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8517 fi
8518
8519
8520 fi
8521 test -n "$ac_cv_prog_LD" && break
8522 done
8523
8524 if test -z "$ac_cv_prog_LD" ; then
8525 set dummy ld
8526 if test $build = $host ; then
8527 LD="$2"
8528 else
8529 LD="${ncn_tool_prefix}$2"
8530 fi
8531 fi
8532
8533
8534
8535 if test -n "$LIPO"; then
8536 ac_cv_prog_LIPO=$LIPO
8537 elif test -n "$ac_cv_prog_LIPO"; then
8538 LIPO=$ac_cv_prog_LIPO
8539 fi
8540
8541 if test -n "$ac_cv_prog_LIPO"; then
8542 for ncn_progname in lipo; do
8543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8544 set dummy ${ncn_progname}; ac_word=$2
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546 $as_echo_n "checking for $ac_word... " >&6; }
8547 if test "${ac_cv_prog_LIPO+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 if test -n "$LIPO"; then
8551 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8552 else
8553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554 for as_dir in $PATH
8555 do
8556 IFS=$as_save_IFS
8557 test -z "$as_dir" && as_dir=.
8558 for ac_exec_ext in '' $ac_executable_extensions; do
8559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8560 ac_cv_prog_LIPO="${ncn_progname}"
8561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562 break 2
8563 fi
8564 done
8565 done
8566 IFS=$as_save_IFS
8567
8568 fi
8569 fi
8570 LIPO=$ac_cv_prog_LIPO
8571 if test -n "$LIPO"; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8573 $as_echo "$LIPO" >&6; }
8574 else
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8577 fi
8578
8579
8580 done
8581 fi
8582
8583 for ncn_progname in lipo; do
8584 if test -n "$ncn_tool_prefix"; then
8585 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8586 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588 $as_echo_n "checking for $ac_word... " >&6; }
8589 if test "${ac_cv_prog_LIPO+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 if test -n "$LIPO"; then
8593 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8594 else
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 for as_dir in $PATH
8597 do
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8602 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 break 2
8605 fi
8606 done
8607 done
8608 IFS=$as_save_IFS
8609
8610 fi
8611 fi
8612 LIPO=$ac_cv_prog_LIPO
8613 if test -n "$LIPO"; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8615 $as_echo "$LIPO" >&6; }
8616 else
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 $as_echo "no" >&6; }
8619 fi
8620
8621
8622 fi
8623 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8625 set dummy ${ncn_progname}; ac_word=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if test "${ac_cv_prog_LIPO+set}" = set; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 if test -n "$LIPO"; then
8632 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8633 else
8634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635 for as_dir in $PATH
8636 do
8637 IFS=$as_save_IFS
8638 test -z "$as_dir" && as_dir=.
8639 for ac_exec_ext in '' $ac_executable_extensions; do
8640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8641 ac_cv_prog_LIPO="${ncn_progname}"
8642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8643 break 2
8644 fi
8645 done
8646 done
8647 IFS=$as_save_IFS
8648
8649 fi
8650 fi
8651 LIPO=$ac_cv_prog_LIPO
8652 if test -n "$LIPO"; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8654 $as_echo "$LIPO" >&6; }
8655 else
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 $as_echo "no" >&6; }
8658 fi
8659
8660
8661 fi
8662 test -n "$ac_cv_prog_LIPO" && break
8663 done
8664
8665 if test -z "$ac_cv_prog_LIPO" ; then
8666 set dummy lipo
8667 if test $build = $host ; then
8668 LIPO="$2"
8669 else
8670 LIPO="${ncn_tool_prefix}$2"
8671 fi
8672 fi
8673
8674
8675
8676 if test -n "$NM"; then
8677 ac_cv_prog_NM=$NM
8678 elif test -n "$ac_cv_prog_NM"; then
8679 NM=$ac_cv_prog_NM
8680 fi
8681
8682 if test -n "$ac_cv_prog_NM"; then
8683 for ncn_progname in nm; do
8684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8685 set dummy ${ncn_progname}; ac_word=$2
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687 $as_echo_n "checking for $ac_word... " >&6; }
8688 if test "${ac_cv_prog_NM+set}" = set; then :
8689 $as_echo_n "(cached) " >&6
8690 else
8691 if test -n "$NM"; then
8692 ac_cv_prog_NM="$NM" # Let the user override the test.
8693 else
8694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 for as_dir in $PATH
8696 do
8697 IFS=$as_save_IFS
8698 test -z "$as_dir" && as_dir=.
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8701 ac_cv_prog_NM="${ncn_progname}"
8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 break 2
8704 fi
8705 done
8706 done
8707 IFS=$as_save_IFS
8708
8709 fi
8710 fi
8711 NM=$ac_cv_prog_NM
8712 if test -n "$NM"; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8714 $as_echo "$NM" >&6; }
8715 else
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 $as_echo "no" >&6; }
8718 fi
8719
8720
8721 done
8722 fi
8723
8724 for ncn_progname in nm; do
8725 if test -n "$ncn_tool_prefix"; then
8726 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8727 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if test "${ac_cv_prog_NM+set}" = set; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 if test -n "$NM"; then
8734 ac_cv_prog_NM="$NM" # Let the user override the test.
8735 else
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8738 do
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8743 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 break 2
8746 fi
8747 done
8748 done
8749 IFS=$as_save_IFS
8750
8751 fi
8752 fi
8753 NM=$ac_cv_prog_NM
8754 if test -n "$NM"; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8756 $as_echo "$NM" >&6; }
8757 else
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759 $as_echo "no" >&6; }
8760 fi
8761
8762
8763 fi
8764 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8766 set dummy ${ncn_progname}; ac_word=$2
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8768 $as_echo_n "checking for $ac_word... " >&6; }
8769 if test "${ac_cv_prog_NM+set}" = set; then :
8770 $as_echo_n "(cached) " >&6
8771 else
8772 if test -n "$NM"; then
8773 ac_cv_prog_NM="$NM" # Let the user override the test.
8774 else
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776 for as_dir in $PATH
8777 do
8778 IFS=$as_save_IFS
8779 test -z "$as_dir" && as_dir=.
8780 for ac_exec_ext in '' $ac_executable_extensions; do
8781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8782 ac_cv_prog_NM="${ncn_progname}"
8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8784 break 2
8785 fi
8786 done
8787 done
8788 IFS=$as_save_IFS
8789
8790 fi
8791 fi
8792 NM=$ac_cv_prog_NM
8793 if test -n "$NM"; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8795 $as_echo "$NM" >&6; }
8796 else
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8799 fi
8800
8801
8802 fi
8803 test -n "$ac_cv_prog_NM" && break
8804 done
8805
8806 if test -z "$ac_cv_prog_NM" ; then
8807 set dummy nm
8808 if test $build = $host ; then
8809 NM="$2"
8810 else
8811 NM="${ncn_tool_prefix}$2"
8812 fi
8813 fi
8814
8815
8816
8817 if test -n "$RANLIB"; then
8818 ac_cv_prog_RANLIB=$RANLIB
8819 elif test -n "$ac_cv_prog_RANLIB"; then
8820 RANLIB=$ac_cv_prog_RANLIB
8821 fi
8822
8823 if test -n "$ac_cv_prog_RANLIB"; then
8824 for ncn_progname in ranlib; do
8825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8826 set dummy ${ncn_progname}; ac_word=$2
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8828 $as_echo_n "checking for $ac_word... " >&6; }
8829 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8830 $as_echo_n "(cached) " >&6
8831 else
8832 if test -n "$RANLIB"; then
8833 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8834 else
8835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 for as_dir in $PATH
8837 do
8838 IFS=$as_save_IFS
8839 test -z "$as_dir" && as_dir=.
8840 for ac_exec_ext in '' $ac_executable_extensions; do
8841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8842 ac_cv_prog_RANLIB="${ncn_progname}"
8843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8844 break 2
8845 fi
8846 done
8847 done
8848 IFS=$as_save_IFS
8849
8850 fi
8851 fi
8852 RANLIB=$ac_cv_prog_RANLIB
8853 if test -n "$RANLIB"; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8855 $as_echo "$RANLIB" >&6; }
8856 else
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858 $as_echo "no" >&6; }
8859 fi
8860
8861
8862 done
8863 fi
8864
8865 for ncn_progname in ranlib; do
8866 if test -n "$ncn_tool_prefix"; then
8867 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8868 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870 $as_echo_n "checking for $ac_word... " >&6; }
8871 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 if test -n "$RANLIB"; then
8875 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8876 else
8877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878 for as_dir in $PATH
8879 do
8880 IFS=$as_save_IFS
8881 test -z "$as_dir" && as_dir=.
8882 for ac_exec_ext in '' $ac_executable_extensions; do
8883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8884 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8886 break 2
8887 fi
8888 done
8889 done
8890 IFS=$as_save_IFS
8891
8892 fi
8893 fi
8894 RANLIB=$ac_cv_prog_RANLIB
8895 if test -n "$RANLIB"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8897 $as_echo "$RANLIB" >&6; }
8898 else
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900 $as_echo "no" >&6; }
8901 fi
8902
8903
8904 fi
8905 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8907 set dummy ${ncn_progname}; ac_word=$2
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909 $as_echo_n "checking for $ac_word... " >&6; }
8910 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 if test -n "$RANLIB"; then
8914 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8915 else
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917 for as_dir in $PATH
8918 do
8919 IFS=$as_save_IFS
8920 test -z "$as_dir" && as_dir=.
8921 for ac_exec_ext in '' $ac_executable_extensions; do
8922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8923 ac_cv_prog_RANLIB="${ncn_progname}"
8924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8925 break 2
8926 fi
8927 done
8928 done
8929 IFS=$as_save_IFS
8930
8931 fi
8932 fi
8933 RANLIB=$ac_cv_prog_RANLIB
8934 if test -n "$RANLIB"; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8936 $as_echo "$RANLIB" >&6; }
8937 else
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8940 fi
8941
8942
8943 fi
8944 test -n "$ac_cv_prog_RANLIB" && break
8945 done
8946
8947 if test -z "$ac_cv_prog_RANLIB" ; then
8948 RANLIB="true"
8949 fi
8950
8951
8952
8953 if test -n "$STRIP"; then
8954 ac_cv_prog_STRIP=$STRIP
8955 elif test -n "$ac_cv_prog_STRIP"; then
8956 STRIP=$ac_cv_prog_STRIP
8957 fi
8958
8959 if test -n "$ac_cv_prog_STRIP"; then
8960 for ncn_progname in strip; do
8961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8962 set dummy ${ncn_progname}; ac_word=$2
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964 $as_echo_n "checking for $ac_word... " >&6; }
8965 if test "${ac_cv_prog_STRIP+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 if test -n "$STRIP"; then
8969 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8970 else
8971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8973 do
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8978 ac_cv_prog_STRIP="${ncn_progname}"
8979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 break 2
8981 fi
8982 done
8983 done
8984 IFS=$as_save_IFS
8985
8986 fi
8987 fi
8988 STRIP=$ac_cv_prog_STRIP
8989 if test -n "$STRIP"; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8991 $as_echo "$STRIP" >&6; }
8992 else
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994 $as_echo "no" >&6; }
8995 fi
8996
8997
8998 done
8999 fi
9000
9001 for ncn_progname in strip; do
9002 if test -n "$ncn_tool_prefix"; then
9003 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9004 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006 $as_echo_n "checking for $ac_word... " >&6; }
9007 if test "${ac_cv_prog_STRIP+set}" = set; then :
9008 $as_echo_n "(cached) " >&6
9009 else
9010 if test -n "$STRIP"; then
9011 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9012 else
9013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014 for as_dir in $PATH
9015 do
9016 IFS=$as_save_IFS
9017 test -z "$as_dir" && as_dir=.
9018 for ac_exec_ext in '' $ac_executable_extensions; do
9019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9020 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9022 break 2
9023 fi
9024 done
9025 done
9026 IFS=$as_save_IFS
9027
9028 fi
9029 fi
9030 STRIP=$ac_cv_prog_STRIP
9031 if test -n "$STRIP"; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9033 $as_echo "$STRIP" >&6; }
9034 else
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }
9037 fi
9038
9039
9040 fi
9041 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9043 set dummy ${ncn_progname}; ac_word=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if test "${ac_cv_prog_STRIP+set}" = set; then :
9047 $as_echo_n "(cached) " >&6
9048 else
9049 if test -n "$STRIP"; then
9050 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9051 else
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 for as_dir in $PATH
9054 do
9055 IFS=$as_save_IFS
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9059 ac_cv_prog_STRIP="${ncn_progname}"
9060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9061 break 2
9062 fi
9063 done
9064 done
9065 IFS=$as_save_IFS
9066
9067 fi
9068 fi
9069 STRIP=$ac_cv_prog_STRIP
9070 if test -n "$STRIP"; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9072 $as_echo "$STRIP" >&6; }
9073 else
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 $as_echo "no" >&6; }
9076 fi
9077
9078
9079 fi
9080 test -n "$ac_cv_prog_STRIP" && break
9081 done
9082
9083 if test -z "$ac_cv_prog_STRIP" ; then
9084 STRIP="true"
9085 fi
9086
9087
9088
9089 if test -n "$WINDRES"; then
9090 ac_cv_prog_WINDRES=$WINDRES
9091 elif test -n "$ac_cv_prog_WINDRES"; then
9092 WINDRES=$ac_cv_prog_WINDRES
9093 fi
9094
9095 if test -n "$ac_cv_prog_WINDRES"; then
9096 for ncn_progname in windres; do
9097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9098 set dummy ${ncn_progname}; ac_word=$2
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9100 $as_echo_n "checking for $ac_word... " >&6; }
9101 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
9103 else
9104 if test -n "$WINDRES"; then
9105 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9106 else
9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 for as_dir in $PATH
9109 do
9110 IFS=$as_save_IFS
9111 test -z "$as_dir" && as_dir=.
9112 for ac_exec_ext in '' $ac_executable_extensions; do
9113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9114 ac_cv_prog_WINDRES="${ncn_progname}"
9115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9116 break 2
9117 fi
9118 done
9119 done
9120 IFS=$as_save_IFS
9121
9122 fi
9123 fi
9124 WINDRES=$ac_cv_prog_WINDRES
9125 if test -n "$WINDRES"; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9127 $as_echo "$WINDRES" >&6; }
9128 else
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 $as_echo "no" >&6; }
9131 fi
9132
9133
9134 done
9135 fi
9136
9137 for ncn_progname in windres; do
9138 if test -n "$ncn_tool_prefix"; then
9139 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9140 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9142 $as_echo_n "checking for $ac_word... " >&6; }
9143 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 if test -n "$WINDRES"; then
9147 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9148 else
9149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150 for as_dir in $PATH
9151 do
9152 IFS=$as_save_IFS
9153 test -z "$as_dir" && as_dir=.
9154 for ac_exec_ext in '' $ac_executable_extensions; do
9155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9156 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9158 break 2
9159 fi
9160 done
9161 done
9162 IFS=$as_save_IFS
9163
9164 fi
9165 fi
9166 WINDRES=$ac_cv_prog_WINDRES
9167 if test -n "$WINDRES"; then
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9169 $as_echo "$WINDRES" >&6; }
9170 else
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172 $as_echo "no" >&6; }
9173 fi
9174
9175
9176 fi
9177 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9179 set dummy ${ncn_progname}; ac_word=$2
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9181 $as_echo_n "checking for $ac_word... " >&6; }
9182 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 if test -n "$WINDRES"; then
9186 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9187 else
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9190 do
9191 IFS=$as_save_IFS
9192 test -z "$as_dir" && as_dir=.
9193 for ac_exec_ext in '' $ac_executable_extensions; do
9194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9195 ac_cv_prog_WINDRES="${ncn_progname}"
9196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9197 break 2
9198 fi
9199 done
9200 done
9201 IFS=$as_save_IFS
9202
9203 fi
9204 fi
9205 WINDRES=$ac_cv_prog_WINDRES
9206 if test -n "$WINDRES"; then
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9208 $as_echo "$WINDRES" >&6; }
9209 else
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 $as_echo "no" >&6; }
9212 fi
9213
9214
9215 fi
9216 test -n "$ac_cv_prog_WINDRES" && break
9217 done
9218
9219 if test -z "$ac_cv_prog_WINDRES" ; then
9220 set dummy windres
9221 if test $build = $host ; then
9222 WINDRES="$2"
9223 else
9224 WINDRES="${ncn_tool_prefix}$2"
9225 fi
9226 fi
9227
9228
9229
9230 if test -n "$WINDMC"; then
9231 ac_cv_prog_WINDMC=$WINDMC
9232 elif test -n "$ac_cv_prog_WINDMC"; then
9233 WINDMC=$ac_cv_prog_WINDMC
9234 fi
9235
9236 if test -n "$ac_cv_prog_WINDMC"; then
9237 for ncn_progname in windmc; do
9238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9239 set dummy ${ncn_progname}; ac_word=$2
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241 $as_echo_n "checking for $ac_word... " >&6; }
9242 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 if test -n "$WINDMC"; then
9246 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9247 else
9248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249 for as_dir in $PATH
9250 do
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
9253 for ac_exec_ext in '' $ac_executable_extensions; do
9254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9255 ac_cv_prog_WINDMC="${ncn_progname}"
9256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9257 break 2
9258 fi
9259 done
9260 done
9261 IFS=$as_save_IFS
9262
9263 fi
9264 fi
9265 WINDMC=$ac_cv_prog_WINDMC
9266 if test -n "$WINDMC"; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9268 $as_echo "$WINDMC" >&6; }
9269 else
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9272 fi
9273
9274
9275 done
9276 fi
9277
9278 for ncn_progname in windmc; do
9279 if test -n "$ncn_tool_prefix"; then
9280 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9281 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 $as_echo_n "checking for $ac_word... " >&6; }
9284 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 if test -n "$WINDMC"; then
9288 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9289 else
9290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291 for as_dir in $PATH
9292 do
9293 IFS=$as_save_IFS
9294 test -z "$as_dir" && as_dir=.
9295 for ac_exec_ext in '' $ac_executable_extensions; do
9296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9297 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9299 break 2
9300 fi
9301 done
9302 done
9303 IFS=$as_save_IFS
9304
9305 fi
9306 fi
9307 WINDMC=$ac_cv_prog_WINDMC
9308 if test -n "$WINDMC"; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9310 $as_echo "$WINDMC" >&6; }
9311 else
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313 $as_echo "no" >&6; }
9314 fi
9315
9316
9317 fi
9318 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9320 set dummy ${ncn_progname}; ac_word=$2
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9322 $as_echo_n "checking for $ac_word... " >&6; }
9323 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9324 $as_echo_n "(cached) " >&6
9325 else
9326 if test -n "$WINDMC"; then
9327 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9328 else
9329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330 for as_dir in $PATH
9331 do
9332 IFS=$as_save_IFS
9333 test -z "$as_dir" && as_dir=.
9334 for ac_exec_ext in '' $ac_executable_extensions; do
9335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9336 ac_cv_prog_WINDMC="${ncn_progname}"
9337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9338 break 2
9339 fi
9340 done
9341 done
9342 IFS=$as_save_IFS
9343
9344 fi
9345 fi
9346 WINDMC=$ac_cv_prog_WINDMC
9347 if test -n "$WINDMC"; then
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9349 $as_echo "$WINDMC" >&6; }
9350 else
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352 $as_echo "no" >&6; }
9353 fi
9354
9355
9356 fi
9357 test -n "$ac_cv_prog_WINDMC" && break
9358 done
9359
9360 if test -z "$ac_cv_prog_WINDMC" ; then
9361 set dummy windmc
9362 if test $build = $host ; then
9363 WINDMC="$2"
9364 else
9365 WINDMC="${ncn_tool_prefix}$2"
9366 fi
9367 fi
9368
9369
9370
9371 if test -n "$OBJCOPY"; then
9372 ac_cv_prog_OBJCOPY=$OBJCOPY
9373 elif test -n "$ac_cv_prog_OBJCOPY"; then
9374 OBJCOPY=$ac_cv_prog_OBJCOPY
9375 fi
9376
9377 if test -n "$ac_cv_prog_OBJCOPY"; then
9378 for ncn_progname in objcopy; do
9379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9380 set dummy ${ncn_progname}; ac_word=$2
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9382 $as_echo_n "checking for $ac_word... " >&6; }
9383 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386 if test -n "$OBJCOPY"; then
9387 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9388 else
9389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390 for as_dir in $PATH
9391 do
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
9394 for ac_exec_ext in '' $ac_executable_extensions; do
9395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9396 ac_cv_prog_OBJCOPY="${ncn_progname}"
9397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9398 break 2
9399 fi
9400 done
9401 done
9402 IFS=$as_save_IFS
9403
9404 fi
9405 fi
9406 OBJCOPY=$ac_cv_prog_OBJCOPY
9407 if test -n "$OBJCOPY"; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9409 $as_echo "$OBJCOPY" >&6; }
9410 else
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412 $as_echo "no" >&6; }
9413 fi
9414
9415
9416 done
9417 fi
9418
9419 for ncn_progname in objcopy; do
9420 if test -n "$ncn_tool_prefix"; then
9421 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9422 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424 $as_echo_n "checking for $ac_word... " >&6; }
9425 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9426 $as_echo_n "(cached) " >&6
9427 else
9428 if test -n "$OBJCOPY"; then
9429 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9430 else
9431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432 for as_dir in $PATH
9433 do
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
9436 for ac_exec_ext in '' $ac_executable_extensions; do
9437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9438 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9440 break 2
9441 fi
9442 done
9443 done
9444 IFS=$as_save_IFS
9445
9446 fi
9447 fi
9448 OBJCOPY=$ac_cv_prog_OBJCOPY
9449 if test -n "$OBJCOPY"; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9451 $as_echo "$OBJCOPY" >&6; }
9452 else
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454 $as_echo "no" >&6; }
9455 fi
9456
9457
9458 fi
9459 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9461 set dummy ${ncn_progname}; ac_word=$2
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9463 $as_echo_n "checking for $ac_word... " >&6; }
9464 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9465 $as_echo_n "(cached) " >&6
9466 else
9467 if test -n "$OBJCOPY"; then
9468 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9469 else
9470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471 for as_dir in $PATH
9472 do
9473 IFS=$as_save_IFS
9474 test -z "$as_dir" && as_dir=.
9475 for ac_exec_ext in '' $ac_executable_extensions; do
9476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9477 ac_cv_prog_OBJCOPY="${ncn_progname}"
9478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9479 break 2
9480 fi
9481 done
9482 done
9483 IFS=$as_save_IFS
9484
9485 fi
9486 fi
9487 OBJCOPY=$ac_cv_prog_OBJCOPY
9488 if test -n "$OBJCOPY"; then
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9490 $as_echo "$OBJCOPY" >&6; }
9491 else
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493 $as_echo "no" >&6; }
9494 fi
9495
9496
9497 fi
9498 test -n "$ac_cv_prog_OBJCOPY" && break
9499 done
9500
9501 if test -z "$ac_cv_prog_OBJCOPY" ; then
9502 set dummy objcopy
9503 if test $build = $host ; then
9504 OBJCOPY="$2"
9505 else
9506 OBJCOPY="${ncn_tool_prefix}$2"
9507 fi
9508 fi
9509
9510
9511
9512 if test -n "$OBJDUMP"; then
9513 ac_cv_prog_OBJDUMP=$OBJDUMP
9514 elif test -n "$ac_cv_prog_OBJDUMP"; then
9515 OBJDUMP=$ac_cv_prog_OBJDUMP
9516 fi
9517
9518 if test -n "$ac_cv_prog_OBJDUMP"; then
9519 for ncn_progname in objdump; do
9520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9521 set dummy ${ncn_progname}; ac_word=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 $as_echo_n "checking for $ac_word... " >&6; }
9524 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 if test -n "$OBJDUMP"; then
9528 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9529 else
9530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531 for as_dir in $PATH
9532 do
9533 IFS=$as_save_IFS
9534 test -z "$as_dir" && as_dir=.
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9537 ac_cv_prog_OBJDUMP="${ncn_progname}"
9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9539 break 2
9540 fi
9541 done
9542 done
9543 IFS=$as_save_IFS
9544
9545 fi
9546 fi
9547 OBJDUMP=$ac_cv_prog_OBJDUMP
9548 if test -n "$OBJDUMP"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9550 $as_echo "$OBJDUMP" >&6; }
9551 else
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9554 fi
9555
9556
9557 done
9558 fi
9559
9560 for ncn_progname in objdump; do
9561 if test -n "$ncn_tool_prefix"; then
9562 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9563 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9565 $as_echo_n "checking for $ac_word... " >&6; }
9566 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 if test -n "$OBJDUMP"; then
9570 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9571 else
9572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573 for as_dir in $PATH
9574 do
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
9577 for ac_exec_ext in '' $ac_executable_extensions; do
9578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9579 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9581 break 2
9582 fi
9583 done
9584 done
9585 IFS=$as_save_IFS
9586
9587 fi
9588 fi
9589 OBJDUMP=$ac_cv_prog_OBJDUMP
9590 if test -n "$OBJDUMP"; then
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9592 $as_echo "$OBJDUMP" >&6; }
9593 else
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595 $as_echo "no" >&6; }
9596 fi
9597
9598
9599 fi
9600 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9602 set dummy ${ncn_progname}; ac_word=$2
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9604 $as_echo_n "checking for $ac_word... " >&6; }
9605 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9606 $as_echo_n "(cached) " >&6
9607 else
9608 if test -n "$OBJDUMP"; then
9609 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9610 else
9611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612 for as_dir in $PATH
9613 do
9614 IFS=$as_save_IFS
9615 test -z "$as_dir" && as_dir=.
9616 for ac_exec_ext in '' $ac_executable_extensions; do
9617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9618 ac_cv_prog_OBJDUMP="${ncn_progname}"
9619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9620 break 2
9621 fi
9622 done
9623 done
9624 IFS=$as_save_IFS
9625
9626 fi
9627 fi
9628 OBJDUMP=$ac_cv_prog_OBJDUMP
9629 if test -n "$OBJDUMP"; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9631 $as_echo "$OBJDUMP" >&6; }
9632 else
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634 $as_echo "no" >&6; }
9635 fi
9636
9637
9638 fi
9639 test -n "$ac_cv_prog_OBJDUMP" && break
9640 done
9641
9642 if test -z "$ac_cv_prog_OBJDUMP" ; then
9643 set dummy objdump
9644 if test $build = $host ; then
9645 OBJDUMP="$2"
9646 else
9647 OBJDUMP="${ncn_tool_prefix}$2"
9648 fi
9649 fi
9650
9651
9652
9653 if test -n "$READELF"; then
9654 ac_cv_prog_READELF=$READELF
9655 elif test -n "$ac_cv_prog_READELF"; then
9656 READELF=$ac_cv_prog_READELF
9657 fi
9658
9659 if test -n "$ac_cv_prog_READELF"; then
9660 for ncn_progname in readelf; do
9661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9662 set dummy ${ncn_progname}; ac_word=$2
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664 $as_echo_n "checking for $ac_word... " >&6; }
9665 if test "${ac_cv_prog_READELF+set}" = set; then :
9666 $as_echo_n "(cached) " >&6
9667 else
9668 if test -n "$READELF"; then
9669 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9670 else
9671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672 for as_dir in $PATH
9673 do
9674 IFS=$as_save_IFS
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9678 ac_cv_prog_READELF="${ncn_progname}"
9679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9680 break 2
9681 fi
9682 done
9683 done
9684 IFS=$as_save_IFS
9685
9686 fi
9687 fi
9688 READELF=$ac_cv_prog_READELF
9689 if test -n "$READELF"; then
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9691 $as_echo "$READELF" >&6; }
9692 else
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694 $as_echo "no" >&6; }
9695 fi
9696
9697
9698 done
9699 fi
9700
9701 for ncn_progname in readelf; do
9702 if test -n "$ncn_tool_prefix"; then
9703 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9704 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9706 $as_echo_n "checking for $ac_word... " >&6; }
9707 if test "${ac_cv_prog_READELF+set}" = set; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 if test -n "$READELF"; then
9711 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9712 else
9713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714 for as_dir in $PATH
9715 do
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9720 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 break 2
9723 fi
9724 done
9725 done
9726 IFS=$as_save_IFS
9727
9728 fi
9729 fi
9730 READELF=$ac_cv_prog_READELF
9731 if test -n "$READELF"; then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9733 $as_echo "$READELF" >&6; }
9734 else
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736 $as_echo "no" >&6; }
9737 fi
9738
9739
9740 fi
9741 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9743 set dummy ${ncn_progname}; ac_word=$2
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9745 $as_echo_n "checking for $ac_word... " >&6; }
9746 if test "${ac_cv_prog_READELF+set}" = set; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 if test -n "$READELF"; then
9750 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9751 else
9752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9753 for as_dir in $PATH
9754 do
9755 IFS=$as_save_IFS
9756 test -z "$as_dir" && as_dir=.
9757 for ac_exec_ext in '' $ac_executable_extensions; do
9758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9759 ac_cv_prog_READELF="${ncn_progname}"
9760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9761 break 2
9762 fi
9763 done
9764 done
9765 IFS=$as_save_IFS
9766
9767 fi
9768 fi
9769 READELF=$ac_cv_prog_READELF
9770 if test -n "$READELF"; then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9772 $as_echo "$READELF" >&6; }
9773 else
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775 $as_echo "no" >&6; }
9776 fi
9777
9778
9779 fi
9780 test -n "$ac_cv_prog_READELF" && break
9781 done
9782
9783 if test -z "$ac_cv_prog_READELF" ; then
9784 set dummy readelf
9785 if test $build = $host ; then
9786 READELF="$2"
9787 else
9788 READELF="${ncn_tool_prefix}$2"
9789 fi
9790 fi
9791
9792
9793
9794
9795
9796
9797 # Target tools.
9798
9799 # Check whether --with-build-time-tools was given.
9800 if test "${with_build_time_tools+set}" = set; then :
9801 withval=$with_build_time_tools; case x"$withval" in
9802 x/*) ;;
9803 *)
9804 with_build_time_tools=
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9806 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9807 ;;
9808 esac
9809 else
9810 with_build_time_tools=
9811 fi
9812
9813
9814
9815
9816 if test -n "$CC_FOR_TARGET"; then
9817 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9818 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9819 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9820 fi
9821
9822 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9823 for ncn_progname in cc gcc; do
9824 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9825 set dummy ${ncn_progname}; ac_word=$2
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827 $as_echo_n "checking for $ac_word... " >&6; }
9828 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9829 $as_echo_n "(cached) " >&6
9830 else
9831 if test -n "$CC_FOR_TARGET"; then
9832 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9833 else
9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835 for as_dir in $PATH
9836 do
9837 IFS=$as_save_IFS
9838 test -z "$as_dir" && as_dir=.
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9841 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9843 break 2
9844 fi
9845 done
9846 done
9847 IFS=$as_save_IFS
9848
9849 fi
9850 fi
9851 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9852 if test -n "$CC_FOR_TARGET"; then
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9854 $as_echo "$CC_FOR_TARGET" >&6; }
9855 else
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857 $as_echo "no" >&6; }
9858 fi
9859
9860
9861 done
9862 fi
9863
9864 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9865 for ncn_progname in cc gcc; do
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9867 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9868 if test -x $with_build_time_tools/${ncn_progname}; then
9869 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9871 $as_echo "yes" >&6; }
9872 break
9873 else
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 $as_echo "no" >&6; }
9876 fi
9877 done
9878 fi
9879
9880 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9881 for ncn_progname in cc gcc; do
9882 if test -n "$ncn_target_tool_prefix"; then
9883 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9884 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9886 $as_echo_n "checking for $ac_word... " >&6; }
9887 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9888 $as_echo_n "(cached) " >&6
9889 else
9890 if test -n "$CC_FOR_TARGET"; then
9891 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9892 else
9893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894 for as_dir in $PATH
9895 do
9896 IFS=$as_save_IFS
9897 test -z "$as_dir" && as_dir=.
9898 for ac_exec_ext in '' $ac_executable_extensions; do
9899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9900 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9902 break 2
9903 fi
9904 done
9905 done
9906 IFS=$as_save_IFS
9907
9908 fi
9909 fi
9910 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9911 if test -n "$CC_FOR_TARGET"; then
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9913 $as_echo "$CC_FOR_TARGET" >&6; }
9914 else
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916 $as_echo "no" >&6; }
9917 fi
9918
9919
9920 fi
9921 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9923 set dummy ${ncn_progname}; ac_word=$2
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925 $as_echo_n "checking for $ac_word... " >&6; }
9926 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
9928 else
9929 if test -n "$CC_FOR_TARGET"; then
9930 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9931 else
9932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933 for as_dir in $PATH
9934 do
9935 IFS=$as_save_IFS
9936 test -z "$as_dir" && as_dir=.
9937 for ac_exec_ext in '' $ac_executable_extensions; do
9938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9939 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9941 break 2
9942 fi
9943 done
9944 done
9945 IFS=$as_save_IFS
9946
9947 fi
9948 fi
9949 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9950 if test -n "$CC_FOR_TARGET"; then
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9952 $as_echo "$CC_FOR_TARGET" >&6; }
9953 else
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9956 fi
9957
9958
9959 fi
9960 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9961 done
9962 fi
9963
9964 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9965 set dummy cc gcc
9966 if test $build = $target ; then
9967 CC_FOR_TARGET="$2"
9968 else
9969 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9970 fi
9971 else
9972 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9973 fi
9974
9975
9976
9977 if test -n "$CXX_FOR_TARGET"; then
9978 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9979 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9980 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9981 fi
9982
9983 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9984 for ncn_progname in c++ g++ cxx gxx; do
9985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9986 set dummy ${ncn_progname}; ac_word=$2
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988 $as_echo_n "checking for $ac_word... " >&6; }
9989 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 if test -n "$CXX_FOR_TARGET"; then
9993 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9994 else
9995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996 for as_dir in $PATH
9997 do
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10002 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004 break 2
10005 fi
10006 done
10007 done
10008 IFS=$as_save_IFS
10009
10010 fi
10011 fi
10012 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10013 if test -n "$CXX_FOR_TARGET"; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10015 $as_echo "$CXX_FOR_TARGET" >&6; }
10016 else
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018 $as_echo "no" >&6; }
10019 fi
10020
10021
10022 done
10023 fi
10024
10025 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10026 for ncn_progname in c++ g++ cxx gxx; do
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10028 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10029 if test -x $with_build_time_tools/${ncn_progname}; then
10030 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10032 $as_echo "yes" >&6; }
10033 break
10034 else
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10036 $as_echo "no" >&6; }
10037 fi
10038 done
10039 fi
10040
10041 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10042 for ncn_progname in c++ g++ cxx gxx; do
10043 if test -n "$ncn_target_tool_prefix"; then
10044 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10045 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10047 $as_echo_n "checking for $ac_word... " >&6; }
10048 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10049 $as_echo_n "(cached) " >&6
10050 else
10051 if test -n "$CXX_FOR_TARGET"; then
10052 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10053 else
10054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10055 for as_dir in $PATH
10056 do
10057 IFS=$as_save_IFS
10058 test -z "$as_dir" && as_dir=.
10059 for ac_exec_ext in '' $ac_executable_extensions; do
10060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10061 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10063 break 2
10064 fi
10065 done
10066 done
10067 IFS=$as_save_IFS
10068
10069 fi
10070 fi
10071 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10072 if test -n "$CXX_FOR_TARGET"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10074 $as_echo "$CXX_FOR_TARGET" >&6; }
10075 else
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10078 fi
10079
10080
10081 fi
10082 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10084 set dummy ${ncn_progname}; ac_word=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10088 $as_echo_n "(cached) " >&6
10089 else
10090 if test -n "$CXX_FOR_TARGET"; then
10091 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10092 else
10093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094 for as_dir in $PATH
10095 do
10096 IFS=$as_save_IFS
10097 test -z "$as_dir" && as_dir=.
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10100 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10102 break 2
10103 fi
10104 done
10105 done
10106 IFS=$as_save_IFS
10107
10108 fi
10109 fi
10110 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10111 if test -n "$CXX_FOR_TARGET"; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10113 $as_echo "$CXX_FOR_TARGET" >&6; }
10114 else
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116 $as_echo "no" >&6; }
10117 fi
10118
10119
10120 fi
10121 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10122 done
10123 fi
10124
10125 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10126 set dummy c++ g++ cxx gxx
10127 if test $build = $target ; then
10128 CXX_FOR_TARGET="$2"
10129 else
10130 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10131 fi
10132 else
10133 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10134 fi
10135
10136
10137
10138 if test -n "$GCC_FOR_TARGET"; then
10139 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10140 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10141 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10142 fi
10143
10144 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10145 for ncn_progname in gcc; do
10146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10147 set dummy ${ncn_progname}; ac_word=$2
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149 $as_echo_n "checking for $ac_word... " >&6; }
10150 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10151 $as_echo_n "(cached) " >&6
10152 else
10153 if test -n "$GCC_FOR_TARGET"; then
10154 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10155 else
10156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in $PATH
10158 do
10159 IFS=$as_save_IFS
10160 test -z "$as_dir" && as_dir=.
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10163 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10165 break 2
10166 fi
10167 done
10168 done
10169 IFS=$as_save_IFS
10170
10171 fi
10172 fi
10173 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10174 if test -n "$GCC_FOR_TARGET"; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10176 $as_echo "$GCC_FOR_TARGET" >&6; }
10177 else
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; }
10180 fi
10181
10182
10183 done
10184 fi
10185
10186 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10187 for ncn_progname in gcc; do
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10189 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10190 if test -x $with_build_time_tools/${ncn_progname}; then
10191 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10193 $as_echo "yes" >&6; }
10194 break
10195 else
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197 $as_echo "no" >&6; }
10198 fi
10199 done
10200 fi
10201
10202 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10203 for ncn_progname in gcc; do
10204 if test -n "$ncn_target_tool_prefix"; then
10205 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10206 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10208 $as_echo_n "checking for $ac_word... " >&6; }
10209 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10210 $as_echo_n "(cached) " >&6
10211 else
10212 if test -n "$GCC_FOR_TARGET"; then
10213 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10214 else
10215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216 for as_dir in $PATH
10217 do
10218 IFS=$as_save_IFS
10219 test -z "$as_dir" && as_dir=.
10220 for ac_exec_ext in '' $ac_executable_extensions; do
10221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10222 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10224 break 2
10225 fi
10226 done
10227 done
10228 IFS=$as_save_IFS
10229
10230 fi
10231 fi
10232 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10233 if test -n "$GCC_FOR_TARGET"; then
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10235 $as_echo "$GCC_FOR_TARGET" >&6; }
10236 else
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238 $as_echo "no" >&6; }
10239 fi
10240
10241
10242 fi
10243 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10245 set dummy ${ncn_progname}; ac_word=$2
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247 $as_echo_n "checking for $ac_word... " >&6; }
10248 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10249 $as_echo_n "(cached) " >&6
10250 else
10251 if test -n "$GCC_FOR_TARGET"; then
10252 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10253 else
10254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255 for as_dir in $PATH
10256 do
10257 IFS=$as_save_IFS
10258 test -z "$as_dir" && as_dir=.
10259 for ac_exec_ext in '' $ac_executable_extensions; do
10260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10261 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10263 break 2
10264 fi
10265 done
10266 done
10267 IFS=$as_save_IFS
10268
10269 fi
10270 fi
10271 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10272 if test -n "$GCC_FOR_TARGET"; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10274 $as_echo "$GCC_FOR_TARGET" >&6; }
10275 else
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277 $as_echo "no" >&6; }
10278 fi
10279
10280
10281 fi
10282 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10283 done
10284 fi
10285
10286 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10287 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10288 else
10289 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10290 fi
10291
10292
10293
10294 if test -n "$GCJ_FOR_TARGET"; then
10295 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10296 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10297 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10298 fi
10299
10300 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10301 for ncn_progname in gcj; do
10302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10303 set dummy ${ncn_progname}; ac_word=$2
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305 $as_echo_n "checking for $ac_word... " >&6; }
10306 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 if test -n "$GCJ_FOR_TARGET"; then
10310 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10311 else
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10314 do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10319 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10321 break 2
10322 fi
10323 done
10324 done
10325 IFS=$as_save_IFS
10326
10327 fi
10328 fi
10329 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10330 if test -n "$GCJ_FOR_TARGET"; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10332 $as_echo "$GCJ_FOR_TARGET" >&6; }
10333 else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 $as_echo "no" >&6; }
10336 fi
10337
10338
10339 done
10340 fi
10341
10342 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10343 for ncn_progname in gcj; do
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10345 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10346 if test -x $with_build_time_tools/${ncn_progname}; then
10347 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10349 $as_echo "yes" >&6; }
10350 break
10351 else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; }
10354 fi
10355 done
10356 fi
10357
10358 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10359 for ncn_progname in gcj; do
10360 if test -n "$ncn_target_tool_prefix"; then
10361 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10362 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10364 $as_echo_n "checking for $ac_word... " >&6; }
10365 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10366 $as_echo_n "(cached) " >&6
10367 else
10368 if test -n "$GCJ_FOR_TARGET"; then
10369 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10370 else
10371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10372 for as_dir in $PATH
10373 do
10374 IFS=$as_save_IFS
10375 test -z "$as_dir" && as_dir=.
10376 for ac_exec_ext in '' $ac_executable_extensions; do
10377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10378 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10380 break 2
10381 fi
10382 done
10383 done
10384 IFS=$as_save_IFS
10385
10386 fi
10387 fi
10388 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10389 if test -n "$GCJ_FOR_TARGET"; then
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10391 $as_echo "$GCJ_FOR_TARGET" >&6; }
10392 else
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10395 fi
10396
10397
10398 fi
10399 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10401 set dummy ${ncn_progname}; ac_word=$2
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403 $as_echo_n "checking for $ac_word... " >&6; }
10404 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 if test -n "$GCJ_FOR_TARGET"; then
10408 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10409 else
10410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411 for as_dir in $PATH
10412 do
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10417 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10419 break 2
10420 fi
10421 done
10422 done
10423 IFS=$as_save_IFS
10424
10425 fi
10426 fi
10427 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10428 if test -n "$GCJ_FOR_TARGET"; then
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10430 $as_echo "$GCJ_FOR_TARGET" >&6; }
10431 else
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433 $as_echo "no" >&6; }
10434 fi
10435
10436
10437 fi
10438 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10439 done
10440 fi
10441
10442 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10443 set dummy gcj
10444 if test $build = $target ; then
10445 GCJ_FOR_TARGET="$2"
10446 else
10447 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10448 fi
10449 else
10450 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10451 fi
10452
10453
10454
10455 if test -n "$GFORTRAN_FOR_TARGET"; then
10456 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10457 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10458 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10459 fi
10460
10461 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10462 for ncn_progname in gfortran; do
10463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10464 set dummy ${ncn_progname}; ac_word=$2
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10466 $as_echo_n "checking for $ac_word... " >&6; }
10467 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10468 $as_echo_n "(cached) " >&6
10469 else
10470 if test -n "$GFORTRAN_FOR_TARGET"; then
10471 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10472 else
10473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474 for as_dir in $PATH
10475 do
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10480 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10482 break 2
10483 fi
10484 done
10485 done
10486 IFS=$as_save_IFS
10487
10488 fi
10489 fi
10490 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10491 if test -n "$GFORTRAN_FOR_TARGET"; then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10493 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10494 else
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; }
10497 fi
10498
10499
10500 done
10501 fi
10502
10503 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10504 for ncn_progname in gfortran; do
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10506 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10507 if test -x $with_build_time_tools/${ncn_progname}; then
10508 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10510 $as_echo "yes" >&6; }
10511 break
10512 else
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; }
10515 fi
10516 done
10517 fi
10518
10519 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10520 for ncn_progname in gfortran; do
10521 if test -n "$ncn_target_tool_prefix"; then
10522 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10523 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10525 $as_echo_n "checking for $ac_word... " >&6; }
10526 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10527 $as_echo_n "(cached) " >&6
10528 else
10529 if test -n "$GFORTRAN_FOR_TARGET"; then
10530 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10531 else
10532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533 for as_dir in $PATH
10534 do
10535 IFS=$as_save_IFS
10536 test -z "$as_dir" && as_dir=.
10537 for ac_exec_ext in '' $ac_executable_extensions; do
10538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10539 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10541 break 2
10542 fi
10543 done
10544 done
10545 IFS=$as_save_IFS
10546
10547 fi
10548 fi
10549 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10550 if test -n "$GFORTRAN_FOR_TARGET"; then
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10552 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10553 else
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10555 $as_echo "no" >&6; }
10556 fi
10557
10558
10559 fi
10560 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10562 set dummy ${ncn_progname}; ac_word=$2
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564 $as_echo_n "checking for $ac_word... " >&6; }
10565 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10566 $as_echo_n "(cached) " >&6
10567 else
10568 if test -n "$GFORTRAN_FOR_TARGET"; then
10569 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10570 else
10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572 for as_dir in $PATH
10573 do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10578 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10581 fi
10582 done
10583 done
10584 IFS=$as_save_IFS
10585
10586 fi
10587 fi
10588 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10589 if test -n "$GFORTRAN_FOR_TARGET"; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10591 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10592 else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594 $as_echo "no" >&6; }
10595 fi
10596
10597
10598 fi
10599 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10600 done
10601 fi
10602
10603 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10604 set dummy gfortran
10605 if test $build = $target ; then
10606 GFORTRAN_FOR_TARGET="$2"
10607 else
10608 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10609 fi
10610 else
10611 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10612 fi
10613
10614
10615
10616 if test -n "$GOC_FOR_TARGET"; then
10617 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10618 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10619 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10620 fi
10621
10622 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10623 for ncn_progname in gccgo; do
10624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10625 set dummy ${ncn_progname}; ac_word=$2
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10627 $as_echo_n "checking for $ac_word... " >&6; }
10628 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 if test -n "$GOC_FOR_TARGET"; then
10632 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10633 else
10634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635 for as_dir in $PATH
10636 do
10637 IFS=$as_save_IFS
10638 test -z "$as_dir" && as_dir=.
10639 for ac_exec_ext in '' $ac_executable_extensions; do
10640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10641 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10643 break 2
10644 fi
10645 done
10646 done
10647 IFS=$as_save_IFS
10648
10649 fi
10650 fi
10651 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10652 if test -n "$GOC_FOR_TARGET"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10654 $as_echo "$GOC_FOR_TARGET" >&6; }
10655 else
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; }
10658 fi
10659
10660
10661 done
10662 fi
10663
10664 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10665 for ncn_progname in gccgo; do
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10667 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10668 if test -x $with_build_time_tools/${ncn_progname}; then
10669 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10671 $as_echo "yes" >&6; }
10672 break
10673 else
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10675 $as_echo "no" >&6; }
10676 fi
10677 done
10678 fi
10679
10680 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10681 for ncn_progname in gccgo; do
10682 if test -n "$ncn_target_tool_prefix"; then
10683 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10684 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10686 $as_echo_n "checking for $ac_word... " >&6; }
10687 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10688 $as_echo_n "(cached) " >&6
10689 else
10690 if test -n "$GOC_FOR_TARGET"; then
10691 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10692 else
10693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10694 for as_dir in $PATH
10695 do
10696 IFS=$as_save_IFS
10697 test -z "$as_dir" && as_dir=.
10698 for ac_exec_ext in '' $ac_executable_extensions; do
10699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10700 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10702 break 2
10703 fi
10704 done
10705 done
10706 IFS=$as_save_IFS
10707
10708 fi
10709 fi
10710 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10711 if test -n "$GOC_FOR_TARGET"; then
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10713 $as_echo "$GOC_FOR_TARGET" >&6; }
10714 else
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716 $as_echo "no" >&6; }
10717 fi
10718
10719
10720 fi
10721 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10723 set dummy ${ncn_progname}; ac_word=$2
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10725 $as_echo_n "checking for $ac_word... " >&6; }
10726 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10727 $as_echo_n "(cached) " >&6
10728 else
10729 if test -n "$GOC_FOR_TARGET"; then
10730 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10731 else
10732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733 for as_dir in $PATH
10734 do
10735 IFS=$as_save_IFS
10736 test -z "$as_dir" && as_dir=.
10737 for ac_exec_ext in '' $ac_executable_extensions; do
10738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10739 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10741 break 2
10742 fi
10743 done
10744 done
10745 IFS=$as_save_IFS
10746
10747 fi
10748 fi
10749 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10750 if test -n "$GOC_FOR_TARGET"; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10752 $as_echo "$GOC_FOR_TARGET" >&6; }
10753 else
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755 $as_echo "no" >&6; }
10756 fi
10757
10758
10759 fi
10760 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10761 done
10762 fi
10763
10764 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10765 set dummy gccgo
10766 if test $build = $target ; then
10767 GOC_FOR_TARGET="$2"
10768 else
10769 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10770 fi
10771 else
10772 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10773 fi
10774
10775
10776
10777 cat > conftest.c << \EOF
10778 #ifdef __GNUC__
10779 gcc_yay;
10780 #endif
10781 EOF
10782 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10783 have_gcc_for_target=yes
10784 else
10785 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10786 have_gcc_for_target=no
10787 fi
10788 rm conftest.c
10789
10790
10791
10792
10793 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10794 if test -n "$with_build_time_tools"; then
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10796 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10797 if test -x $with_build_time_tools/ar; then
10798 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10799 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10801 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10802 else
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804 $as_echo "no" >&6; }
10805 fi
10806 elif test $build != $host && test $have_gcc_for_target = yes; then
10807 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10808 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10809 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10810 fi
10811 fi
10812 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10813 # Extract the first word of "ar", so it can be a program name with args.
10814 set dummy ar; ac_word=$2
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10816 $as_echo_n "checking for $ac_word... " >&6; }
10817 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10818 $as_echo_n "(cached) " >&6
10819 else
10820 case $AR_FOR_TARGET in
10821 [\\/]* | ?:[\\/]*)
10822 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10823 ;;
10824 *)
10825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10826 for as_dir in $gcc_cv_tool_dirs
10827 do
10828 IFS=$as_save_IFS
10829 test -z "$as_dir" && as_dir=.
10830 for ac_exec_ext in '' $ac_executable_extensions; do
10831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10832 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10834 break 2
10835 fi
10836 done
10837 done
10838 IFS=$as_save_IFS
10839
10840 ;;
10841 esac
10842 fi
10843 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10844 if test -n "$AR_FOR_TARGET"; then
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10846 $as_echo "$AR_FOR_TARGET" >&6; }
10847 else
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849 $as_echo "no" >&6; }
10850 fi
10851
10852
10853 fi
10854 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10855
10856
10857 if test -n "$AR_FOR_TARGET"; then
10858 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10859 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10860 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10861 fi
10862
10863 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10864 for ncn_progname in ar; do
10865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10866 set dummy ${ncn_progname}; ac_word=$2
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10868 $as_echo_n "checking for $ac_word... " >&6; }
10869 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 if test -n "$AR_FOR_TARGET"; then
10873 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10874 else
10875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10876 for as_dir in $PATH
10877 do
10878 IFS=$as_save_IFS
10879 test -z "$as_dir" && as_dir=.
10880 for ac_exec_ext in '' $ac_executable_extensions; do
10881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10882 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10884 break 2
10885 fi
10886 done
10887 done
10888 IFS=$as_save_IFS
10889
10890 fi
10891 fi
10892 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10893 if test -n "$AR_FOR_TARGET"; then
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10895 $as_echo "$AR_FOR_TARGET" >&6; }
10896 else
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; }
10899 fi
10900
10901
10902 done
10903 fi
10904
10905 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10906 for ncn_progname in ar; do
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10908 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10909 if test -x $with_build_time_tools/${ncn_progname}; then
10910 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10912 $as_echo "yes" >&6; }
10913 break
10914 else
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916 $as_echo "no" >&6; }
10917 fi
10918 done
10919 fi
10920
10921 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10922 for ncn_progname in ar; do
10923 if test -n "$ncn_target_tool_prefix"; then
10924 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10925 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10927 $as_echo_n "checking for $ac_word... " >&6; }
10928 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931 if test -n "$AR_FOR_TARGET"; then
10932 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10933 else
10934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10935 for as_dir in $PATH
10936 do
10937 IFS=$as_save_IFS
10938 test -z "$as_dir" && as_dir=.
10939 for ac_exec_ext in '' $ac_executable_extensions; do
10940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10941 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 break 2
10944 fi
10945 done
10946 done
10947 IFS=$as_save_IFS
10948
10949 fi
10950 fi
10951 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10952 if test -n "$AR_FOR_TARGET"; then
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10954 $as_echo "$AR_FOR_TARGET" >&6; }
10955 else
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10957 $as_echo "no" >&6; }
10958 fi
10959
10960
10961 fi
10962 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10964 set dummy ${ncn_progname}; ac_word=$2
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10966 $as_echo_n "checking for $ac_word... " >&6; }
10967 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10968 $as_echo_n "(cached) " >&6
10969 else
10970 if test -n "$AR_FOR_TARGET"; then
10971 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10972 else
10973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974 for as_dir in $PATH
10975 do
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10980 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10982 break 2
10983 fi
10984 done
10985 done
10986 IFS=$as_save_IFS
10987
10988 fi
10989 fi
10990 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10991 if test -n "$AR_FOR_TARGET"; then
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10993 $as_echo "$AR_FOR_TARGET" >&6; }
10994 else
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996 $as_echo "no" >&6; }
10997 fi
10998
10999
11000 fi
11001 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11002 done
11003 fi
11004
11005 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11006 set dummy ar
11007 if test $build = $target ; then
11008 AR_FOR_TARGET="$2"
11009 else
11010 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11011 fi
11012 else
11013 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11014 fi
11015
11016 else
11017 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11018 fi
11019
11020
11021
11022
11023 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11024 if test -n "$with_build_time_tools"; then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11026 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11027 if test -x $with_build_time_tools/as; then
11028 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11029 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11031 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11032 else
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 $as_echo "no" >&6; }
11035 fi
11036 elif test $build != $host && test $have_gcc_for_target = yes; then
11037 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11038 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11039 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11040 fi
11041 fi
11042 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11043 # Extract the first word of "as", so it can be a program name with args.
11044 set dummy as; ac_word=$2
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11046 $as_echo_n "checking for $ac_word... " >&6; }
11047 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11048 $as_echo_n "(cached) " >&6
11049 else
11050 case $AS_FOR_TARGET in
11051 [\\/]* | ?:[\\/]*)
11052 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11053 ;;
11054 *)
11055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056 for as_dir in $gcc_cv_tool_dirs
11057 do
11058 IFS=$as_save_IFS
11059 test -z "$as_dir" && as_dir=.
11060 for ac_exec_ext in '' $ac_executable_extensions; do
11061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11062 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11064 break 2
11065 fi
11066 done
11067 done
11068 IFS=$as_save_IFS
11069
11070 ;;
11071 esac
11072 fi
11073 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11074 if test -n "$AS_FOR_TARGET"; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11076 $as_echo "$AS_FOR_TARGET" >&6; }
11077 else
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079 $as_echo "no" >&6; }
11080 fi
11081
11082
11083 fi
11084 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11085
11086
11087 if test -n "$AS_FOR_TARGET"; then
11088 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11089 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11090 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11091 fi
11092
11093 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11094 for ncn_progname in as; do
11095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11096 set dummy ${ncn_progname}; ac_word=$2
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098 $as_echo_n "checking for $ac_word... " >&6; }
11099 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11100 $as_echo_n "(cached) " >&6
11101 else
11102 if test -n "$AS_FOR_TARGET"; then
11103 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11104 else
11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in $PATH
11107 do
11108 IFS=$as_save_IFS
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
11111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11112 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11114 break 2
11115 fi
11116 done
11117 done
11118 IFS=$as_save_IFS
11119
11120 fi
11121 fi
11122 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11123 if test -n "$AS_FOR_TARGET"; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11125 $as_echo "$AS_FOR_TARGET" >&6; }
11126 else
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128 $as_echo "no" >&6; }
11129 fi
11130
11131
11132 done
11133 fi
11134
11135 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11136 for ncn_progname in as; do
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11138 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11139 if test -x $with_build_time_tools/${ncn_progname}; then
11140 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11142 $as_echo "yes" >&6; }
11143 break
11144 else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 $as_echo "no" >&6; }
11147 fi
11148 done
11149 fi
11150
11151 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11152 for ncn_progname in as; do
11153 if test -n "$ncn_target_tool_prefix"; then
11154 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11155 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157 $as_echo_n "checking for $ac_word... " >&6; }
11158 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11159 $as_echo_n "(cached) " >&6
11160 else
11161 if test -n "$AS_FOR_TARGET"; then
11162 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11163 else
11164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165 for as_dir in $PATH
11166 do
11167 IFS=$as_save_IFS
11168 test -z "$as_dir" && as_dir=.
11169 for ac_exec_ext in '' $ac_executable_extensions; do
11170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11171 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11173 break 2
11174 fi
11175 done
11176 done
11177 IFS=$as_save_IFS
11178
11179 fi
11180 fi
11181 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11182 if test -n "$AS_FOR_TARGET"; then
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11184 $as_echo "$AS_FOR_TARGET" >&6; }
11185 else
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 $as_echo "no" >&6; }
11188 fi
11189
11190
11191 fi
11192 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11194 set dummy ${ncn_progname}; ac_word=$2
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196 $as_echo_n "checking for $ac_word... " >&6; }
11197 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11198 $as_echo_n "(cached) " >&6
11199 else
11200 if test -n "$AS_FOR_TARGET"; then
11201 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11202 else
11203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204 for as_dir in $PATH
11205 do
11206 IFS=$as_save_IFS
11207 test -z "$as_dir" && as_dir=.
11208 for ac_exec_ext in '' $ac_executable_extensions; do
11209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11210 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11212 break 2
11213 fi
11214 done
11215 done
11216 IFS=$as_save_IFS
11217
11218 fi
11219 fi
11220 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11221 if test -n "$AS_FOR_TARGET"; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11223 $as_echo "$AS_FOR_TARGET" >&6; }
11224 else
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 $as_echo "no" >&6; }
11227 fi
11228
11229
11230 fi
11231 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11232 done
11233 fi
11234
11235 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11236 set dummy as
11237 if test $build = $target ; then
11238 AS_FOR_TARGET="$2"
11239 else
11240 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11241 fi
11242 else
11243 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11244 fi
11245
11246 else
11247 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11248 fi
11249
11250
11251
11252
11253 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11254 if test -n "$with_build_time_tools"; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11256 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11257 if test -x $with_build_time_tools/dlltool; then
11258 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11259 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11261 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11262 else
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264 $as_echo "no" >&6; }
11265 fi
11266 elif test $build != $host && test $have_gcc_for_target = yes; then
11267 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11268 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11269 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11270 fi
11271 fi
11272 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11273 # Extract the first word of "dlltool", so it can be a program name with args.
11274 set dummy dlltool; ac_word=$2
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11276 $as_echo_n "checking for $ac_word... " >&6; }
11277 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11278 $as_echo_n "(cached) " >&6
11279 else
11280 case $DLLTOOL_FOR_TARGET in
11281 [\\/]* | ?:[\\/]*)
11282 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11283 ;;
11284 *)
11285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11286 for as_dir in $gcc_cv_tool_dirs
11287 do
11288 IFS=$as_save_IFS
11289 test -z "$as_dir" && as_dir=.
11290 for ac_exec_ext in '' $ac_executable_extensions; do
11291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11292 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11294 break 2
11295 fi
11296 done
11297 done
11298 IFS=$as_save_IFS
11299
11300 ;;
11301 esac
11302 fi
11303 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11304 if test -n "$DLLTOOL_FOR_TARGET"; then
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11306 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11307 else
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11310 fi
11311
11312
11313 fi
11314 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11315
11316
11317 if test -n "$DLLTOOL_FOR_TARGET"; then
11318 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11319 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11320 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11321 fi
11322
11323 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11324 for ncn_progname in dlltool; do
11325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11326 set dummy ${ncn_progname}; ac_word=$2
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328 $as_echo_n "checking for $ac_word... " >&6; }
11329 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11330 $as_echo_n "(cached) " >&6
11331 else
11332 if test -n "$DLLTOOL_FOR_TARGET"; then
11333 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11334 else
11335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336 for as_dir in $PATH
11337 do
11338 IFS=$as_save_IFS
11339 test -z "$as_dir" && as_dir=.
11340 for ac_exec_ext in '' $ac_executable_extensions; do
11341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11342 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11344 break 2
11345 fi
11346 done
11347 done
11348 IFS=$as_save_IFS
11349
11350 fi
11351 fi
11352 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11353 if test -n "$DLLTOOL_FOR_TARGET"; then
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11355 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11356 else
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358 $as_echo "no" >&6; }
11359 fi
11360
11361
11362 done
11363 fi
11364
11365 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11366 for ncn_progname in dlltool; do
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11368 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11369 if test -x $with_build_time_tools/${ncn_progname}; then
11370 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11372 $as_echo "yes" >&6; }
11373 break
11374 else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376 $as_echo "no" >&6; }
11377 fi
11378 done
11379 fi
11380
11381 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11382 for ncn_progname in dlltool; do
11383 if test -n "$ncn_target_tool_prefix"; then
11384 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11385 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11387 $as_echo_n "checking for $ac_word... " >&6; }
11388 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11389 $as_echo_n "(cached) " >&6
11390 else
11391 if test -n "$DLLTOOL_FOR_TARGET"; then
11392 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11393 else
11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395 for as_dir in $PATH
11396 do
11397 IFS=$as_save_IFS
11398 test -z "$as_dir" && as_dir=.
11399 for ac_exec_ext in '' $ac_executable_extensions; do
11400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11401 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11403 break 2
11404 fi
11405 done
11406 done
11407 IFS=$as_save_IFS
11408
11409 fi
11410 fi
11411 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11412 if test -n "$DLLTOOL_FOR_TARGET"; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11414 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11415 else
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 $as_echo "no" >&6; }
11418 fi
11419
11420
11421 fi
11422 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11424 set dummy ${ncn_progname}; ac_word=$2
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426 $as_echo_n "checking for $ac_word... " >&6; }
11427 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11428 $as_echo_n "(cached) " >&6
11429 else
11430 if test -n "$DLLTOOL_FOR_TARGET"; then
11431 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11432 else
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11435 do
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11440 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 break 2
11443 fi
11444 done
11445 done
11446 IFS=$as_save_IFS
11447
11448 fi
11449 fi
11450 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11451 if test -n "$DLLTOOL_FOR_TARGET"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11453 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11457 fi
11458
11459
11460 fi
11461 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11462 done
11463 fi
11464
11465 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11466 set dummy dlltool
11467 if test $build = $target ; then
11468 DLLTOOL_FOR_TARGET="$2"
11469 else
11470 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11471 fi
11472 else
11473 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11474 fi
11475
11476 else
11477 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11478 fi
11479
11480
11481
11482
11483 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11484 if test -n "$with_build_time_tools"; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11486 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11487 if test -x $with_build_time_tools/ld; then
11488 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11489 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11491 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11492 else
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11495 fi
11496 elif test $build != $host && test $have_gcc_for_target = yes; then
11497 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11498 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11499 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11500 fi
11501 fi
11502 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11503 # Extract the first word of "ld", so it can be a program name with args.
11504 set dummy ld; ac_word=$2
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506 $as_echo_n "checking for $ac_word... " >&6; }
11507 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 case $LD_FOR_TARGET in
11511 [\\/]* | ?:[\\/]*)
11512 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11513 ;;
11514 *)
11515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516 for as_dir in $gcc_cv_tool_dirs
11517 do
11518 IFS=$as_save_IFS
11519 test -z "$as_dir" && as_dir=.
11520 for ac_exec_ext in '' $ac_executable_extensions; do
11521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11522 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11524 break 2
11525 fi
11526 done
11527 done
11528 IFS=$as_save_IFS
11529
11530 ;;
11531 esac
11532 fi
11533 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11534 if test -n "$LD_FOR_TARGET"; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11536 $as_echo "$LD_FOR_TARGET" >&6; }
11537 else
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11540 fi
11541
11542
11543 fi
11544 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11545
11546
11547 if test -n "$LD_FOR_TARGET"; then
11548 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11549 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11550 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11551 fi
11552
11553 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11554 for ncn_progname in ld; do
11555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11556 set dummy ${ncn_progname}; ac_word=$2
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11558 $as_echo_n "checking for $ac_word... " >&6; }
11559 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11560 $as_echo_n "(cached) " >&6
11561 else
11562 if test -n "$LD_FOR_TARGET"; then
11563 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11564 else
11565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566 for as_dir in $PATH
11567 do
11568 IFS=$as_save_IFS
11569 test -z "$as_dir" && as_dir=.
11570 for ac_exec_ext in '' $ac_executable_extensions; do
11571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11572 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11574 break 2
11575 fi
11576 done
11577 done
11578 IFS=$as_save_IFS
11579
11580 fi
11581 fi
11582 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11583 if test -n "$LD_FOR_TARGET"; then
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11585 $as_echo "$LD_FOR_TARGET" >&6; }
11586 else
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588 $as_echo "no" >&6; }
11589 fi
11590
11591
11592 done
11593 fi
11594
11595 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11596 for ncn_progname in ld; do
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11598 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11599 if test -x $with_build_time_tools/${ncn_progname}; then
11600 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11602 $as_echo "yes" >&6; }
11603 break
11604 else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11607 fi
11608 done
11609 fi
11610
11611 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11612 for ncn_progname in ld; do
11613 if test -n "$ncn_target_tool_prefix"; then
11614 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11615 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11617 $as_echo_n "checking for $ac_word... " >&6; }
11618 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11619 $as_echo_n "(cached) " >&6
11620 else
11621 if test -n "$LD_FOR_TARGET"; then
11622 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11623 else
11624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $PATH
11626 do
11627 IFS=$as_save_IFS
11628 test -z "$as_dir" && as_dir=.
11629 for ac_exec_ext in '' $ac_executable_extensions; do
11630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11631 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11633 break 2
11634 fi
11635 done
11636 done
11637 IFS=$as_save_IFS
11638
11639 fi
11640 fi
11641 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11642 if test -n "$LD_FOR_TARGET"; then
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11644 $as_echo "$LD_FOR_TARGET" >&6; }
11645 else
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647 $as_echo "no" >&6; }
11648 fi
11649
11650
11651 fi
11652 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11654 set dummy ${ncn_progname}; ac_word=$2
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656 $as_echo_n "checking for $ac_word... " >&6; }
11657 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 if test -n "$LD_FOR_TARGET"; then
11661 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11662 else
11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664 for as_dir in $PATH
11665 do
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11670 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11672 break 2
11673 fi
11674 done
11675 done
11676 IFS=$as_save_IFS
11677
11678 fi
11679 fi
11680 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11681 if test -n "$LD_FOR_TARGET"; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11683 $as_echo "$LD_FOR_TARGET" >&6; }
11684 else
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686 $as_echo "no" >&6; }
11687 fi
11688
11689
11690 fi
11691 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11692 done
11693 fi
11694
11695 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11696 set dummy ld
11697 if test $build = $target ; then
11698 LD_FOR_TARGET="$2"
11699 else
11700 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11701 fi
11702 else
11703 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11704 fi
11705
11706 else
11707 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11708 fi
11709
11710
11711
11712
11713 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11714 if test -n "$with_build_time_tools"; then
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11716 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11717 if test -x $with_build_time_tools/lipo; then
11718 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11719 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11721 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11722 else
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724 $as_echo "no" >&6; }
11725 fi
11726 elif test $build != $host && test $have_gcc_for_target = yes; then
11727 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11728 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11729 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11730 fi
11731 fi
11732 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11733 # Extract the first word of "lipo", so it can be a program name with args.
11734 set dummy lipo; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 case $LIPO_FOR_TARGET in
11741 [\\/]* | ?:[\\/]*)
11742 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11743 ;;
11744 *)
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $gcc_cv_tool_dirs
11747 do
11748 IFS=$as_save_IFS
11749 test -z "$as_dir" && as_dir=.
11750 for ac_exec_ext in '' $ac_executable_extensions; do
11751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11752 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11754 break 2
11755 fi
11756 done
11757 done
11758 IFS=$as_save_IFS
11759
11760 ;;
11761 esac
11762 fi
11763 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11764 if test -n "$LIPO_FOR_TARGET"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11766 $as_echo "$LIPO_FOR_TARGET" >&6; }
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11770 fi
11771
11772
11773 fi
11774 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11775
11776
11777 if test -n "$LIPO_FOR_TARGET"; then
11778 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11779 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11780 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11781 fi
11782
11783 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11784 for ncn_progname in lipo; do
11785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11786 set dummy ${ncn_progname}; ac_word=$2
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11788 $as_echo_n "checking for $ac_word... " >&6; }
11789 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
11791 else
11792 if test -n "$LIPO_FOR_TARGET"; then
11793 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11794 else
11795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796 for as_dir in $PATH
11797 do
11798 IFS=$as_save_IFS
11799 test -z "$as_dir" && as_dir=.
11800 for ac_exec_ext in '' $ac_executable_extensions; do
11801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11802 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11804 break 2
11805 fi
11806 done
11807 done
11808 IFS=$as_save_IFS
11809
11810 fi
11811 fi
11812 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11813 if test -n "$LIPO_FOR_TARGET"; then
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11815 $as_echo "$LIPO_FOR_TARGET" >&6; }
11816 else
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818 $as_echo "no" >&6; }
11819 fi
11820
11821
11822 done
11823 fi
11824
11825 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11826 for ncn_progname in lipo; do
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11828 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11829 if test -x $with_build_time_tools/${ncn_progname}; then
11830 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11832 $as_echo "yes" >&6; }
11833 break
11834 else
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11837 fi
11838 done
11839 fi
11840
11841 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11842 for ncn_progname in lipo; do
11843 if test -n "$ncn_target_tool_prefix"; then
11844 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11845 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11847 $as_echo_n "checking for $ac_word... " >&6; }
11848 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11849 $as_echo_n "(cached) " >&6
11850 else
11851 if test -n "$LIPO_FOR_TARGET"; then
11852 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11853 else
11854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855 for as_dir in $PATH
11856 do
11857 IFS=$as_save_IFS
11858 test -z "$as_dir" && as_dir=.
11859 for ac_exec_ext in '' $ac_executable_extensions; do
11860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11861 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11863 break 2
11864 fi
11865 done
11866 done
11867 IFS=$as_save_IFS
11868
11869 fi
11870 fi
11871 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11872 if test -n "$LIPO_FOR_TARGET"; then
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11874 $as_echo "$LIPO_FOR_TARGET" >&6; }
11875 else
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877 $as_echo "no" >&6; }
11878 fi
11879
11880
11881 fi
11882 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11884 set dummy ${ncn_progname}; ac_word=$2
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886 $as_echo_n "checking for $ac_word... " >&6; }
11887 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11888 $as_echo_n "(cached) " >&6
11889 else
11890 if test -n "$LIPO_FOR_TARGET"; then
11891 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11892 else
11893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894 for as_dir in $PATH
11895 do
11896 IFS=$as_save_IFS
11897 test -z "$as_dir" && as_dir=.
11898 for ac_exec_ext in '' $ac_executable_extensions; do
11899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11900 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11902 break 2
11903 fi
11904 done
11905 done
11906 IFS=$as_save_IFS
11907
11908 fi
11909 fi
11910 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11911 if test -n "$LIPO_FOR_TARGET"; then
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11913 $as_echo "$LIPO_FOR_TARGET" >&6; }
11914 else
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11917 fi
11918
11919
11920 fi
11921 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11922 done
11923 fi
11924
11925 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11926 set dummy lipo
11927 if test $build = $target ; then
11928 LIPO_FOR_TARGET="$2"
11929 else
11930 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11931 fi
11932 else
11933 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11934 fi
11935
11936 else
11937 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11938 fi
11939
11940
11941
11942
11943 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11944 if test -n "$with_build_time_tools"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11946 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11947 if test -x $with_build_time_tools/nm; then
11948 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11949 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11951 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11952 else
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954 $as_echo "no" >&6; }
11955 fi
11956 elif test $build != $host && test $have_gcc_for_target = yes; then
11957 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11958 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11959 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11960 fi
11961 fi
11962 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11963 # Extract the first word of "nm", so it can be a program name with args.
11964 set dummy nm; ac_word=$2
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11966 $as_echo_n "checking for $ac_word... " >&6; }
11967 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 case $NM_FOR_TARGET in
11971 [\\/]* | ?:[\\/]*)
11972 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11973 ;;
11974 *)
11975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976 for as_dir in $gcc_cv_tool_dirs
11977 do
11978 IFS=$as_save_IFS
11979 test -z "$as_dir" && as_dir=.
11980 for ac_exec_ext in '' $ac_executable_extensions; do
11981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11982 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11984 break 2
11985 fi
11986 done
11987 done
11988 IFS=$as_save_IFS
11989
11990 ;;
11991 esac
11992 fi
11993 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11994 if test -n "$NM_FOR_TARGET"; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11996 $as_echo "$NM_FOR_TARGET" >&6; }
11997 else
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12000 fi
12001
12002
12003 fi
12004 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12005
12006
12007 if test -n "$NM_FOR_TARGET"; then
12008 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12009 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12010 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12011 fi
12012
12013 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12014 for ncn_progname in nm; do
12015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12016 set dummy ${ncn_progname}; ac_word=$2
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12018 $as_echo_n "checking for $ac_word... " >&6; }
12019 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 if test -n "$NM_FOR_TARGET"; then
12023 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12024 else
12025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026 for as_dir in $PATH
12027 do
12028 IFS=$as_save_IFS
12029 test -z "$as_dir" && as_dir=.
12030 for ac_exec_ext in '' $ac_executable_extensions; do
12031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12032 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12034 break 2
12035 fi
12036 done
12037 done
12038 IFS=$as_save_IFS
12039
12040 fi
12041 fi
12042 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12043 if test -n "$NM_FOR_TARGET"; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12045 $as_echo "$NM_FOR_TARGET" >&6; }
12046 else
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048 $as_echo "no" >&6; }
12049 fi
12050
12051
12052 done
12053 fi
12054
12055 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12056 for ncn_progname in nm; do
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12058 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12059 if test -x $with_build_time_tools/${ncn_progname}; then
12060 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12062 $as_echo "yes" >&6; }
12063 break
12064 else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12067 fi
12068 done
12069 fi
12070
12071 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12072 for ncn_progname in nm; do
12073 if test -n "$ncn_target_tool_prefix"; then
12074 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12075 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077 $as_echo_n "checking for $ac_word... " >&6; }
12078 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 if test -n "$NM_FOR_TARGET"; then
12082 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12083 else
12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085 for as_dir in $PATH
12086 do
12087 IFS=$as_save_IFS
12088 test -z "$as_dir" && as_dir=.
12089 for ac_exec_ext in '' $ac_executable_extensions; do
12090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12091 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12093 break 2
12094 fi
12095 done
12096 done
12097 IFS=$as_save_IFS
12098
12099 fi
12100 fi
12101 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12102 if test -n "$NM_FOR_TARGET"; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12104 $as_echo "$NM_FOR_TARGET" >&6; }
12105 else
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12108 fi
12109
12110
12111 fi
12112 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12114 set dummy ${ncn_progname}; ac_word=$2
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12116 $as_echo_n "checking for $ac_word... " >&6; }
12117 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 if test -n "$NM_FOR_TARGET"; then
12121 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12122 else
12123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124 for as_dir in $PATH
12125 do
12126 IFS=$as_save_IFS
12127 test -z "$as_dir" && as_dir=.
12128 for ac_exec_ext in '' $ac_executable_extensions; do
12129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12130 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12132 break 2
12133 fi
12134 done
12135 done
12136 IFS=$as_save_IFS
12137
12138 fi
12139 fi
12140 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12141 if test -n "$NM_FOR_TARGET"; then
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12143 $as_echo "$NM_FOR_TARGET" >&6; }
12144 else
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12147 fi
12148
12149
12150 fi
12151 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12152 done
12153 fi
12154
12155 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12156 set dummy nm
12157 if test $build = $target ; then
12158 NM_FOR_TARGET="$2"
12159 else
12160 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12161 fi
12162 else
12163 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12164 fi
12165
12166 else
12167 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12168 fi
12169
12170
12171
12172
12173 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12174 if test -n "$with_build_time_tools"; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12176 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12177 if test -x $with_build_time_tools/objdump; then
12178 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12179 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12181 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12182 else
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12185 fi
12186 elif test $build != $host && test $have_gcc_for_target = yes; then
12187 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12188 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12189 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12190 fi
12191 fi
12192 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12193 # Extract the first word of "objdump", so it can be a program name with args.
12194 set dummy objdump; ac_word=$2
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12196 $as_echo_n "checking for $ac_word... " >&6; }
12197 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12198 $as_echo_n "(cached) " >&6
12199 else
12200 case $OBJDUMP_FOR_TARGET in
12201 [\\/]* | ?:[\\/]*)
12202 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12203 ;;
12204 *)
12205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206 for as_dir in $gcc_cv_tool_dirs
12207 do
12208 IFS=$as_save_IFS
12209 test -z "$as_dir" && as_dir=.
12210 for ac_exec_ext in '' $ac_executable_extensions; do
12211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12212 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12214 break 2
12215 fi
12216 done
12217 done
12218 IFS=$as_save_IFS
12219
12220 ;;
12221 esac
12222 fi
12223 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12224 if test -n "$OBJDUMP_FOR_TARGET"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12226 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12227 else
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12230 fi
12231
12232
12233 fi
12234 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12235
12236
12237 if test -n "$OBJDUMP_FOR_TARGET"; then
12238 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12239 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12240 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12241 fi
12242
12243 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12244 for ncn_progname in objdump; do
12245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12246 set dummy ${ncn_progname}; ac_word=$2
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248 $as_echo_n "checking for $ac_word... " >&6; }
12249 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12250 $as_echo_n "(cached) " >&6
12251 else
12252 if test -n "$OBJDUMP_FOR_TARGET"; then
12253 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12254 else
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12257 do
12258 IFS=$as_save_IFS
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12262 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264 break 2
12265 fi
12266 done
12267 done
12268 IFS=$as_save_IFS
12269
12270 fi
12271 fi
12272 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12273 if test -n "$OBJDUMP_FOR_TARGET"; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12275 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12276 else
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12279 fi
12280
12281
12282 done
12283 fi
12284
12285 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12286 for ncn_progname in objdump; do
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12288 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12289 if test -x $with_build_time_tools/${ncn_progname}; then
12290 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12292 $as_echo "yes" >&6; }
12293 break
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296 $as_echo "no" >&6; }
12297 fi
12298 done
12299 fi
12300
12301 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12302 for ncn_progname in objdump; do
12303 if test -n "$ncn_target_tool_prefix"; then
12304 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12305 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307 $as_echo_n "checking for $ac_word... " >&6; }
12308 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12309 $as_echo_n "(cached) " >&6
12310 else
12311 if test -n "$OBJDUMP_FOR_TARGET"; then
12312 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12313 else
12314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315 for as_dir in $PATH
12316 do
12317 IFS=$as_save_IFS
12318 test -z "$as_dir" && as_dir=.
12319 for ac_exec_ext in '' $ac_executable_extensions; do
12320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12321 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323 break 2
12324 fi
12325 done
12326 done
12327 IFS=$as_save_IFS
12328
12329 fi
12330 fi
12331 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12332 if test -n "$OBJDUMP_FOR_TARGET"; then
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12334 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12335 else
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 $as_echo "no" >&6; }
12338 fi
12339
12340
12341 fi
12342 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12344 set dummy ${ncn_progname}; ac_word=$2
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12346 $as_echo_n "checking for $ac_word... " >&6; }
12347 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12348 $as_echo_n "(cached) " >&6
12349 else
12350 if test -n "$OBJDUMP_FOR_TARGET"; then
12351 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12352 else
12353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in $PATH
12355 do
12356 IFS=$as_save_IFS
12357 test -z "$as_dir" && as_dir=.
12358 for ac_exec_ext in '' $ac_executable_extensions; do
12359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12360 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 break 2
12363 fi
12364 done
12365 done
12366 IFS=$as_save_IFS
12367
12368 fi
12369 fi
12370 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12371 if test -n "$OBJDUMP_FOR_TARGET"; then
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12373 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12374 else
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376 $as_echo "no" >&6; }
12377 fi
12378
12379
12380 fi
12381 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12382 done
12383 fi
12384
12385 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12386 set dummy objdump
12387 if test $build = $target ; then
12388 OBJDUMP_FOR_TARGET="$2"
12389 else
12390 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12391 fi
12392 else
12393 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12394 fi
12395
12396 else
12397 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12398 fi
12399
12400
12401
12402
12403 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12404 if test -n "$with_build_time_tools"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12406 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12407 if test -x $with_build_time_tools/ranlib; then
12408 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12409 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12411 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12412 else
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 $as_echo "no" >&6; }
12415 fi
12416 elif test $build != $host && test $have_gcc_for_target = yes; then
12417 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12418 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12419 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12420 fi
12421 fi
12422 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12423 # Extract the first word of "ranlib", so it can be a program name with args.
12424 set dummy ranlib; ac_word=$2
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426 $as_echo_n "checking for $ac_word... " >&6; }
12427 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 case $RANLIB_FOR_TARGET in
12431 [\\/]* | ?:[\\/]*)
12432 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12433 ;;
12434 *)
12435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436 for as_dir in $gcc_cv_tool_dirs
12437 do
12438 IFS=$as_save_IFS
12439 test -z "$as_dir" && as_dir=.
12440 for ac_exec_ext in '' $ac_executable_extensions; do
12441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12442 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12444 break 2
12445 fi
12446 done
12447 done
12448 IFS=$as_save_IFS
12449
12450 ;;
12451 esac
12452 fi
12453 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12454 if test -n "$RANLIB_FOR_TARGET"; then
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12456 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12457 else
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 $as_echo "no" >&6; }
12460 fi
12461
12462
12463 fi
12464 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12465
12466
12467 if test -n "$RANLIB_FOR_TARGET"; then
12468 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12469 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12470 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12471 fi
12472
12473 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12474 for ncn_progname in ranlib; do
12475 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12476 set dummy ${ncn_progname}; ac_word=$2
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12478 $as_echo_n "checking for $ac_word... " >&6; }
12479 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12480 $as_echo_n "(cached) " >&6
12481 else
12482 if test -n "$RANLIB_FOR_TARGET"; then
12483 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12484 else
12485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12486 for as_dir in $PATH
12487 do
12488 IFS=$as_save_IFS
12489 test -z "$as_dir" && as_dir=.
12490 for ac_exec_ext in '' $ac_executable_extensions; do
12491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12492 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12494 break 2
12495 fi
12496 done
12497 done
12498 IFS=$as_save_IFS
12499
12500 fi
12501 fi
12502 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12503 if test -n "$RANLIB_FOR_TARGET"; then
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12505 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12506 else
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12508 $as_echo "no" >&6; }
12509 fi
12510
12511
12512 done
12513 fi
12514
12515 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12516 for ncn_progname in ranlib; do
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12518 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12519 if test -x $with_build_time_tools/${ncn_progname}; then
12520 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12522 $as_echo "yes" >&6; }
12523 break
12524 else
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12527 fi
12528 done
12529 fi
12530
12531 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12532 for ncn_progname in ranlib; do
12533 if test -n "$ncn_target_tool_prefix"; then
12534 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12535 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12537 $as_echo_n "checking for $ac_word... " >&6; }
12538 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12539 $as_echo_n "(cached) " >&6
12540 else
12541 if test -n "$RANLIB_FOR_TARGET"; then
12542 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12543 else
12544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12545 for as_dir in $PATH
12546 do
12547 IFS=$as_save_IFS
12548 test -z "$as_dir" && as_dir=.
12549 for ac_exec_ext in '' $ac_executable_extensions; do
12550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12551 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12553 break 2
12554 fi
12555 done
12556 done
12557 IFS=$as_save_IFS
12558
12559 fi
12560 fi
12561 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12562 if test -n "$RANLIB_FOR_TARGET"; then
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12564 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12565 else
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567 $as_echo "no" >&6; }
12568 fi
12569
12570
12571 fi
12572 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12574 set dummy ${ncn_progname}; ac_word=$2
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12576 $as_echo_n "checking for $ac_word... " >&6; }
12577 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12578 $as_echo_n "(cached) " >&6
12579 else
12580 if test -n "$RANLIB_FOR_TARGET"; then
12581 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12582 else
12583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584 for as_dir in $PATH
12585 do
12586 IFS=$as_save_IFS
12587 test -z "$as_dir" && as_dir=.
12588 for ac_exec_ext in '' $ac_executable_extensions; do
12589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12590 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12592 break 2
12593 fi
12594 done
12595 done
12596 IFS=$as_save_IFS
12597
12598 fi
12599 fi
12600 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12601 if test -n "$RANLIB_FOR_TARGET"; then
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12603 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12604 else
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606 $as_echo "no" >&6; }
12607 fi
12608
12609
12610 fi
12611 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12612 done
12613 fi
12614
12615 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12616 set dummy ranlib
12617 if test $build = $target ; then
12618 RANLIB_FOR_TARGET="$2"
12619 else
12620 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12621 fi
12622 else
12623 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12624 fi
12625
12626 else
12627 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12628 fi
12629
12630
12631
12632
12633 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12634 if test -n "$with_build_time_tools"; then
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12636 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12637 if test -x $with_build_time_tools/readelf; then
12638 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12639 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12641 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12642 else
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644 $as_echo "no" >&6; }
12645 fi
12646 elif test $build != $host && test $have_gcc_for_target = yes; then
12647 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12648 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12649 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12650 fi
12651 fi
12652 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12653 # Extract the first word of "readelf", so it can be a program name with args.
12654 set dummy readelf; ac_word=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656 $as_echo_n "checking for $ac_word... " >&6; }
12657 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 case $READELF_FOR_TARGET in
12661 [\\/]* | ?:[\\/]*)
12662 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12663 ;;
12664 *)
12665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666 for as_dir in $gcc_cv_tool_dirs
12667 do
12668 IFS=$as_save_IFS
12669 test -z "$as_dir" && as_dir=.
12670 for ac_exec_ext in '' $ac_executable_extensions; do
12671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12672 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12674 break 2
12675 fi
12676 done
12677 done
12678 IFS=$as_save_IFS
12679
12680 ;;
12681 esac
12682 fi
12683 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12684 if test -n "$READELF_FOR_TARGET"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12686 $as_echo "$READELF_FOR_TARGET" >&6; }
12687 else
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12690 fi
12691
12692
12693 fi
12694 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12695
12696
12697 if test -n "$READELF_FOR_TARGET"; then
12698 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12699 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12700 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12701 fi
12702
12703 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12704 for ncn_progname in readelf; do
12705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12706 set dummy ${ncn_progname}; ac_word=$2
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12708 $as_echo_n "checking for $ac_word... " >&6; }
12709 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12710 $as_echo_n "(cached) " >&6
12711 else
12712 if test -n "$READELF_FOR_TARGET"; then
12713 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12714 else
12715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12716 for as_dir in $PATH
12717 do
12718 IFS=$as_save_IFS
12719 test -z "$as_dir" && as_dir=.
12720 for ac_exec_ext in '' $ac_executable_extensions; do
12721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12722 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12724 break 2
12725 fi
12726 done
12727 done
12728 IFS=$as_save_IFS
12729
12730 fi
12731 fi
12732 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12733 if test -n "$READELF_FOR_TARGET"; then
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12735 $as_echo "$READELF_FOR_TARGET" >&6; }
12736 else
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12738 $as_echo "no" >&6; }
12739 fi
12740
12741
12742 done
12743 fi
12744
12745 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12746 for ncn_progname in readelf; do
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12748 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12749 if test -x $with_build_time_tools/${ncn_progname}; then
12750 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12752 $as_echo "yes" >&6; }
12753 break
12754 else
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12757 fi
12758 done
12759 fi
12760
12761 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12762 for ncn_progname in readelf; do
12763 if test -n "$ncn_target_tool_prefix"; then
12764 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12765 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12767 $as_echo_n "checking for $ac_word... " >&6; }
12768 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 if test -n "$READELF_FOR_TARGET"; then
12772 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12773 else
12774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775 for as_dir in $PATH
12776 do
12777 IFS=$as_save_IFS
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
12780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12781 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 break 2
12784 fi
12785 done
12786 done
12787 IFS=$as_save_IFS
12788
12789 fi
12790 fi
12791 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12792 if test -n "$READELF_FOR_TARGET"; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12794 $as_echo "$READELF_FOR_TARGET" >&6; }
12795 else
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797 $as_echo "no" >&6; }
12798 fi
12799
12800
12801 fi
12802 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12804 set dummy ${ncn_progname}; ac_word=$2
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806 $as_echo_n "checking for $ac_word... " >&6; }
12807 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12808 $as_echo_n "(cached) " >&6
12809 else
12810 if test -n "$READELF_FOR_TARGET"; then
12811 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12812 else
12813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814 for as_dir in $PATH
12815 do
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
12819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12820 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12823 fi
12824 done
12825 done
12826 IFS=$as_save_IFS
12827
12828 fi
12829 fi
12830 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12831 if test -n "$READELF_FOR_TARGET"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12833 $as_echo "$READELF_FOR_TARGET" >&6; }
12834 else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836 $as_echo "no" >&6; }
12837 fi
12838
12839
12840 fi
12841 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12842 done
12843 fi
12844
12845 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12846 set dummy readelf
12847 if test $build = $target ; then
12848 READELF_FOR_TARGET="$2"
12849 else
12850 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12851 fi
12852 else
12853 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12854 fi
12855
12856 else
12857 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12858 fi
12859
12860
12861
12862
12863 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12864 if test -n "$with_build_time_tools"; then
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12866 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12867 if test -x $with_build_time_tools/strip; then
12868 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12869 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12871 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12872 else
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12875 fi
12876 elif test $build != $host && test $have_gcc_for_target = yes; then
12877 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12878 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12879 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12880 fi
12881 fi
12882 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12883 # Extract the first word of "strip", so it can be a program name with args.
12884 set dummy strip; ac_word=$2
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12886 $as_echo_n "checking for $ac_word... " >&6; }
12887 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12890 case $STRIP_FOR_TARGET in
12891 [\\/]* | ?:[\\/]*)
12892 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12893 ;;
12894 *)
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896 for as_dir in $gcc_cv_tool_dirs
12897 do
12898 IFS=$as_save_IFS
12899 test -z "$as_dir" && as_dir=.
12900 for ac_exec_ext in '' $ac_executable_extensions; do
12901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12902 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12904 break 2
12905 fi
12906 done
12907 done
12908 IFS=$as_save_IFS
12909
12910 ;;
12911 esac
12912 fi
12913 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12914 if test -n "$STRIP_FOR_TARGET"; then
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12916 $as_echo "$STRIP_FOR_TARGET" >&6; }
12917 else
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919 $as_echo "no" >&6; }
12920 fi
12921
12922
12923 fi
12924 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12925
12926
12927 if test -n "$STRIP_FOR_TARGET"; then
12928 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12929 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12930 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12931 fi
12932
12933 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12934 for ncn_progname in strip; do
12935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12936 set dummy ${ncn_progname}; ac_word=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938 $as_echo_n "checking for $ac_word... " >&6; }
12939 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12940 $as_echo_n "(cached) " >&6
12941 else
12942 if test -n "$STRIP_FOR_TARGET"; then
12943 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12944 else
12945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 for as_dir in $PATH
12947 do
12948 IFS=$as_save_IFS
12949 test -z "$as_dir" && as_dir=.
12950 for ac_exec_ext in '' $ac_executable_extensions; do
12951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12952 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12954 break 2
12955 fi
12956 done
12957 done
12958 IFS=$as_save_IFS
12959
12960 fi
12961 fi
12962 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12963 if test -n "$STRIP_FOR_TARGET"; then
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12965 $as_echo "$STRIP_FOR_TARGET" >&6; }
12966 else
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 $as_echo "no" >&6; }
12969 fi
12970
12971
12972 done
12973 fi
12974
12975 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12976 for ncn_progname in strip; do
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12978 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12979 if test -x $with_build_time_tools/${ncn_progname}; then
12980 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12982 $as_echo "yes" >&6; }
12983 break
12984 else
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986 $as_echo "no" >&6; }
12987 fi
12988 done
12989 fi
12990
12991 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12992 for ncn_progname in strip; do
12993 if test -n "$ncn_target_tool_prefix"; then
12994 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12995 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12997 $as_echo_n "checking for $ac_word... " >&6; }
12998 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12999 $as_echo_n "(cached) " >&6
13000 else
13001 if test -n "$STRIP_FOR_TARGET"; then
13002 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13003 else
13004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005 for as_dir in $PATH
13006 do
13007 IFS=$as_save_IFS
13008 test -z "$as_dir" && as_dir=.
13009 for ac_exec_ext in '' $ac_executable_extensions; do
13010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13011 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13013 break 2
13014 fi
13015 done
13016 done
13017 IFS=$as_save_IFS
13018
13019 fi
13020 fi
13021 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13022 if test -n "$STRIP_FOR_TARGET"; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13024 $as_echo "$STRIP_FOR_TARGET" >&6; }
13025 else
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027 $as_echo "no" >&6; }
13028 fi
13029
13030
13031 fi
13032 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13034 set dummy ${ncn_progname}; ac_word=$2
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036 $as_echo_n "checking for $ac_word... " >&6; }
13037 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13038 $as_echo_n "(cached) " >&6
13039 else
13040 if test -n "$STRIP_FOR_TARGET"; then
13041 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13042 else
13043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044 for as_dir in $PATH
13045 do
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13050 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13052 break 2
13053 fi
13054 done
13055 done
13056 IFS=$as_save_IFS
13057
13058 fi
13059 fi
13060 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13061 if test -n "$STRIP_FOR_TARGET"; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13063 $as_echo "$STRIP_FOR_TARGET" >&6; }
13064 else
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066 $as_echo "no" >&6; }
13067 fi
13068
13069
13070 fi
13071 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13072 done
13073 fi
13074
13075 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13076 set dummy strip
13077 if test $build = $target ; then
13078 STRIP_FOR_TARGET="$2"
13079 else
13080 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13081 fi
13082 else
13083 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13084 fi
13085
13086 else
13087 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13088 fi
13089
13090
13091
13092
13093 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13094 if test -n "$with_build_time_tools"; then
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13096 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13097 if test -x $with_build_time_tools/windres; then
13098 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13099 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13101 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13102 else
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104 $as_echo "no" >&6; }
13105 fi
13106 elif test $build != $host && test $have_gcc_for_target = yes; then
13107 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13108 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13109 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13110 fi
13111 fi
13112 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13113 # Extract the first word of "windres", so it can be a program name with args.
13114 set dummy windres; ac_word=$2
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13116 $as_echo_n "checking for $ac_word... " >&6; }
13117 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13118 $as_echo_n "(cached) " >&6
13119 else
13120 case $WINDRES_FOR_TARGET in
13121 [\\/]* | ?:[\\/]*)
13122 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13123 ;;
13124 *)
13125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126 for as_dir in $gcc_cv_tool_dirs
13127 do
13128 IFS=$as_save_IFS
13129 test -z "$as_dir" && as_dir=.
13130 for ac_exec_ext in '' $ac_executable_extensions; do
13131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13132 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13134 break 2
13135 fi
13136 done
13137 done
13138 IFS=$as_save_IFS
13139
13140 ;;
13141 esac
13142 fi
13143 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13144 if test -n "$WINDRES_FOR_TARGET"; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13146 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13147 else
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 $as_echo "no" >&6; }
13150 fi
13151
13152
13153 fi
13154 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13155
13156
13157 if test -n "$WINDRES_FOR_TARGET"; then
13158 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13159 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13160 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13161 fi
13162
13163 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13164 for ncn_progname in windres; do
13165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13166 set dummy ${ncn_progname}; ac_word=$2
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13168 $as_echo_n "checking for $ac_word... " >&6; }
13169 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13170 $as_echo_n "(cached) " >&6
13171 else
13172 if test -n "$WINDRES_FOR_TARGET"; then
13173 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13174 else
13175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13176 for as_dir in $PATH
13177 do
13178 IFS=$as_save_IFS
13179 test -z "$as_dir" && as_dir=.
13180 for ac_exec_ext in '' $ac_executable_extensions; do
13181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13182 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13184 break 2
13185 fi
13186 done
13187 done
13188 IFS=$as_save_IFS
13189
13190 fi
13191 fi
13192 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13193 if test -n "$WINDRES_FOR_TARGET"; then
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13195 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13196 else
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198 $as_echo "no" >&6; }
13199 fi
13200
13201
13202 done
13203 fi
13204
13205 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13206 for ncn_progname in windres; do
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13208 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13209 if test -x $with_build_time_tools/${ncn_progname}; then
13210 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13212 $as_echo "yes" >&6; }
13213 break
13214 else
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 $as_echo "no" >&6; }
13217 fi
13218 done
13219 fi
13220
13221 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13222 for ncn_progname in windres; do
13223 if test -n "$ncn_target_tool_prefix"; then
13224 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13225 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13227 $as_echo_n "checking for $ac_word... " >&6; }
13228 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13229 $as_echo_n "(cached) " >&6
13230 else
13231 if test -n "$WINDRES_FOR_TARGET"; then
13232 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13233 else
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13236 do
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13244 fi
13245 done
13246 done
13247 IFS=$as_save_IFS
13248
13249 fi
13250 fi
13251 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13252 if test -n "$WINDRES_FOR_TARGET"; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13254 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13255 else
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257 $as_echo "no" >&6; }
13258 fi
13259
13260
13261 fi
13262 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13264 set dummy ${ncn_progname}; ac_word=$2
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266 $as_echo_n "checking for $ac_word... " >&6; }
13267 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 if test -n "$WINDRES_FOR_TARGET"; then
13271 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13272 else
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13275 do
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13280 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13282 break 2
13283 fi
13284 done
13285 done
13286 IFS=$as_save_IFS
13287
13288 fi
13289 fi
13290 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13291 if test -n "$WINDRES_FOR_TARGET"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13293 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13294 else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13297 fi
13298
13299
13300 fi
13301 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13302 done
13303 fi
13304
13305 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13306 set dummy windres
13307 if test $build = $target ; then
13308 WINDRES_FOR_TARGET="$2"
13309 else
13310 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13311 fi
13312 else
13313 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13314 fi
13315
13316 else
13317 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13318 fi
13319
13320
13321
13322
13323 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13324 if test -n "$with_build_time_tools"; then
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13326 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13327 if test -x $with_build_time_tools/windmc; then
13328 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13329 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13331 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13332 else
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13335 fi
13336 elif test $build != $host && test $have_gcc_for_target = yes; then
13337 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13338 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13339 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13340 fi
13341 fi
13342 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13343 # Extract the first word of "windmc", so it can be a program name with args.
13344 set dummy windmc; ac_word=$2
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13346 $as_echo_n "checking for $ac_word... " >&6; }
13347 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13348 $as_echo_n "(cached) " >&6
13349 else
13350 case $WINDMC_FOR_TARGET in
13351 [\\/]* | ?:[\\/]*)
13352 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13353 ;;
13354 *)
13355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13356 for as_dir in $gcc_cv_tool_dirs
13357 do
13358 IFS=$as_save_IFS
13359 test -z "$as_dir" && as_dir=.
13360 for ac_exec_ext in '' $ac_executable_extensions; do
13361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13362 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13364 break 2
13365 fi
13366 done
13367 done
13368 IFS=$as_save_IFS
13369
13370 ;;
13371 esac
13372 fi
13373 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13374 if test -n "$WINDMC_FOR_TARGET"; then
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13376 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13377 else
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13379 $as_echo "no" >&6; }
13380 fi
13381
13382
13383 fi
13384 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13385
13386
13387 if test -n "$WINDMC_FOR_TARGET"; then
13388 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13389 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13390 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13391 fi
13392
13393 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13394 for ncn_progname in windmc; do
13395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13396 set dummy ${ncn_progname}; ac_word=$2
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398 $as_echo_n "checking for $ac_word... " >&6; }
13399 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13400 $as_echo_n "(cached) " >&6
13401 else
13402 if test -n "$WINDMC_FOR_TARGET"; then
13403 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13404 else
13405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406 for as_dir in $PATH
13407 do
13408 IFS=$as_save_IFS
13409 test -z "$as_dir" && as_dir=.
13410 for ac_exec_ext in '' $ac_executable_extensions; do
13411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13412 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13414 break 2
13415 fi
13416 done
13417 done
13418 IFS=$as_save_IFS
13419
13420 fi
13421 fi
13422 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13423 if test -n "$WINDMC_FOR_TARGET"; then
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13425 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13426 else
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13428 $as_echo "no" >&6; }
13429 fi
13430
13431
13432 done
13433 fi
13434
13435 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13436 for ncn_progname in windmc; do
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13438 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13439 if test -x $with_build_time_tools/${ncn_progname}; then
13440 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13442 $as_echo "yes" >&6; }
13443 break
13444 else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446 $as_echo "no" >&6; }
13447 fi
13448 done
13449 fi
13450
13451 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13452 for ncn_progname in windmc; do
13453 if test -n "$ncn_target_tool_prefix"; then
13454 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13455 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13457 $as_echo_n "checking for $ac_word... " >&6; }
13458 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13459 $as_echo_n "(cached) " >&6
13460 else
13461 if test -n "$WINDMC_FOR_TARGET"; then
13462 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13463 else
13464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13465 for as_dir in $PATH
13466 do
13467 IFS=$as_save_IFS
13468 test -z "$as_dir" && as_dir=.
13469 for ac_exec_ext in '' $ac_executable_extensions; do
13470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13471 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13473 break 2
13474 fi
13475 done
13476 done
13477 IFS=$as_save_IFS
13478
13479 fi
13480 fi
13481 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13482 if test -n "$WINDMC_FOR_TARGET"; then
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13484 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13485 else
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487 $as_echo "no" >&6; }
13488 fi
13489
13490
13491 fi
13492 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13494 set dummy ${ncn_progname}; ac_word=$2
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13496 $as_echo_n "checking for $ac_word... " >&6; }
13497 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13498 $as_echo_n "(cached) " >&6
13499 else
13500 if test -n "$WINDMC_FOR_TARGET"; then
13501 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13502 else
13503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504 for as_dir in $PATH
13505 do
13506 IFS=$as_save_IFS
13507 test -z "$as_dir" && as_dir=.
13508 for ac_exec_ext in '' $ac_executable_extensions; do
13509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13510 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13512 break 2
13513 fi
13514 done
13515 done
13516 IFS=$as_save_IFS
13517
13518 fi
13519 fi
13520 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13521 if test -n "$WINDMC_FOR_TARGET"; then
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13523 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13524 else
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526 $as_echo "no" >&6; }
13527 fi
13528
13529
13530 fi
13531 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13532 done
13533 fi
13534
13535 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13536 set dummy windmc
13537 if test $build = $target ; then
13538 WINDMC_FOR_TARGET="$2"
13539 else
13540 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13541 fi
13542 else
13543 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13544 fi
13545
13546 else
13547 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13548 fi
13549
13550
13551 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13552
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13554 $as_echo_n "checking where to find the target ar... " >&6; }
13555 if test "x${build}" != "x${host}" ; then
13556 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13557 # We already found the complete path
13558 ac_dir=`dirname $AR_FOR_TARGET`
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13560 $as_echo "pre-installed in $ac_dir" >&6; }
13561 else
13562 # Canadian cross, just use what we found
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13564 $as_echo "pre-installed" >&6; }
13565 fi
13566 else
13567 ok=yes
13568 case " ${configdirs} " in
13569 *" binutils "*) ;;
13570 *) ok=no ;;
13571 esac
13572
13573 if test $ok = yes; then
13574 # An in-tree tool is available and we can use it
13575 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13577 $as_echo "just compiled" >&6; }
13578 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13579 # We already found the complete path
13580 ac_dir=`dirname $AR_FOR_TARGET`
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13582 $as_echo "pre-installed in $ac_dir" >&6; }
13583 elif test "x$target" = "x$host"; then
13584 # We can use an host tool
13585 AR_FOR_TARGET='$(AR)'
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13587 $as_echo "host tool" >&6; }
13588 else
13589 # We need a cross tool
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13591 $as_echo "pre-installed" >&6; }
13592 fi
13593 fi
13594
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13596 $as_echo_n "checking where to find the target as... " >&6; }
13597 if test "x${build}" != "x${host}" ; then
13598 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13599 # We already found the complete path
13600 ac_dir=`dirname $AS_FOR_TARGET`
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13602 $as_echo "pre-installed in $ac_dir" >&6; }
13603 else
13604 # Canadian cross, just use what we found
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13606 $as_echo "pre-installed" >&6; }
13607 fi
13608 else
13609 ok=yes
13610 case " ${configdirs} " in
13611 *" gas "*) ;;
13612 *) ok=no ;;
13613 esac
13614
13615 if test $ok = yes; then
13616 # An in-tree tool is available and we can use it
13617 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13619 $as_echo "just compiled" >&6; }
13620 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13621 # We already found the complete path
13622 ac_dir=`dirname $AS_FOR_TARGET`
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13624 $as_echo "pre-installed in $ac_dir" >&6; }
13625 elif test "x$target" = "x$host"; then
13626 # We can use an host tool
13627 AS_FOR_TARGET='$(AS)'
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13629 $as_echo "host tool" >&6; }
13630 else
13631 # We need a cross tool
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13633 $as_echo "pre-installed" >&6; }
13634 fi
13635 fi
13636
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13638 $as_echo_n "checking where to find the target cc... " >&6; }
13639 if test "x${build}" != "x${host}" ; then
13640 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13641 # We already found the complete path
13642 ac_dir=`dirname $CC_FOR_TARGET`
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13644 $as_echo "pre-installed in $ac_dir" >&6; }
13645 else
13646 # Canadian cross, just use what we found
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13648 $as_echo "pre-installed" >&6; }
13649 fi
13650 else
13651 ok=yes
13652 case " ${configdirs} " in
13653 *" gcc "*) ;;
13654 *) ok=no ;;
13655 esac
13656
13657 if test $ok = yes; then
13658 # An in-tree tool is available and we can use it
13659 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13661 $as_echo "just compiled" >&6; }
13662 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13663 # We already found the complete path
13664 ac_dir=`dirname $CC_FOR_TARGET`
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13666 $as_echo "pre-installed in $ac_dir" >&6; }
13667 elif test "x$target" = "x$host"; then
13668 # We can use an host tool
13669 CC_FOR_TARGET='$(CC)'
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13671 $as_echo "host tool" >&6; }
13672 else
13673 # We need a cross tool
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13675 $as_echo "pre-installed" >&6; }
13676 fi
13677 fi
13678
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13680 $as_echo_n "checking where to find the target c++... " >&6; }
13681 if test "x${build}" != "x${host}" ; then
13682 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13683 # We already found the complete path
13684 ac_dir=`dirname $CXX_FOR_TARGET`
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13686 $as_echo "pre-installed in $ac_dir" >&6; }
13687 else
13688 # Canadian cross, just use what we found
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13690 $as_echo "pre-installed" >&6; }
13691 fi
13692 else
13693 ok=yes
13694 case " ${configdirs} " in
13695 *" gcc "*) ;;
13696 *) ok=no ;;
13697 esac
13698 case ,${enable_languages}, in
13699 *,c++,*) ;;
13700 *) ok=no ;;
13701 esac
13702 if test $ok = yes; then
13703 # An in-tree tool is available and we can use it
13704 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'
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13706 $as_echo "just compiled" >&6; }
13707 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13708 # We already found the complete path
13709 ac_dir=`dirname $CXX_FOR_TARGET`
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13711 $as_echo "pre-installed in $ac_dir" >&6; }
13712 elif test "x$target" = "x$host"; then
13713 # We can use an host tool
13714 CXX_FOR_TARGET='$(CXX)'
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13716 $as_echo "host tool" >&6; }
13717 else
13718 # We need a cross tool
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13720 $as_echo "pre-installed" >&6; }
13721 fi
13722 fi
13723
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13725 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13726 if test "x${build}" != "x${host}" ; then
13727 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13728 # We already found the complete path
13729 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13731 $as_echo "pre-installed in $ac_dir" >&6; }
13732 else
13733 # Canadian cross, just use what we found
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13735 $as_echo "pre-installed" >&6; }
13736 fi
13737 else
13738 ok=yes
13739 case " ${configdirs} " in
13740 *" gcc "*) ;;
13741 *) ok=no ;;
13742 esac
13743 case ,${enable_languages}, in
13744 *,c++,*) ;;
13745 *) ok=no ;;
13746 esac
13747 if test $ok = yes; then
13748 # An in-tree tool is available and we can use it
13749 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'
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13751 $as_echo "just compiled" >&6; }
13752 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13753 # We already found the complete path
13754 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13756 $as_echo "pre-installed in $ac_dir" >&6; }
13757 elif test "x$target" = "x$host"; then
13758 # We can use an host tool
13759 RAW_CXX_FOR_TARGET='$(CXX)'
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13761 $as_echo "host tool" >&6; }
13762 else
13763 # We need a cross tool
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13765 $as_echo "pre-installed" >&6; }
13766 fi
13767 fi
13768
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13770 $as_echo_n "checking where to find the target dlltool... " >&6; }
13771 if test "x${build}" != "x${host}" ; then
13772 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13773 # We already found the complete path
13774 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13776 $as_echo "pre-installed in $ac_dir" >&6; }
13777 else
13778 # Canadian cross, just use what we found
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13780 $as_echo "pre-installed" >&6; }
13781 fi
13782 else
13783 ok=yes
13784 case " ${configdirs} " in
13785 *" binutils "*) ;;
13786 *) ok=no ;;
13787 esac
13788
13789 if test $ok = yes; then
13790 # An in-tree tool is available and we can use it
13791 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13793 $as_echo "just compiled" >&6; }
13794 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13795 # We already found the complete path
13796 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13798 $as_echo "pre-installed in $ac_dir" >&6; }
13799 elif test "x$target" = "x$host"; then
13800 # We can use an host tool
13801 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13803 $as_echo "host tool" >&6; }
13804 else
13805 # We need a cross tool
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13807 $as_echo "pre-installed" >&6; }
13808 fi
13809 fi
13810
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13812 $as_echo_n "checking where to find the target gcc... " >&6; }
13813 if test "x${build}" != "x${host}" ; then
13814 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13815 # We already found the complete path
13816 ac_dir=`dirname $GCC_FOR_TARGET`
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13818 $as_echo "pre-installed in $ac_dir" >&6; }
13819 else
13820 # Canadian cross, just use what we found
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13822 $as_echo "pre-installed" >&6; }
13823 fi
13824 else
13825 ok=yes
13826 case " ${configdirs} " in
13827 *" gcc "*) ;;
13828 *) ok=no ;;
13829 esac
13830
13831 if test $ok = yes; then
13832 # An in-tree tool is available and we can use it
13833 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13835 $as_echo "just compiled" >&6; }
13836 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13837 # We already found the complete path
13838 ac_dir=`dirname $GCC_FOR_TARGET`
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13840 $as_echo "pre-installed in $ac_dir" >&6; }
13841 elif test "x$target" = "x$host"; then
13842 # We can use an host tool
13843 GCC_FOR_TARGET='$()'
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13845 $as_echo "host tool" >&6; }
13846 else
13847 # We need a cross tool
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13849 $as_echo "pre-installed" >&6; }
13850 fi
13851 fi
13852
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13854 $as_echo_n "checking where to find the target gcj... " >&6; }
13855 if test "x${build}" != "x${host}" ; then
13856 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13857 # We already found the complete path
13858 ac_dir=`dirname $GCJ_FOR_TARGET`
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13860 $as_echo "pre-installed in $ac_dir" >&6; }
13861 else
13862 # Canadian cross, just use what we found
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13864 $as_echo "pre-installed" >&6; }
13865 fi
13866 else
13867 ok=yes
13868 case " ${configdirs} " in
13869 *" gcc "*) ;;
13870 *) ok=no ;;
13871 esac
13872 case ,${enable_languages}, in
13873 *,java,*) ;;
13874 *) ok=no ;;
13875 esac
13876 if test $ok = yes; then
13877 # An in-tree tool is available and we can use it
13878 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13880 $as_echo "just compiled" >&6; }
13881 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13882 # We already found the complete path
13883 ac_dir=`dirname $GCJ_FOR_TARGET`
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13885 $as_echo "pre-installed in $ac_dir" >&6; }
13886 elif test "x$target" = "x$host"; then
13887 # We can use an host tool
13888 GCJ_FOR_TARGET='$(GCJ)'
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13890 $as_echo "host tool" >&6; }
13891 else
13892 # We need a cross tool
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13894 $as_echo "pre-installed" >&6; }
13895 fi
13896 fi
13897
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13899 $as_echo_n "checking where to find the target gfortran... " >&6; }
13900 if test "x${build}" != "x${host}" ; then
13901 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13902 # We already found the complete path
13903 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13905 $as_echo "pre-installed in $ac_dir" >&6; }
13906 else
13907 # Canadian cross, just use what we found
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13909 $as_echo "pre-installed" >&6; }
13910 fi
13911 else
13912 ok=yes
13913 case " ${configdirs} " in
13914 *" gcc "*) ;;
13915 *) ok=no ;;
13916 esac
13917 case ,${enable_languages}, in
13918 *,fortran,*) ;;
13919 *) ok=no ;;
13920 esac
13921 if test $ok = yes; then
13922 # An in-tree tool is available and we can use it
13923 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13925 $as_echo "just compiled" >&6; }
13926 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13927 # We already found the complete path
13928 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13930 $as_echo "pre-installed in $ac_dir" >&6; }
13931 elif test "x$target" = "x$host"; then
13932 # We can use an host tool
13933 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13935 $as_echo "host tool" >&6; }
13936 else
13937 # We need a cross tool
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13939 $as_echo "pre-installed" >&6; }
13940 fi
13941 fi
13942
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13944 $as_echo_n "checking where to find the target gccgo... " >&6; }
13945 if test "x${build}" != "x${host}" ; then
13946 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13947 # We already found the complete path
13948 ac_dir=`dirname $GOC_FOR_TARGET`
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13950 $as_echo "pre-installed in $ac_dir" >&6; }
13951 else
13952 # Canadian cross, just use what we found
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13954 $as_echo "pre-installed" >&6; }
13955 fi
13956 else
13957 ok=yes
13958 case " ${configdirs} " in
13959 *" gcc "*) ;;
13960 *) ok=no ;;
13961 esac
13962 case ,${enable_languages}, in
13963 *,go,*) ;;
13964 *) ok=no ;;
13965 esac
13966 if test $ok = yes; then
13967 # An in-tree tool is available and we can use it
13968 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13970 $as_echo "just compiled" >&6; }
13971 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13972 # We already found the complete path
13973 ac_dir=`dirname $GOC_FOR_TARGET`
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13975 $as_echo "pre-installed in $ac_dir" >&6; }
13976 elif test "x$target" = "x$host"; then
13977 # We can use an host tool
13978 GOC_FOR_TARGET='$(GOC)'
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13980 $as_echo "host tool" >&6; }
13981 else
13982 # We need a cross tool
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13984 $as_echo "pre-installed" >&6; }
13985 fi
13986 fi
13987
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13989 $as_echo_n "checking where to find the target ld... " >&6; }
13990 if test "x${build}" != "x${host}" ; then
13991 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13992 # We already found the complete path
13993 ac_dir=`dirname $LD_FOR_TARGET`
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13995 $as_echo "pre-installed in $ac_dir" >&6; }
13996 else
13997 # Canadian cross, just use what we found
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13999 $as_echo "pre-installed" >&6; }
14000 fi
14001 else
14002 ok=yes
14003 case " ${configdirs} " in
14004 *" ld "*) ;;
14005 *) ok=no ;;
14006 esac
14007
14008 if test $ok = yes; then
14009 # An in-tree tool is available and we can use it
14010 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14012 $as_echo "just compiled" >&6; }
14013 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14014 # We already found the complete path
14015 ac_dir=`dirname $LD_FOR_TARGET`
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14017 $as_echo "pre-installed in $ac_dir" >&6; }
14018 elif test "x$target" = "x$host"; then
14019 # We can use an host tool
14020 LD_FOR_TARGET='$(LD)'
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14022 $as_echo "host tool" >&6; }
14023 else
14024 # We need a cross tool
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14026 $as_echo "pre-installed" >&6; }
14027 fi
14028 fi
14029
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14031 $as_echo_n "checking where to find the target lipo... " >&6; }
14032 if test "x${build}" != "x${host}" ; then
14033 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14034 # We already found the complete path
14035 ac_dir=`dirname $LIPO_FOR_TARGET`
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14037 $as_echo "pre-installed in $ac_dir" >&6; }
14038 else
14039 # Canadian cross, just use what we found
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14041 $as_echo "pre-installed" >&6; }
14042 fi
14043 else
14044 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14045 # We already found the complete path
14046 ac_dir=`dirname $LIPO_FOR_TARGET`
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14048 $as_echo "pre-installed in $ac_dir" >&6; }
14049 elif test "x$target" = "x$host"; then
14050 # We can use an host tool
14051 LIPO_FOR_TARGET='$(LIPO)'
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14053 $as_echo "host tool" >&6; }
14054 else
14055 # We need a cross tool
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14057 $as_echo "pre-installed" >&6; }
14058 fi
14059 fi
14060
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14062 $as_echo_n "checking where to find the target nm... " >&6; }
14063 if test "x${build}" != "x${host}" ; then
14064 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14065 # We already found the complete path
14066 ac_dir=`dirname $NM_FOR_TARGET`
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14068 $as_echo "pre-installed in $ac_dir" >&6; }
14069 else
14070 # Canadian cross, just use what we found
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14072 $as_echo "pre-installed" >&6; }
14073 fi
14074 else
14075 ok=yes
14076 case " ${configdirs} " in
14077 *" binutils "*) ;;
14078 *) ok=no ;;
14079 esac
14080
14081 if test $ok = yes; then
14082 # An in-tree tool is available and we can use it
14083 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14085 $as_echo "just compiled" >&6; }
14086 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14087 # We already found the complete path
14088 ac_dir=`dirname $NM_FOR_TARGET`
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14090 $as_echo "pre-installed in $ac_dir" >&6; }
14091 elif test "x$target" = "x$host"; then
14092 # We can use an host tool
14093 NM_FOR_TARGET='$(NM)'
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14095 $as_echo "host tool" >&6; }
14096 else
14097 # We need a cross tool
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14099 $as_echo "pre-installed" >&6; }
14100 fi
14101 fi
14102
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14104 $as_echo_n "checking where to find the target objdump... " >&6; }
14105 if test "x${build}" != "x${host}" ; then
14106 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14107 # We already found the complete path
14108 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14110 $as_echo "pre-installed in $ac_dir" >&6; }
14111 else
14112 # Canadian cross, just use what we found
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14114 $as_echo "pre-installed" >&6; }
14115 fi
14116 else
14117 ok=yes
14118 case " ${configdirs} " in
14119 *" binutils "*) ;;
14120 *) ok=no ;;
14121 esac
14122
14123 if test $ok = yes; then
14124 # An in-tree tool is available and we can use it
14125 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14127 $as_echo "just compiled" >&6; }
14128 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14129 # We already found the complete path
14130 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14132 $as_echo "pre-installed in $ac_dir" >&6; }
14133 elif test "x$target" = "x$host"; then
14134 # We can use an host tool
14135 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14137 $as_echo "host tool" >&6; }
14138 else
14139 # We need a cross tool
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14141 $as_echo "pre-installed" >&6; }
14142 fi
14143 fi
14144
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14146 $as_echo_n "checking where to find the target ranlib... " >&6; }
14147 if test "x${build}" != "x${host}" ; then
14148 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14149 # We already found the complete path
14150 ac_dir=`dirname $RANLIB_FOR_TARGET`
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14152 $as_echo "pre-installed in $ac_dir" >&6; }
14153 else
14154 # Canadian cross, just use what we found
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14156 $as_echo "pre-installed" >&6; }
14157 fi
14158 else
14159 ok=yes
14160 case " ${configdirs} " in
14161 *" binutils "*) ;;
14162 *) ok=no ;;
14163 esac
14164
14165 if test $ok = yes; then
14166 # An in-tree tool is available and we can use it
14167 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14169 $as_echo "just compiled" >&6; }
14170 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14171 # We already found the complete path
14172 ac_dir=`dirname $RANLIB_FOR_TARGET`
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14174 $as_echo "pre-installed in $ac_dir" >&6; }
14175 elif test "x$target" = "x$host"; then
14176 # We can use an host tool
14177 RANLIB_FOR_TARGET='$(RANLIB)'
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14179 $as_echo "host tool" >&6; }
14180 else
14181 # We need a cross tool
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14183 $as_echo "pre-installed" >&6; }
14184 fi
14185 fi
14186
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14188 $as_echo_n "checking where to find the target readelf... " >&6; }
14189 if test "x${build}" != "x${host}" ; then
14190 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14191 # We already found the complete path
14192 ac_dir=`dirname $READELF_FOR_TARGET`
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14194 $as_echo "pre-installed in $ac_dir" >&6; }
14195 else
14196 # Canadian cross, just use what we found
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14198 $as_echo "pre-installed" >&6; }
14199 fi
14200 else
14201 ok=yes
14202 case " ${configdirs} " in
14203 *" binutils "*) ;;
14204 *) ok=no ;;
14205 esac
14206
14207 if test $ok = yes; then
14208 # An in-tree tool is available and we can use it
14209 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14211 $as_echo "just compiled" >&6; }
14212 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14213 # We already found the complete path
14214 ac_dir=`dirname $READELF_FOR_TARGET`
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14216 $as_echo "pre-installed in $ac_dir" >&6; }
14217 elif test "x$target" = "x$host"; then
14218 # We can use an host tool
14219 READELF_FOR_TARGET='$(READELF)'
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14221 $as_echo "host tool" >&6; }
14222 else
14223 # We need a cross tool
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14225 $as_echo "pre-installed" >&6; }
14226 fi
14227 fi
14228
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14230 $as_echo_n "checking where to find the target strip... " >&6; }
14231 if test "x${build}" != "x${host}" ; then
14232 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14233 # We already found the complete path
14234 ac_dir=`dirname $STRIP_FOR_TARGET`
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14236 $as_echo "pre-installed in $ac_dir" >&6; }
14237 else
14238 # Canadian cross, just use what we found
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14240 $as_echo "pre-installed" >&6; }
14241 fi
14242 else
14243 ok=yes
14244 case " ${configdirs} " in
14245 *" binutils "*) ;;
14246 *) ok=no ;;
14247 esac
14248
14249 if test $ok = yes; then
14250 # An in-tree tool is available and we can use it
14251 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14253 $as_echo "just compiled" >&6; }
14254 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
14256 ac_dir=`dirname $STRIP_FOR_TARGET`
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258 $as_echo "pre-installed in $ac_dir" >&6; }
14259 elif test "x$target" = "x$host"; then
14260 # We can use an host tool
14261 STRIP_FOR_TARGET='$(STRIP)'
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14263 $as_echo "host tool" >&6; }
14264 else
14265 # We need a cross tool
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14267 $as_echo "pre-installed" >&6; }
14268 fi
14269 fi
14270
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14272 $as_echo_n "checking where to find the target windres... " >&6; }
14273 if test "x${build}" != "x${host}" ; then
14274 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14275 # We already found the complete path
14276 ac_dir=`dirname $WINDRES_FOR_TARGET`
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14278 $as_echo "pre-installed in $ac_dir" >&6; }
14279 else
14280 # Canadian cross, just use what we found
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14282 $as_echo "pre-installed" >&6; }
14283 fi
14284 else
14285 ok=yes
14286 case " ${configdirs} " in
14287 *" binutils "*) ;;
14288 *) ok=no ;;
14289 esac
14290
14291 if test $ok = yes; then
14292 # An in-tree tool is available and we can use it
14293 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14295 $as_echo "just compiled" >&6; }
14296 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
14298 ac_dir=`dirname $WINDRES_FOR_TARGET`
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300 $as_echo "pre-installed in $ac_dir" >&6; }
14301 elif test "x$target" = "x$host"; then
14302 # We can use an host tool
14303 WINDRES_FOR_TARGET='$(WINDRES)'
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14305 $as_echo "host tool" >&6; }
14306 else
14307 # We need a cross tool
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14309 $as_echo "pre-installed" >&6; }
14310 fi
14311 fi
14312
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14314 $as_echo_n "checking where to find the target windmc... " >&6; }
14315 if test "x${build}" != "x${host}" ; then
14316 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14317 # We already found the complete path
14318 ac_dir=`dirname $WINDMC_FOR_TARGET`
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14320 $as_echo "pre-installed in $ac_dir" >&6; }
14321 else
14322 # Canadian cross, just use what we found
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14324 $as_echo "pre-installed" >&6; }
14325 fi
14326 else
14327 ok=yes
14328 case " ${configdirs} " in
14329 *" binutils "*) ;;
14330 *) ok=no ;;
14331 esac
14332
14333 if test $ok = yes; then
14334 # An in-tree tool is available and we can use it
14335 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14337 $as_echo "just compiled" >&6; }
14338 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
14340 ac_dir=`dirname $WINDMC_FOR_TARGET`
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342 $as_echo "pre-installed in $ac_dir" >&6; }
14343 elif test "x$target" = "x$host"; then
14344 # We can use an host tool
14345 WINDMC_FOR_TARGET='$(WINDMC)'
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14347 $as_echo "host tool" >&6; }
14348 else
14349 # We need a cross tool
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14351 $as_echo "pre-installed" >&6; }
14352 fi
14353 fi
14354
14355
14356
14357
14358
14359 # Certain tools may need extra flags.
14360 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14361 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14362 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14363
14364 # When building target libraries, except in a Canadian cross, we use
14365 # the same toolchain as the compiler we just built.
14366 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14367 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14368 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14369 if test $host = $build; then
14370 case " $configdirs " in
14371 *" gcc "*)
14372 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14373 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14374 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14375 ;;
14376 esac
14377 fi
14378
14379
14380
14381
14382
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14384 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14385 # Check whether --enable-maintainer-mode was given.
14386 if test "${enable_maintainer_mode+set}" = set; then :
14387 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14388 else
14389 USE_MAINTAINER_MODE=no
14390 fi
14391
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14393 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14394
14395
14396 if test "$USE_MAINTAINER_MODE" = yes; then
14397 MAINTAINER_MODE_TRUE=
14398 MAINTAINER_MODE_FALSE='#'
14399 else
14400 MAINTAINER_MODE_TRUE='#'
14401 MAINTAINER_MODE_FALSE=
14402 fi
14403 MAINT=$MAINTAINER_MODE_TRUE
14404
14405 # ---------------------
14406 # GCC bootstrap support
14407 # ---------------------
14408
14409 # Stage specific cflags for build.
14410 stage1_cflags="-g"
14411 case $build in
14412 vax-*-*)
14413 case ${GCC} in
14414 yes) stage1_cflags="-g -Wa,-J" ;;
14415 *) stage1_cflags="-g -J" ;;
14416 esac ;;
14417 esac
14418
14419
14420
14421 # Enable --enable-checking in stage1 of the compiler.
14422 # Check whether --enable-stage1-checking was given.
14423 if test "${enable_stage1_checking+set}" = set; then :
14424 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14425 else
14426 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14427 stage1_checking=--enable-checking=yes,types
14428 else
14429 stage1_checking=--enable-checking=$enable_checking,types
14430 fi
14431 fi
14432
14433
14434
14435 # Enable -Werror in bootstrap stage2 and later.
14436 # Check whether --enable-werror was given.
14437 if test "${enable_werror+set}" = set; then :
14438 enableval=$enable_werror;
14439 else
14440 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14441 enable_werror=yes
14442 else
14443 enable_werror=no
14444 fi
14445 fi
14446
14447 case ${enable_werror} in
14448 yes) stage2_werror_flag="--enable-werror-always" ;;
14449 *) stage2_werror_flag="" ;;
14450 esac
14451
14452
14453 # Enable --enable-host-shared.
14454 # Check whether --enable-host-shared was given.
14455 if test "${enable_host_shared+set}" = set; then :
14456 enableval=$enable_host_shared; host_shared=$enableval
14457 else
14458 host_shared=no
14459 fi
14460
14461
14462
14463 # Specify what files to not compare during bootstrap.
14464
14465 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14466 case "$target" in
14467 hppa*64*-*-hpux*) ;;
14468 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14469 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14470 esac
14471
14472
14473 ac_config_files="$ac_config_files Makefile"
14474
14475 cat >confcache <<\_ACEOF
14476 # This file is a shell script that caches the results of configure
14477 # tests run on this system so they can be shared between configure
14478 # scripts and configure runs, see configure's option --config-cache.
14479 # It is not useful on other systems. If it contains results you don't
14480 # want to keep, you may remove or edit it.
14481 #
14482 # config.status only pays attention to the cache file if you give it
14483 # the --recheck option to rerun configure.
14484 #
14485 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14486 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14487 # following values.
14488
14489 _ACEOF
14490
14491 # The following way of writing the cache mishandles newlines in values,
14492 # but we know of no workaround that is simple, portable, and efficient.
14493 # So, we kill variables containing newlines.
14494 # Ultrix sh set writes to stderr and can't be redirected directly,
14495 # and sets the high bit in the cache file unless we assign to the vars.
14496 (
14497 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14498 eval ac_val=\$$ac_var
14499 case $ac_val in #(
14500 *${as_nl}*)
14501 case $ac_var in #(
14502 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14503 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14504 esac
14505 case $ac_var in #(
14506 _ | IFS | as_nl) ;; #(
14507 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14508 *) { eval $ac_var=; unset $ac_var;} ;;
14509 esac ;;
14510 esac
14511 done
14512
14513 (set) 2>&1 |
14514 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14515 *${as_nl}ac_space=\ *)
14516 # `set' does not quote correctly, so add quotes: double-quote
14517 # substitution turns \\\\ into \\, and sed turns \\ into \.
14518 sed -n \
14519 "s/'/'\\\\''/g;
14520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14521 ;; #(
14522 *)
14523 # `set' quotes correctly as required by POSIX, so do not add quotes.
14524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14525 ;;
14526 esac |
14527 sort
14528 ) |
14529 sed '
14530 /^ac_cv_env_/b end
14531 t clear
14532 :clear
14533 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14534 t end
14535 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14536 :end' >>confcache
14537 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14538 if test -w "$cache_file"; then
14539 test "x$cache_file" != "x/dev/null" &&
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14541 $as_echo "$as_me: updating cache $cache_file" >&6;}
14542 cat confcache >$cache_file
14543 else
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14545 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14546 fi
14547 fi
14548 rm -f confcache
14549
14550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14551 # Let make expand exec_prefix.
14552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14553
14554 # Transform confdefs.h into DEFS.
14555 # Protect against shell expansion while executing Makefile rules.
14556 # Protect against Makefile macro expansion.
14557 #
14558 # If the first sed substitution is executed (which looks for macros that
14559 # take arguments), then branch to the quote section. Otherwise,
14560 # look for a macro that doesn't take arguments.
14561 ac_script='
14562 :mline
14563 /\\$/{
14564 N
14565 s,\\\n,,
14566 b mline
14567 }
14568 t clear
14569 :clear
14570 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14571 t quote
14572 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14573 t quote
14574 b any
14575 :quote
14576 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14577 s/\[/\\&/g
14578 s/\]/\\&/g
14579 s/\$/$$/g
14580 H
14581 :any
14582 ${
14583 g
14584 s/^\n//
14585 s/\n/ /g
14586 p
14587 }
14588 '
14589 DEFS=`sed -n "$ac_script" confdefs.h`
14590
14591
14592 ac_libobjs=
14593 ac_ltlibobjs=
14594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14595 # 1. Remove the extension, and $U if already installed.
14596 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14597 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14598 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14599 # will be set to the directory where LIBOBJS objects are built.
14600 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14601 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14602 done
14603 LIBOBJS=$ac_libobjs
14604
14605 LTLIBOBJS=$ac_ltlibobjs
14606
14607
14608
14609 : ${CONFIG_STATUS=./config.status}
14610 ac_write_fail=0
14611 ac_clean_files_save=$ac_clean_files
14612 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14614 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14615 as_write_fail=0
14616 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14617 #! $SHELL
14618 # Generated by $as_me.
14619 # Run this file to recreate the current configuration.
14620 # Compiler output produced by configure, useful for debugging
14621 # configure, is in config.log if it exists.
14622
14623 debug=false
14624 ac_cs_recheck=false
14625 ac_cs_silent=false
14626
14627 SHELL=\${CONFIG_SHELL-$SHELL}
14628 export SHELL
14629 _ASEOF
14630 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14631 ## -------------------- ##
14632 ## M4sh Initialization. ##
14633 ## -------------------- ##
14634
14635 # Be more Bourne compatible
14636 DUALCASE=1; export DUALCASE # for MKS sh
14637 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14638 emulate sh
14639 NULLCMD=:
14640 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14641 # is contrary to our usage. Disable this feature.
14642 alias -g '${1+"$@"}'='"$@"'
14643 setopt NO_GLOB_SUBST
14644 else
14645 case `(set -o) 2>/dev/null` in #(
14646 *posix*) :
14647 set -o posix ;; #(
14648 *) :
14649 ;;
14650 esac
14651 fi
14652
14653
14654 as_nl='
14655 '
14656 export as_nl
14657 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14658 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14659 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14660 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14661 # Prefer a ksh shell builtin over an external printf program on Solaris,
14662 # but without wasting forks for bash or zsh.
14663 if test -z "$BASH_VERSION$ZSH_VERSION" \
14664 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14665 as_echo='print -r --'
14666 as_echo_n='print -rn --'
14667 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14668 as_echo='printf %s\n'
14669 as_echo_n='printf %s'
14670 else
14671 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14672 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14673 as_echo_n='/usr/ucb/echo -n'
14674 else
14675 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14676 as_echo_n_body='eval
14677 arg=$1;
14678 case $arg in #(
14679 *"$as_nl"*)
14680 expr "X$arg" : "X\\(.*\\)$as_nl";
14681 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14682 esac;
14683 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14684 '
14685 export as_echo_n_body
14686 as_echo_n='sh -c $as_echo_n_body as_echo'
14687 fi
14688 export as_echo_body
14689 as_echo='sh -c $as_echo_body as_echo'
14690 fi
14691
14692 # The user is always right.
14693 if test "${PATH_SEPARATOR+set}" != set; then
14694 PATH_SEPARATOR=:
14695 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14696 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14697 PATH_SEPARATOR=';'
14698 }
14699 fi
14700
14701
14702 # IFS
14703 # We need space, tab and new line, in precisely that order. Quoting is
14704 # there to prevent editors from complaining about space-tab.
14705 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14706 # splitting by setting IFS to empty value.)
14707 IFS=" "" $as_nl"
14708
14709 # Find who we are. Look in the path if we contain no directory separator.
14710 case $0 in #((
14711 *[\\/]* ) as_myself=$0 ;;
14712 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14713 for as_dir in $PATH
14714 do
14715 IFS=$as_save_IFS
14716 test -z "$as_dir" && as_dir=.
14717 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14718 done
14719 IFS=$as_save_IFS
14720
14721 ;;
14722 esac
14723 # We did not find ourselves, most probably we were run as `sh COMMAND'
14724 # in which case we are not to be found in the path.
14725 if test "x$as_myself" = x; then
14726 as_myself=$0
14727 fi
14728 if test ! -f "$as_myself"; then
14729 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14730 exit 1
14731 fi
14732
14733 # Unset variables that we do not need and which cause bugs (e.g. in
14734 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14735 # suppresses any "Segmentation fault" message there. '((' could
14736 # trigger a bug in pdksh 5.2.14.
14737 for as_var in BASH_ENV ENV MAIL MAILPATH
14738 do eval test x\${$as_var+set} = xset \
14739 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14740 done
14741 PS1='$ '
14742 PS2='> '
14743 PS4='+ '
14744
14745 # NLS nuisances.
14746 LC_ALL=C
14747 export LC_ALL
14748 LANGUAGE=C
14749 export LANGUAGE
14750
14751 # CDPATH.
14752 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14753
14754
14755 # as_fn_error ERROR [LINENO LOG_FD]
14756 # ---------------------------------
14757 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14758 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14759 # script with status $?, using 1 if that was 0.
14760 as_fn_error ()
14761 {
14762 as_status=$?; test $as_status -eq 0 && as_status=1
14763 if test "$3"; then
14764 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14765 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14766 fi
14767 $as_echo "$as_me: error: $1" >&2
14768 as_fn_exit $as_status
14769 } # as_fn_error
14770
14771
14772 # as_fn_set_status STATUS
14773 # -----------------------
14774 # Set $? to STATUS, without forking.
14775 as_fn_set_status ()
14776 {
14777 return $1
14778 } # as_fn_set_status
14779
14780 # as_fn_exit STATUS
14781 # -----------------
14782 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14783 as_fn_exit ()
14784 {
14785 set +e
14786 as_fn_set_status $1
14787 exit $1
14788 } # as_fn_exit
14789
14790 # as_fn_unset VAR
14791 # ---------------
14792 # Portably unset VAR.
14793 as_fn_unset ()
14794 {
14795 { eval $1=; unset $1;}
14796 }
14797 as_unset=as_fn_unset
14798 # as_fn_append VAR VALUE
14799 # ----------------------
14800 # Append the text in VALUE to the end of the definition contained in VAR. Take
14801 # advantage of any shell optimizations that allow amortized linear growth over
14802 # repeated appends, instead of the typical quadratic growth present in naive
14803 # implementations.
14804 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14805 eval 'as_fn_append ()
14806 {
14807 eval $1+=\$2
14808 }'
14809 else
14810 as_fn_append ()
14811 {
14812 eval $1=\$$1\$2
14813 }
14814 fi # as_fn_append
14815
14816 # as_fn_arith ARG...
14817 # ------------------
14818 # Perform arithmetic evaluation on the ARGs, and store the result in the
14819 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14820 # must be portable across $(()) and expr.
14821 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14822 eval 'as_fn_arith ()
14823 {
14824 as_val=$(( $* ))
14825 }'
14826 else
14827 as_fn_arith ()
14828 {
14829 as_val=`expr "$@" || test $? -eq 1`
14830 }
14831 fi # as_fn_arith
14832
14833
14834 if expr a : '\(a\)' >/dev/null 2>&1 &&
14835 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14836 as_expr=expr
14837 else
14838 as_expr=false
14839 fi
14840
14841 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14842 as_basename=basename
14843 else
14844 as_basename=false
14845 fi
14846
14847 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14848 as_dirname=dirname
14849 else
14850 as_dirname=false
14851 fi
14852
14853 as_me=`$as_basename -- "$0" ||
14854 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14855 X"$0" : 'X\(//\)$' \| \
14856 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14857 $as_echo X/"$0" |
14858 sed '/^.*\/\([^/][^/]*\)\/*$/{
14859 s//\1/
14860 q
14861 }
14862 /^X\/\(\/\/\)$/{
14863 s//\1/
14864 q
14865 }
14866 /^X\/\(\/\).*/{
14867 s//\1/
14868 q
14869 }
14870 s/.*/./; q'`
14871
14872 # Avoid depending upon Character Ranges.
14873 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14874 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14875 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14876 as_cr_digits='0123456789'
14877 as_cr_alnum=$as_cr_Letters$as_cr_digits
14878
14879 ECHO_C= ECHO_N= ECHO_T=
14880 case `echo -n x` in #(((((
14881 -n*)
14882 case `echo 'xy\c'` in
14883 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14884 xy) ECHO_C='\c';;
14885 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14886 ECHO_T=' ';;
14887 esac;;
14888 *)
14889 ECHO_N='-n';;
14890 esac
14891
14892 rm -f conf$$ conf$$.exe conf$$.file
14893 if test -d conf$$.dir; then
14894 rm -f conf$$.dir/conf$$.file
14895 else
14896 rm -f conf$$.dir
14897 mkdir conf$$.dir 2>/dev/null
14898 fi
14899 if (echo >conf$$.file) 2>/dev/null; then
14900 if ln -s conf$$.file conf$$ 2>/dev/null; then
14901 as_ln_s='ln -s'
14902 # ... but there are two gotchas:
14903 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14904 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14905 # In both cases, we have to default to `cp -p'.
14906 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14907 as_ln_s='cp -p'
14908 elif ln conf$$.file conf$$ 2>/dev/null; then
14909 as_ln_s=ln
14910 else
14911 as_ln_s='cp -p'
14912 fi
14913 else
14914 as_ln_s='cp -p'
14915 fi
14916 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14917 rmdir conf$$.dir 2>/dev/null
14918
14919
14920 # as_fn_mkdir_p
14921 # -------------
14922 # Create "$as_dir" as a directory, including parents if necessary.
14923 as_fn_mkdir_p ()
14924 {
14925
14926 case $as_dir in #(
14927 -*) as_dir=./$as_dir;;
14928 esac
14929 test -d "$as_dir" || eval $as_mkdir_p || {
14930 as_dirs=
14931 while :; do
14932 case $as_dir in #(
14933 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14934 *) as_qdir=$as_dir;;
14935 esac
14936 as_dirs="'$as_qdir' $as_dirs"
14937 as_dir=`$as_dirname -- "$as_dir" ||
14938 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14939 X"$as_dir" : 'X\(//\)[^/]' \| \
14940 X"$as_dir" : 'X\(//\)$' \| \
14941 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14942 $as_echo X"$as_dir" |
14943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14944 s//\1/
14945 q
14946 }
14947 /^X\(\/\/\)[^/].*/{
14948 s//\1/
14949 q
14950 }
14951 /^X\(\/\/\)$/{
14952 s//\1/
14953 q
14954 }
14955 /^X\(\/\).*/{
14956 s//\1/
14957 q
14958 }
14959 s/.*/./; q'`
14960 test -d "$as_dir" && break
14961 done
14962 test -z "$as_dirs" || eval "mkdir $as_dirs"
14963 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14964
14965
14966 } # as_fn_mkdir_p
14967 if mkdir -p . 2>/dev/null; then
14968 as_mkdir_p='mkdir -p "$as_dir"'
14969 else
14970 test -d ./-p && rmdir ./-p
14971 as_mkdir_p=false
14972 fi
14973
14974 if test -x / >/dev/null 2>&1; then
14975 as_test_x='test -x'
14976 else
14977 if ls -dL / >/dev/null 2>&1; then
14978 as_ls_L_option=L
14979 else
14980 as_ls_L_option=
14981 fi
14982 as_test_x='
14983 eval sh -c '\''
14984 if test -d "$1"; then
14985 test -d "$1/.";
14986 else
14987 case $1 in #(
14988 -*)set "./$1";;
14989 esac;
14990 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14991 ???[sx]*):;;*)false;;esac;fi
14992 '\'' sh
14993 '
14994 fi
14995 as_executable_p=$as_test_x
14996
14997 # Sed expression to map a string onto a valid CPP name.
14998 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14999
15000 # Sed expression to map a string onto a valid variable name.
15001 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15002
15003
15004 exec 6>&1
15005 ## ----------------------------------- ##
15006 ## Main body of $CONFIG_STATUS script. ##
15007 ## ----------------------------------- ##
15008 _ASEOF
15009 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15010
15011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15012 # Save the log message, to keep $0 and so on meaningful, and to
15013 # report actual input values of CONFIG_FILES etc. instead of their
15014 # values after options handling.
15015 ac_log="
15016 This file was extended by $as_me, which was
15017 generated by GNU Autoconf 2.64. Invocation command line was
15018
15019 CONFIG_FILES = $CONFIG_FILES
15020 CONFIG_HEADERS = $CONFIG_HEADERS
15021 CONFIG_LINKS = $CONFIG_LINKS
15022 CONFIG_COMMANDS = $CONFIG_COMMANDS
15023 $ $0 $@
15024
15025 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15026 "
15027
15028 _ACEOF
15029
15030 case $ac_config_files in *"
15031 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15032 esac
15033
15034
15035
15036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15037 # Files that config.status was made for.
15038 config_files="$ac_config_files"
15039
15040 _ACEOF
15041
15042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15043 ac_cs_usage="\
15044 \`$as_me' instantiates files and other configuration actions
15045 from templates according to the current configuration. Unless the files
15046 and actions are specified as TAGs, all are instantiated by default.
15047
15048 Usage: $0 [OPTION]... [TAG]...
15049
15050 -h, --help print this help, then exit
15051 -V, --version print version number and configuration settings, then exit
15052 -q, --quiet, --silent
15053 do not print progress messages
15054 -d, --debug don't remove temporary files
15055 --recheck update $as_me by reconfiguring in the same conditions
15056 --file=FILE[:TEMPLATE]
15057 instantiate the configuration file FILE
15058
15059 Configuration files:
15060 $config_files
15061
15062 Report bugs to the package provider."
15063
15064 _ACEOF
15065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15066 ac_cs_version="\\
15067 config.status
15068 configured by $0, generated by GNU Autoconf 2.64,
15069 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15070
15071 Copyright (C) 2009 Free Software Foundation, Inc.
15072 This config.status script is free software; the Free Software Foundation
15073 gives unlimited permission to copy, distribute and modify it."
15074
15075 ac_pwd='$ac_pwd'
15076 srcdir='$srcdir'
15077 INSTALL='$INSTALL'
15078 AWK='$AWK'
15079 test -n "\$AWK" || AWK=awk
15080 _ACEOF
15081
15082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15083 # The default lists apply if the user does not specify any file.
15084 ac_need_defaults=:
15085 while test $# != 0
15086 do
15087 case $1 in
15088 --*=*)
15089 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15090 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15091 ac_shift=:
15092 ;;
15093 *)
15094 ac_option=$1
15095 ac_optarg=$2
15096 ac_shift=shift
15097 ;;
15098 esac
15099
15100 case $ac_option in
15101 # Handling of the options.
15102 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15103 ac_cs_recheck=: ;;
15104 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15105 $as_echo "$ac_cs_version"; exit ;;
15106 --debug | --debu | --deb | --de | --d | -d )
15107 debug=: ;;
15108 --file | --fil | --fi | --f )
15109 $ac_shift
15110 case $ac_optarg in
15111 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15112 esac
15113 as_fn_append CONFIG_FILES " '$ac_optarg'"
15114 ac_need_defaults=false;;
15115 --he | --h | --help | --hel | -h )
15116 $as_echo "$ac_cs_usage"; exit ;;
15117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15118 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15119 ac_cs_silent=: ;;
15120
15121 # This is an error.
15122 -*) as_fn_error "unrecognized option: \`$1'
15123 Try \`$0 --help' for more information." ;;
15124
15125 *) as_fn_append ac_config_targets " $1"
15126 ac_need_defaults=false ;;
15127
15128 esac
15129 shift
15130 done
15131
15132 ac_configure_extra_args=
15133
15134 if $ac_cs_silent; then
15135 exec 6>/dev/null
15136 ac_configure_extra_args="$ac_configure_extra_args --silent"
15137 fi
15138
15139 _ACEOF
15140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15141 if \$ac_cs_recheck; then
15142 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15143 shift
15144 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15145 CONFIG_SHELL='$SHELL'
15146 export CONFIG_SHELL
15147 exec "\$@"
15148 fi
15149
15150 _ACEOF
15151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15152 exec 5>>config.log
15153 {
15154 echo
15155 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15156 ## Running $as_me. ##
15157 _ASBOX
15158 $as_echo "$ac_log"
15159 } >&5
15160
15161 _ACEOF
15162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15163 #
15164 # INIT-COMMANDS
15165 #
15166 extrasub_build="$extrasub_build"
15167 extrasub_host="$extrasub_host"
15168 extrasub_target="$extrasub_target"
15169
15170 _ACEOF
15171
15172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15173
15174 # Handling of arguments.
15175 for ac_config_target in $ac_config_targets
15176 do
15177 case $ac_config_target in
15178 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15179
15180 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15181 esac
15182 done
15183
15184
15185 # If the user did not use the arguments to specify the items to instantiate,
15186 # then the envvar interface is used. Set only those that are not.
15187 # We use the long form for the default assignment because of an extremely
15188 # bizarre bug on SunOS 4.1.3.
15189 if $ac_need_defaults; then
15190 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15191 fi
15192
15193 # Have a temporary directory for convenience. Make it in the build tree
15194 # simply because there is no reason against having it here, and in addition,
15195 # creating and moving files from /tmp can sometimes cause problems.
15196 # Hook for its removal unless debugging.
15197 # Note that there is a small window in which the directory will not be cleaned:
15198 # after its creation but before its name has been assigned to `$tmp'.
15199 $debug ||
15200 {
15201 tmp=
15202 trap 'exit_status=$?
15203 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15204 ' 0
15205 trap 'as_fn_exit 1' 1 2 13 15
15206 }
15207 # Create a (secure) tmp directory for tmp files.
15208
15209 {
15210 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15211 test -n "$tmp" && test -d "$tmp"
15212 } ||
15213 {
15214 tmp=./conf$$-$RANDOM
15215 (umask 077 && mkdir "$tmp")
15216 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15217
15218 # Set up the scripts for CONFIG_FILES section.
15219 # No need to generate them if there are no CONFIG_FILES.
15220 # This happens for instance with `./config.status config.h'.
15221 if test -n "$CONFIG_FILES"; then
15222
15223 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15224 ac_cs_awk_getline=:
15225 ac_cs_awk_pipe_init=
15226 ac_cs_awk_read_file='
15227 while ((getline aline < (F[key])) > 0)
15228 print(aline)
15229 close(F[key])'
15230 ac_cs_awk_pipe_fini=
15231 else
15232 ac_cs_awk_getline=false
15233 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15234 ac_cs_awk_read_file='
15235 print "|#_!!_#|"
15236 print "cat " F[key] " &&"
15237 '$ac_cs_awk_pipe_init
15238 # The final `:' finishes the AND list.
15239 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15240 fi
15241 ac_cr=`echo X | tr X '\015'`
15242 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15243 # But we know of no other shell where ac_cr would be empty at this
15244 # point, so we can use a bashism as a fallback.
15245 if test "x$ac_cr" = x; then
15246 eval ac_cr=\$\'\\r\'
15247 fi
15248 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15249 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15250 ac_cs_awk_cr='\r'
15251 else
15252 ac_cs_awk_cr=$ac_cr
15253 fi
15254
15255 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15256 _ACEOF
15257
15258 # Create commands to substitute file output variables.
15259 {
15260 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15261 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15262 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15263 echo "_ACAWK" &&
15264 echo "_ACEOF"
15265 } >conf$$files.sh &&
15266 . ./conf$$files.sh ||
15267 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15268 rm -f conf$$files.sh
15269
15270 {
15271 echo "cat >conf$$subs.awk <<_ACEOF" &&
15272 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15273 echo "_ACEOF"
15274 } >conf$$subs.sh ||
15275 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15276 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15277 ac_delim='%!_!# '
15278 for ac_last_try in false false false false false :; do
15279 . ./conf$$subs.sh ||
15280 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15281
15282 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15283 if test $ac_delim_n = $ac_delim_num; then
15284 break
15285 elif $ac_last_try; then
15286 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15287 else
15288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15289 fi
15290 done
15291 rm -f conf$$subs.sh
15292
15293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15294 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15295 _ACEOF
15296 sed -n '
15297 h
15298 s/^/S["/; s/!.*/"]=/
15299 p
15300 g
15301 s/^[^!]*!//
15302 :repl
15303 t repl
15304 s/'"$ac_delim"'$//
15305 t delim
15306 :nl
15307 h
15308 s/\(.\{148\}\).*/\1/
15309 t more1
15310 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15311 p
15312 n
15313 b repl
15314 :more1
15315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15316 p
15317 g
15318 s/.\{148\}//
15319 t nl
15320 :delim
15321 h
15322 s/\(.\{148\}\).*/\1/
15323 t more2
15324 s/["\\]/\\&/g; s/^/"/; s/$/"/
15325 p
15326 b
15327 :more2
15328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15329 p
15330 g
15331 s/.\{148\}//
15332 t delim
15333 ' <conf$$subs.awk | sed '
15334 /^[^""]/{
15335 N
15336 s/\n//
15337 }
15338 ' >>$CONFIG_STATUS || ac_write_fail=1
15339 rm -f conf$$subs.awk
15340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15341 _ACAWK
15342 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15343 for (key in S) S_is_set[key] = 1
15344 FS = "\a"
15345 \$ac_cs_awk_pipe_init
15346 }
15347 {
15348 line = $ 0
15349 nfields = split(line, field, "@")
15350 substed = 0
15351 len = length(field[1])
15352 for (i = 2; i < nfields; i++) {
15353 key = field[i]
15354 keylen = length(key)
15355 if (S_is_set[key]) {
15356 value = S[key]
15357 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15358 len += length(value) + length(field[++i])
15359 substed = 1
15360 } else
15361 len += 1 + keylen
15362 }
15363 if (nfields == 3 && !substed) {
15364 key = field[2]
15365 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15366 \$ac_cs_awk_read_file
15367 next
15368 }
15369 }
15370 print line
15371 }
15372 \$ac_cs_awk_pipe_fini
15373 _ACAWK
15374 _ACEOF
15375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15376 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15377 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15378 else
15379 cat
15380 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15381 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15382 _ACEOF
15383
15384 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15385 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15386 # trailing colons and then remove the whole line if VPATH becomes empty
15387 # (actually we leave an empty line to preserve line numbers).
15388 if test "x$srcdir" = x.; then
15389 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15390 s/:*\$(srcdir):*/:/
15391 s/:*\${srcdir}:*/:/
15392 s/:*@srcdir@:*/:/
15393 s/^\([^=]*=[ ]*\):*/\1/
15394 s/:*$//
15395 s/^[^=]*=[ ]*$//
15396 }'
15397 fi
15398
15399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15400 fi # test -n "$CONFIG_FILES"
15401
15402
15403 eval set X " :F $CONFIG_FILES "
15404 shift
15405 for ac_tag
15406 do
15407 case $ac_tag in
15408 :[FHLC]) ac_mode=$ac_tag; continue;;
15409 esac
15410 case $ac_mode$ac_tag in
15411 :[FHL]*:*);;
15412 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15413 :[FH]-) ac_tag=-:-;;
15414 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15415 esac
15416 ac_save_IFS=$IFS
15417 IFS=:
15418 set x $ac_tag
15419 IFS=$ac_save_IFS
15420 shift
15421 ac_file=$1
15422 shift
15423
15424 case $ac_mode in
15425 :L) ac_source=$1;;
15426 :[FH])
15427 ac_file_inputs=
15428 for ac_f
15429 do
15430 case $ac_f in
15431 -) ac_f="$tmp/stdin";;
15432 *) # Look for the file first in the build tree, then in the source tree
15433 # (if the path is not absolute). The absolute path cannot be DOS-style,
15434 # because $ac_f cannot contain `:'.
15435 test -f "$ac_f" ||
15436 case $ac_f in
15437 [\\/$]*) false;;
15438 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15439 esac ||
15440 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15441 esac
15442 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15443 as_fn_append ac_file_inputs " '$ac_f'"
15444 done
15445
15446 # Let's still pretend it is `configure' which instantiates (i.e., don't
15447 # use $as_me), people would be surprised to read:
15448 # /* config.h. Generated by config.status. */
15449 configure_input='Generated from '`
15450 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15451 `' by configure.'
15452 if test x"$ac_file" != x-; then
15453 configure_input="$ac_file. $configure_input"
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15455 $as_echo "$as_me: creating $ac_file" >&6;}
15456 fi
15457 # Neutralize special characters interpreted by sed in replacement strings.
15458 case $configure_input in #(
15459 *\&* | *\|* | *\\* )
15460 ac_sed_conf_input=`$as_echo "$configure_input" |
15461 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15462 *) ac_sed_conf_input=$configure_input;;
15463 esac
15464
15465 case $ac_tag in
15466 *:-:* | *:-) cat >"$tmp/stdin" \
15467 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15468 esac
15469 ;;
15470 esac
15471
15472 ac_dir=`$as_dirname -- "$ac_file" ||
15473 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15474 X"$ac_file" : 'X\(//\)[^/]' \| \
15475 X"$ac_file" : 'X\(//\)$' \| \
15476 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15477 $as_echo X"$ac_file" |
15478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15479 s//\1/
15480 q
15481 }
15482 /^X\(\/\/\)[^/].*/{
15483 s//\1/
15484 q
15485 }
15486 /^X\(\/\/\)$/{
15487 s//\1/
15488 q
15489 }
15490 /^X\(\/\).*/{
15491 s//\1/
15492 q
15493 }
15494 s/.*/./; q'`
15495 as_dir="$ac_dir"; as_fn_mkdir_p
15496 ac_builddir=.
15497
15498 case "$ac_dir" in
15499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15500 *)
15501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15502 # A ".." for each directory in $ac_dir_suffix.
15503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15504 case $ac_top_builddir_sub in
15505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15507 esac ;;
15508 esac
15509 ac_abs_top_builddir=$ac_pwd
15510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15511 # for backward compatibility:
15512 ac_top_builddir=$ac_top_build_prefix
15513
15514 case $srcdir in
15515 .) # We are building in place.
15516 ac_srcdir=.
15517 ac_top_srcdir=$ac_top_builddir_sub
15518 ac_abs_top_srcdir=$ac_pwd ;;
15519 [\\/]* | ?:[\\/]* ) # Absolute name.
15520 ac_srcdir=$srcdir$ac_dir_suffix;
15521 ac_top_srcdir=$srcdir
15522 ac_abs_top_srcdir=$srcdir ;;
15523 *) # Relative name.
15524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15525 ac_top_srcdir=$ac_top_build_prefix$srcdir
15526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15527 esac
15528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15529
15530
15531 case $ac_mode in
15532 :F)
15533 #
15534 # CONFIG_FILE
15535 #
15536
15537 case $INSTALL in
15538 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15539 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15540 esac
15541 _ACEOF
15542
15543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15544 # If the template does not know about datarootdir, expand it.
15545 # FIXME: This hack should be removed a few years after 2.60.
15546 ac_datarootdir_hack=; ac_datarootdir_seen=
15547 ac_sed_dataroot='
15548 /datarootdir/ {
15549 p
15550 q
15551 }
15552 /@datadir@/p
15553 /@docdir@/p
15554 /@infodir@/p
15555 /@localedir@/p
15556 /@mandir@/p'
15557 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15558 *datarootdir*) ac_datarootdir_seen=yes;;
15559 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15561 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15562 _ACEOF
15563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15564 ac_datarootdir_hack='
15565 s&@datadir@&$datadir&g
15566 s&@docdir@&$docdir&g
15567 s&@infodir@&$infodir&g
15568 s&@localedir@&$localedir&g
15569 s&@mandir@&$mandir&g
15570 s&\\\${datarootdir}&$datarootdir&g' ;;
15571 esac
15572 _ACEOF
15573
15574 # Neutralize VPATH when `$srcdir' = `.'.
15575 # Shell code in configure.ac might set extrasub.
15576 # FIXME: do we really want to maintain this feature?
15577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15578 ac_sed_extra="$ac_vpsub
15579 $extrasub
15580 _ACEOF
15581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15582 :t
15583 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15584 s|@configure_input@|$ac_sed_conf_input|;t t
15585 s&@top_builddir@&$ac_top_builddir_sub&;t t
15586 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15587 s&@srcdir@&$ac_srcdir&;t t
15588 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15589 s&@top_srcdir@&$ac_top_srcdir&;t t
15590 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15591 s&@builddir@&$ac_builddir&;t t
15592 s&@abs_builddir@&$ac_abs_builddir&;t t
15593 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15594 s&@INSTALL@&$ac_INSTALL&;t t
15595 $ac_datarootdir_hack
15596 "
15597 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15598 if $ac_cs_awk_getline; then
15599 $AWK -f "$tmp/subs.awk"
15600 else
15601 $AWK -f "$tmp/subs.awk" | $SHELL
15602 fi >$tmp/out \
15603 || as_fn_error "could not create $ac_file" "$LINENO" 5
15604
15605 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15606 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15607 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15609 which seems to be undefined. Please make sure it is defined." >&5
15610 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15611 which seems to be undefined. Please make sure it is defined." >&2;}
15612
15613 rm -f "$tmp/stdin"
15614 case $ac_file in
15615 -) cat "$tmp/out" && rm -f "$tmp/out";;
15616 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15617 esac \
15618 || as_fn_error "could not create $ac_file" "$LINENO" 5
15619 ;;
15620
15621
15622
15623 esac
15624
15625
15626 case $ac_file$ac_mode in
15627 "Makefile":F) sed "$extrasub_build" Makefile |
15628 sed "$extrasub_host" |
15629 sed "$extrasub_target" > mf$$
15630 mv -f mf$$ Makefile ;;
15631
15632 esac
15633 done # for ac_tag
15634
15635
15636 as_fn_exit 0
15637 _ACEOF
15638 ac_clean_files=$ac_clean_files_save
15639
15640 test $ac_write_fail = 0 ||
15641 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15642
15643
15644 # configure is writing to config.log, and then calls config.status.
15645 # config.status does its own redirection, appending to config.log.
15646 # Unfortunately, on DOS this fails, as config.log is still kept open
15647 # by configure, so config.status won't be able to write to it; its
15648 # output is simply discarded. So we exec the FD to /dev/null,
15649 # effectively closing config.log, so it can be properly (re)opened and
15650 # appended to by config.status. When coming back to configure, we
15651 # need to make the FD available again.
15652 if test "$no_create" != yes; then
15653 ac_cs_success=:
15654 ac_config_status_args=
15655 test "$silent" = yes &&
15656 ac_config_status_args="$ac_config_status_args --quiet"
15657 exec 5>/dev/null
15658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15659 exec 5>>config.log
15660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15661 # would make configure fail if this is the last instruction.
15662 $ac_cs_success || as_fn_exit $?
15663 fi
15664 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15666 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15667 fi
15668