re PR libfortran/25378 ([Fortran 2003] maxloc for all-false mask)
[gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="move-if-change"
275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CXX CFLAGS_FOR_BUILD CXXFLAGS CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET FLAGS_FOR_TARGET RAW_CXX_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage2_werror_flag LIBOBJS LTLIBOBJS'
276 ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
277
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
297
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
315
316 ac_prev=
317 for ac_option
318 do
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
325
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
330 case $ac_option in
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335 bindir=$ac_optarg ;;
336
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build_alias ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build_alias=$ac_optarg ;;
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
356 datadir=$ac_optarg ;;
357
358 -disable-* | --disable-*)
359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
366
367 -enable-* | --enable-*)
368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
387 exec_prefix=$ac_optarg ;;
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
399
400 -host | --host | --hos | --ho)
401 ac_prev=host_alias ;;
402 -host=* | --host=* | --hos=* | --ho=*)
403 host_alias=$ac_optarg ;;
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
410 includedir=$ac_optarg ;;
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
420 libdir=$ac_optarg ;;
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
427 libexecdir=$ac_optarg ;;
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436 localstatedir=$ac_optarg ;;
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441 mandir=$ac_optarg ;;
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462 oldincludedir=$ac_optarg ;;
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467 prefix=$ac_optarg ;;
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474 program_prefix=$ac_optarg ;;
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481 program_suffix=$ac_optarg ;;
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
498 program_transform_name=$ac_optarg ;;
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
508 sbindir=$ac_optarg ;;
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
519 sharedstatedir=$ac_optarg ;;
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
524 site=$ac_optarg ;;
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529 srcdir=$ac_optarg ;;
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536 sysconfdir=$ac_optarg ;;
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
539 ac_prev=target_alias ;;
540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541 target_alias=$ac_optarg ;;
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
548
549 -with-* | --with-*)
550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
561
562 -without-* | --without-*)
563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580 x_includes=$ac_optarg ;;
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587 x_libraries=$ac_optarg ;;
588
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
592 ;;
593
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
604 *)
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610 ;;
611
612 esac
613 done
614
615 if test -n "$ac_prev"; then
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
619 fi
620
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
623 do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630 done
631
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
635 do
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
641 esac
642 done
643
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
650
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660 fi
661
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665 test "$silent" = yes && exec 6>/dev/null
666
667
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678 echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688 else
689 ac_srcdir_defaulted=no
690 fi
691 if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699 fi
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732
733 #
734 # Report the --help message.
735 #
736 if test "$ac_init_help" = "long"; then
737 # Omit some internal or obsolete options to make the list less imposing.
738 # This message is too long to be a string in the A/UX 3.1 sh.
739 cat <<_ACEOF
740 \`configure' configures this package to adapt to many kinds of systems.
741
742 Usage: $0 [OPTION]... [VAR=VALUE]...
743
744 To assign environment variables (e.g., CC, CFLAGS...), specify them as
745 VAR=VALUE. See below for descriptions of some of the useful variables.
746
747 Defaults for the options are specified in brackets.
748
749 Configuration:
750 -h, --help display this help and exit
751 --help=short display options specific to this package
752 --help=recursive display the short help of all the included packages
753 -V, --version display version information and exit
754 -q, --quiet, --silent do not print \`checking...' messages
755 --cache-file=FILE cache test results in FILE [disabled]
756 -C, --config-cache alias for \`--cache-file=config.cache'
757 -n, --no-create do not create output files
758 --srcdir=DIR find the sources in DIR [configure dir or \`..']
759
760 _ACEOF
761
762 cat <<_ACEOF
763 Installation directories:
764 --prefix=PREFIX install architecture-independent files in PREFIX
765 [$ac_default_prefix]
766 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
767 [PREFIX]
768
769 By default, \`make install' will install all the files in
770 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
771 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
772 for instance \`--prefix=\$HOME'.
773
774 For better control, use the options below.
775
776 Fine tuning of the installation directories:
777 --bindir=DIR user executables [EPREFIX/bin]
778 --sbindir=DIR system admin executables [EPREFIX/sbin]
779 --libexecdir=DIR program executables [EPREFIX/libexec]
780 --datadir=DIR read-only architecture-independent data [PREFIX/share]
781 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
782 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
783 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
784 --libdir=DIR object code libraries [EPREFIX/lib]
785 --includedir=DIR C header files [PREFIX/include]
786 --oldincludedir=DIR C header files for non-gcc [/usr/include]
787 --infodir=DIR info documentation [PREFIX/info]
788 --mandir=DIR man documentation [PREFIX/man]
789 _ACEOF
790
791 cat <<\_ACEOF
792
793 Program names:
794 --program-prefix=PREFIX prepend PREFIX to installed program names
795 --program-suffix=SUFFIX append SUFFIX to installed program names
796 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
797
798 System types:
799 --build=BUILD configure for building on BUILD [guessed]
800 --host=HOST cross-compile to build programs to run on HOST [BUILD]
801 --target=TARGET configure for building compilers for TARGET [HOST]
802 _ACEOF
803 fi
804
805 if test -n "$ac_init_help"; then
806
807 cat <<\_ACEOF
808
809 Optional Features:
810 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
811 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
812 --enable-libada Builds libada directory
813 --enable-libssp Builds libssp directory
814 --enable-libgcc-math Builds libgcc-math directory
815 --enable-bootstrap Enable bootstrapping yes if native build
816 --enable-serial-{host,target,build}-configure
817 Force sequential configuration of
818 sub-packages for the host, target or build
819 machine, or all sub-packages
820 --enable-maintainer-mode enable make rules and dependencies not useful
821 (and sometimes confusing) to the casual installer
822 --enable-werror enable -Werror in bootstrap stage2 and later
823
824 Optional Packages:
825 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
826 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
827 --with-mpfr-dir=PATH Specify source directory for MPFR library
828 --with-mpfr=PATH Specify directory for installed MPFR library
829 --with-gmp-dir=PATH Specify source directory for GMP library
830 --with-gmp=PATH Specify directory for installed GMP library
831 --with-build-sysroot=sysroot
832 use sysroot as the system root during the build
833 --with-build-time-tools=path
834 use given path to find target tools during the build
835
836 Some influential environment variables:
837 CC C compiler command
838 CFLAGS C compiler flags
839 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
840 nonstandard directory <lib dir>
841 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
842 headers in a nonstandard directory <include dir>
843
844 Use these variables to override the choices made by `configure' or to help
845 it to find libraries and programs with nonstandard names/locations.
846
847 _ACEOF
848 fi
849
850 if test "$ac_init_help" = "recursive"; then
851 # If there are subdirs, report their specific --help.
852 ac_popdir=`pwd`
853 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
854 test -d $ac_dir || continue
855 ac_builddir=.
856
857 if test "$ac_dir" != .; then
858 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
859 # A "../" for each directory in $ac_dir_suffix.
860 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
861 else
862 ac_dir_suffix= ac_top_builddir=
863 fi
864
865 case $srcdir in
866 .) # No --srcdir option. We are building in place.
867 ac_srcdir=.
868 if test -z "$ac_top_builddir"; then
869 ac_top_srcdir=.
870 else
871 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
872 fi ;;
873 [\\/]* | ?:[\\/]* ) # Absolute path.
874 ac_srcdir=$srcdir$ac_dir_suffix;
875 ac_top_srcdir=$srcdir ;;
876 *) # Relative path.
877 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
878 ac_top_srcdir=$ac_top_builddir$srcdir ;;
879 esac
880
881 # Do not use `cd foo && pwd` to compute absolute paths, because
882 # the directories may not exist.
883 case `pwd` in
884 .) ac_abs_builddir="$ac_dir";;
885 *)
886 case "$ac_dir" in
887 .) ac_abs_builddir=`pwd`;;
888 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
889 *) ac_abs_builddir=`pwd`/"$ac_dir";;
890 esac;;
891 esac
892 case $ac_abs_builddir in
893 .) ac_abs_top_builddir=${ac_top_builddir}.;;
894 *)
895 case ${ac_top_builddir}. in
896 .) ac_abs_top_builddir=$ac_abs_builddir;;
897 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
898 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
899 esac;;
900 esac
901 case $ac_abs_builddir in
902 .) ac_abs_srcdir=$ac_srcdir;;
903 *)
904 case $ac_srcdir in
905 .) ac_abs_srcdir=$ac_abs_builddir;;
906 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
907 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
908 esac;;
909 esac
910 case $ac_abs_builddir in
911 .) ac_abs_top_srcdir=$ac_top_srcdir;;
912 *)
913 case $ac_top_srcdir in
914 .) ac_abs_top_srcdir=$ac_abs_builddir;;
915 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
916 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
917 esac;;
918 esac
919
920 cd $ac_dir
921 # Check for guested configure; otherwise get Cygnus style configure.
922 if test -f $ac_srcdir/configure.gnu; then
923 echo
924 $SHELL $ac_srcdir/configure.gnu --help=recursive
925 elif test -f $ac_srcdir/configure; then
926 echo
927 $SHELL $ac_srcdir/configure --help=recursive
928 elif test -f $ac_srcdir/configure.ac ||
929 test -f $ac_srcdir/configure.in; then
930 echo
931 $ac_configure --help
932 else
933 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
934 fi
935 cd $ac_popdir
936 done
937 fi
938
939 test -n "$ac_init_help" && exit 0
940 if $ac_init_version; then
941 cat <<\_ACEOF
942
943 Copyright (C) 2003 Free Software Foundation, Inc.
944 This configure script is free software; the Free Software Foundation
945 gives unlimited permission to copy, distribute and modify it.
946 _ACEOF
947 exit 0
948 fi
949 exec 5>config.log
950 cat >&5 <<_ACEOF
951 This file contains any messages produced by compilers while
952 running configure, to aid debugging if configure makes a mistake.
953
954 It was created by $as_me, which was
955 generated by GNU Autoconf 2.59. Invocation command line was
956
957 $ $0 $@
958
959 _ACEOF
960 {
961 cat <<_ASUNAME
962 ## --------- ##
963 ## Platform. ##
964 ## --------- ##
965
966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
971
972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
974
975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
978 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
982
983 _ASUNAME
984
985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
986 for as_dir in $PATH
987 do
988 IFS=$as_save_IFS
989 test -z "$as_dir" && as_dir=.
990 echo "PATH: $as_dir"
991 done
992
993 } >&5
994
995 cat >&5 <<_ACEOF
996
997
998 ## ----------- ##
999 ## Core tests. ##
1000 ## ----------- ##
1001
1002 _ACEOF
1003
1004
1005 # Keep a trace of the command line.
1006 # Strip out --no-create and --no-recursion so they do not pile up.
1007 # Strip out --silent because we don't want to record it for future runs.
1008 # Also quote any args containing shell meta-characters.
1009 # Make two passes to allow for proper duplicate-argument suppression.
1010 ac_configure_args=
1011 ac_configure_args0=
1012 ac_configure_args1=
1013 ac_sep=
1014 ac_must_keep_next=false
1015 for ac_pass in 1 2
1016 do
1017 for ac_arg
1018 do
1019 case $ac_arg in
1020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1023 continue ;;
1024 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1025 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1026 esac
1027 case $ac_pass in
1028 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1029 2)
1030 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1031 if test $ac_must_keep_next = true; then
1032 ac_must_keep_next=false # Got value, back to normal.
1033 else
1034 case $ac_arg in
1035 *=* | --config-cache | -C | -disable-* | --disable-* \
1036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1038 | -with-* | --with-* | -without-* | --without-* | --x)
1039 case "$ac_configure_args0 " in
1040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1041 esac
1042 ;;
1043 -* ) ac_must_keep_next=true ;;
1044 esac
1045 fi
1046 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047 # Get rid of the leading space.
1048 ac_sep=" "
1049 ;;
1050 esac
1051 done
1052 done
1053 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1054 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1055
1056 # When interrupted or exit'd, cleanup temporary files, and complete
1057 # config.log. We remove comments because anyway the quotes in there
1058 # would cause problems or look ugly.
1059 # WARNING: Be sure not to use single quotes in there, as some shells,
1060 # such as our DU 5.0 friend, will then `close' the trap.
1061 trap 'exit_status=$?
1062 # Save into config.log some information that might help in debugging.
1063 {
1064 echo
1065
1066 cat <<\_ASBOX
1067 ## ---------------- ##
1068 ## Cache variables. ##
1069 ## ---------------- ##
1070 _ASBOX
1071 echo
1072 # The following way of writing the cache mishandles newlines in values,
1073 {
1074 (set) 2>&1 |
1075 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076 *ac_space=\ *)
1077 sed -n \
1078 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1080 ;;
1081 *)
1082 sed -n \
1083 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1084 ;;
1085 esac;
1086 }
1087 echo
1088
1089 cat <<\_ASBOX
1090 ## ----------------- ##
1091 ## Output variables. ##
1092 ## ----------------- ##
1093 _ASBOX
1094 echo
1095 for ac_var in $ac_subst_vars
1096 do
1097 eval ac_val=$`echo $ac_var`
1098 echo "$ac_var='"'"'$ac_val'"'"'"
1099 done | sort
1100 echo
1101
1102 if test -n "$ac_subst_files"; then
1103 cat <<\_ASBOX
1104 ## ------------- ##
1105 ## Output files. ##
1106 ## ------------- ##
1107 _ASBOX
1108 echo
1109 for ac_var in $ac_subst_files
1110 do
1111 eval ac_val=$`echo $ac_var`
1112 echo "$ac_var='"'"'$ac_val'"'"'"
1113 done | sort
1114 echo
1115 fi
1116
1117 if test -s confdefs.h; then
1118 cat <<\_ASBOX
1119 ## ----------- ##
1120 ## confdefs.h. ##
1121 ## ----------- ##
1122 _ASBOX
1123 echo
1124 sed "/^$/d" confdefs.h | sort
1125 echo
1126 fi
1127 test "$ac_signal" != 0 &&
1128 echo "$as_me: caught signal $ac_signal"
1129 echo "$as_me: exit $exit_status"
1130 } >&5
1131 rm -f core *.core &&
1132 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1133 exit $exit_status
1134 ' 0
1135 for ac_signal in 1 2 13 15; do
1136 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1137 done
1138 ac_signal=0
1139
1140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1141 rm -rf conftest* confdefs.h
1142 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143 echo >confdefs.h
1144
1145 # Predefined preprocessor variables.
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_NAME "$PACKAGE_NAME"
1149 _ACEOF
1150
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_STRING "$PACKAGE_STRING"
1164 _ACEOF
1165
1166
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1169 _ACEOF
1170
1171
1172 # Let the site file select an alternate cache file if it wants to.
1173 # Prefer explicitly selected file to automatically selected ones.
1174 if test -z "$CONFIG_SITE"; then
1175 if test "x$prefix" != xNONE; then
1176 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177 else
1178 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1179 fi
1180 fi
1181 for ac_site_file in $CONFIG_SITE; do
1182 if test -r "$ac_site_file"; then
1183 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1184 echo "$as_me: loading site script $ac_site_file" >&6;}
1185 sed 's/^/| /' "$ac_site_file" >&5
1186 . "$ac_site_file"
1187 fi
1188 done
1189
1190 if test -r "$cache_file"; then
1191 # Some versions of bash will fail to source /dev/null (special
1192 # files actually), so we avoid doing that.
1193 if test -f "$cache_file"; then
1194 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1195 echo "$as_me: loading cache $cache_file" >&6;}
1196 case $cache_file in
1197 [\\/]* | ?:[\\/]* ) . $cache_file;;
1198 *) . ./$cache_file;;
1199 esac
1200 fi
1201 else
1202 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1203 echo "$as_me: creating cache $cache_file" >&6;}
1204 >$cache_file
1205 fi
1206
1207 # Check that the precious variables saved in the cache have kept the same
1208 # value.
1209 ac_cache_corrupted=false
1210 for ac_var in `(set) 2>&1 |
1211 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213 eval ac_new_set=\$ac_env_${ac_var}_set
1214 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215 eval ac_new_val="\$ac_env_${ac_var}_value"
1216 case $ac_old_set,$ac_new_set in
1217 set,)
1218 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1219 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220 ac_cache_corrupted=: ;;
1221 ,set)
1222 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224 ac_cache_corrupted=: ;;
1225 ,);;
1226 *)
1227 if test "x$ac_old_val" != "x$ac_new_val"; then
1228 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1229 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1230 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1231 echo "$as_me: former value: $ac_old_val" >&2;}
1232 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1233 echo "$as_me: current value: $ac_new_val" >&2;}
1234 ac_cache_corrupted=:
1235 fi;;
1236 esac
1237 # Pass precious variables to config.status.
1238 if test "$ac_new_set" = set; then
1239 case $ac_new_val in
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 *) ac_arg=$ac_var=$ac_new_val ;;
1243 esac
1244 case " $ac_configure_args " in
1245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1246 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1247 esac
1248 fi
1249 done
1250 if $ac_cache_corrupted; then
1251 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1252 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1253 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1254 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255 { (exit 1); exit 1; }; }
1256 fi
1257
1258 ac_ext=c
1259 ac_cpp='$CPP $CPPFLAGS'
1260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283 ac_aux_dir=
1284 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1285 if test -f $ac_dir/install-sh; then
1286 ac_aux_dir=$ac_dir
1287 ac_install_sh="$ac_aux_dir/install-sh -c"
1288 break
1289 elif test -f $ac_dir/install.sh; then
1290 ac_aux_dir=$ac_dir
1291 ac_install_sh="$ac_aux_dir/install.sh -c"
1292 break
1293 elif test -f $ac_dir/shtool; then
1294 ac_aux_dir=$ac_dir
1295 ac_install_sh="$ac_aux_dir/shtool install -c"
1296 break
1297 fi
1298 done
1299 if test -z "$ac_aux_dir"; then
1300 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1301 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1302 { (exit 1); exit 1; }; }
1303 fi
1304 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1305 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1306 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1307
1308 # Make sure we can run config.sub.
1309 $ac_config_sub sun4 >/dev/null 2>&1 ||
1310 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1311 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1312 { (exit 1); exit 1; }; }
1313
1314 echo "$as_me:$LINENO: checking build system type" >&5
1315 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1316 if test "${ac_cv_build+set}" = set; then
1317 echo $ECHO_N "(cached) $ECHO_C" >&6
1318 else
1319 ac_cv_build_alias=$build_alias
1320 test -z "$ac_cv_build_alias" &&
1321 ac_cv_build_alias=`$ac_config_guess`
1322 test -z "$ac_cv_build_alias" &&
1323 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1324 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1325 { (exit 1); exit 1; }; }
1326 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1327 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1328 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1329 { (exit 1); exit 1; }; }
1330
1331 fi
1332 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1333 echo "${ECHO_T}$ac_cv_build" >&6
1334 build=$ac_cv_build
1335 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338
1339
1340 echo "$as_me:$LINENO: checking host system type" >&5
1341 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1342 if test "${ac_cv_host+set}" = set; then
1343 echo $ECHO_N "(cached) $ECHO_C" >&6
1344 else
1345 ac_cv_host_alias=$host_alias
1346 test -z "$ac_cv_host_alias" &&
1347 ac_cv_host_alias=$ac_cv_build_alias
1348 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1349 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1350 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1351 { (exit 1); exit 1; }; }
1352
1353 fi
1354 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1355 echo "${ECHO_T}$ac_cv_host" >&6
1356 host=$ac_cv_host
1357 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1360
1361
1362 echo "$as_me:$LINENO: checking target system type" >&5
1363 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1364 if test "${ac_cv_target+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1366 else
1367 ac_cv_target_alias=$target_alias
1368 test "x$ac_cv_target_alias" = "x" &&
1369 ac_cv_target_alias=$ac_cv_host_alias
1370 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1374
1375 fi
1376 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1377 echo "${ECHO_T}$ac_cv_target" >&6
1378 target=$ac_cv_target
1379 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382
1383
1384 # The aliases save the names the user supplied, while $host etc.
1385 # will get canonicalized.
1386 test -n "$target_alias" &&
1387 test "$program_prefix$program_suffix$program_transform_name" = \
1388 NONENONEs,x,x, &&
1389 program_prefix=${target_alias}-
1390 test "$program_prefix" != NONE &&
1391 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1392 # Use a double $ so make ignores it.
1393 test "$program_suffix" != NONE &&
1394 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1395 # Double any \ or $. echo might interpret backslashes.
1396 # By default was `s,x,x', remove it if useless.
1397 cat <<\_ACEOF >conftest.sed
1398 s/[\\$]/&&/g;s/;s,x,x,$//
1399 _ACEOF
1400 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1401 rm conftest.sed
1402
1403
1404 # Get 'install' or 'install-sh' and its variants.
1405 # Find a good install program. We prefer a C program (faster),
1406 # so one script is as good as another. But avoid the broken or
1407 # incompatible versions:
1408 # SysV /etc/install, /usr/sbin/install
1409 # SunOS /usr/etc/install
1410 # IRIX /sbin/install
1411 # AIX /bin/install
1412 # AmigaOS /C/install, which installs bootblocks on floppy discs
1413 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1414 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1415 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1416 # OS/2's system install, which has a completely different semantic
1417 # ./install, which can be erroneously created by make from ./install.sh.
1418 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1419 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1420 if test -z "$INSTALL"; then
1421 if test "${ac_cv_path_install+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425 for as_dir in $PATH
1426 do
1427 IFS=$as_save_IFS
1428 test -z "$as_dir" && as_dir=.
1429 # Account for people who put trailing slashes in PATH elements.
1430 case $as_dir/ in
1431 ./ | .// | /cC/* | \
1432 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1433 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1434 /usr/ucb/* ) ;;
1435 *)
1436 # OSF1 and SCO ODT 3.0 have their own names for install.
1437 # Don't use installbsd from OSF since it installs stuff as root
1438 # by default.
1439 for ac_prog in ginstall scoinst install; do
1440 for ac_exec_ext in '' $ac_executable_extensions; do
1441 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1442 if test $ac_prog = install &&
1443 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1444 # AIX install. It has an incompatible calling convention.
1445 :
1446 elif test $ac_prog = install &&
1447 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1448 # program-specific install script used by HP pwplus--don't use.
1449 :
1450 else
1451 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1452 break 3
1453 fi
1454 fi
1455 done
1456 done
1457 ;;
1458 esac
1459 done
1460
1461
1462 fi
1463 if test "${ac_cv_path_install+set}" = set; then
1464 INSTALL=$ac_cv_path_install
1465 else
1466 # As a last resort, use the slow shell script. We don't cache a
1467 # path for INSTALL within a source directory, because that will
1468 # break other packages using the cache if that directory is
1469 # removed, or if the path is relative.
1470 INSTALL=$ac_install_sh
1471 fi
1472 fi
1473 echo "$as_me:$LINENO: result: $INSTALL" >&5
1474 echo "${ECHO_T}$INSTALL" >&6
1475
1476 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1477 # It thinks the first close brace ends the variable substitution.
1478 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1479
1480 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1481
1482 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1483
1484 echo "$as_me:$LINENO: checking whether ln works" >&5
1485 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1486 if test "${acx_cv_prog_LN+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 else
1489 rm -f conftestdata_t
1490 echo >conftestdata_f
1491 if ln conftestdata_f conftestdata_t 2>/dev/null
1492 then
1493 acx_cv_prog_LN=ln
1494 else
1495 acx_cv_prog_LN=no
1496 fi
1497 rm -f conftestdata_f conftestdata_t
1498
1499 fi
1500 if test $acx_cv_prog_LN = no; then
1501 LN="cp"
1502 echo "$as_me:$LINENO: result: no, using $LN" >&5
1503 echo "${ECHO_T}no, using $LN" >&6
1504 else
1505 LN="$acx_cv_prog_LN"
1506 echo "$as_me:$LINENO: result: yes" >&5
1507 echo "${ECHO_T}yes" >&6
1508 fi
1509
1510 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1511 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1512 LN_S=$as_ln_s
1513 if test "$LN_S" = "ln -s"; then
1514 echo "$as_me:$LINENO: result: yes" >&5
1515 echo "${ECHO_T}yes" >&6
1516 else
1517 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1518 echo "${ECHO_T}no, using $LN_S" >&6
1519 fi
1520
1521
1522 ### we might need to use some other shell than /bin/sh for running subshells
1523 ### If we are on Windows, search for the shell. This will permit people
1524 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1525 ### without also having to set CONFIG_SHELL. This code will work when
1526 ### using bash, which sets OSTYPE.
1527 case "${OSTYPE}" in
1528 *win32*)
1529 if test x${CONFIG_SHELL} = x ; then
1530 if test ! -f /bin/sh ; then
1531 if test x${SHELL} != x && test -f ${SHELL} ; then
1532 CONFIG_SHELL=${SHELL}
1533 export CONFIG_SHELL
1534 else
1535 for prog in sh sh.exe bash bash.exe; do
1536 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1537 for dir in $PATH; do
1538 test -z "$dir" && dir=.
1539 if test -f $dir/$prog; then
1540 CONFIG_SHELL=$dir/$prog
1541 export CONFIG_SHELL
1542 break
1543 fi
1544 done
1545 IFS="$save_ifs"
1546 test -n "${CONFIG_SHELL}" && break
1547 done
1548 fi
1549 fi
1550 fi
1551 ;;
1552 esac
1553
1554 config_shell=${CONFIG_SHELL-/bin/sh}
1555
1556 progname=$0
1557 # if PWD already has a value, it is probably wrong.
1558 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1559
1560 # Export original configure arguments for use by sub-configures. These
1561 # will be expanded by make, so quote '$'.
1562 tmp="$progname $@"
1563 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
1564 $tmp
1565 EOF_SED
1566 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
1567 rm -f conftestsed.out
1568
1569
1570 moveifchange=${srcdir}/move-if-change
1571
1572 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1573
1574 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1575 # a relative path.
1576 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1577 INSTALL="${srcpwd}/install-sh -c"
1578 fi
1579
1580 # Set srcdir to "." if that's what it is.
1581 # This is important for multilib support.
1582 pwd=`${PWDCMD-pwd}`
1583 if test "${pwd}" = "${srcpwd}" ; then
1584 srcdir=.
1585 fi
1586
1587 topsrcdir=$srcpwd
1588
1589 extra_host_args=
1590
1591 ### To add a new directory to the tree, first choose whether it is a target
1592 ### or a host dependent tool. Then put it into the appropriate list
1593 ### (library or tools, host or target), doing a dependency sort.
1594
1595 # Subdirs will be configured in the order listed in build_configdirs,
1596 # configdirs, or target_configdirs; see the serialization section below.
1597
1598 # Dependency sorting is only needed when *configuration* must be done in
1599 # a particular order. In all cases a dependency should be specified in
1600 # the Makefile, whether or not it's implicitly specified here.
1601
1602 # Double entries in build_configdirs, configdirs, or target_configdirs may
1603 # cause circular dependencies and break everything horribly.
1604
1605 # these library is used by various programs built for the build
1606 # environment
1607 #
1608 build_libs="build-libiberty"
1609
1610 # these tools are built for the build environment
1611 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1612
1613 # these libraries are used by various programs built for the host environment
1614 #
1615 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
1616
1617 # these tools are built for the host environment
1618 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1619 # know that we are building the simulator.
1620 # binutils, gas and ld appear in that order because it makes sense to run
1621 # "make check" in that particular order.
1622 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
1623
1624 # libgcj represents the runtime libraries only used by gcj.
1625 libgcj="target-libffi \
1626 target-boehm-gc \
1627 target-zlib \
1628 target-qthreads \
1629 target-libjava"
1630
1631 # these libraries are built for the target environment, and are built after
1632 # the host libraries and the host tools (which may be a cross compiler)
1633 #
1634 target_libraries="target-libiberty \
1635 target-libgloss \
1636 target-newlib \
1637 target-libstdc++-v3 \
1638 target-libmudflap \
1639 target-libssp \
1640 target-libgcc-math \
1641 target-libgfortran \
1642 ${libgcj} \
1643 target-libobjc \
1644 target-libada \
1645 target-libgomp"
1646
1647 # these tools are built using the target libraries, and are intended to
1648 # run only in the target environment
1649 #
1650 # note: any program that *uses* libraries that are in the "target_libraries"
1651 # list belongs in this list. those programs are also very likely
1652 # candidates for the "native_only" list which follows
1653 #
1654 target_tools="target-examples target-groff target-gperf target-rda"
1655
1656 ################################################################################
1657
1658 ## All tools belong in one of the four categories, and are assigned above
1659 ## We assign ${configdirs} this way to remove all embedded newlines. This
1660 ## is important because configure will choke if they ever get through.
1661 ## ${configdirs} is directories we build using the host tools.
1662 ## ${target_configdirs} is directories we build using the target tools.
1663 configdirs=`echo ${host_libs} ${host_tools}`
1664 target_configdirs=`echo ${target_libraries} ${target_tools}`
1665 build_configdirs=`echo ${build_libs} ${build_tools}`
1666
1667 ################################################################################
1668
1669 srcname="gnu development package"
1670
1671 # This gets set non-empty for some net releases of packages.
1672 appdirs=""
1673
1674 # Define is_cross_compiler to save on calls to 'test'.
1675 is_cross_compiler=
1676 if test x"${host}" = x"${target}" ; then
1677 is_cross_compiler=no
1678 else
1679 is_cross_compiler=yes
1680 fi
1681
1682 # Find the build and target subdir names.
1683 case ${build_alias} in
1684 "") build_noncanonical=${build} ;;
1685 *) build_noncanonical=${build_alias} ;;
1686 esac
1687
1688 case ${host_alias} in
1689 "") host_noncanonical=${build_noncanonical} ;;
1690 *) host_noncanonical=${host_alias} ;;
1691 esac
1692
1693 case ${target_alias} in
1694 "") target_noncanonical=${host_noncanonical} ;;
1695 *) target_noncanonical=${target_alias} ;;
1696 esac
1697
1698 # Prefix 'build-' so this never conflicts with target_subdir.
1699 build_subdir="build-${build_noncanonical}"
1700 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1701 if ( test $srcdir = . && test -d gcc ) \
1702 || test -d $srcdir/../host-${host_noncanonical}; then
1703 host_subdir="host-${host_noncanonical}"
1704 else
1705 host_subdir=.
1706 fi
1707 # No prefix.
1708 target_subdir=${target_noncanonical}
1709
1710
1711 # Skipdirs are removed silently.
1712 skipdirs=
1713 # Noconfigdirs are removed loudly.
1714 noconfigdirs=""
1715
1716 use_gnu_ld=
1717 # Make sure we don't let GNU ld be added if we didn't want it.
1718 if test x$with_gnu_ld = xno ; then
1719 use_gnu_ld=no
1720 noconfigdirs="$noconfigdirs ld"
1721 fi
1722
1723 use_gnu_as=
1724 # Make sure we don't let GNU as be added if we didn't want it.
1725 if test x$with_gnu_as = xno ; then
1726 use_gnu_as=no
1727 noconfigdirs="$noconfigdirs gas"
1728 fi
1729
1730 # some tools are so dependent upon X11 that if we're not building with X,
1731 # it's not even worth trying to configure, much less build, that tool.
1732
1733 case ${with_x} in
1734 yes | "") ;; # the default value for this tree is that X11 is available
1735 no)
1736 skipdirs="${skipdirs} tk itcl libgui"
1737 # We won't be able to build gdbtk without X.
1738 enable_gdbtk=no
1739 ;;
1740 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1741 esac
1742
1743 # Some tools are only suitable for building in a "native" situation.
1744 # Remove these if host!=target.
1745 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1746
1747 # Similarly, some are only suitable for cross toolchains.
1748 # Remove these if host=target.
1749 cross_only="target-libgloss target-newlib target-opcodes"
1750
1751 case $is_cross_compiler in
1752 no) skipdirs="${skipdirs} ${cross_only}" ;;
1753 yes) skipdirs="${skipdirs} ${native_only}" ;;
1754 esac
1755
1756 # If both --with-headers and --with-libs are specified, default to
1757 # --without-newlib.
1758 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1759 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1760 if test x"${with_newlib}" = x ; then
1761 with_newlib=no
1762 fi
1763 fi
1764
1765 # Recognize --with-newlib/--without-newlib.
1766 case ${with_newlib} in
1767 no) skipdirs="${skipdirs} target-newlib" ;;
1768 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1769 esac
1770
1771 # Configure extra directories which are host specific
1772
1773 case "${host}" in
1774 *-cygwin*)
1775 configdirs="$configdirs libtermcap" ;;
1776 esac
1777
1778 # A target can indicate whether a language isn't supported for some reason.
1779 # Only spaces may be used in this macro; not newlines or tabs.
1780 unsupported_languages=
1781
1782 # Remove more programs from consideration, based on the host or
1783 # target this usually means that a port of the program doesn't
1784 # exist yet.
1785
1786 case "${host}" in
1787 hppa*64*-*-*)
1788 noconfigdirs="$noconfigdirs byacc"
1789 ;;
1790 i[3456789]86-*-vsta)
1791 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1792 ;;
1793 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1794 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1795 ;;
1796 i[3456789]86-*-mingw32*)
1797 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1798 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1799 ;;
1800 i[3456789]86-*-beos*)
1801 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1802 ;;
1803 *-*-cygwin*)
1804 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1805 ;;
1806 *-*-netbsd*)
1807 noconfigdirs="$noconfigdirs rcs"
1808 ;;
1809 ppc*-*-pe)
1810 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1811 ;;
1812 powerpc-*-beos*)
1813 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1814 ;;
1815 esac
1816
1817
1818 # Check whether --enable-libada or --disable-libada was given.
1819 if test "${enable_libada+set}" = set; then
1820 enableval="$enable_libada"
1821 ENABLE_LIBADA=$enableval
1822 else
1823 ENABLE_LIBADA=yes
1824 fi;
1825 if test "${ENABLE_LIBADA}" != "yes" ; then
1826 noconfigdirs="$noconfigdirs gnattools"
1827 fi
1828
1829 # Check whether --enable-libssp or --disable-libssp was given.
1830 if test "${enable_libssp+set}" = set; then
1831 enableval="$enable_libssp"
1832 ENABLE_LIBSSP=$enableval
1833 else
1834 ENABLE_LIBSSP=yes
1835 fi;
1836
1837 # Set the default so we build libgcc-math for ix86 and x86_64
1838 # Check whether --enable-libgcc-math or --disable-libgcc-math was given.
1839 if test "${enable_libgcc_math+set}" = set; then
1840 enableval="$enable_libgcc_math"
1841
1842 else
1843
1844 case "${target}" in
1845 i?86-* | x86_64-* )
1846 enable_libgcc_math=yes ;;
1847 *)
1848 enable_libgcc_math=no ;;
1849 esac
1850
1851 fi;
1852
1853 # Save it here so that, even in case of --enable-libgcj, if the Java
1854 # front-end isn't enabled, we still get libgcj disabled.
1855 libgcj_saved=$libgcj
1856 case $enable_libgcj in
1857 yes)
1858 # If we reset it here, it won't get added to noconfigdirs in the
1859 # target-specific build rules, so it will be forcibly enabled
1860 # (unless the Java language itself isn't enabled).
1861 libgcj=
1862 ;;
1863 no)
1864 # Make sure we get it printed in the list of not supported target libs.
1865 noconfigdirs="$noconfigdirs ${libgcj}"
1866 ;;
1867 esac
1868
1869
1870 # Disable libmudflap on some systems.
1871 if test x$enable_libmudflap = x ; then
1872 case "${target}" in
1873 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1874 # Enable libmudflap by default in GNU and friends.
1875 ;;
1876 *-*-freebsd*)
1877 # Enable libmudflap by default in FreeBSD.
1878 ;;
1879 *)
1880 # Disable it by default everywhere else.
1881 noconfigdirs="$noconfigdirs target-libmudflap"
1882 ;;
1883 esac
1884 fi
1885
1886 # Disable libgomp on non POSIX hosted systems.
1887 if test x$enable_libgomp = x ; then
1888 # Enable libgomp by default on hosted POSIX systems.
1889 case "${target}" in
1890 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1891 ;;
1892 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1893 ;;
1894 *-*-solaris2* | *-*-sysv4* | *-*-irix* | *-*-osf* | *-*-hpux*)
1895 ;;
1896 *-*-darwin* | *-*-aix*)
1897 ;;
1898 *)
1899 noconfigdirs="$noconfigdirs target-libgomp"
1900 ;;
1901 esac
1902 fi
1903
1904
1905 case "${target}" in
1906 *-*-chorusos)
1907 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1908 ;;
1909 powerpc-*-darwin*)
1910 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1911 noconfigdirs="$noconfigdirs sim target-rda"
1912 ;;
1913 *-*-darwin*)
1914 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1915 noconfigdirs="$noconfigdirs sim target-rda"
1916 noconfigdirs="$noconfigdirs ${libgcj}"
1917 ;;
1918 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1919 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1920 ;;
1921 *-*-freebsd*)
1922 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1923 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1924 && test -f /usr/local/include/gmp.h; then
1925 with_gmp=/usr/local
1926 fi
1927
1928 # Skip some stuff that's unsupported on some FreeBSD configurations.
1929 case "${target}" in
1930 i*86-*-*) ;;
1931 alpha*-*-*) ;;
1932 *)
1933 noconfigdirs="$noconfigdirs ${libgcj}"
1934 ;;
1935 esac
1936 ;;
1937 *-*-kaos*)
1938 # Remove unsupported stuff on all kaOS configurations.
1939 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1940 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1941 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1942 noconfigdirs="$noconfigdirs target-libgloss"
1943 ;;
1944 *-*-netbsd*)
1945 # Skip some stuff on all NetBSD configurations.
1946 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1947
1948 # Skip some stuff that's unsupported on some NetBSD configurations.
1949 case "${target}" in
1950 i*86-*-netbsdelf*) ;;
1951 arm*-*-netbsdelf*) ;;
1952 *)
1953 noconfigdirs="$noconfigdirs ${libgcj}"
1954 ;;
1955 esac
1956 ;;
1957 *-*-netware*)
1958 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1959 ;;
1960 *-*-rtems*)
1961 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1962 ;;
1963 # The tpf target doesn't support gdb yet.
1964 *-*-tpf*)
1965 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1966 ;;
1967 *-*-uclinux*)
1968 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1969 ;;
1970 *-*-vxworks*)
1971 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1972 ;;
1973 m32c-*-*)
1974 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1975 ;;
1976 alpha*-dec-osf*)
1977 # ld works, but does not support shared libraries.
1978 # newlib is not 64 bit ready. I'm not sure about fileutils.
1979 # gas doesn't generate exception information.
1980 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1981 ;;
1982 alpha*-*-*vms*)
1983 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1984 ;;
1985 alpha*-*-linux*)
1986 # newlib is not 64 bit ready
1987 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1988 ;;
1989 alpha*-*-*)
1990 # newlib is not 64 bit ready
1991 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1992 ;;
1993 am33_2.0-*-linux*)
1994 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1995 ;;
1996 sh-*-linux*)
1997 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1998 ;;
1999 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2000 noconfigdirs="$noconfigdirs ${libgcj}"
2001 noconfigdirs="$noconfigdirs target-examples"
2002 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2003 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2004 noconfigdirs="$noconfigdirs expect dejagnu"
2005 # the C++ libraries don't build on top of CE's C libraries
2006 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2007 noconfigdirs="$noconfigdirs target-newlib"
2008 case "${host}" in
2009 *-*-cygwin*) ;; # keep gdb and readline
2010 *) noconfigdirs="$noconfigdirs gdb readline"
2011 ;;
2012 esac
2013 ;;
2014 arc-*-*)
2015 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2016 ;;
2017 arm-semi-aof )
2018 ;;
2019 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2020 noconfigdirs="$noconfigdirs ${libgcj}"
2021 ;;
2022 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2023 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2024 ;;
2025 arm*-*-linux-gnueabi)
2026 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2027 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2028 ;;
2029 arm*-*-symbianelf*)
2030 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2031 ;;
2032 arm-*-pe*)
2033 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2034 ;;
2035 thumb-*-coff)
2036 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2037 ;;
2038 thumb-*-elf)
2039 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2040 ;;
2041 thumb-*-pe)
2042 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2043 ;;
2044 arm-*-riscix*)
2045 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2046 ;;
2047 avr-*-*)
2048 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2049 ;;
2050 bfin-*-*)
2051 noconfigdirs="$noconfigdirs target-libgloss gdb"
2052 if test x${is_cross_compiler} != xno ; then
2053 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2054 fi
2055 ;;
2056 c4x-*-* | tic4x-*-*)
2057 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2058 ;;
2059 c54x*-*-* | tic54x-*-*)
2060 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2061 ;;
2062 cris-*-* | crisv32-*-*)
2063 unsupported_languages="$unsupported_languages java"
2064 case "${target}" in
2065 *-*-aout)
2066 unsupported_languages="$unsupported_languages fortran"
2067 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2068 *-*-elf)
2069 unsupported_languages="$unsupported_languages fortran"
2070 noconfigdirs="$noconfigdirs target-boehm-gc";;
2071 *-*-linux*)
2072 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2073 *)
2074 unsupported_languages="$unsupported_languages fortran"
2075 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2076 esac
2077 ;;
2078 crx-*-*)
2079 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2080 ;;
2081 d10v-*-*)
2082 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2083 ;;
2084 d30v-*-*)
2085 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2086 ;;
2087 fr30-*-elf*)
2088 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2089 ;;
2090 frv-*-*)
2091 noconfigdirs="$noconfigdirs ${libgcj}"
2092 ;;
2093 h8300*-*-*)
2094 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2095 ;;
2096 h8500-*-*)
2097 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2098 ;;
2099 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2100 ;;
2101 hppa*64*-*-linux* | parisc*64*-*-linux*)
2102 # In this case, it's because the hppa64-linux target is for
2103 # the kernel only at this point and has no libc, and thus no
2104 # headers, crt*.o, etc., all of which are needed by these.
2105 noconfigdirs="$noconfigdirs target-zlib"
2106 ;;
2107 parisc*-*-linux* | hppa*-*-linux*)
2108 ;;
2109 hppa*-*-*elf* | \
2110 hppa*-*-lites* | \
2111 hppa*-*-openbsd* | \
2112 hppa*64*-*-*)
2113 noconfigdirs="$noconfigdirs ${libgcj}"
2114 ;;
2115 hppa*-*-*)
2116 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2117 # build on HP-UX 10.20.
2118 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2119 ;;
2120 i960-*-*)
2121 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2122 ;;
2123 ia64*-*-elf*)
2124 # No gdb support yet.
2125 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2126 ;;
2127 ia64*-**-hpux*)
2128 # No gdb or ld support yet.
2129 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2130 ;;
2131 i370-*-opened*)
2132 ;;
2133 i[3456789]86-*-coff | i[3456789]86-*-elf)
2134 noconfigdirs="$noconfigdirs ${libgcj}"
2135 ;;
2136 i[3456789]86-*-linux*)
2137 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2138 # not build java stuff by default.
2139 case "${target}" in
2140 *-*-*libc1*)
2141 noconfigdirs="$noconfigdirs ${libgcj}";;
2142 esac
2143
2144 # This section makes it possible to build newlib natively on linux.
2145 # If we are using a cross compiler then don't configure newlib.
2146 if test x${is_cross_compiler} != xno ; then
2147 noconfigdirs="$noconfigdirs target-newlib"
2148 fi
2149 noconfigdirs="$noconfigdirs target-libgloss"
2150 # If we are not using a cross compiler, do configure newlib.
2151 # Note however, that newlib will only be configured in this situation
2152 # if the --with-newlib option has been given, because otherwise
2153 # 'target-newlib' will appear in skipdirs.
2154 ;;
2155 i[3456789]86-*-mingw32*)
2156 target_configdirs="$target_configdirs target-mingw"
2157 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
2158
2159 # Can't build gdb for mingw32 if not native.
2160 case "${host}" in
2161 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
2162 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
2163 ;;
2164 esac
2165 ;;
2166 *-*-cygwin*)
2167 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2168 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2169 # always build newlib if winsup directory is present.
2170 if test -d "$srcdir/winsup"; then
2171 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2172 elif test -d "$srcdir/newlib"; then
2173 echo "Warning: winsup is missing so newlib can't be built."
2174 fi
2175
2176 # Can't build gdb for Cygwin if not native.
2177 case "${host}" in
2178 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
2179 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
2180 ;;
2181 esac
2182 ;;
2183 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2184 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2185 ;;
2186 i[3456789]86-*-pe)
2187 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2188 ;;
2189 i[3456789]86-*-sco3.2v5*)
2190 # The linker does not yet know about weak symbols in COFF,
2191 # and is not configured to handle mixed ELF and COFF.
2192 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2193 ;;
2194 i[3456789]86-*-sco*)
2195 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2196 ;;
2197 i[3456789]86-*-solaris2*)
2198 noconfigdirs="$noconfigdirs target-libgloss"
2199 ;;
2200 i[3456789]86-*-sysv4*)
2201 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2202 ;;
2203 i[3456789]86-*-beos*)
2204 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2205 ;;
2206 i[3456789]86-*-rdos*)
2207 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2208 ;;
2209 m32r-*-*)
2210 noconfigdirs="$noconfigdirs ${libgcj}"
2211 ;;
2212 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2213 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2214 ;;
2215 m68k-*-elf*)
2216 noconfigdirs="$noconfigdirs ${libgcj}"
2217 ;;
2218 m68k-*-coff*)
2219 noconfigdirs="$noconfigdirs ${libgcj}"
2220 ;;
2221 mcore-*-pe*)
2222 # The EPOC C++ environment does not support exceptions or rtti,
2223 # and so building libstdc++-v3 tends not to always work.
2224 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2225 ;;
2226 mmix-*-*)
2227 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2228 unsupported_languages="$unsupported_languages fortran java"
2229 ;;
2230 mn10200-*-*)
2231 noconfigdirs="$noconfigdirs ${libgcj}"
2232 ;;
2233 mn10300-*-*)
2234 noconfigdirs="$noconfigdirs ${libgcj}"
2235 ;;
2236 mt-*-*)
2237 noconfigdirs="$noconfigdirs sim"
2238 ;;
2239 powerpc-*-aix*)
2240 # copied from rs6000-*-* entry
2241 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2242 ;;
2243 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2244 target_configdirs="$target_configdirs target-winsup"
2245 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2246 # always build newlib.
2247 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2248 ;;
2249 # This is temporary until we can link against shared libraries
2250 powerpcle-*-solaris*)
2251 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2252 ;;
2253 powerpc-*-beos*)
2254 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2255 ;;
2256 powerpc-*-eabi)
2257 noconfigdirs="$noconfigdirs ${libgcj}"
2258 ;;
2259 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2260 ;;
2261 rs6000-*-lynxos*)
2262 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2263 ;;
2264 rs6000-*-aix*)
2265 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2266 ;;
2267 rs6000-*-*)
2268 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2269 ;;
2270 m68k-apollo-*)
2271 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2272 ;;
2273 mips*-*-irix5*)
2274 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2275 ;;
2276 mips*-*-irix6*)
2277 # Linking libjava exceeds command-line length limits on at least
2278 # IRIX 6.2, but not on IRIX 6.5.
2279 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2280 # <oldham@codesourcery.com>
2281 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2282 ;;
2283 mips*-dec-bsd*)
2284 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2285 ;;
2286 mips*-*-bsd*)
2287 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2288 ;;
2289 mipstx39-*-*)
2290 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
2291 ;;
2292 mips64*-*-linux*)
2293 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
2294 ;;
2295 mips*-*-linux*)
2296 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2297 ;;
2298 mips*-*-*)
2299 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2300 ;;
2301 romp-*-*)
2302 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2303 ;;
2304 sh-*-* | sh64-*-*)
2305 case "${host}" in
2306 i[3456789]86-*-vsta) ;; # don't add gprof back in
2307 i[3456789]86-*-go32*) ;; # don't add gprof back in
2308 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2309 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2310 esac
2311 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2312 ;;
2313 sparc-*-elf*)
2314 noconfigdirs="$noconfigdirs ${libgcj}"
2315 ;;
2316 sparc64-*-elf*)
2317 noconfigdirs="$noconfigdirs ${libgcj}"
2318 ;;
2319 sparclite-*-*)
2320 noconfigdirs="$noconfigdirs ${libgcj}"
2321 ;;
2322 sparc-*-sunos4*)
2323 noconfigdirs="$noconfigdirs ${libgcj}"
2324 if test x${is_cross_compiler} != xno ; then
2325 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2326 else
2327 use_gnu_ld=no
2328 fi
2329 ;;
2330 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2331 noconfigdirs="$noconfigdirs ${libgcj}"
2332 ;;
2333 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2334 ;;
2335 v810-*-*)
2336 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2337 ;;
2338 v850-*-*)
2339 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2340 ;;
2341 v850e-*-*)
2342 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2343 ;;
2344 v850ea-*-*)
2345 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2346 ;;
2347 vax-*-vms)
2348 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2349 ;;
2350 vax-*-*)
2351 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2352 ;;
2353 xtensa-*-*)
2354 noconfigdirs="$noconfigdirs ${libgcj}"
2355 ;;
2356 ip2k-*-*)
2357 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2358 ;;
2359 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2360 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2361 ;;
2362 *-*-lynxos*)
2363 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2364 ;;
2365 *-*-*)
2366 noconfigdirs="$noconfigdirs ${libgcj}"
2367 ;;
2368 esac
2369
2370 # If we aren't building newlib, then don't build libgloss, since libgloss
2371 # depends upon some newlib header files.
2372 case "${noconfigdirs}" in
2373 *target-libgloss*) ;;
2374 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2375 esac
2376
2377 # Work in distributions that contain no compiler tools, like Autoconf.
2378 tentative_cc=""
2379 host_makefile_frag=/dev/null
2380 if test -d ${srcdir}/config ; then
2381 case "${host}" in
2382 m68k-hp-hpux*)
2383 # Avoid "too much defining" errors from HPUX compiler.
2384 tentative_cc="cc -Wp,-H256000"
2385 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2386 # If it's HP/UX ar, this should be harmless.
2387 RANLIB="ar ts"
2388 ;;
2389 m68k-apollo-sysv*)
2390 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2391 ;;
2392 m68k-apollo-bsd*)
2393 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2394 # chokes on bfd, the compiler won't let you assign integers to enums, and
2395 # other problems. Defining CC to gcc is a questionable way to say "don't use
2396 # the apollo compiler" (the preferred version of GCC could be called cc,
2397 # or whatever), but I'm not sure leaving CC as cc is any better...
2398 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2399 # Used to have BISON=yacc.
2400 tentative_cc=gcc
2401 ;;
2402 m88k-dg-dgux*)
2403 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2404 ;;
2405 m88k-harris-cxux*)
2406 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2407 tentative_cc="cc -Xa"
2408 host_makefile_frag="config/mh-cxux"
2409 ;;
2410 m88k-motorola-sysv*)
2411 ;;
2412 mips*-dec-ultrix*)
2413 tentative_cc="cc -Wf,-XNg1000"
2414 host_makefile_frag="config/mh-decstation"
2415 ;;
2416 mips*-nec-sysv4*)
2417 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2418 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2419 host_makefile_frag="config/mh-necv4"
2420 ;;
2421 mips*-sgi-irix4*)
2422 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2423 # environment. Also bump switch table size so that cp-parse will
2424 # compile. Bump string length limit so linker builds.
2425 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2426 ;;
2427 mips*-*-sysv4*)
2428 host_makefile_frag="config/mh-sysv4"
2429 ;;
2430 mips*-*-sysv*)
2431 # This is for a MIPS running RISC/os 4.52C.
2432
2433 # This is needed for GDB, but needs to be in the top-level make because
2434 # if a library is compiled with the bsd headers and gets linked with the
2435 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2436 # a different size).
2437 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2438 # known except to select the sysv environment. Could we use /proc instead?
2439 # These "sysv environments" and "bsd environments" often end up being a pain.
2440 #
2441 # This is not part of CFLAGS because perhaps not all C compilers have this
2442 # option.
2443 tentative_cc="cc -systype sysv"
2444 ;;
2445 i370-ibm-opened*)
2446 tentative_cc="c89"
2447 ;;
2448 i[3456789]86-*-sysv5*)
2449 host_makefile_frag="config/mh-sysv5"
2450 ;;
2451 i[3456789]86-*-dgux*)
2452 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2453 host_makefile_frag="config/mh-dgux386"
2454 ;;
2455 i[3456789]86-ncr-sysv4.3*)
2456 # The MetaWare compiler will generate a copyright message unless you
2457 # turn it off by adding the -Hnocopyr flag.
2458 tentative_cc="cc -Hnocopyr"
2459 ;;
2460 i[3456789]86-ncr-sysv4*)
2461 # for an NCR 3000 (i486/SVR4) system.
2462 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2463 # This compiler not only emits obnoxious copyright messages every time
2464 # you run it, but it chokes and dies on a whole bunch of GNU source
2465 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2466 tentative_cc="/usr/ccs/ATT/cc"
2467 host_makefile_frag="config/mh-ncr3000"
2468 ;;
2469 i[3456789]86-*-sco3.2v5*)
2470 ;;
2471 i[3456789]86-*-sco*)
2472 # The native C compiler botches some simple uses of const. Unfortunately,
2473 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2474 tentative_cc="cc -Dconst="
2475 host_makefile_frag="config/mh-sco"
2476 ;;
2477 i[3456789]86-*-udk*)
2478 host_makefile_frag="config/mh-sysv5"
2479 ;;
2480 i[3456789]86-*-solaris2*)
2481 host_makefile_frag="config/mh-sysv4"
2482 ;;
2483 i[3456789]86-*-msdosdjgpp*)
2484 host_makefile_frag="config/mh-djgpp"
2485 ;;
2486 *-cygwin*)
2487 host_makefile_frag="config/mh-cygwin"
2488 ;;
2489 *-mingw32*)
2490 ;;
2491 *-interix*)
2492 host_makefile_frag="config/mh-interix"
2493 ;;
2494 vax-*-ultrix2*)
2495 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2496 tentative_cc=gcc
2497 ;;
2498 *-*-solaris2*)
2499 host_makefile_frag="config/mh-solaris"
2500 ;;
2501 m68k-sun-sunos*)
2502 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2503 # without overflowing the jump tables (-J says to use a 32 bit table)
2504 tentative_cc="cc -J"
2505 ;;
2506 *-hp-hpux*)
2507 tentative_cc="cc -Wp,-H256000"
2508 ;;
2509 *-*-hiux*)
2510 tentative_cc="cc -Wp,-H256000"
2511 ;;
2512 rs6000-*-lynxos*)
2513 # /bin/cc is less than useful for our purposes. Always use GCC
2514 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2515 host_makefile_frag="config/mh-lynxrs6k"
2516 ;;
2517 powerpc-*-darwin*)
2518 host_makefile_frag="config/mh-ppc-darwin"
2519 ;;
2520 powerpc-*-aix*)
2521 host_makefile_frag="config/mh-ppc-aix"
2522 ;;
2523 rs6000-*-aix*)
2524 host_makefile_frag="config/mh-ppc-aix"
2525 ;;
2526 *-*-lynxos*)
2527 # /bin/cc is less than useful for our purposes. Always use GCC
2528 tentative_cc="/bin/gcc"
2529 ;;
2530 *-*-sysv4*)
2531 host_makefile_frag="config/mh-sysv4"
2532 ;;
2533 # This is placed last to prevent interfering with the cases above.
2534 i[3456789]86-*-*)
2535 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2536 host_makefile_frag="config/mh-x86omitfp"
2537 ;;
2538 esac
2539 fi
2540
2541 # If we aren't going to be using gcc, see if we can extract a definition
2542 # of CC from the fragment.
2543 # Actually, use the 'pre-extracted' version above.
2544 if test -z "${CC}" && test "${build}" = "${host}" ; then
2545 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2546 found=
2547 for dir in $PATH; do
2548 test -z "$dir" && dir=.
2549 if test -f $dir/gcc; then
2550 found=yes
2551 break
2552 fi
2553 done
2554 IFS="$save_ifs"
2555 if test -z "${found}" && test -n "${tentative_cc}" ; then
2556 CC=$tentative_cc
2557 fi
2558 fi
2559
2560 if test "${build}" != "${host}" ; then
2561 # If we are doing a Canadian Cross, in which the host and build systems
2562 # are not the same, we set reasonable default values for the tools.
2563
2564 CC=${CC-${host_alias}-gcc}
2565 CFLAGS=${CFLAGS-"-g -O2"}
2566 CXX=${CXX-${host_alias}-c++}
2567 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2568 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2569
2570 else
2571 # Set reasonable default values for some tools even if not Canadian.
2572 # Of course, these are different reasonable default values, originally
2573 # specified directly in the Makefile.
2574 # We don't export, so that autoconf can do its job.
2575 # Note that all these settings are above the fragment inclusion point
2576 # in Makefile.in, so can still be overridden by fragments.
2577 # This is all going to change when we autoconfiscate...
2578
2579 CC_FOR_BUILD="\$(CC)"
2580 ac_ext=c
2581 ac_cpp='$CPP $CPPFLAGS'
2582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2585 if test -n "$ac_tool_prefix"; then
2586 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2587 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2588 echo "$as_me:$LINENO: checking for $ac_word" >&5
2589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2590 if test "${ac_cv_prog_CC+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593 if test -n "$CC"; then
2594 ac_cv_prog_CC="$CC" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2603 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 break 2
2606 fi
2607 done
2608 done
2609
2610 fi
2611 fi
2612 CC=$ac_cv_prog_CC
2613 if test -n "$CC"; then
2614 echo "$as_me:$LINENO: result: $CC" >&5
2615 echo "${ECHO_T}$CC" >&6
2616 else
2617 echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2619 fi
2620
2621 fi
2622 if test -z "$ac_cv_prog_CC"; then
2623 ac_ct_CC=$CC
2624 # Extract the first word of "gcc", so it can be a program name with args.
2625 set dummy gcc; ac_word=$2
2626 echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631 if test -n "$ac_ct_CC"; then
2632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641 ac_cv_prog_ac_ct_CC="gcc"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 break 2
2644 fi
2645 done
2646 done
2647
2648 fi
2649 fi
2650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651 if test -n "$ac_ct_CC"; then
2652 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2653 echo "${ECHO_T}$ac_ct_CC" >&6
2654 else
2655 echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2657 fi
2658
2659 CC=$ac_ct_CC
2660 else
2661 CC="$ac_cv_prog_CC"
2662 fi
2663
2664 if test -z "$CC"; then
2665 if test -n "$ac_tool_prefix"; then
2666 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2667 set dummy ${ac_tool_prefix}cc; ac_word=$2
2668 echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2670 if test "${ac_cv_prog_CC+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2675 else
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2678 do
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683 ac_cv_prog_CC="${ac_tool_prefix}cc"
2684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 break 2
2686 fi
2687 done
2688 done
2689
2690 fi
2691 fi
2692 CC=$ac_cv_prog_CC
2693 if test -n "$CC"; then
2694 echo "$as_me:$LINENO: result: $CC" >&5
2695 echo "${ECHO_T}$CC" >&6
2696 else
2697 echo "$as_me:$LINENO: result: no" >&5
2698 echo "${ECHO_T}no" >&6
2699 fi
2700
2701 fi
2702 if test -z "$ac_cv_prog_CC"; then
2703 ac_ct_CC=$CC
2704 # Extract the first word of "cc", so it can be a program name with args.
2705 set dummy cc; ac_word=$2
2706 echo "$as_me:$LINENO: checking for $ac_word" >&5
2707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 if test -n "$ac_ct_CC"; then
2712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721 ac_cv_prog_ac_ct_CC="cc"
2722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725 done
2726 done
2727
2728 fi
2729 fi
2730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731 if test -n "$ac_ct_CC"; then
2732 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2733 echo "${ECHO_T}$ac_ct_CC" >&6
2734 else
2735 echo "$as_me:$LINENO: result: no" >&5
2736 echo "${ECHO_T}no" >&6
2737 fi
2738
2739 CC=$ac_ct_CC
2740 else
2741 CC="$ac_cv_prog_CC"
2742 fi
2743
2744 fi
2745 if test -z "$CC"; then
2746 # Extract the first word of "cc", so it can be a program name with args.
2747 set dummy cc; ac_word=$2
2748 echo "$as_me:$LINENO: checking for $ac_word" >&5
2749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2750 if test "${ac_cv_prog_CC+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753 if test -n "$CC"; then
2754 ac_cv_prog_CC="$CC" # Let the user override the test.
2755 else
2756 ac_prog_rejected=no
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2765 ac_prog_rejected=yes
2766 continue
2767 fi
2768 ac_cv_prog_CC="cc"
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2771 fi
2772 done
2773 done
2774
2775 if test $ac_prog_rejected = yes; then
2776 # We found a bogon in the path, so make sure we never use it.
2777 set dummy $ac_cv_prog_CC
2778 shift
2779 if test $# != 0; then
2780 # We chose a different compiler from the bogus one.
2781 # However, it has the same basename, so the bogon will be chosen
2782 # first if we set CC to just the basename; use the full file name.
2783 shift
2784 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2785 fi
2786 fi
2787 fi
2788 fi
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791 echo "$as_me:$LINENO: result: $CC" >&5
2792 echo "${ECHO_T}$CC" >&6
2793 else
2794 echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2796 fi
2797
2798 fi
2799 if test -z "$CC"; then
2800 if test -n "$ac_tool_prefix"; then
2801 for ac_prog in cl
2802 do
2803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2805 echo "$as_me:$LINENO: checking for $ac_word" >&5
2806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2807 if test "${ac_cv_prog_CC+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC="$CC" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2815 do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2823 fi
2824 done
2825 done
2826
2827 fi
2828 fi
2829 CC=$ac_cv_prog_CC
2830 if test -n "$CC"; then
2831 echo "$as_me:$LINENO: result: $CC" >&5
2832 echo "${ECHO_T}$CC" >&6
2833 else
2834 echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6
2836 fi
2837
2838 test -n "$CC" && break
2839 done
2840 fi
2841 if test -z "$CC"; then
2842 ac_ct_CC=$CC
2843 for ac_prog in cl
2844 do
2845 # Extract the first word of "$ac_prog", so it can be a program name with args.
2846 set dummy $ac_prog; ac_word=$2
2847 echo "$as_me:$LINENO: checking for $ac_word" >&5
2848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852 if test -n "$ac_ct_CC"; then
2853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_ac_ct_CC="$ac_prog"
2863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866 done
2867 done
2868
2869 fi
2870 fi
2871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2872 if test -n "$ac_ct_CC"; then
2873 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2874 echo "${ECHO_T}$ac_ct_CC" >&6
2875 else
2876 echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6
2878 fi
2879
2880 test -n "$ac_ct_CC" && break
2881 done
2882
2883 CC=$ac_ct_CC
2884 fi
2885
2886 fi
2887
2888
2889 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2890 See \`config.log' for more details." >&5
2891 echo "$as_me: error: no acceptable C compiler found in \$PATH
2892 See \`config.log' for more details." >&2;}
2893 { (exit 1); exit 1; }; }
2894
2895 # Provide some information about the compiler.
2896 echo "$as_me:$LINENO:" \
2897 "checking for C compiler version" >&5
2898 ac_compiler=`set X $ac_compile; echo $2`
2899 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2900 (eval $ac_compiler --version </dev/null >&5) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2904 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2905 (eval $ac_compiler -v </dev/null >&5) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }
2909 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2910 (eval $ac_compiler -V </dev/null >&5) 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2914
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921
2922 int
2923 main ()
2924 {
2925
2926 ;
2927 return 0;
2928 }
2929 _ACEOF
2930 ac_clean_files_save=$ac_clean_files
2931 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2932 # Try to create an executable without -o first, disregard a.out.
2933 # It will help us diagnose broken compilers, and finding out an intuition
2934 # of exeext.
2935 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2936 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2937 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2938 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2939 (eval $ac_link_default) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; then
2943 # Find the output, starting from the most likely. This scheme is
2944 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2945 # resort.
2946
2947 # Be careful to initialize this variable, since it used to be cached.
2948 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2949 ac_cv_exeext=
2950 # b.out is created by i960 compilers.
2951 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2952 do
2953 test -f "$ac_file" || continue
2954 case $ac_file in
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2956 ;;
2957 conftest.$ac_ext )
2958 # This is the source file.
2959 ;;
2960 [ab].out )
2961 # We found the default executable, but exeext='' is most
2962 # certainly right.
2963 break;;
2964 *.* )
2965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2966 # FIXME: I believe we export ac_cv_exeext for Libtool,
2967 # but it would be cool to find out if it's true. Does anybody
2968 # maintain Libtool? --akim.
2969 export ac_cv_exeext
2970 break;;
2971 * )
2972 break;;
2973 esac
2974 done
2975 else
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978
2979 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2980 See \`config.log' for more details." >&5
2981 echo "$as_me: error: C compiler cannot create executables
2982 See \`config.log' for more details." >&2;}
2983 { (exit 77); exit 77; }; }
2984 fi
2985
2986 ac_exeext=$ac_cv_exeext
2987 echo "$as_me:$LINENO: result: $ac_file" >&5
2988 echo "${ECHO_T}$ac_file" >&6
2989
2990 # Check the compiler produces executables we can run. If not, either
2991 # the compiler is broken, or we cross compile.
2992 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2993 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2994 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2995 # If not cross compiling, check that we can run a simple program.
2996 if test "$cross_compiling" != yes; then
2997 if { ac_try='./$ac_file'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999 (eval $ac_try) 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 cross_compiling=no
3004 else
3005 if test "$cross_compiling" = maybe; then
3006 cross_compiling=yes
3007 else
3008 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3009 If you meant to cross compile, use \`--host'.
3010 See \`config.log' for more details." >&5
3011 echo "$as_me: error: cannot run C compiled programs.
3012 If you meant to cross compile, use \`--host'.
3013 See \`config.log' for more details." >&2;}
3014 { (exit 1); exit 1; }; }
3015 fi
3016 fi
3017 fi
3018 echo "$as_me:$LINENO: result: yes" >&5
3019 echo "${ECHO_T}yes" >&6
3020
3021 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3022 ac_clean_files=$ac_clean_files_save
3023 # Check the compiler produces executables we can run. If not, either
3024 # the compiler is broken, or we cross compile.
3025 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3026 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3027 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3028 echo "${ECHO_T}$cross_compiling" >&6
3029
3030 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3031 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3033 (eval $ac_link) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; then
3037 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3038 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3039 # work properly (i.e., refer to `conftest.exe'), while it won't with
3040 # `rm'.
3041 for ac_file in conftest.exe conftest conftest.*; do
3042 test -f "$ac_file" || continue
3043 case $ac_file in
3044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3045 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3046 export ac_cv_exeext
3047 break;;
3048 * ) break;;
3049 esac
3050 done
3051 else
3052 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3053 See \`config.log' for more details." >&5
3054 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3055 See \`config.log' for more details." >&2;}
3056 { (exit 1); exit 1; }; }
3057 fi
3058
3059 rm -f conftest$ac_cv_exeext
3060 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3061 echo "${ECHO_T}$ac_cv_exeext" >&6
3062
3063 rm -f conftest.$ac_ext
3064 EXEEXT=$ac_cv_exeext
3065 ac_exeext=$EXEEXT
3066 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3067 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3068 if test "${ac_cv_objext+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3077
3078 int
3079 main ()
3080 {
3081
3082 ;
3083 return 0;
3084 }
3085 _ACEOF
3086 rm -f conftest.o conftest.obj
3087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3088 (eval $ac_compile) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; then
3092 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3093 case $ac_file in
3094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3096 break;;
3097 esac
3098 done
3099 else
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3104 See \`config.log' for more details." >&5
3105 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3106 See \`config.log' for more details." >&2;}
3107 { (exit 1); exit 1; }; }
3108 fi
3109
3110 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3111 fi
3112 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3113 echo "${ECHO_T}$ac_cv_objext" >&6
3114 OBJEXT=$ac_cv_objext
3115 ac_objext=$OBJEXT
3116 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3117 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3118 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127
3128 int
3129 main ()
3130 {
3131 #ifndef __GNUC__
3132 choke me
3133 #endif
3134
3135 ;
3136 return 0;
3137 }
3138 _ACEOF
3139 rm -f conftest.$ac_objext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>conftest.er1
3142 ac_status=$?
3143 grep -v '^ *+' conftest.er1 >conftest.err
3144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try='test -z "$ac_c_werror_flag"
3149 || test ! -s conftest.err'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 (eval $ac_try) 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 (eval $ac_try) 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 ac_compiler_gnu=yes
3162 else
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3165
3166 ac_compiler_gnu=no
3167 fi
3168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3169 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3170
3171 fi
3172 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3173 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3174 GCC=`test $ac_compiler_gnu = yes && echo yes`
3175 ac_test_CFLAGS=${CFLAGS+set}
3176 ac_save_CFLAGS=$CFLAGS
3177 CFLAGS="-g"
3178 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3179 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3180 if test "${ac_cv_prog_cc_g+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189
3190 int
3191 main ()
3192 {
3193
3194 ;
3195 return 0;
3196 }
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag"
3208 || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 ac_cv_prog_cc_g=yes
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225 ac_cv_prog_cc_g=no
3226 fi
3227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3228 fi
3229 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3230 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3231 if test "$ac_test_CFLAGS" = set; then
3232 CFLAGS=$ac_save_CFLAGS
3233 elif test $ac_cv_prog_cc_g = yes; then
3234 if test "$GCC" = yes; then
3235 CFLAGS="-g -O2"
3236 else
3237 CFLAGS="-g"
3238 fi
3239 else
3240 if test "$GCC" = yes; then
3241 CFLAGS="-O2"
3242 else
3243 CFLAGS=
3244 fi
3245 fi
3246 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3247 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3248 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 ac_cv_prog_cc_stdc=no
3252 ac_save_CC=$CC
3253 cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h. */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3259 #include <stdarg.h>
3260 #include <stdio.h>
3261 #include <sys/types.h>
3262 #include <sys/stat.h>
3263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3264 struct buf { int x; };
3265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3266 static char *e (p, i)
3267 char **p;
3268 int i;
3269 {
3270 return p[i];
3271 }
3272 static char *f (char * (*g) (char **, int), char **p, ...)
3273 {
3274 char *s;
3275 va_list v;
3276 va_start (v,p);
3277 s = g (p, va_arg (v,int));
3278 va_end (v);
3279 return s;
3280 }
3281
3282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3283 function prototypes and stuff, but not '\xHH' hex character constants.
3284 These don't provoke an error unfortunately, instead are silently treated
3285 as 'x'. The following induces an error, until -std1 is added to get
3286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3287 array size at least. It's necessary to write '\x00'==0 to get something
3288 that's true only with -std1. */
3289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3290
3291 int test (int i, double x);
3292 struct s1 {int (*f) (int a);};
3293 struct s2 {int (*f) (double a);};
3294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3295 int argc;
3296 char **argv;
3297 int
3298 main ()
3299 {
3300 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3301 ;
3302 return 0;
3303 }
3304 _ACEOF
3305 # Don't try gcc -ansi; that turns off useful extensions and
3306 # breaks some systems' header files.
3307 # AIX -qlanglvl=ansi
3308 # Ultrix and OSF/1 -std1
3309 # HP-UX 10.20 and later -Ae
3310 # HP-UX older versions -Aa -D_HPUX_SOURCE
3311 # SVR4 -Xc -D__EXTENSIONS__
3312 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3313 do
3314 CC="$ac_save_CC $ac_arg"
3315 rm -f conftest.$ac_objext
3316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3317 (eval $ac_compile) 2>conftest.er1
3318 ac_status=$?
3319 grep -v '^ *+' conftest.er1 >conftest.err
3320 rm -f conftest.er1
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } &&
3324 { ac_try='test -z "$ac_c_werror_flag"
3325 || test ! -s conftest.err'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 (eval $ac_try) 2>&5
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; } &&
3331 { ac_try='test -s conftest.$ac_objext'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 (eval $ac_try) 2>&5
3334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3337 ac_cv_prog_cc_stdc=$ac_arg
3338 break
3339 else
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343 fi
3344 rm -f conftest.err conftest.$ac_objext
3345 done
3346 rm -f conftest.$ac_ext conftest.$ac_objext
3347 CC=$ac_save_CC
3348
3349 fi
3350
3351 case "x$ac_cv_prog_cc_stdc" in
3352 x|xno)
3353 echo "$as_me:$LINENO: result: none needed" >&5
3354 echo "${ECHO_T}none needed" >&6 ;;
3355 *)
3356 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3357 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3358 CC="$CC $ac_cv_prog_cc_stdc" ;;
3359 esac
3360
3361 # Some people use a C++ compiler to compile C. Since we use `exit',
3362 # in C++ we need to declare it. In case someone uses the same compiler
3363 # for both compiling C and C++ we need to have the C++ compiler decide
3364 # the declaration of exit, since it's the most demanding environment.
3365 cat >conftest.$ac_ext <<_ACEOF
3366 #ifndef __cplusplus
3367 choke me
3368 #endif
3369 _ACEOF
3370 rm -f conftest.$ac_objext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372 (eval $ac_compile) 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try='test -z "$ac_c_werror_flag"
3380 || test ! -s conftest.err'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382 (eval $ac_try) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 (eval $ac_try) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 for ac_declaration in \
3393 '' \
3394 'extern "C" void std::exit (int) throw (); using std::exit;' \
3395 'extern "C" void std::exit (int); using std::exit;' \
3396 'extern "C" void exit (int) throw ();' \
3397 'extern "C" void exit (int);' \
3398 'void exit (int);'
3399 do
3400 cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h. */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 $ac_declaration
3407 #include <stdlib.h>
3408 int
3409 main ()
3410 {
3411 exit (42);
3412 ;
3413 return 0;
3414 }
3415 _ACEOF
3416 rm -f conftest.$ac_objext
3417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418 (eval $ac_compile) 2>conftest.er1
3419 ac_status=$?
3420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try='test -z "$ac_c_werror_flag"
3426 || test ! -s conftest.err'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428 (eval $ac_try) 2>&5
3429 ac_status=$?
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; } &&
3432 { ac_try='test -s conftest.$ac_objext'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 (eval $ac_try) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3438 :
3439 else
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 continue
3444 fi
3445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3446 cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h. */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3452 $ac_declaration
3453 int
3454 main ()
3455 {
3456 exit (42);
3457 ;
3458 return 0;
3459 }
3460 _ACEOF
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>conftest.er1
3464 ac_status=$?
3465 grep -v '^ *+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } &&
3470 { ac_try='test -z "$ac_c_werror_flag"
3471 || test ! -s conftest.err'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 (eval $ac_try) 2>&5
3474 ac_status=$?
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; } &&
3477 { ac_try='test -s conftest.$ac_objext'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 (eval $ac_try) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3483 break
3484 else
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 fi
3489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3490 done
3491 rm -f conftest*
3492 if test -n "$ac_declaration"; then
3493 echo '#ifdef __cplusplus' >>confdefs.h
3494 echo $ac_declaration >>confdefs.h
3495 echo '#endif' >>confdefs.h
3496 fi
3497
3498 else
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502 fi
3503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_ext=c
3505 ac_cpp='$CPP $CPPFLAGS'
3506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509
3510
3511 # We must set the default linker to the linker used by gcc for the correct
3512 # operation of libtool. If LD is not defined and we are using gcc, try to
3513 # set the LD default to the ld used by gcc.
3514 if test -z "$LD"; then
3515 if test "$GCC" = yes; then
3516 case $build in
3517 *-*-mingw*)
3518 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3519 *)
3520 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
3521 esac
3522 case $gcc_prog_ld in
3523 # Accept absolute paths.
3524 [\\/]* | [A-Za-z]:[\\/]*)
3525 LD="$gcc_prog_ld" ;;
3526 esac
3527 fi
3528 fi
3529
3530 CXX=${CXX-"c++"}
3531 CFLAGS=${CFLAGS-"-g"}
3532 CXXFLAGS=${CXXFLAGS-"-g -O2"}
3533 fi
3534
3535
3536
3537
3538 if test -n "$ac_tool_prefix"; then
3539 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3540 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 if test -n "$GNATBIND"; then
3547 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3559 fi
3560 done
3561 done
3562
3563 fi
3564 fi
3565 GNATBIND=$ac_cv_prog_GNATBIND
3566 if test -n "$GNATBIND"; then
3567 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3568 echo "${ECHO_T}$GNATBIND" >&6
3569 else
3570 echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3572 fi
3573
3574 fi
3575 if test -z "$ac_cv_prog_GNATBIND"; then
3576 ac_ct_GNATBIND=$GNATBIND
3577 # Extract the first word of "gnatbind", so it can be a program name with args.
3578 set dummy gnatbind; ac_word=$2
3579 echo "$as_me:$LINENO: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3581 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584 if test -n "$ac_ct_GNATBIND"; then
3585 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3586 else
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3589 do
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 break 2
3597 fi
3598 done
3599 done
3600
3601 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3602 fi
3603 fi
3604 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3605 if test -n "$ac_ct_GNATBIND"; then
3606 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3607 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3608 else
3609 echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3611 fi
3612
3613 GNATBIND=$ac_ct_GNATBIND
3614 else
3615 GNATBIND="$ac_cv_prog_GNATBIND"
3616 fi
3617
3618 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3619 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3620 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623 cat >conftest.adb <<EOF
3624 procedure conftest is begin null; end conftest;
3625 EOF
3626 acx_cv_cc_gcc_supports_ada=no
3627 # There is a bug in old released versions of GCC which causes the
3628 # driver to exit successfully when the appropriate language module
3629 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3630 # Therefore we must check for the error message as well as an
3631 # unsuccessful exit.
3632 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3633 # given a .adb file, but produce no object file. So we must check
3634 # if an object file was really produced to guard against this.
3635 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3636 if test x"$errors" = x && test -f conftest.$ac_objext; then
3637 acx_cv_cc_gcc_supports_ada=yes
3638 fi
3639 rm -f conftest.*
3640 fi
3641 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3642 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3643
3644 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3645 have_gnat=yes
3646 else
3647 have_gnat=no
3648 fi
3649
3650 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
3651 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
3652 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 echo abfoo >t1
3656 echo cdfoo >t2
3657 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
3658 if cmp t1 t2 2 2 > /dev/null 2>&1; then
3659 if cmp t1 t2 1 1 > /dev/null 2>&1; then
3660 :
3661 else
3662 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
3663 fi
3664 fi
3665 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
3666 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
3667 :
3668 else
3669 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
3670 fi
3671 fi
3672 rm t1 t2
3673
3674 fi
3675 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
3676 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
3677 do_compare="$gcc_cv_prog_cmp_skip"
3678
3679
3680
3681 # Check for GMP and MPFR
3682 gmplibs=
3683 gmpinc=
3684 have_gmp=yes
3685 # Specify a location for mpfr
3686 # check for this first so it ends up on the link line before gmp.
3687
3688 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
3689 if test "${with_mpfr_dir+set}" = set; then
3690 withval="$with_mpfr_dir"
3691
3692 fi;
3693
3694 if test "x$with_mpfr_dir" != x; then
3695 gmpinc="-I$with_mpfr_dir"
3696 gmplibs="$with_mpfr_dir/libmpfr.a"
3697 else
3698 gmplibs="-lmpfr"
3699 fi
3700
3701
3702 # Check whether --with-mpfr or --without-mpfr was given.
3703 if test "${with_mpfr+set}" = set; then
3704 withval="$with_mpfr"
3705
3706 fi;
3707
3708 if test "x$with_mpfr" != x; then
3709 gmplibs="-L$with_mpfr/lib $gmplibs"
3710 gmpinc="-I$with_mpfr/include"
3711 fi
3712
3713 # Specify a location for gmp
3714
3715 # Check whether --with-gmp-dir or --without-gmp-dir was given.
3716 if test "${with_gmp_dir+set}" = set; then
3717 withval="$with_gmp_dir"
3718
3719 fi;
3720
3721 if test "x$with_gmp_dir" != x; then
3722 gmpinc="$gmpinc -I$with_gmp_dir"
3723 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
3724 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
3725 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
3726 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
3727 fi
3728 # One of the later tests will catch the error if neither library is present.
3729 else
3730 gmplibs="$gmplibs -lgmp"
3731 fi
3732
3733
3734 # Check whether --with-gmp or --without-gmp was given.
3735 if test "${with_gmp+set}" = set; then
3736 withval="$with_gmp"
3737
3738 fi;
3739
3740 if test "x$with_gmp" != x; then
3741 gmplibs="-L$with_gmp/lib $gmplibs"
3742 gmpinc="-I$with_gmp/include $gmpinc"
3743 fi
3744
3745 saved_CFLAGS="$CFLAGS"
3746 CFLAGS="$CFLAGS $gmpinc"
3747 # Check GMP actually works
3748 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
3749 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
3750
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h. */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 #include "gmp.h"
3758 int
3759 main ()
3760 {
3761
3762 #if __GNU_MP_VERSION < 3
3763 choke me
3764 #endif
3765
3766 ;
3767 return 0;
3768 }
3769 _ACEOF
3770 rm -f conftest.$ac_objext
3771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772 (eval $ac_compile) 2>conftest.er1
3773 ac_status=$?
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } &&
3779 { ac_try='test -z "$ac_c_werror_flag"
3780 || test ! -s conftest.err'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 (eval $ac_try) 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; } &&
3786 { ac_try='test -s conftest.$ac_objext'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 (eval $ac_try) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3794 else
3795 echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798 echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6; have_gmp=no
3800 fi
3801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3802
3803 if test x"$have_gmp" = xyes; then
3804 echo "$as_me:$LINENO: checking for MPFR" >&5
3805 echo $ECHO_N "checking for MPFR... $ECHO_C" >&6
3806
3807 saved_LIBS="$LIBS"
3808 LIBS="$LIBS $gmplibs"
3809 cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h. */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815 #include <gmp.h>
3816 #include <mpfr.h>
3817 int
3818 main ()
3819 {
3820 mpfr_t n; mpfr_init(n);
3821 ;
3822 return 0;
3823 }
3824 _ACEOF
3825 rm -f conftest.$ac_objext conftest$ac_exeext
3826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3827 (eval $ac_link) 2>conftest.er1
3828 ac_status=$?
3829 grep -v '^ *+' conftest.er1 >conftest.err
3830 rm -f conftest.er1
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -z "$ac_c_werror_flag"
3835 || test ! -s conftest.err'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 (eval $ac_try) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; } &&
3841 { ac_try='test -s conftest$ac_exeext'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; }; then
3847 echo "$as_me:$LINENO: result: yes" >&5
3848 echo "${ECHO_T}yes" >&6
3849 else
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3852
3853 echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6; have_gmp=no
3855 fi
3856 rm -f conftest.err conftest.$ac_objext \
3857 conftest$ac_exeext conftest.$ac_ext
3858 LIBS="$saved_LIBS"
3859 CFLAGS="$saved_CFLAGS"
3860 fi
3861
3862 # Flags needed for both GMP and/or MPFR
3863
3864
3865
3866 # By default, C is the only stage 1 language.
3867 stage1_languages=c
3868
3869
3870 # Figure out what language subdirectories are present.
3871 # Look if the user specified --enable-languages="..."; if not, use
3872 # the environment variable $LANGUAGES if defined. $LANGUAGES might
3873 # go away some day.
3874 # NB: embedded tabs in this IF block -- do not untabify
3875 if test -d ${srcdir}/gcc; then
3876 if test x"${enable_languages+set}" != xset; then
3877 if test x"${LANGUAGES+set}" = xset; then
3878 enable_languages="${LANGUAGES}"
3879 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
3880 else
3881 enable_languages=all
3882 fi
3883 else
3884 if test x"${enable_languages}" = x ||
3885 test x"${enable_languages}" = xyes;
3886 then
3887 echo configure.in: --enable-languages needs at least one language argument 1>&2
3888 exit 1
3889 fi
3890 fi
3891 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
3892
3893 # 'f95' is the old name for the 'fortran' language. We issue a warning
3894 # and make the substitution.
3895 case ,${enable_languages}, in
3896 *,f95,*)
3897 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
3898 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
3899 ;;
3900 esac
3901
3902 # First scan to see if an enabled language requires some other language.
3903 # We assume that a given config-lang.in will list all the language
3904 # front ends it requires, even if some are required indirectly.
3905 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
3906 case ${lang_frag} in
3907 ..) ;;
3908 # The odd quoting in the next line works around
3909 # an apparent bug in bash 1.12 on linux.
3910 ${srcdir}/gcc/[*]/config-lang.in) ;;
3911 *)
3912 # From the config-lang.in, get $language, $lang_requires
3913 language=
3914 lang_requires=
3915 . ${lang_frag}
3916 for other in ${lang_requires} ; do
3917 case ,${enable_languages}, in
3918 *,$other,*) ;;
3919 *,all,*) ;;
3920 *,$language,*)
3921 echo " \`$other' language required by \`$language'; enabling" 1>&2
3922 enable_languages="${enable_languages},${other}"
3923 ;;
3924 esac
3925 done
3926 ;;
3927 esac
3928 done
3929
3930 new_enable_languages=c
3931 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
3932 potential_languages=c
3933
3934 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
3935 case ${lang_frag} in
3936 ..) ;;
3937 # The odd quoting in the next line works around
3938 # an apparent bug in bash 1.12 on linux.
3939 ${srcdir}/gcc/[*]/config-lang.in) ;;
3940 *)
3941 # From the config-lang.in, get $language, $target_libs,
3942 # $lang_dirs, $boot_language, and $build_by_default
3943 language=
3944 target_libs=
3945 lang_dirs=
3946 boot_language=
3947 build_by_default=
3948 need_gmp=
3949 . ${lang_frag}
3950 potential_languages="${potential_languages},${language}"
3951 # This is quite sensitive to the ordering of the case statement arms.
3952 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
3953 *::*:*)
3954 echo "${lang_frag} doesn't set \$language." 1>&2
3955 exit 1
3956 ;;
3957 *:ada:no:*)
3958 # Ada was requested with no preexisting GNAT. Disable unconditionally.
3959 add_this_lang=no
3960 ;;
3961 *,${language},*:*:*:*)
3962 # Language was explicitly selected; include it.
3963 add_this_lang=yes
3964 ;;
3965 *,all,*:*:*:no)
3966 # 'all' was selected, but this is not a default language
3967 # so do not include it.
3968 add_this_lang=no
3969 ;;
3970 *,all,*:*:*:*)
3971 # 'all' was selected and this is a default language; include it.
3972 add_this_lang=yes
3973 ;;
3974 *)
3975 add_this_lang=no
3976 ;;
3977 esac
3978
3979 # Disable languages that need GMP if it isn't available.
3980 case ,${enable_languages},:${have_gmp}:${need_gmp} in
3981 *,${language},*:no:yes)
3982 # Specifically requested language; tell them.
3983 { { echo "$as_me:$LINENO: error: GMP with MPFR support is required to build $language" >&5
3984 echo "$as_me: error: GMP with MPFR support is required to build $language" >&2;}
3985 { (exit 1); exit 1; }; }
3986 ;;
3987 *:no:yes)
3988 # Silently disable.
3989 add_this_lang=no
3990 ;;
3991 esac
3992
3993 # Disable a language that is unsupported by the target.
3994 case " $unsupported_languages " in
3995 *" $language "*)
3996 add_this_lang=no
3997 ;;
3998 esac
3999
4000 case $add_this_lang in
4001 no)
4002 # Remove language-dependent dirs.
4003 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4004 ;;
4005 *)
4006 new_enable_languages="$new_enable_languages,$language"
4007 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4008 case ${boot_language} in
4009 yes)
4010 # Add to (comma-separated) list of stage 1 languages.
4011 stage1_languages="${stage1_languages},${language}"
4012 ;;
4013 esac
4014 ;;
4015 esac
4016 ;;
4017 esac
4018 done
4019
4020 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4021 if test "x$missing_languages" != x; then
4022 { { echo "$as_me:$LINENO: error:
4023 The following requested languages could not be built: ${missing_languages}
4024 Recognised languages are: ${potential_languages}" >&5
4025 echo "$as_me: error:
4026 The following requested languages could not be built: ${missing_languages}
4027 Recognised languages are: ${potential_languages}" >&2;}
4028 { (exit 1); exit 1; }; }
4029 fi
4030
4031 if test "x$new_enable_languages" != "x$enable_languages"; then
4032 echo The following languages will be built: ${new_enable_languages}
4033 fi
4034 enable_languages="$new_enable_languages"
4035 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
4036 fi
4037
4038 # Handle --disable-<component> generically.
4039 for dir in $configdirs $build_configdirs $target_configdirs ; do
4040 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4041 if eval test x\${enable_${dirname}} "=" xno ; then
4042 noconfigdirs="$noconfigdirs $dir"
4043 fi
4044 done
4045
4046 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4047 # $build_configdirs and $target_configdirs.
4048 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4049
4050 notsupp=""
4051 for dir in . $skipdirs $noconfigdirs ; do
4052 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4053 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4054 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4055 if test -r $srcdir/$dirname/configure ; then
4056 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4057 true
4058 else
4059 notsupp="$notsupp $dir"
4060 fi
4061 fi
4062 fi
4063 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4064 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4065 if test -r $srcdir/$dirname/configure ; then
4066 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4067 true
4068 else
4069 notsupp="$notsupp $dir"
4070 fi
4071 fi
4072 fi
4073 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4074 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4075 if test -r $srcdir/$dirname/configure ; then
4076 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4077 true
4078 else
4079 notsupp="$notsupp $dir"
4080 fi
4081 fi
4082 fi
4083 done
4084
4085 # Sometimes the tools are distributed with libiberty but with no other
4086 # libraries. In that case, we don't want to build target-libiberty.
4087 if test -n "${target_configdirs}" ; then
4088 others=
4089 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4090 if test "$i" != "libiberty" ; then
4091 if test -r $srcdir/$i/configure ; then
4092 others=yes;
4093 break;
4094 fi
4095 fi
4096 done
4097 if test -z "${others}" ; then
4098 target_configdirs=
4099 fi
4100 fi
4101
4102 # Quietly strip out all directories which aren't configurable in this tree.
4103 # This relies on all configurable subdirectories being autoconfiscated, which
4104 # is now the case.
4105 build_configdirs_all="$build_configdirs"
4106 build_configdirs=
4107 for i in ${build_configdirs_all} ; do
4108 j=`echo $i | sed -e s/build-//g`
4109 if test -f ${srcdir}/$j/configure ; then
4110 build_configdirs="${build_configdirs} $i"
4111 fi
4112 done
4113
4114 configdirs_all="$configdirs"
4115 configdirs=
4116 for i in ${configdirs_all} ; do
4117 if test -f ${srcdir}/$i/configure ; then
4118 configdirs="${configdirs} $i"
4119 fi
4120 done
4121
4122 target_configdirs_all="$target_configdirs"
4123 target_configdirs=
4124 for i in ${target_configdirs_all} ; do
4125 j=`echo $i | sed -e s/target-//g`
4126 if test -f ${srcdir}/$j/configure ; then
4127 target_configdirs="${target_configdirs} $i"
4128 fi
4129 done
4130
4131 # Produce a warning message for the subdirs we can't configure.
4132 # This isn't especially interesting in the Cygnus tree, but in the individual
4133 # FSF releases, it's important to let people know when their machine isn't
4134 # supported by the one or two programs in a package.
4135
4136 if test -n "${notsupp}" && test -z "${norecursion}" ; then
4137 # If $appdirs is non-empty, at least one of those directories must still
4138 # be configured, or we error out. (E.g., if the gas release supports a
4139 # specified target in some subdirs but not the gas subdir, we shouldn't
4140 # pretend that all is well.)
4141 if test -n "$appdirs" ; then
4142 for dir in $appdirs ; do
4143 if test -r $dir/Makefile.in ; then
4144 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4145 appdirs=""
4146 break
4147 fi
4148 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
4149 appdirs=""
4150 break
4151 fi
4152 fi
4153 done
4154 if test -n "$appdirs" ; then
4155 echo "*** This configuration is not supported by this package." 1>&2
4156 exit 1
4157 fi
4158 fi
4159 # Okay, some application will build, or we don't care to check. Still
4160 # notify of subdirs not getting built.
4161 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4162 echo " ${notsupp}" 1>&2
4163 echo " (Any other directories should still work fine.)" 1>&2
4164 fi
4165
4166 case "$host" in
4167 *msdosdjgpp*)
4168 enable_gdbtk=no ;;
4169 esac
4170
4171 copy_dirs=
4172
4173
4174 # Check whether --with-build-sysroot or --without-build-sysroot was given.
4175 if test "${with_build_sysroot+set}" = set; then
4176 withval="$with_build_sysroot"
4177 if test x"$withval" != x ; then
4178 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
4179 fi
4180 else
4181 SYSROOT_CFLAGS_FOR_TARGET=
4182 fi;
4183
4184
4185 # Handle --with-headers=XXX. If the value is not "yes", the contents of
4186 # the named directory are copied to $(tooldir)/sys-include.
4187 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
4188 if test x${is_cross_compiler} = xno ; then
4189 echo 1>&2 '***' --with-headers is only supported when cross compiling
4190 exit 1
4191 fi
4192 if test x"${with_headers}" != xyes ; then
4193 case "${exec_prefixoption}" in
4194 "") x=${prefix} ;;
4195 *) x=${exec_prefix} ;;
4196 esac
4197 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
4198 fi
4199 fi
4200
4201 # Handle --with-libs=XXX. If the value is not "yes", the contents of
4202 # the name directories are copied to $(tooldir)/lib. Multiple directories
4203 # are permitted.
4204 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
4205 if test x${is_cross_compiler} = xno ; then
4206 echo 1>&2 '***' --with-libs is only supported when cross compiling
4207 exit 1
4208 fi
4209 if test x"${with_libs}" != xyes ; then
4210 # Copy the libraries in reverse order, so that files in the first named
4211 # library override files in subsequent libraries.
4212 case "${exec_prefixoption}" in
4213 "") x=${prefix} ;;
4214 *) x=${exec_prefix} ;;
4215 esac
4216 for l in ${with_libs}; do
4217 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
4218 done
4219 fi
4220 fi
4221
4222 # Set with_gnu_as and with_gnu_ld as appropriate.
4223 #
4224 # This is done by determining whether or not the appropriate directory
4225 # is available, and by checking whether or not specific configurations
4226 # have requested that this magic not happen.
4227 #
4228 # The command line options always override the explicit settings in
4229 # configure.in, and the settings in configure.in override this magic.
4230 #
4231 # If the default for a toolchain is to use GNU as and ld, and you don't
4232 # want to do that, then you should use the --without-gnu-as and
4233 # --without-gnu-ld options for the configure script.
4234
4235 if test x${use_gnu_as} = x &&
4236 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
4237 with_gnu_as=yes
4238 extra_host_args="$extra_host_args --with-gnu-as"
4239 fi
4240
4241 if test x${use_gnu_ld} = x &&
4242 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
4243 with_gnu_ld=yes
4244 extra_host_args="$extra_host_args --with-gnu-ld"
4245 fi
4246
4247 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4248 # can detect this case.
4249
4250 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
4251 with_newlib=yes
4252 extra_host_args="$extra_host_args --with-newlib"
4253 fi
4254
4255 # Handle ${copy_dirs}
4256 set fnord ${copy_dirs}
4257 shift
4258 while test $# != 0 ; do
4259 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
4260 :
4261 else
4262 echo Copying $1 to $2
4263
4264 # Use the install script to create the directory and all required
4265 # parent directories.
4266 if test -d $2 ; then
4267 :
4268 else
4269 echo >config.temp
4270 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
4271 fi
4272
4273 # Copy the directory, assuming we have tar.
4274 # FIXME: Should we use B in the second tar? Not all systems support it.
4275 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
4276
4277 # It is the responsibility of the user to correctly adjust all
4278 # symlinks. If somebody can figure out how to handle them correctly
4279 # here, feel free to add the code.
4280
4281 echo $1 > $2/COPIED
4282 fi
4283 shift; shift
4284 done
4285
4286 # Determine a target-dependent exec_prefix that the installed
4287 # gcc will search in. Keep this list sorted by triplet, with
4288 # the *-*-osname triplets last.
4289 md_exec_prefix=
4290 case "${target}" in
4291 alpha*-*-*vms*)
4292 md_exec_prefix=/gnu/lib/gcc-lib
4293 ;;
4294 i3456786-pc-msdosdjgpp*)
4295 md_exec_prefix=/dev/env/DJDIR/bin
4296 ;;
4297 i3456786-*-sco3.2v5*)
4298 if test $with_gnu_as = yes; then
4299 md_exec_prefix=/usr/gnu/bin
4300 else
4301 md_exec_prefix=/usr/ccs/bin/elf
4302 fi
4303 ;;
4304
4305 mn10300-*-* | \
4306 powerpc-*-chorusos* | \
4307 powerpc*-*-eabi* | \
4308 powerpc*-*-sysv* | \
4309 powerpc*-*-kaos* | \
4310 s390x-ibm-tpf*)
4311 md_exec_prefix=/usr/ccs/bin
4312 ;;
4313 sparc64-*-elf*)
4314 ;;
4315 v850*-*-*)
4316 md_exec_prefix=/usr/ccs/bin
4317 ;;
4318 xtensa-*-elf*)
4319 ;;
4320
4321 *-*-beos* | \
4322 *-*-elf* | \
4323 *-*-hpux* | \
4324 *-*-netware* | \
4325 *-*-nto-qnx* | \
4326 *-*-rtems* | \
4327 *-*-solaris2* | \
4328 *-*-sysv45* | \
4329 *-*-vxworks* | \
4330 *-wrs-windiss)
4331 md_exec_prefix=/usr/ccs/bin
4332 ;;
4333 esac
4334
4335 extra_arflags_for_target=
4336 extra_nmflags_for_target=
4337 extra_ranlibflags_for_target=
4338 target_makefile_frag=/dev/null
4339 case "${target}" in
4340 *-*-netware*)
4341 target_makefile_frag="config/mt-netware"
4342 ;;
4343 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
4344 target_makefile_frag="config/mt-gnu"
4345 ;;
4346 *-*-aix4.[3456789]* | *-*-aix[56789].*)
4347 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
4348 # commands to handle both 32-bit and 64-bit objects. These flags are
4349 # harmless if we're using GNU nm or ar.
4350 extra_arflags_for_target=" -X32_64"
4351 extra_nmflags_for_target=" -B -X32_64"
4352 ;;
4353 *-*-darwin*)
4354 # ranlib from Darwin requires the -c flag to look at common symbols.
4355 extra_ranlibflags_for_target=" -c"
4356 ;;
4357 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
4358 target_makefile_frag="config/mt-wince"
4359 ;;
4360 esac
4361
4362 alphaieee_frag=/dev/null
4363 case $target in
4364 alpha*-*-*)
4365 # This just makes sure to use the -mieee option to build target libs.
4366 # This should probably be set individually by each library.
4367 alphaieee_frag="config/mt-alphaieee"
4368 ;;
4369 esac
4370
4371 # If --enable-target-optspace always use -Os instead of -O2 to build
4372 # the target libraries, similarly if it is not specified, use -Os
4373 # on selected platforms.
4374 ospace_frag=/dev/null
4375 case "${enable_target_optspace}:${target}" in
4376 yes:*)
4377 ospace_frag="config/mt-ospace"
4378 ;;
4379 :d30v-*)
4380 ospace_frag="config/mt-d30v"
4381 ;;
4382 :m32r-* | :d10v-* | :fr30-*)
4383 ospace_frag="config/mt-ospace"
4384 ;;
4385 no:* | :*)
4386 ;;
4387 *)
4388 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
4389 ;;
4390 esac
4391
4392 # Default to using --with-stabs for certain targets.
4393 if test x${with_stabs} = x ; then
4394 case "${target}" in
4395 mips*-*-irix[56]*)
4396 ;;
4397 mips*-*-* | alpha*-*-osf*)
4398 with_stabs=yes;
4399 extra_host_args="${extra_host_args} --with-stabs"
4400 ;;
4401 esac
4402 fi
4403
4404 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
4405 # them automatically.
4406 case "${host}" in
4407 hppa*64*-*-hpux11*)
4408 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
4409 ;;
4410 esac
4411
4412 # Some systems (e.g., one of the i386-aix systems the gas testers are
4413 # using) don't handle "\$" correctly, so don't use it here.
4414 tooldir='${exec_prefix}'/${target_alias}
4415 build_tooldir=${tooldir}
4416
4417 # Create a .gdbinit file which runs the one in srcdir
4418 # and tells GDB to look there for source files.
4419
4420 if test -r ${srcdir}/.gdbinit ; then
4421 case ${srcdir} in
4422 .) ;;
4423 *) cat > ./.gdbinit <<EOF
4424 # ${NO_EDIT}
4425 dir ${srcdir}
4426 dir .
4427 source ${srcdir}/.gdbinit
4428 EOF
4429 ;;
4430 esac
4431 fi
4432
4433 # Make sure that the compiler is able to generate an executable. If it
4434 # can't, we are probably in trouble. We don't care whether we can run the
4435 # executable--we might be using a cross compiler--we only care whether it
4436 # can be created. At this point the main configure script has set CC.
4437 we_are_ok=no
4438 echo "int main () { return 0; }" > conftest.c
4439 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
4440 if test $? = 0 ; then
4441 if test -s conftest || test -s conftest.exe ; then
4442 we_are_ok=yes
4443 fi
4444 fi
4445 case $we_are_ok in
4446 no)
4447 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
4448 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
4449 rm -f conftest*
4450 exit 1
4451 ;;
4452 esac
4453 rm -f conftest*
4454
4455 # The Solaris /usr/ucb/cc compiler does not appear to work.
4456 case "${host}" in
4457 sparc-sun-solaris2*)
4458 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
4459 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
4460 could_use=
4461 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
4462 if test -d /opt/cygnus/bin ; then
4463 if test "$could_use" = "" ; then
4464 could_use="/opt/cygnus/bin"
4465 else
4466 could_use="$could_use or /opt/cygnus/bin"
4467 fi
4468 fi
4469 if test "$could_use" = "" ; then
4470 echo "Warning: compilation may fail because you're using"
4471 echo "/usr/ucb/cc. You should change your PATH or CC "
4472 echo "variable and rerun configure."
4473 else
4474 echo "Warning: compilation may fail because you're using"
4475 echo "/usr/ucb/cc, when you should use the C compiler from"
4476 echo "$could_use. You should change your"
4477 echo "PATH or CC variable and rerun configure."
4478 fi
4479 fi
4480 ;;
4481 esac
4482
4483 case "${host}" in
4484 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
4485 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
4486 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
4487 esac
4488
4489 # Record target_configdirs and the configure arguments for target and
4490 # build configuration in Makefile.
4491 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
4492 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
4493
4494 # Determine whether gdb needs tk/tcl or not.
4495 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
4496 # and in that case we want gdb to be built without tk. Ugh!
4497 # In fact I believe gdb is the *only* package directly dependent on tk,
4498 # so we should be able to put the 'maybe's in unconditionally and
4499 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
4500 # 100% sure that that's safe though.
4501
4502 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
4503 case "$enable_gdbtk" in
4504 no)
4505 GDB_TK="" ;;
4506 yes)
4507 GDB_TK="${gdb_tk}" ;;
4508 *)
4509 # Only add the dependency on gdbtk when GDBtk is part of the gdb
4510 # distro. Eventually someone will fix this and move Insight, nee
4511 # gdbtk to a separate directory.
4512 if test -d ${srcdir}/gdb/gdbtk ; then
4513 GDB_TK="${gdb_tk}"
4514 else
4515 GDB_TK=""
4516 fi
4517 ;;
4518 esac
4519 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
4520 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
4521
4522 # Strip out unwanted targets.
4523
4524 # While at that, we remove Makefiles if we were started for recursive
4525 # configuration, so that the top-level Makefile reconfigures them,
4526 # like we used to do when configure itself was recursive.
4527
4528 # Loop over modules. $extrasub must be used with care, limiting as
4529 # much as possible the usage of range addresses. That's because autoconf
4530 # splits the sed script to overcome limits in the number of commands,
4531 # and relying on carefully-timed sed passes may turn out to be very hard
4532 # to maintain later. In this particular case, you just have to be careful
4533 # not to nest @if/@endif pairs, because configure will not warn you at all.
4534
4535 # Check whether --enable-bootstrap or --disable-bootstrap was given.
4536 if test "${enable_bootstrap+set}" = set; then
4537 enableval="$enable_bootstrap"
4538
4539 else
4540 enable_bootstrap=default
4541 fi;
4542
4543 # Issue errors and warnings for invalid/strange bootstrap combinations.
4544 case "$configdirs" in
4545 *gcc*) have_compiler=yes ;;
4546 *) have_compiler=no ;;
4547 esac
4548
4549 case "$have_compiler:$host:$target:$enable_bootstrap" in
4550 *:*:*:no) ;;
4551
4552 # Default behavior. Enable bootstrap if we have a compiler
4553 # and we are in a native configuration.
4554 yes:$build:$build:default)
4555 enable_bootstrap=yes ;;
4556
4557 *:*:*:default)
4558 enable_bootstrap=no ;;
4559
4560 # We have a compiler and we are in a native configuration, bootstrap is ok
4561 yes:$build:$build:yes)
4562 ;;
4563
4564 # Other configurations, but we have a compiler. Assume the user knows
4565 # what he's doing.
4566 yes:*:*:yes)
4567 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
4568 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
4569 ;;
4570
4571 # No compiler: if they passed --enable-bootstrap explicitly, fail
4572 no:*:*:yes)
4573 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
4574 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
4575 { (exit 1); exit 1; }; } ;;
4576
4577 # Fail if wrong command line
4578 *)
4579 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
4580 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
4581 { (exit 1); exit 1; }; }
4582 ;;
4583 esac
4584
4585 # Adjust the toplevel makefile according to whether bootstrap was selected.
4586 case "$enable_bootstrap" in
4587 yes)
4588 bootstrap_suffix=bootstrap ;;
4589 no)
4590 bootstrap_suffix=no-bootstrap ;;
4591 esac
4592
4593 for module in ${build_configdirs} ; do
4594 if test -z "${no_recursion}" \
4595 && test -f ${build_subdir}/${module}/Makefile; then
4596 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
4597 rm -f ${build_subdir}/${module}/Makefile
4598 fi
4599 extrasub="$extrasub
4600 /^@if build-$module\$/d
4601 /^@endif build-$module\$/d
4602 /^@if build-$module-$bootstrap_suffix\$/d
4603 /^@endif build-$module-$bootstrap_suffix\$/d"
4604 done
4605 for module in ${configdirs} ; do
4606 if test -z "${no_recursion}"; then
4607 for file in stage*-${module}/Makefile ${module}/Makefile; do
4608 if test -f ${file}; then
4609 echo 1>&2 "*** removing ${file} to force reconfigure"
4610 rm -f ${file}
4611 fi
4612 done
4613 fi
4614 extrasub="$extrasub
4615 /^@if $module\$/d
4616 /^@endif $module\$/d
4617 /^@if $module-$bootstrap_suffix\$/d
4618 /^@endif $module-$bootstrap_suffix\$/d"
4619 done
4620 for module in ${target_configdirs} ; do
4621 if test -z "${no_recursion}" \
4622 && test -f ${target_subdir}/${module}/Makefile; then
4623 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
4624 rm -f ${target_subdir}/${module}/Makefile
4625 fi
4626 extrasub="$extrasub
4627 /^@if target-$module\$/d
4628 /^@endif target-$module\$/d
4629 /^@if target-$module-$bootstrap_suffix\$/d
4630 /^@endif target-$module-$bootstrap_suffix\$/d"
4631 done
4632
4633 extrasub="$extrasub
4634 /^@if /,/^@endif /d"
4635
4636 # Create the serialization dependencies. This uses a temporary file.
4637
4638 # Check whether --enable-serial-configure or --disable-serial-configure was given.
4639 if test "${enable_serial_configure+set}" = set; then
4640 enableval="$enable_serial_configure"
4641
4642 fi;
4643
4644 case ${enable_serial_configure} in
4645 yes)
4646 enable_serial_build_configure=yes
4647 enable_serial_host_configure=yes
4648 enable_serial_target_configure=yes
4649 ;;
4650 esac
4651
4652 # These force 'configure's to be done one at a time, to avoid problems
4653 # with contention over a shared config.cache.
4654 rm -f serdep.tmp
4655 echo '# serdep.tmp' > serdep.tmp
4656 olditem=
4657 test "x${enable_serial_build_configure}" = xyes &&
4658 for item in ${build_configdirs} ; do
4659 case ${olditem} in
4660 "") ;;
4661 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
4662 esac
4663 olditem=${item}
4664 done
4665 olditem=
4666 test "x${enable_serial_host_configure}" = xyes &&
4667 for item in ${configdirs} ; do
4668 case ${olditem} in
4669 "") ;;
4670 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
4671 esac
4672 olditem=${item}
4673 done
4674 olditem=
4675 test "x${enable_serial_target_configure}" = xyes &&
4676 for item in ${target_configdirs} ; do
4677 case ${olditem} in
4678 "") ;;
4679 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
4680 esac
4681 olditem=${item}
4682 done
4683 serialization_dependencies=serdep.tmp
4684
4685
4686 # Base args. Strip norecursion, cache-file, srcdir, host, build,
4687 # target and nonopt. These are the ones we might not want to pass
4688 # down to subconfigures. Also strip program-prefix, program-suffix,
4689 # and program-transform-name, so that we can pass down a consistent
4690 # program-transform-name. If autoconf has put single quotes around
4691 # any of these arguments (because they contain shell metacharacters)
4692 # then this will fail; in practice this only happens for
4693 # --program-transform-name, so be sure to override --program-transform-name
4694 # at the end of the argument list.
4695 # These will be expanded by make, so quote '$'.
4696 cat <<\EOF_SED > conftestsed
4697 s/ --no[^ ]*/ /g
4698 s/ --c[a-z-]*[= ][^ ]*//g
4699 s/ --sr[a-z-]*[= ][^ ]*//g
4700 s/ --ho[a-z-]*[= ][^ ]*//g
4701 s/ --bu[a-z-]*[= ][^ ]*//g
4702 s/ --t[a-z-]*[= ][^ ]*//g
4703 s/ --program-[pst][a-z-]*[= ][^ ]*//g
4704 s/ -cache-file[= ][^ ]*//g
4705 s/ -srcdir[= ][^ ]*//g
4706 s/ -host[= ][^ ]*//g
4707 s/ -build[= ][^ ]*//g
4708 s/ -target[= ][^ ]*//g
4709 s/ -program-prefix[= ][^ ]*//g
4710 s/ -program-suffix[= ][^ ]*//g
4711 s/ -program-transform-name[= ][^ ]*//g
4712 s/ [^' -][^ ]* / /
4713 s/^ *//;s/ *$//
4714 s,\$,$$,g
4715 EOF_SED
4716 sed -f conftestsed <<EOF_SED > conftestsed.out
4717 ${ac_configure_args}
4718 EOF_SED
4719 baseargs=`cat conftestsed.out`
4720 rm -f conftestsed conftestsed.out
4721
4722 # Add in --program-transform-name, after --program-prefix and
4723 # --program-suffix have been applied to it. Autoconf has already
4724 # doubled dollar signs and backslashes in program_transform_name; we want
4725 # the backslashes un-doubled, and then the entire thing wrapped in single
4726 # quotes, because this will be expanded first by make and then by the shell.
4727 # Also, because we want to override the logic in subdir configure scripts to
4728 # choose program_transform_name, replace any s,x,x, with s,y,y,.
4729 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
4730 ${program_transform_name}
4731 EOF_SED
4732 gcc_transform_name=`cat conftestsed.out`
4733 rm -f conftestsed.out
4734 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
4735
4736 # For the build-side libraries, we just need to pretend we're native,
4737 # and not use the same cache file. Multilibs are neither needed nor
4738 # desired.
4739 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
4740
4741 # For host modules, accept cache file option, or specification as blank.
4742 case "${cache_file}" in
4743 "") # empty
4744 cache_file_option="" ;;
4745 /* | [A-Za-z]:[\\/]* ) # absolute path
4746 cache_file_option="--cache-file=${cache_file}" ;;
4747 *) # relative path
4748 cache_file_option="--cache-file=../${cache_file}" ;;
4749 esac
4750
4751 # Host dirs don't like to share a cache file either, horribly enough.
4752 # This seems to be due to autoconf 2.5x stupidity.
4753 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
4754
4755 target_configargs=${baseargs}
4756
4757 # Passing a --with-cross-host argument lets the target libraries know
4758 # whether they are being built with a cross-compiler or being built
4759 # native. However, it would be better to use other mechanisms to make the
4760 # sorts of decisions they want to make on this basis. Please consider
4761 # this option to be deprecated. FIXME.
4762 if test x${is_cross_compiler} = xyes ; then
4763 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
4764 fi
4765
4766 # Default to --enable-multilib.
4767 if test x${enable_multilib} = x ; then
4768 target_configargs="--enable-multilib ${target_configargs}"
4769 fi
4770
4771 # Pass --with-newlib if appropriate. Note that target_configdirs has
4772 # changed from the earlier setting of with_newlib.
4773 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
4774 target_configargs="--with-newlib ${target_configargs}"
4775 fi
4776
4777 # Different target subdirs use different values of certain variables
4778 # (notably CXX). Worse, multilibs use *lots* of different values.
4779 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
4780 # it doesn't automatically accept command-line overrides of them.
4781 # This means it's not safe for target subdirs to share a cache file,
4782 # which is disgusting, but there you have it. Hopefully this can be
4783 # fixed in future. It's still worthwhile to use a cache file for each
4784 # directory. I think.
4785
4786 # Pass the appropriate --build, --host, --target and --cache-file arguments.
4787 # We need to pass --target, as newer autoconf's requires consistency
4788 # for target_alias and gcc doesn't manage it consistently.
4789 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
4790
4791 FLAGS_FOR_TARGET=
4792 case " $target_configdirs " in
4793 *" newlib "*)
4794 case " $target_configargs " in
4795 *" --with-newlib "*)
4796 case "$target" in
4797 *-cygwin*)
4798 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
4799 esac
4800
4801 # If we're not building GCC, don't discard standard headers.
4802 if test -d ${srcdir}/gcc; then
4803 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
4804
4805 if test "${build}" != "${host}"; then
4806 # On Canadian crosses, CC_FOR_TARGET will have already been set
4807 # by `configure', so we won't have an opportunity to add -Bgcc/
4808 # to it. This is right: we don't want to search that directory
4809 # for binaries, but we want the header files in there, so add
4810 # them explicitly.
4811 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
4812
4813 # Someone might think of using the pre-installed headers on
4814 # Canadian crosses, in case the installed compiler is not fully
4815 # compatible with the compiler being built. In this case, it
4816 # would be better to flag an error than risking having
4817 # incompatible object files being constructed. We can't
4818 # guarantee that an error will be flagged, but let's hope the
4819 # compiler will do it, when presented with incompatible header
4820 # files.
4821 fi
4822 fi
4823
4824 case "${target}-${is_cross_compiler}" in
4825 i[3456789]86-*-linux*-no)
4826 # Here host == target, so we don't need to build gcc,
4827 # so we don't want to discard standard headers.
4828 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
4829 ;;
4830 *)
4831 # If we're building newlib, use its generic headers last, but search
4832 # for any libc-related directories first (so make it the last -B
4833 # switch).
4834 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
4835 ;;
4836 esac
4837 ;;
4838 esac
4839 ;;
4840 esac
4841
4842 # Allow the user to override the flags for
4843 # our build compiler if desired.
4844 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
4845
4846 # On Canadian crosses, we'll be searching the right directories for
4847 # the previously-installed cross compiler, so don't bother to add
4848 # flags for directories within the install tree of the compiler
4849 # being built; programs in there won't even run.
4850 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
4851 # Search for pre-installed headers if nothing else fits.
4852 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
4853 fi
4854
4855 if test "x${use_gnu_ld}" = x &&
4856 echo " ${configdirs} " | grep " ld " > /dev/null ; then
4857 # Arrange for us to find uninstalled linker scripts.
4858 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
4859 fi
4860
4861 # Makefile fragments.
4862 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
4863 do
4864 eval fragval=\$$frag
4865 if test $fragval != /dev/null; then
4866 eval $frag=${srcdir}/$fragval
4867 fi
4868 done
4869
4870
4871
4872
4873
4874 # Miscellanea: directories, flags, etc.
4875
4876
4877
4878
4879
4880
4881
4882 # Build module lists & subconfigure args.
4883
4884
4885
4886 # Host module lists & subconfigure args.
4887
4888
4889
4890 # Target module lists & subconfigure args.
4891
4892
4893
4894 # Build tools.
4895
4896
4897
4898 # Generate default definitions for YACC, M4, LEX and other programs that run
4899 # on the build machine. These are used if the Makefile can't locate these
4900 # programs in objdir.
4901 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4902
4903 for ac_prog in 'bison -y' byacc yacc
4904 do
4905 # Extract the first word of "$ac_prog", so it can be a program name with args.
4906 set dummy $ac_prog; ac_word=$2
4907 echo "$as_me:$LINENO: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4909 if test "${ac_cv_prog_YACC+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912 if test -n "$YACC"; then
4913 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4917 do
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4922 ac_cv_prog_YACC="$ac_prog"
4923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4925 fi
4926 done
4927 done
4928
4929 fi
4930 fi
4931 YACC=$ac_cv_prog_YACC
4932 if test -n "$YACC"; then
4933 echo "$as_me:$LINENO: result: $YACC" >&5
4934 echo "${ECHO_T}$YACC" >&6
4935 else
4936 echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6
4938 fi
4939
4940 test -n "$YACC" && break
4941 done
4942 test -n "$YACC" || YACC="$MISSING bison -y"
4943
4944 case " $build_configdirs " in
4945 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
4946 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
4947 esac
4948
4949 for ac_prog in bison
4950 do
4951 # Extract the first word of "$ac_prog", so it can be a program name with args.
4952 set dummy $ac_prog; ac_word=$2
4953 echo "$as_me:$LINENO: checking for $ac_word" >&5
4954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4955 if test "${ac_cv_prog_BISON+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958 if test -n "$BISON"; then
4959 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_BISON="$ac_prog"
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972 done
4973 done
4974
4975 fi
4976 fi
4977 BISON=$ac_cv_prog_BISON
4978 if test -n "$BISON"; then
4979 echo "$as_me:$LINENO: result: $BISON" >&5
4980 echo "${ECHO_T}$BISON" >&6
4981 else
4982 echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6
4984 fi
4985
4986 test -n "$BISON" && break
4987 done
4988 test -n "$BISON" || BISON="$MISSING bison"
4989
4990 case " $build_configdirs " in
4991 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
4992 esac
4993
4994 for ac_prog in gm4 gnum4 m4
4995 do
4996 # Extract the first word of "$ac_prog", so it can be a program name with args.
4997 set dummy $ac_prog; ac_word=$2
4998 echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5000 if test "${ac_cv_prog_M4+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003 if test -n "$M4"; then
5004 ac_cv_prog_M4="$M4" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013 ac_cv_prog_M4="$ac_prog"
5014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 break 2
5016 fi
5017 done
5018 done
5019
5020 fi
5021 fi
5022 M4=$ac_cv_prog_M4
5023 if test -n "$M4"; then
5024 echo "$as_me:$LINENO: result: $M4" >&5
5025 echo "${ECHO_T}$M4" >&6
5026 else
5027 echo "$as_me:$LINENO: result: no" >&5
5028 echo "${ECHO_T}no" >&6
5029 fi
5030
5031 test -n "$M4" && break
5032 done
5033 test -n "$M4" || M4="$MISSING m4"
5034
5035 case " $build_configdirs " in
5036 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5037 esac
5038
5039 for ac_prog in flex lex
5040 do
5041 # Extract the first word of "$ac_prog", so it can be a program name with args.
5042 set dummy $ac_prog; ac_word=$2
5043 echo "$as_me:$LINENO: checking for $ac_word" >&5
5044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5045 if test "${ac_cv_prog_LEX+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048 if test -n "$LEX"; then
5049 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5053 do
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_LEX="$ac_prog"
5059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5061 fi
5062 done
5063 done
5064
5065 fi
5066 fi
5067 LEX=$ac_cv_prog_LEX
5068 if test -n "$LEX"; then
5069 echo "$as_me:$LINENO: result: $LEX" >&5
5070 echo "${ECHO_T}$LEX" >&6
5071 else
5072 echo "$as_me:$LINENO: result: no" >&5
5073 echo "${ECHO_T}no" >&6
5074 fi
5075
5076 test -n "$LEX" && break
5077 done
5078 test -n "$LEX" || LEX="$MISSING flex"
5079
5080 case " $build_configdirs " in
5081 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5082 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5083 esac
5084
5085 for ac_prog in flex
5086 do
5087 # Extract the first word of "$ac_prog", so it can be a program name with args.
5088 set dummy $ac_prog; ac_word=$2
5089 echo "$as_me:$LINENO: checking for $ac_word" >&5
5090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5091 if test "${ac_cv_prog_FLEX+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094 if test -n "$FLEX"; then
5095 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_FLEX="$ac_prog"
5105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5107 fi
5108 done
5109 done
5110
5111 fi
5112 fi
5113 FLEX=$ac_cv_prog_FLEX
5114 if test -n "$FLEX"; then
5115 echo "$as_me:$LINENO: result: $FLEX" >&5
5116 echo "${ECHO_T}$FLEX" >&6
5117 else
5118 echo "$as_me:$LINENO: result: no" >&5
5119 echo "${ECHO_T}no" >&6
5120 fi
5121
5122 test -n "$FLEX" && break
5123 done
5124 test -n "$FLEX" || FLEX="$MISSING flex"
5125
5126 case " $build_configdirs " in
5127 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5128 esac
5129
5130 for ac_prog in makeinfo
5131 do
5132 # Extract the first word of "$ac_prog", so it can be a program name with args.
5133 set dummy $ac_prog; ac_word=$2
5134 echo "$as_me:$LINENO: checking for $ac_word" >&5
5135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5136 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139 if test -n "$MAKEINFO"; then
5140 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_prog_MAKEINFO="$ac_prog"
5150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5152 fi
5153 done
5154 done
5155
5156 fi
5157 fi
5158 MAKEINFO=$ac_cv_prog_MAKEINFO
5159 if test -n "$MAKEINFO"; then
5160 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5161 echo "${ECHO_T}$MAKEINFO" >&6
5162 else
5163 echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6
5165 fi
5166
5167 test -n "$MAKEINFO" && break
5168 done
5169 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
5170
5171 case " $build_configdirs " in
5172 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5173 *)
5174
5175 # For an installed makeinfo, we require it to be from texinfo 4.2 or
5176 # higher, else we use the "missing" dummy.
5177 if ${MAKEINFO} --version \
5178 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])' >/dev/null 2>&1; then
5179 :
5180 else
5181 MAKEINFO="$MISSING makeinfo"
5182 fi
5183 ;;
5184
5185 esac
5186
5187 # FIXME: expect and dejagnu may become build tools?
5188
5189 for ac_prog in expect
5190 do
5191 # Extract the first word of "$ac_prog", so it can be a program name with args.
5192 set dummy $ac_prog; ac_word=$2
5193 echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195 if test "${ac_cv_prog_EXPECT+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198 if test -n "$EXPECT"; then
5199 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_EXPECT="$ac_prog"
5209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212 done
5213 done
5214
5215 fi
5216 fi
5217 EXPECT=$ac_cv_prog_EXPECT
5218 if test -n "$EXPECT"; then
5219 echo "$as_me:$LINENO: result: $EXPECT" >&5
5220 echo "${ECHO_T}$EXPECT" >&6
5221 else
5222 echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6
5224 fi
5225
5226 test -n "$EXPECT" && break
5227 done
5228 test -n "$EXPECT" || EXPECT="expect"
5229
5230 case " $configdirs " in
5231 *" expect "*)
5232 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
5233 ;;
5234 esac
5235
5236 for ac_prog in runtest
5237 do
5238 # Extract the first word of "$ac_prog", so it can be a program name with args.
5239 set dummy $ac_prog; ac_word=$2
5240 echo "$as_me:$LINENO: checking for $ac_word" >&5
5241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5242 if test "${ac_cv_prog_RUNTEST+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245 if test -n "$RUNTEST"; then
5246 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_RUNTEST="$ac_prog"
5256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259 done
5260 done
5261
5262 fi
5263 fi
5264 RUNTEST=$ac_cv_prog_RUNTEST
5265 if test -n "$RUNTEST"; then
5266 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5267 echo "${ECHO_T}$RUNTEST" >&6
5268 else
5269 echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6
5271 fi
5272
5273 test -n "$RUNTEST" && break
5274 done
5275 test -n "$RUNTEST" || RUNTEST="runtest"
5276
5277 case " $configdirs " in
5278 *" dejagnu "*)
5279 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
5280 ;;
5281 esac
5282
5283
5284 # Host tools.
5285 ncn_tool_prefix=
5286 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
5287 ncn_target_tool_prefix=
5288 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
5289
5290 for ncn_progname in ar; do
5291 if test -n "$ncn_tool_prefix"; then
5292 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5293 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5294 echo "$as_me:$LINENO: checking for $ac_word" >&5
5295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5296 if test "${ac_cv_prog_AR+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299 if test -n "$AR"; then
5300 ac_cv_prog_AR="$AR" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5304 do
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5312 fi
5313 done
5314 done
5315
5316 fi
5317 fi
5318 AR=$ac_cv_prog_AR
5319 if test -n "$AR"; then
5320 echo "$as_me:$LINENO: result: $AR" >&5
5321 echo "${ECHO_T}$AR" >&6
5322 else
5323 echo "$as_me:$LINENO: result: no" >&5
5324 echo "${ECHO_T}no" >&6
5325 fi
5326
5327 fi
5328 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
5329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5330 set dummy ${ncn_progname}; ac_word=$2
5331 echo "$as_me:$LINENO: checking for $ac_word" >&5
5332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5333 if test "${ac_cv_prog_AR+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336 if test -n "$AR"; then
5337 ac_cv_prog_AR="$AR" # Let the user override the test.
5338 else
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5341 do
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5346 ac_cv_prog_AR="${ncn_progname}"
5347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 break 2
5349 fi
5350 done
5351 done
5352
5353 fi
5354 fi
5355 AR=$ac_cv_prog_AR
5356 if test -n "$AR"; then
5357 echo "$as_me:$LINENO: result: $AR" >&5
5358 echo "${ECHO_T}$AR" >&6
5359 else
5360 echo "$as_me:$LINENO: result: no" >&5
5361 echo "${ECHO_T}no" >&6
5362 fi
5363
5364 fi
5365 test -n "$ac_cv_prog_AR" && break
5366 done
5367
5368 if test -z "$ac_cv_prog_AR" ; then
5369 set dummy ar
5370 if test $build = $host ; then
5371 AR="$2"
5372 else
5373 AR="${ncn_tool_prefix}$2"
5374 fi
5375 fi
5376
5377 for ncn_progname in as; do
5378 if test -n "$ncn_tool_prefix"; then
5379 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5380 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5381 echo "$as_me:$LINENO: checking for $ac_word" >&5
5382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383 if test "${ac_cv_prog_AS+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386 if test -n "$AS"; then
5387 ac_cv_prog_AS="$AS" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5399 fi
5400 done
5401 done
5402
5403 fi
5404 fi
5405 AS=$ac_cv_prog_AS
5406 if test -n "$AS"; then
5407 echo "$as_me:$LINENO: result: $AS" >&5
5408 echo "${ECHO_T}$AS" >&6
5409 else
5410 echo "$as_me:$LINENO: result: no" >&5
5411 echo "${ECHO_T}no" >&6
5412 fi
5413
5414 fi
5415 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
5416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5417 set dummy ${ncn_progname}; ac_word=$2
5418 echo "$as_me:$LINENO: checking for $ac_word" >&5
5419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5420 if test "${ac_cv_prog_AS+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423 if test -n "$AS"; then
5424 ac_cv_prog_AS="$AS" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_AS="${ncn_progname}"
5434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5436 fi
5437 done
5438 done
5439
5440 fi
5441 fi
5442 AS=$ac_cv_prog_AS
5443 if test -n "$AS"; then
5444 echo "$as_me:$LINENO: result: $AS" >&5
5445 echo "${ECHO_T}$AS" >&6
5446 else
5447 echo "$as_me:$LINENO: result: no" >&5
5448 echo "${ECHO_T}no" >&6
5449 fi
5450
5451 fi
5452 test -n "$ac_cv_prog_AS" && break
5453 done
5454
5455 if test -z "$ac_cv_prog_AS" ; then
5456 set dummy as
5457 if test $build = $host ; then
5458 AS="$2"
5459 else
5460 AS="${ncn_tool_prefix}$2"
5461 fi
5462 fi
5463
5464 for ncn_progname in dlltool; do
5465 if test -n "$ncn_tool_prefix"; then
5466 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5467 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5468 echo "$as_me:$LINENO: checking for $ac_word" >&5
5469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5470 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473 if test -n "$DLLTOOL"; then
5474 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5475 else
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5478 do
5479 IFS=$as_save_IFS
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 break 2
5486 fi
5487 done
5488 done
5489
5490 fi
5491 fi
5492 DLLTOOL=$ac_cv_prog_DLLTOOL
5493 if test -n "$DLLTOOL"; then
5494 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5495 echo "${ECHO_T}$DLLTOOL" >&6
5496 else
5497 echo "$as_me:$LINENO: result: no" >&5
5498 echo "${ECHO_T}no" >&6
5499 fi
5500
5501 fi
5502 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
5503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5504 set dummy ${ncn_progname}; ac_word=$2
5505 echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510 if test -n "$DLLTOOL"; then
5511 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_DLLTOOL="${ncn_progname}"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5523 fi
5524 done
5525 done
5526
5527 fi
5528 fi
5529 DLLTOOL=$ac_cv_prog_DLLTOOL
5530 if test -n "$DLLTOOL"; then
5531 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5532 echo "${ECHO_T}$DLLTOOL" >&6
5533 else
5534 echo "$as_me:$LINENO: result: no" >&5
5535 echo "${ECHO_T}no" >&6
5536 fi
5537
5538 fi
5539 test -n "$ac_cv_prog_DLLTOOL" && break
5540 done
5541
5542 if test -z "$ac_cv_prog_DLLTOOL" ; then
5543 set dummy dlltool
5544 if test $build = $host ; then
5545 DLLTOOL="$2"
5546 else
5547 DLLTOOL="${ncn_tool_prefix}$2"
5548 fi
5549 fi
5550
5551 for ncn_progname in ld; do
5552 if test -n "$ncn_tool_prefix"; then
5553 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5554 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5555 echo "$as_me:$LINENO: checking for $ac_word" >&5
5556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5557 if test "${ac_cv_prog_LD+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560 if test -n "$LD"; then
5561 ac_cv_prog_LD="$LD" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5565 do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5570 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574 done
5575 done
5576
5577 fi
5578 fi
5579 LD=$ac_cv_prog_LD
5580 if test -n "$LD"; then
5581 echo "$as_me:$LINENO: result: $LD" >&5
5582 echo "${ECHO_T}$LD" >&6
5583 else
5584 echo "$as_me:$LINENO: result: no" >&5
5585 echo "${ECHO_T}no" >&6
5586 fi
5587
5588 fi
5589 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
5590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5591 set dummy ${ncn_progname}; ac_word=$2
5592 echo "$as_me:$LINENO: checking for $ac_word" >&5
5593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5594 if test "${ac_cv_prog_LD+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597 if test -n "$LD"; then
5598 ac_cv_prog_LD="$LD" # Let the user override the test.
5599 else
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607 ac_cv_prog_LD="${ncn_progname}"
5608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5610 fi
5611 done
5612 done
5613
5614 fi
5615 fi
5616 LD=$ac_cv_prog_LD
5617 if test -n "$LD"; then
5618 echo "$as_me:$LINENO: result: $LD" >&5
5619 echo "${ECHO_T}$LD" >&6
5620 else
5621 echo "$as_me:$LINENO: result: no" >&5
5622 echo "${ECHO_T}no" >&6
5623 fi
5624
5625 fi
5626 test -n "$ac_cv_prog_LD" && break
5627 done
5628
5629 if test -z "$ac_cv_prog_LD" ; then
5630 set dummy ld
5631 if test $build = $host ; then
5632 LD="$2"
5633 else
5634 LD="${ncn_tool_prefix}$2"
5635 fi
5636 fi
5637
5638 for ncn_progname in lipo; do
5639 if test -n "$ncn_tool_prefix"; then
5640 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5641 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5642 echo "$as_me:$LINENO: checking for $ac_word" >&5
5643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5644 if test "${ac_cv_prog_LIPO+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647 if test -n "$LIPO"; then
5648 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5649 else
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 break 2
5660 fi
5661 done
5662 done
5663
5664 fi
5665 fi
5666 LIPO=$ac_cv_prog_LIPO
5667 if test -n "$LIPO"; then
5668 echo "$as_me:$LINENO: result: $LIPO" >&5
5669 echo "${ECHO_T}$LIPO" >&6
5670 else
5671 echo "$as_me:$LINENO: result: no" >&5
5672 echo "${ECHO_T}no" >&6
5673 fi
5674
5675 fi
5676 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
5677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5678 set dummy ${ncn_progname}; ac_word=$2
5679 echo "$as_me:$LINENO: checking for $ac_word" >&5
5680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5681 if test "${ac_cv_prog_LIPO+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684 if test -n "$LIPO"; then
5685 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694 ac_cv_prog_LIPO="${ncn_progname}"
5695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5697 fi
5698 done
5699 done
5700
5701 fi
5702 fi
5703 LIPO=$ac_cv_prog_LIPO
5704 if test -n "$LIPO"; then
5705 echo "$as_me:$LINENO: result: $LIPO" >&5
5706 echo "${ECHO_T}$LIPO" >&6
5707 else
5708 echo "$as_me:$LINENO: result: no" >&5
5709 echo "${ECHO_T}no" >&6
5710 fi
5711
5712 fi
5713 test -n "$ac_cv_prog_LIPO" && break
5714 done
5715
5716 if test -z "$ac_cv_prog_LIPO" ; then
5717 set dummy lipo
5718 if test $build = $host ; then
5719 LIPO="$2"
5720 else
5721 LIPO="${ncn_tool_prefix}$2"
5722 fi
5723 fi
5724
5725 for ncn_progname in nm; do
5726 if test -n "$ncn_tool_prefix"; then
5727 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5728 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5729 echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731 if test "${ac_cv_prog_NM+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 if test -n "$NM"; then
5735 ac_cv_prog_NM="$NM" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5747 fi
5748 done
5749 done
5750
5751 fi
5752 fi
5753 NM=$ac_cv_prog_NM
5754 if test -n "$NM"; then
5755 echo "$as_me:$LINENO: result: $NM" >&5
5756 echo "${ECHO_T}$NM" >&6
5757 else
5758 echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5760 fi
5761
5762 fi
5763 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
5764 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5765 set dummy ${ncn_progname}; ac_word=$2
5766 echo "$as_me:$LINENO: checking for $ac_word" >&5
5767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5768 if test "${ac_cv_prog_NM+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 if test -n "$NM"; then
5772 ac_cv_prog_NM="$NM" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_NM="${ncn_progname}"
5782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5784 fi
5785 done
5786 done
5787
5788 fi
5789 fi
5790 NM=$ac_cv_prog_NM
5791 if test -n "$NM"; then
5792 echo "$as_me:$LINENO: result: $NM" >&5
5793 echo "${ECHO_T}$NM" >&6
5794 else
5795 echo "$as_me:$LINENO: result: no" >&5
5796 echo "${ECHO_T}no" >&6
5797 fi
5798
5799 fi
5800 test -n "$ac_cv_prog_NM" && break
5801 done
5802
5803 if test -z "$ac_cv_prog_NM" ; then
5804 set dummy nm
5805 if test $build = $host ; then
5806 NM="$2"
5807 else
5808 NM="${ncn_tool_prefix}$2"
5809 fi
5810 fi
5811
5812 for ncn_progname in ranlib; do
5813 if test -n "$ncn_tool_prefix"; then
5814 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5815 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5816 echo "$as_me:$LINENO: checking for $ac_word" >&5
5817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5818 if test "${ac_cv_prog_RANLIB+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821 if test -n "$RANLIB"; then
5822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835 done
5836 done
5837
5838 fi
5839 fi
5840 RANLIB=$ac_cv_prog_RANLIB
5841 if test -n "$RANLIB"; then
5842 echo "$as_me:$LINENO: result: $RANLIB" >&5
5843 echo "${ECHO_T}$RANLIB" >&6
5844 else
5845 echo "$as_me:$LINENO: result: no" >&5
5846 echo "${ECHO_T}no" >&6
5847 fi
5848
5849 fi
5850 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
5851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5852 set dummy ${ncn_progname}; ac_word=$2
5853 echo "$as_me:$LINENO: checking for $ac_word" >&5
5854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5855 if test "${ac_cv_prog_RANLIB+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858 if test -n "$RANLIB"; then
5859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868 ac_cv_prog_RANLIB="${ncn_progname}"
5869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5871 fi
5872 done
5873 done
5874
5875 fi
5876 fi
5877 RANLIB=$ac_cv_prog_RANLIB
5878 if test -n "$RANLIB"; then
5879 echo "$as_me:$LINENO: result: $RANLIB" >&5
5880 echo "${ECHO_T}$RANLIB" >&6
5881 else
5882 echo "$as_me:$LINENO: result: no" >&5
5883 echo "${ECHO_T}no" >&6
5884 fi
5885
5886 fi
5887 test -n "$ac_cv_prog_RANLIB" && break
5888 done
5889
5890 if test -z "$ac_cv_prog_RANLIB" ; then
5891 RANLIB=":"
5892 fi
5893
5894 for ncn_progname in strip; do
5895 if test -n "$ncn_tool_prefix"; then
5896 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5897 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5898 echo "$as_me:$LINENO: checking for $ac_word" >&5
5899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5900 if test "${ac_cv_prog_STRIP+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903 if test -n "$STRIP"; then
5904 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5905 else
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH
5908 do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 break 2
5916 fi
5917 done
5918 done
5919
5920 fi
5921 fi
5922 STRIP=$ac_cv_prog_STRIP
5923 if test -n "$STRIP"; then
5924 echo "$as_me:$LINENO: result: $STRIP" >&5
5925 echo "${ECHO_T}$STRIP" >&6
5926 else
5927 echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6
5929 fi
5930
5931 fi
5932 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
5933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5934 set dummy ${ncn_progname}; ac_word=$2
5935 echo "$as_me:$LINENO: checking for $ac_word" >&5
5936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5937 if test "${ac_cv_prog_STRIP+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5940 if test -n "$STRIP"; then
5941 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5945 do
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950 ac_cv_prog_STRIP="${ncn_progname}"
5951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5953 fi
5954 done
5955 done
5956
5957 fi
5958 fi
5959 STRIP=$ac_cv_prog_STRIP
5960 if test -n "$STRIP"; then
5961 echo "$as_me:$LINENO: result: $STRIP" >&5
5962 echo "${ECHO_T}$STRIP" >&6
5963 else
5964 echo "$as_me:$LINENO: result: no" >&5
5965 echo "${ECHO_T}no" >&6
5966 fi
5967
5968 fi
5969 test -n "$ac_cv_prog_STRIP" && break
5970 done
5971
5972 if test -z "$ac_cv_prog_STRIP" ; then
5973 STRIP=":"
5974 fi
5975
5976 for ncn_progname in windres; do
5977 if test -n "$ncn_tool_prefix"; then
5978 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5979 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5980 echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5982 if test "${ac_cv_prog_WINDRES+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985 if test -n "$WINDRES"; then
5986 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5987 else
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 for as_dir in $PATH
5990 do
5991 IFS=$as_save_IFS
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5995 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 break 2
5998 fi
5999 done
6000 done
6001
6002 fi
6003 fi
6004 WINDRES=$ac_cv_prog_WINDRES
6005 if test -n "$WINDRES"; then
6006 echo "$as_me:$LINENO: result: $WINDRES" >&5
6007 echo "${ECHO_T}$WINDRES" >&6
6008 else
6009 echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6
6011 fi
6012
6013 fi
6014 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6016 set dummy ${ncn_progname}; ac_word=$2
6017 echo "$as_me:$LINENO: checking for $ac_word" >&5
6018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6019 if test "${ac_cv_prog_WINDRES+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022 if test -n "$WINDRES"; then
6023 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6032 ac_cv_prog_WINDRES="${ncn_progname}"
6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036 done
6037 done
6038
6039 fi
6040 fi
6041 WINDRES=$ac_cv_prog_WINDRES
6042 if test -n "$WINDRES"; then
6043 echo "$as_me:$LINENO: result: $WINDRES" >&5
6044 echo "${ECHO_T}$WINDRES" >&6
6045 else
6046 echo "$as_me:$LINENO: result: no" >&5
6047 echo "${ECHO_T}no" >&6
6048 fi
6049
6050 fi
6051 test -n "$ac_cv_prog_WINDRES" && break
6052 done
6053
6054 if test -z "$ac_cv_prog_WINDRES" ; then
6055 set dummy windres
6056 if test $build = $host ; then
6057 WINDRES="$2"
6058 else
6059 WINDRES="${ncn_tool_prefix}$2"
6060 fi
6061 fi
6062
6063 for ncn_progname in objcopy; do
6064 if test -n "$ncn_tool_prefix"; then
6065 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6066 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6067 echo "$as_me:$LINENO: checking for $ac_word" >&5
6068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6069 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072 if test -n "$OBJCOPY"; then
6073 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6085 fi
6086 done
6087 done
6088
6089 fi
6090 fi
6091 OBJCOPY=$ac_cv_prog_OBJCOPY
6092 if test -n "$OBJCOPY"; then
6093 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6094 echo "${ECHO_T}$OBJCOPY" >&6
6095 else
6096 echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6
6098 fi
6099
6100 fi
6101 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6102 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6103 set dummy ${ncn_progname}; ac_word=$2
6104 echo "$as_me:$LINENO: checking for $ac_word" >&5
6105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6106 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109 if test -n "$OBJCOPY"; then
6110 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119 ac_cv_prog_OBJCOPY="${ncn_progname}"
6120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 break 2
6122 fi
6123 done
6124 done
6125
6126 fi
6127 fi
6128 OBJCOPY=$ac_cv_prog_OBJCOPY
6129 if test -n "$OBJCOPY"; then
6130 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6131 echo "${ECHO_T}$OBJCOPY" >&6
6132 else
6133 echo "$as_me:$LINENO: result: no" >&5
6134 echo "${ECHO_T}no" >&6
6135 fi
6136
6137 fi
6138 test -n "$ac_cv_prog_OBJCOPY" && break
6139 done
6140
6141 if test -z "$ac_cv_prog_OBJCOPY" ; then
6142 set dummy objcopy
6143 if test $build = $host ; then
6144 OBJCOPY="$2"
6145 else
6146 OBJCOPY="${ncn_tool_prefix}$2"
6147 fi
6148 fi
6149
6150 for ncn_progname in objdump; do
6151 if test -n "$ncn_tool_prefix"; then
6152 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6153 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6154 echo "$as_me:$LINENO: checking for $ac_word" >&5
6155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6156 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 if test -n "$OBJDUMP"; then
6160 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6161 else
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6164 do
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6172 fi
6173 done
6174 done
6175
6176 fi
6177 fi
6178 OBJDUMP=$ac_cv_prog_OBJDUMP
6179 if test -n "$OBJDUMP"; then
6180 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6181 echo "${ECHO_T}$OBJDUMP" >&6
6182 else
6183 echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6
6185 fi
6186
6187 fi
6188 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6190 set dummy ${ncn_progname}; ac_word=$2
6191 echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6193 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196 if test -n "$OBJDUMP"; then
6197 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6198 else
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202 IFS=$as_save_IFS
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6206 ac_cv_prog_OBJDUMP="${ncn_progname}"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 break 2
6209 fi
6210 done
6211 done
6212
6213 fi
6214 fi
6215 OBJDUMP=$ac_cv_prog_OBJDUMP
6216 if test -n "$OBJDUMP"; then
6217 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6218 echo "${ECHO_T}$OBJDUMP" >&6
6219 else
6220 echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6
6222 fi
6223
6224 fi
6225 test -n "$ac_cv_prog_OBJDUMP" && break
6226 done
6227
6228 if test -z "$ac_cv_prog_OBJDUMP" ; then
6229 set dummy objdump
6230 if test $build = $host ; then
6231 OBJDUMP="$2"
6232 else
6233 OBJDUMP="${ncn_tool_prefix}$2"
6234 fi
6235 fi
6236
6237
6238
6239
6240
6241
6242
6243 # Target tools.
6244
6245 # Check whether --with-build-time-tools or --without-build-time-tools was given.
6246 if test "${with_build_time_tools+set}" = set; then
6247 withval="$with_build_time_tools"
6248 case x"$withval" in
6249 x/*) ;;
6250 *)
6251 with_build_time_tools=
6252 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
6253 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
6254 ;;
6255 esac
6256 else
6257 with_build_time_tools=
6258 fi;
6259
6260 if test -n "$with_build_time_tools"; then
6261 for ncn_progname in cc gcc; do
6262 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6263 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6264 if test -x $with_build_time_tools/${ncn_progname}; then
6265 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6266 echo "$as_me:$LINENO: result: yes" >&5
6267 echo "${ECHO_T}yes" >&6
6268 break
6269 else
6270 echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6
6272 fi
6273 done
6274 fi
6275
6276 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
6277 for ncn_progname in cc gcc; do
6278 if test -n "$ncn_target_tool_prefix"; then
6279 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6280 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6281 echo "$as_me:$LINENO: checking for $ac_word" >&5
6282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6283 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286 if test -n "$CC_FOR_TARGET"; then
6287 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6288 else
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 for as_dir in $PATH
6291 do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6296 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 break 2
6299 fi
6300 done
6301 done
6302
6303 fi
6304 fi
6305 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
6306 if test -n "$CC_FOR_TARGET"; then
6307 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6308 echo "${ECHO_T}$CC_FOR_TARGET" >&6
6309 else
6310 echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6
6312 fi
6313
6314 fi
6315 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
6316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6317 set dummy ${ncn_progname}; ac_word=$2
6318 echo "$as_me:$LINENO: checking for $ac_word" >&5
6319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6320 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323 if test -n "$CC_FOR_TARGET"; then
6324 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6325 else
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6328 do
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6333 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
6334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 break 2
6336 fi
6337 done
6338 done
6339
6340 fi
6341 fi
6342 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
6343 if test -n "$CC_FOR_TARGET"; then
6344 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6345 echo "${ECHO_T}$CC_FOR_TARGET" >&6
6346 else
6347 echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6
6349 fi
6350
6351 fi
6352 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
6353 done
6354 fi
6355
6356 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
6357 set dummy cc gcc
6358 if test $build = $target ; then
6359 CC_FOR_TARGET="$2"
6360 else
6361 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
6362 fi
6363 fi
6364
6365 if test -n "$with_build_time_tools"; then
6366 for ncn_progname in c++ g++ cxx gxx; do
6367 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6368 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6369 if test -x $with_build_time_tools/${ncn_progname}; then
6370 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6371 echo "$as_me:$LINENO: result: yes" >&5
6372 echo "${ECHO_T}yes" >&6
6373 break
6374 else
6375 echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6
6377 fi
6378 done
6379 fi
6380
6381 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
6382 for ncn_progname in c++ g++ cxx gxx; do
6383 if test -n "$ncn_target_tool_prefix"; then
6384 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6385 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6386 echo "$as_me:$LINENO: checking for $ac_word" >&5
6387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6388 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391 if test -n "$CXX_FOR_TARGET"; then
6392 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6401 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405 done
6406 done
6407
6408 fi
6409 fi
6410 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
6411 if test -n "$CXX_FOR_TARGET"; then
6412 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6413 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
6414 else
6415 echo "$as_me:$LINENO: result: no" >&5
6416 echo "${ECHO_T}no" >&6
6417 fi
6418
6419 fi
6420 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
6421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6422 set dummy ${ncn_progname}; ac_word=$2
6423 echo "$as_me:$LINENO: checking for $ac_word" >&5
6424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6425 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428 if test -n "$CXX_FOR_TARGET"; then
6429 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
6439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 break 2
6441 fi
6442 done
6443 done
6444
6445 fi
6446 fi
6447 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
6448 if test -n "$CXX_FOR_TARGET"; then
6449 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6450 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
6451 else
6452 echo "$as_me:$LINENO: result: no" >&5
6453 echo "${ECHO_T}no" >&6
6454 fi
6455
6456 fi
6457 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
6458 done
6459 fi
6460
6461 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
6462 set dummy c++ g++ cxx gxx
6463 if test $build = $target ; then
6464 CXX_FOR_TARGET="$2"
6465 else
6466 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
6467 fi
6468 fi
6469
6470 if test -n "$with_build_time_tools"; then
6471 for ncn_progname in gcc; do
6472 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6473 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6474 if test -x $with_build_time_tools/${ncn_progname}; then
6475 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6476 echo "$as_me:$LINENO: result: yes" >&5
6477 echo "${ECHO_T}yes" >&6
6478 break
6479 else
6480 echo "$as_me:$LINENO: result: no" >&5
6481 echo "${ECHO_T}no" >&6
6482 fi
6483 done
6484 fi
6485
6486 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
6487 for ncn_progname in gcc; do
6488 if test -n "$ncn_target_tool_prefix"; then
6489 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6490 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6491 echo "$as_me:$LINENO: checking for $ac_word" >&5
6492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6493 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496 if test -n "$GCC_FOR_TARGET"; then
6497 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
6498 else
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6501 do
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6506 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 break 2
6509 fi
6510 done
6511 done
6512
6513 fi
6514 fi
6515 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
6516 if test -n "$GCC_FOR_TARGET"; then
6517 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6518 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
6519 else
6520 echo "$as_me:$LINENO: result: no" >&5
6521 echo "${ECHO_T}no" >&6
6522 fi
6523
6524 fi
6525 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
6526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6527 set dummy ${ncn_progname}; ac_word=$2
6528 echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6530 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533 if test -n "$GCC_FOR_TARGET"; then
6534 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539 IFS=$as_save_IFS
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
6544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 break 2
6546 fi
6547 done
6548 done
6549
6550 fi
6551 fi
6552 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
6553 if test -n "$GCC_FOR_TARGET"; then
6554 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6555 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
6556 else
6557 echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6
6559 fi
6560
6561 fi
6562 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
6563 done
6564 fi
6565
6566 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
6567 GCC_FOR_TARGET="${CC_FOR_TARGET}"
6568 fi
6569
6570 if test -n "$with_build_time_tools"; then
6571 for ncn_progname in gcj; do
6572 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6573 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6574 if test -x $with_build_time_tools/${ncn_progname}; then
6575 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6576 echo "$as_me:$LINENO: result: yes" >&5
6577 echo "${ECHO_T}yes" >&6
6578 break
6579 else
6580 echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6
6582 fi
6583 done
6584 fi
6585
6586 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
6587 for ncn_progname in gcj; do
6588 if test -n "$ncn_target_tool_prefix"; then
6589 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6590 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6591 echo "$as_me:$LINENO: checking for $ac_word" >&5
6592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6593 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 else
6596 if test -n "$GCJ_FOR_TARGET"; then
6597 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610 done
6611 done
6612
6613 fi
6614 fi
6615 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
6616 if test -n "$GCJ_FOR_TARGET"; then
6617 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
6618 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
6619 else
6620 echo "$as_me:$LINENO: result: no" >&5
6621 echo "${ECHO_T}no" >&6
6622 fi
6623
6624 fi
6625 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
6626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6627 set dummy ${ncn_progname}; ac_word=$2
6628 echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6630 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 if test -n "$GCJ_FOR_TARGET"; then
6634 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6635 else
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6643 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6646 fi
6647 done
6648 done
6649
6650 fi
6651 fi
6652 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
6653 if test -n "$GCJ_FOR_TARGET"; then
6654 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
6655 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
6656 else
6657 echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6
6659 fi
6660
6661 fi
6662 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
6663 done
6664 fi
6665
6666 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
6667 set dummy gcj
6668 if test $build = $target ; then
6669 GCJ_FOR_TARGET="$2"
6670 else
6671 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
6672 fi
6673 fi
6674
6675 if test -n "$with_build_time_tools"; then
6676 for ncn_progname in gfortran; do
6677 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6678 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6679 if test -x $with_build_time_tools/${ncn_progname}; then
6680 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6681 echo "$as_me:$LINENO: result: yes" >&5
6682 echo "${ECHO_T}yes" >&6
6683 break
6684 else
6685 echo "$as_me:$LINENO: result: no" >&5
6686 echo "${ECHO_T}no" >&6
6687 fi
6688 done
6689 fi
6690
6691 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
6692 for ncn_progname in gfortran; do
6693 if test -n "$ncn_target_tool_prefix"; then
6694 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6695 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6696 echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6698 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701 if test -n "$GFORTRAN_FOR_TARGET"; then
6702 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 break 2
6714 fi
6715 done
6716 done
6717
6718 fi
6719 fi
6720 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
6721 if test -n "$GFORTRAN_FOR_TARGET"; then
6722 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
6723 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
6724 else
6725 echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6
6727 fi
6728
6729 fi
6730 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
6731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6732 set dummy ${ncn_progname}; ac_word=$2
6733 echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6735 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 if test -n "$GFORTRAN_FOR_TARGET"; then
6739 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744 IFS=$as_save_IFS
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6748 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
6749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 break 2
6751 fi
6752 done
6753 done
6754
6755 fi
6756 fi
6757 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
6758 if test -n "$GFORTRAN_FOR_TARGET"; then
6759 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
6760 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
6761 else
6762 echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6
6764 fi
6765
6766 fi
6767 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
6768 done
6769 fi
6770
6771 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
6772 set dummy gfortran
6773 if test $build = $target ; then
6774 GFORTRAN_FOR_TARGET="$2"
6775 else
6776 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
6777 fi
6778 fi
6779
6780
6781
6782 # The user is always right.
6783 if test "${PATH_SEPARATOR+set}" != set; then
6784 echo "#! /bin/sh" >conf$$.sh
6785 echo "exit 0" >>conf$$.sh
6786 chmod +x conf$$.sh
6787 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6788 PATH_SEPARATOR=';'
6789 else
6790 PATH_SEPARATOR=:
6791 fi
6792 rm -f conf$$.sh
6793 fi
6794
6795
6796
6797 if test "x$exec_prefix" = xNONE; then
6798 if test "x$prefix" = xNONE; then
6799 gcc_cv_tool_prefix=$ac_default_prefix
6800 else
6801 gcc_cv_tool_prefix=$prefix
6802 fi
6803 else
6804 gcc_cv_tool_prefix=$exec_prefix
6805 fi
6806
6807 # If there is no compiler in the tree, use the PATH only. In any
6808 # case, if there is no compiler in the tree nobody should use
6809 # AS_FOR_TARGET and LD_FOR_TARGET.
6810 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6811 gcc_version=`cat $srcdir/gcc/BASE-VER`
6812 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6813 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6814 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6815 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6816 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6817 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6818 else
6819 gcc_cv_tool_dirs=
6820 fi
6821
6822 if test x$build = x$target && test -n "$md_exec_prefix"; then
6823 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6824 fi
6825
6826
6827
6828 cat > conftest.c << \EOF
6829 #ifdef __GNUC__
6830 gcc_yay;
6831 #endif
6832 EOF
6833 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
6834 have_gcc_for_target=yes
6835 else
6836 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
6837 have_gcc_for_target=no
6838 fi
6839 rm conftest.c
6840
6841
6842
6843
6844 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
6845 if test -n "$with_build_time_tools"; then
6846 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
6847 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
6848 if test -x $with_build_time_tools/ar; then
6849 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
6850 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
6851 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
6852 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
6853 else
6854 echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6
6856 fi
6857 elif test $build != $host && test $have_gcc_for_target = yes; then
6858 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
6859 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
6860 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
6861 fi
6862 fi
6863 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
6864 # Extract the first word of "ar", so it can be a program name with args.
6865 set dummy ar; ac_word=$2
6866 echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6868 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871 case $AR_FOR_TARGET in
6872 [\\/]* | ?:[\\/]*)
6873 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
6874 ;;
6875 *)
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $gcc_cv_tool_dirs
6878 do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
6884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887 done
6888 done
6889
6890 ;;
6891 esac
6892 fi
6893 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
6894
6895 if test -n "$AR_FOR_TARGET"; then
6896 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
6897 echo "${ECHO_T}$AR_FOR_TARGET" >&6
6898 else
6899 echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6
6901 fi
6902
6903 fi
6904 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
6905 if test -n "$with_build_time_tools"; then
6906 for ncn_progname in ar; do
6907 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6908 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6909 if test -x $with_build_time_tools/${ncn_progname}; then
6910 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6911 echo "$as_me:$LINENO: result: yes" >&5
6912 echo "${ECHO_T}yes" >&6
6913 break
6914 else
6915 echo "$as_me:$LINENO: result: no" >&5
6916 echo "${ECHO_T}no" >&6
6917 fi
6918 done
6919 fi
6920
6921 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
6922 for ncn_progname in ar; do
6923 if test -n "$ncn_target_tool_prefix"; then
6924 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6925 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6926 echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6928 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931 if test -n "$AR_FOR_TARGET"; then
6932 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6941 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945 done
6946 done
6947
6948 fi
6949 fi
6950 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
6951 if test -n "$AR_FOR_TARGET"; then
6952 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
6953 echo "${ECHO_T}$AR_FOR_TARGET" >&6
6954 else
6955 echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6
6957 fi
6958
6959 fi
6960 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
6961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6962 set dummy ${ncn_progname}; ac_word=$2
6963 echo "$as_me:$LINENO: checking for $ac_word" >&5
6964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6965 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968 if test -n "$AR_FOR_TARGET"; then
6969 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
6970 else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6973 do
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6978 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
6979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6981 fi
6982 done
6983 done
6984
6985 fi
6986 fi
6987 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
6988 if test -n "$AR_FOR_TARGET"; then
6989 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
6990 echo "${ECHO_T}$AR_FOR_TARGET" >&6
6991 else
6992 echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6
6994 fi
6995
6996 fi
6997 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
6998 done
6999 fi
7000
7001 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7002 set dummy ar
7003 if test $build = $target ; then
7004 AR_FOR_TARGET="$2"
7005 else
7006 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7007 fi
7008 fi
7009
7010 else
7011 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7012 fi
7013
7014
7015
7016
7017 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7018 if test -n "$with_build_time_tools"; then
7019 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
7020 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
7021 if test -x $with_build_time_tools/as; then
7022 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7023 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7024 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
7025 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
7026 else
7027 echo "$as_me:$LINENO: result: no" >&5
7028 echo "${ECHO_T}no" >&6
7029 fi
7030 elif test $build != $host && test $have_gcc_for_target = yes; then
7031 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7032 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7033 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7034 fi
7035 fi
7036 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7037 # Extract the first word of "as", so it can be a program name with args.
7038 set dummy as; ac_word=$2
7039 echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7041 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044 case $AS_FOR_TARGET in
7045 [\\/]* | ?:[\\/]*)
7046 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7047 ;;
7048 *)
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $gcc_cv_tool_dirs
7051 do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7056 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 break 2
7059 fi
7060 done
7061 done
7062
7063 ;;
7064 esac
7065 fi
7066 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7067
7068 if test -n "$AS_FOR_TARGET"; then
7069 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7070 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7071 else
7072 echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6
7074 fi
7075
7076 fi
7077 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7078 if test -n "$with_build_time_tools"; then
7079 for ncn_progname in as; do
7080 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7081 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7082 if test -x $with_build_time_tools/${ncn_progname}; then
7083 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7084 echo "$as_me:$LINENO: result: yes" >&5
7085 echo "${ECHO_T}yes" >&6
7086 break
7087 else
7088 echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6
7090 fi
7091 done
7092 fi
7093
7094 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7095 for ncn_progname in as; do
7096 if test -n "$ncn_target_tool_prefix"; then
7097 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7098 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7099 echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7101 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104 if test -n "$AS_FOR_TARGET"; then
7105 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118 done
7119 done
7120
7121 fi
7122 fi
7123 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7124 if test -n "$AS_FOR_TARGET"; then
7125 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7126 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7127 else
7128 echo "$as_me:$LINENO: result: no" >&5
7129 echo "${ECHO_T}no" >&6
7130 fi
7131
7132 fi
7133 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7135 set dummy ${ncn_progname}; ac_word=$2
7136 echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7138 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141 if test -n "$AS_FOR_TARGET"; then
7142 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
7152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155 done
7156 done
7157
7158 fi
7159 fi
7160 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7161 if test -n "$AS_FOR_TARGET"; then
7162 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7163 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7164 else
7165 echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6
7167 fi
7168
7169 fi
7170 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7171 done
7172 fi
7173
7174 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7175 set dummy as
7176 if test $build = $target ; then
7177 AS_FOR_TARGET="$2"
7178 else
7179 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
7180 fi
7181 fi
7182
7183 else
7184 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7185 fi
7186
7187
7188
7189
7190 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7191 if test -n "$with_build_time_tools"; then
7192 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
7193 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
7194 if test -x $with_build_time_tools/dlltool; then
7195 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7196 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7197 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7198 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
7199 else
7200 echo "$as_me:$LINENO: result: no" >&5
7201 echo "${ECHO_T}no" >&6
7202 fi
7203 elif test $build != $host && test $have_gcc_for_target = yes; then
7204 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7205 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7206 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7207 fi
7208 fi
7209 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7210 # Extract the first word of "dlltool", so it can be a program name with args.
7211 set dummy dlltool; ac_word=$2
7212 echo "$as_me:$LINENO: checking for $ac_word" >&5
7213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7214 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 else
7217 case $DLLTOOL_FOR_TARGET in
7218 [\\/]* | ?:[\\/]*)
7219 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7220 ;;
7221 *)
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 for as_dir in $gcc_cv_tool_dirs
7224 do
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 break 2
7232 fi
7233 done
7234 done
7235
7236 ;;
7237 esac
7238 fi
7239 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7240
7241 if test -n "$DLLTOOL_FOR_TARGET"; then
7242 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7243 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7244 else
7245 echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6
7247 fi
7248
7249 fi
7250 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7251 if test -n "$with_build_time_tools"; then
7252 for ncn_progname in dlltool; do
7253 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7254 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7255 if test -x $with_build_time_tools/${ncn_progname}; then
7256 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7257 echo "$as_me:$LINENO: result: yes" >&5
7258 echo "${ECHO_T}yes" >&6
7259 break
7260 else
7261 echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6
7263 fi
7264 done
7265 fi
7266
7267 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
7268 for ncn_progname in dlltool; do
7269 if test -n "$ncn_target_tool_prefix"; then
7270 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7271 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7272 echo "$as_me:$LINENO: checking for $ac_word" >&5
7273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7274 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277 if test -n "$DLLTOOL_FOR_TARGET"; then
7278 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7287 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 break 2
7290 fi
7291 done
7292 done
7293
7294 fi
7295 fi
7296 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
7297 if test -n "$DLLTOOL_FOR_TARGET"; then
7298 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7299 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7300 else
7301 echo "$as_me:$LINENO: result: no" >&5
7302 echo "${ECHO_T}no" >&6
7303 fi
7304
7305 fi
7306 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
7307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7308 set dummy ${ncn_progname}; ac_word=$2
7309 echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314 if test -n "$DLLTOOL_FOR_TARGET"; then
7315 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7319 do
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7327 fi
7328 done
7329 done
7330
7331 fi
7332 fi
7333 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
7334 if test -n "$DLLTOOL_FOR_TARGET"; then
7335 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7336 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7337 else
7338 echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6
7340 fi
7341
7342 fi
7343 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
7344 done
7345 fi
7346
7347 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
7348 set dummy dlltool
7349 if test $build = $target ; then
7350 DLLTOOL_FOR_TARGET="$2"
7351 else
7352 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
7353 fi
7354 fi
7355
7356 else
7357 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7358 fi
7359
7360
7361
7362
7363 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7364 if test -n "$with_build_time_tools"; then
7365 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
7366 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
7367 if test -x $with_build_time_tools/ld; then
7368 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
7369 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
7370 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
7371 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6
7375 fi
7376 elif test $build != $host && test $have_gcc_for_target = yes; then
7377 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
7378 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
7379 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
7380 fi
7381 fi
7382 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7383 # Extract the first word of "ld", so it can be a program name with args.
7384 set dummy ld; ac_word=$2
7385 echo "$as_me:$LINENO: checking for $ac_word" >&5
7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7387 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390 case $LD_FOR_TARGET in
7391 [\\/]* | ?:[\\/]*)
7392 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
7393 ;;
7394 *)
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $gcc_cv_tool_dirs
7397 do
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 break 2
7405 fi
7406 done
7407 done
7408
7409 ;;
7410 esac
7411 fi
7412 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
7413
7414 if test -n "$LD_FOR_TARGET"; then
7415 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7416 echo "${ECHO_T}$LD_FOR_TARGET" >&6
7417 else
7418 echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6
7420 fi
7421
7422 fi
7423 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7424 if test -n "$with_build_time_tools"; then
7425 for ncn_progname in ld; do
7426 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7427 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7428 if test -x $with_build_time_tools/${ncn_progname}; then
7429 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7430 echo "$as_me:$LINENO: result: yes" >&5
7431 echo "${ECHO_T}yes" >&6
7432 break
7433 else
7434 echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6
7436 fi
7437 done
7438 fi
7439
7440 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
7441 for ncn_progname in ld; do
7442 if test -n "$ncn_target_tool_prefix"; then
7443 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7444 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7445 echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7447 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450 if test -n "$LD_FOR_TARGET"; then
7451 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 break 2
7463 fi
7464 done
7465 done
7466
7467 fi
7468 fi
7469 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
7470 if test -n "$LD_FOR_TARGET"; then
7471 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7472 echo "${ECHO_T}$LD_FOR_TARGET" >&6
7473 else
7474 echo "$as_me:$LINENO: result: no" >&5
7475 echo "${ECHO_T}no" >&6
7476 fi
7477
7478 fi
7479 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
7480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7481 set dummy ${ncn_progname}; ac_word=$2
7482 echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7484 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487 if test -n "$LD_FOR_TARGET"; then
7488 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
7489 else
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7492 do
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
7498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 break 2
7500 fi
7501 done
7502 done
7503
7504 fi
7505 fi
7506 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
7507 if test -n "$LD_FOR_TARGET"; then
7508 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7509 echo "${ECHO_T}$LD_FOR_TARGET" >&6
7510 else
7511 echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6
7513 fi
7514
7515 fi
7516 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
7517 done
7518 fi
7519
7520 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
7521 set dummy ld
7522 if test $build = $target ; then
7523 LD_FOR_TARGET="$2"
7524 else
7525 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
7526 fi
7527 fi
7528
7529 else
7530 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
7531 fi
7532
7533
7534
7535
7536 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7537 if test -n "$with_build_time_tools"; then
7538 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
7539 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
7540 if test -x $with_build_time_tools/lipo; then
7541 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
7542 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
7543 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
7544 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
7545 else
7546 echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6
7548 fi
7549 elif test $build != $host && test $have_gcc_for_target = yes; then
7550 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
7551 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
7552 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
7553 fi
7554 fi
7555 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7556 # Extract the first word of "lipo", so it can be a program name with args.
7557 set dummy lipo; ac_word=$2
7558 echo "$as_me:$LINENO: checking for $ac_word" >&5
7559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7560 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563 case $LIPO_FOR_TARGET in
7564 [\\/]* | ?:[\\/]*)
7565 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
7566 ;;
7567 *)
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $gcc_cv_tool_dirs
7570 do
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7575 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7578 fi
7579 done
7580 done
7581
7582 ;;
7583 esac
7584 fi
7585 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
7586
7587 if test -n "$LIPO_FOR_TARGET"; then
7588 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7589 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
7590 else
7591 echo "$as_me:$LINENO: result: no" >&5
7592 echo "${ECHO_T}no" >&6
7593 fi
7594
7595 fi
7596 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7597 if test -n "$with_build_time_tools"; then
7598 for ncn_progname in lipo; do
7599 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7600 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7601 if test -x $with_build_time_tools/${ncn_progname}; then
7602 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7603 echo "$as_me:$LINENO: result: yes" >&5
7604 echo "${ECHO_T}yes" >&6
7605 break
7606 else
7607 echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6
7609 fi
7610 done
7611 fi
7612
7613 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
7614 for ncn_progname in lipo; do
7615 if test -n "$ncn_target_tool_prefix"; then
7616 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7617 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7618 echo "$as_me:$LINENO: checking for $ac_word" >&5
7619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7620 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623 if test -n "$LIPO_FOR_TARGET"; then
7624 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # 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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 break 2
7636 fi
7637 done
7638 done
7639
7640 fi
7641 fi
7642 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
7643 if test -n "$LIPO_FOR_TARGET"; then
7644 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7645 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
7646 else
7647 echo "$as_me:$LINENO: result: no" >&5
7648 echo "${ECHO_T}no" >&6
7649 fi
7650
7651 fi
7652 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
7653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7654 set dummy ${ncn_progname}; ac_word=$2
7655 echo "$as_me:$LINENO: checking for $ac_word" >&5
7656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7657 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660 if test -n "$LIPO_FOR_TARGET"; then
7661 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
7671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7673 fi
7674 done
7675 done
7676
7677 fi
7678 fi
7679 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
7680 if test -n "$LIPO_FOR_TARGET"; then
7681 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7682 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
7683 else
7684 echo "$as_me:$LINENO: result: no" >&5
7685 echo "${ECHO_T}no" >&6
7686 fi
7687
7688 fi
7689 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
7690 done
7691 fi
7692
7693 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
7694 set dummy lipo
7695 if test $build = $target ; then
7696 LIPO_FOR_TARGET="$2"
7697 else
7698 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
7699 fi
7700 fi
7701
7702 else
7703 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
7704 fi
7705
7706
7707
7708
7709 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
7710 if test -n "$with_build_time_tools"; then
7711 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
7712 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
7713 if test -x $with_build_time_tools/nm; then
7714 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
7715 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
7716 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
7717 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
7718 else
7719 echo "$as_me:$LINENO: result: no" >&5
7720 echo "${ECHO_T}no" >&6
7721 fi
7722 elif test $build != $host && test $have_gcc_for_target = yes; then
7723 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
7724 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
7725 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
7726 fi
7727 fi
7728 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
7729 # Extract the first word of "nm", so it can be a program name with args.
7730 set dummy nm; ac_word=$2
7731 echo "$as_me:$LINENO: checking for $ac_word" >&5
7732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7733 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736 case $NM_FOR_TARGET in
7737 [\\/]* | ?:[\\/]*)
7738 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
7739 ;;
7740 *)
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $gcc_cv_tool_dirs
7743 do
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7748 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 break 2
7751 fi
7752 done
7753 done
7754
7755 ;;
7756 esac
7757 fi
7758 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
7759
7760 if test -n "$NM_FOR_TARGET"; then
7761 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
7762 echo "${ECHO_T}$NM_FOR_TARGET" >&6
7763 else
7764 echo "$as_me:$LINENO: result: no" >&5
7765 echo "${ECHO_T}no" >&6
7766 fi
7767
7768 fi
7769 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
7770 if test -n "$with_build_time_tools"; then
7771 for ncn_progname in nm; do
7772 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7773 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7774 if test -x $with_build_time_tools/${ncn_progname}; then
7775 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7776 echo "$as_me:$LINENO: result: yes" >&5
7777 echo "${ECHO_T}yes" >&6
7778 break
7779 else
7780 echo "$as_me:$LINENO: result: no" >&5
7781 echo "${ECHO_T}no" >&6
7782 fi
7783 done
7784 fi
7785
7786 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
7787 for ncn_progname in nm; do
7788 if test -n "$ncn_target_tool_prefix"; then
7789 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7790 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7791 echo "$as_me:$LINENO: checking for $ac_word" >&5
7792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7793 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796 if test -n "$NM_FOR_TARGET"; then
7797 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7801 do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810 done
7811 done
7812
7813 fi
7814 fi
7815 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
7816 if test -n "$NM_FOR_TARGET"; then
7817 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
7818 echo "${ECHO_T}$NM_FOR_TARGET" >&6
7819 else
7820 echo "$as_me:$LINENO: result: no" >&5
7821 echo "${ECHO_T}no" >&6
7822 fi
7823
7824 fi
7825 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
7826 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7827 set dummy ${ncn_progname}; ac_word=$2
7828 echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7830 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833 if test -n "$NM_FOR_TARGET"; then
7834 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
7835 else
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7838 do
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
7844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 break 2
7846 fi
7847 done
7848 done
7849
7850 fi
7851 fi
7852 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
7853 if test -n "$NM_FOR_TARGET"; then
7854 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
7855 echo "${ECHO_T}$NM_FOR_TARGET" >&6
7856 else
7857 echo "$as_me:$LINENO: result: no" >&5
7858 echo "${ECHO_T}no" >&6
7859 fi
7860
7861 fi
7862 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
7863 done
7864 fi
7865
7866 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
7867 set dummy nm
7868 if test $build = $target ; then
7869 NM_FOR_TARGET="$2"
7870 else
7871 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
7872 fi
7873 fi
7874
7875 else
7876 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
7877 fi
7878
7879
7880
7881
7882 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
7883 if test -n "$with_build_time_tools"; then
7884 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
7885 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
7886 if test -x $with_build_time_tools/objdump; then
7887 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
7888 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
7889 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
7890 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
7891 else
7892 echo "$as_me:$LINENO: result: no" >&5
7893 echo "${ECHO_T}no" >&6
7894 fi
7895 elif test $build != $host && test $have_gcc_for_target = yes; then
7896 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
7897 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
7898 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
7899 fi
7900 fi
7901 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
7902 # Extract the first word of "objdump", so it can be a program name with args.
7903 set dummy objdump; ac_word=$2
7904 echo "$as_me:$LINENO: checking for $ac_word" >&5
7905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7906 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909 case $OBJDUMP_FOR_TARGET in
7910 [\\/]* | ?:[\\/]*)
7911 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
7912 ;;
7913 *)
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 for as_dir in $gcc_cv_tool_dirs
7916 do
7917 IFS=$as_save_IFS
7918 test -z "$as_dir" && as_dir=.
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7921 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 break 2
7924 fi
7925 done
7926 done
7927
7928 ;;
7929 esac
7930 fi
7931 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
7932
7933 if test -n "$OBJDUMP_FOR_TARGET"; then
7934 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
7935 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
7936 else
7937 echo "$as_me:$LINENO: result: no" >&5
7938 echo "${ECHO_T}no" >&6
7939 fi
7940
7941 fi
7942 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
7943 if test -n "$with_build_time_tools"; then
7944 for ncn_progname in objdump; do
7945 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7946 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7947 if test -x $with_build_time_tools/${ncn_progname}; then
7948 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7949 echo "$as_me:$LINENO: result: yes" >&5
7950 echo "${ECHO_T}yes" >&6
7951 break
7952 else
7953 echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6
7955 fi
7956 done
7957 fi
7958
7959 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
7960 for ncn_progname in objdump; do
7961 if test -n "$ncn_target_tool_prefix"; then
7962 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7963 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7964 echo "$as_me:$LINENO: checking for $ac_word" >&5
7965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7966 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 else
7969 if test -n "$OBJDUMP_FOR_TARGET"; then
7970 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
7971 else
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7974 do
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7979 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7982 fi
7983 done
7984 done
7985
7986 fi
7987 fi
7988 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
7989 if test -n "$OBJDUMP_FOR_TARGET"; then
7990 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
7991 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
7992 else
7993 echo "$as_me:$LINENO: result: no" >&5
7994 echo "${ECHO_T}no" >&6
7995 fi
7996
7997 fi
7998 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
7999 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8000 set dummy ${ncn_progname}; ac_word=$2
8001 echo "$as_me:$LINENO: checking for $ac_word" >&5
8002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8003 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006 if test -n "$OBJDUMP_FOR_TARGET"; then
8007 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8008 else
8009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010 for as_dir in $PATH
8011 do
8012 IFS=$as_save_IFS
8013 test -z "$as_dir" && as_dir=.
8014 for ac_exec_ext in '' $ac_executable_extensions; do
8015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8016 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 break 2
8019 fi
8020 done
8021 done
8022
8023 fi
8024 fi
8025 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8026 if test -n "$OBJDUMP_FOR_TARGET"; then
8027 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8028 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8029 else
8030 echo "$as_me:$LINENO: result: no" >&5
8031 echo "${ECHO_T}no" >&6
8032 fi
8033
8034 fi
8035 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8036 done
8037 fi
8038
8039 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8040 set dummy objdump
8041 if test $build = $target ; then
8042 OBJDUMP_FOR_TARGET="$2"
8043 else
8044 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8045 fi
8046 fi
8047
8048 else
8049 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8050 fi
8051
8052
8053
8054
8055 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8056 if test -n "$with_build_time_tools"; then
8057 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
8058 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
8059 if test -x $with_build_time_tools/ranlib; then
8060 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8061 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8062 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8063 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
8064 else
8065 echo "$as_me:$LINENO: result: no" >&5
8066 echo "${ECHO_T}no" >&6
8067 fi
8068 elif test $build != $host && test $have_gcc_for_target = yes; then
8069 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8070 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8071 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8072 fi
8073 fi
8074 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8075 # Extract the first word of "ranlib", so it can be a program name with args.
8076 set dummy ranlib; ac_word=$2
8077 echo "$as_me:$LINENO: checking for $ac_word" >&5
8078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8079 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082 case $RANLIB_FOR_TARGET in
8083 [\\/]* | ?:[\\/]*)
8084 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8085 ;;
8086 *)
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $gcc_cv_tool_dirs
8089 do
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8094 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 break 2
8097 fi
8098 done
8099 done
8100
8101 ;;
8102 esac
8103 fi
8104 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8105
8106 if test -n "$RANLIB_FOR_TARGET"; then
8107 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8108 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8109 else
8110 echo "$as_me:$LINENO: result: no" >&5
8111 echo "${ECHO_T}no" >&6
8112 fi
8113
8114 fi
8115 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8116 if test -n "$with_build_time_tools"; then
8117 for ncn_progname in ranlib; do
8118 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8119 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8120 if test -x $with_build_time_tools/${ncn_progname}; then
8121 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8122 echo "$as_me:$LINENO: result: yes" >&5
8123 echo "${ECHO_T}yes" >&6
8124 break
8125 else
8126 echo "$as_me:$LINENO: result: no" >&5
8127 echo "${ECHO_T}no" >&6
8128 fi
8129 done
8130 fi
8131
8132 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8133 for ncn_progname in ranlib; do
8134 if test -n "$ncn_target_tool_prefix"; then
8135 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8136 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8137 echo "$as_me:$LINENO: checking for $ac_word" >&5
8138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8139 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 else
8142 if test -n "$RANLIB_FOR_TARGET"; then
8143 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8144 else
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 for as_dir in $PATH
8147 do
8148 IFS=$as_save_IFS
8149 test -z "$as_dir" && as_dir=.
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8152 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 break 2
8155 fi
8156 done
8157 done
8158
8159 fi
8160 fi
8161 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8162 if test -n "$RANLIB_FOR_TARGET"; then
8163 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8164 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8165 else
8166 echo "$as_me:$LINENO: result: no" >&5
8167 echo "${ECHO_T}no" >&6
8168 fi
8169
8170 fi
8171 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8173 set dummy ${ncn_progname}; ac_word=$2
8174 echo "$as_me:$LINENO: checking for $ac_word" >&5
8175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8176 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 else
8179 if test -n "$RANLIB_FOR_TARGET"; then
8180 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8181 else
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8184 do
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8192 fi
8193 done
8194 done
8195
8196 fi
8197 fi
8198 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8199 if test -n "$RANLIB_FOR_TARGET"; then
8200 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8201 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8202 else
8203 echo "$as_me:$LINENO: result: no" >&5
8204 echo "${ECHO_T}no" >&6
8205 fi
8206
8207 fi
8208 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8209 done
8210 fi
8211
8212 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8213 set dummy ranlib
8214 if test $build = $target ; then
8215 RANLIB_FOR_TARGET="$2"
8216 else
8217 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
8218 fi
8219 fi
8220
8221 else
8222 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8223 fi
8224
8225
8226
8227
8228 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8229 if test -n "$with_build_time_tools"; then
8230 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
8231 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
8232 if test -x $with_build_time_tools/strip; then
8233 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8234 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8235 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
8236 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
8237 else
8238 echo "$as_me:$LINENO: result: no" >&5
8239 echo "${ECHO_T}no" >&6
8240 fi
8241 elif test $build != $host && test $have_gcc_for_target = yes; then
8242 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8243 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8244 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8245 fi
8246 fi
8247 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8248 # Extract the first word of "strip", so it can be a program name with args.
8249 set dummy strip; ac_word=$2
8250 echo "$as_me:$LINENO: checking for $ac_word" >&5
8251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8252 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255 case $STRIP_FOR_TARGET in
8256 [\\/]* | ?:[\\/]*)
8257 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
8258 ;;
8259 *)
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 for as_dir in $gcc_cv_tool_dirs
8262 do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8267 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8270 fi
8271 done
8272 done
8273
8274 ;;
8275 esac
8276 fi
8277 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
8278
8279 if test -n "$STRIP_FOR_TARGET"; then
8280 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8281 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8282 else
8283 echo "$as_me:$LINENO: result: no" >&5
8284 echo "${ECHO_T}no" >&6
8285 fi
8286
8287 fi
8288 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8289 if test -n "$with_build_time_tools"; then
8290 for ncn_progname in strip; do
8291 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8292 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8293 if test -x $with_build_time_tools/${ncn_progname}; then
8294 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8295 echo "$as_me:$LINENO: result: yes" >&5
8296 echo "${ECHO_T}yes" >&6
8297 break
8298 else
8299 echo "$as_me:$LINENO: result: no" >&5
8300 echo "${ECHO_T}no" >&6
8301 fi
8302 done
8303 fi
8304
8305 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
8306 for ncn_progname in strip; do
8307 if test -n "$ncn_target_tool_prefix"; then
8308 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8309 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8310 echo "$as_me:$LINENO: checking for $ac_word" >&5
8311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8312 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315 if test -n "$STRIP_FOR_TARGET"; then
8316 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8320 do
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8325 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 break 2
8328 fi
8329 done
8330 done
8331
8332 fi
8333 fi
8334 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
8335 if test -n "$STRIP_FOR_TARGET"; then
8336 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8337 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8338 else
8339 echo "$as_me:$LINENO: result: no" >&5
8340 echo "${ECHO_T}no" >&6
8341 fi
8342
8343 fi
8344 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
8345 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8346 set dummy ${ncn_progname}; ac_word=$2
8347 echo "$as_me:$LINENO: checking for $ac_word" >&5
8348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8349 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352 if test -n "$STRIP_FOR_TARGET"; then
8353 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8362 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
8363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 break 2
8365 fi
8366 done
8367 done
8368
8369 fi
8370 fi
8371 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
8372 if test -n "$STRIP_FOR_TARGET"; then
8373 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8374 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8375 else
8376 echo "$as_me:$LINENO: result: no" >&5
8377 echo "${ECHO_T}no" >&6
8378 fi
8379
8380 fi
8381 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
8382 done
8383 fi
8384
8385 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
8386 set dummy strip
8387 if test $build = $target ; then
8388 STRIP_FOR_TARGET="$2"
8389 else
8390 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8391 fi
8392 fi
8393
8394 else
8395 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
8396 fi
8397
8398
8399
8400
8401 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8402 if test -n "$with_build_time_tools"; then
8403 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
8404 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
8405 if test -x $with_build_time_tools/windres; then
8406 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
8407 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
8408 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
8409 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
8410 else
8411 echo "$as_me:$LINENO: result: no" >&5
8412 echo "${ECHO_T}no" >&6
8413 fi
8414 elif test $build != $host && test $have_gcc_for_target = yes; then
8415 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
8416 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
8417 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
8418 fi
8419 fi
8420 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8421 # Extract the first word of "windres", so it can be a program name with args.
8422 set dummy windres; ac_word=$2
8423 echo "$as_me:$LINENO: checking for $ac_word" >&5
8424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8425 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428 case $WINDRES_FOR_TARGET in
8429 [\\/]* | ?:[\\/]*)
8430 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
8431 ;;
8432 *)
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 for as_dir in $gcc_cv_tool_dirs
8435 do
8436 IFS=$as_save_IFS
8437 test -z "$as_dir" && as_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8440 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 break 2
8443 fi
8444 done
8445 done
8446
8447 ;;
8448 esac
8449 fi
8450 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
8451
8452 if test -n "$WINDRES_FOR_TARGET"; then
8453 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8454 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
8455 else
8456 echo "$as_me:$LINENO: result: no" >&5
8457 echo "${ECHO_T}no" >&6
8458 fi
8459
8460 fi
8461 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8462 if test -n "$with_build_time_tools"; then
8463 for ncn_progname in windres; do
8464 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8465 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8466 if test -x $with_build_time_tools/${ncn_progname}; then
8467 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8468 echo "$as_me:$LINENO: result: yes" >&5
8469 echo "${ECHO_T}yes" >&6
8470 break
8471 else
8472 echo "$as_me:$LINENO: result: no" >&5
8473 echo "${ECHO_T}no" >&6
8474 fi
8475 done
8476 fi
8477
8478 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
8479 for ncn_progname in windres; do
8480 if test -n "$ncn_target_tool_prefix"; then
8481 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8482 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8483 echo "$as_me:$LINENO: checking for $ac_word" >&5
8484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8485 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488 if test -n "$WINDRES_FOR_TARGET"; then
8489 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
8490 else
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 for as_dir in $PATH
8493 do
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8498 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8500 break 2
8501 fi
8502 done
8503 done
8504
8505 fi
8506 fi
8507 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
8508 if test -n "$WINDRES_FOR_TARGET"; then
8509 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8510 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
8511 else
8512 echo "$as_me:$LINENO: result: no" >&5
8513 echo "${ECHO_T}no" >&6
8514 fi
8515
8516 fi
8517 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
8518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8519 set dummy ${ncn_progname}; ac_word=$2
8520 echo "$as_me:$LINENO: checking for $ac_word" >&5
8521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8522 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 else
8525 if test -n "$WINDRES_FOR_TARGET"; then
8526 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
8527 else
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 for as_dir in $PATH
8530 do
8531 IFS=$as_save_IFS
8532 test -z "$as_dir" && as_dir=.
8533 for ac_exec_ext in '' $ac_executable_extensions; do
8534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8535 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
8536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8537 break 2
8538 fi
8539 done
8540 done
8541
8542 fi
8543 fi
8544 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
8545 if test -n "$WINDRES_FOR_TARGET"; then
8546 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8547 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
8548 else
8549 echo "$as_me:$LINENO: result: no" >&5
8550 echo "${ECHO_T}no" >&6
8551 fi
8552
8553 fi
8554 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
8555 done
8556 fi
8557
8558 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
8559 set dummy windres
8560 if test $build = $target ; then
8561 WINDRES_FOR_TARGET="$2"
8562 else
8563 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
8564 fi
8565 fi
8566
8567 else
8568 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
8569 fi
8570
8571
8572 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
8573
8574 echo "$as_me:$LINENO: checking where to find the target ar" >&5
8575 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
8576 if test "x${build}" != "x${host}" ; then
8577 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8578 # We already found the complete path
8579 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8580 echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
8581 else
8582 # Canadian cross, just use what we found
8583 echo "$as_me:$LINENO: result: pre-installed" >&5
8584 echo "${ECHO_T}pre-installed" >&6
8585 fi
8586 else
8587 ok=yes
8588 case " ${configdirs} " in
8589 *" binutils "*) ;;
8590 *) ok=no ;;
8591 esac
8592
8593 if test $ok = yes; then
8594 # An in-tree tool is available and we can use it
8595 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
8596 echo "$as_me:$LINENO: result: just compiled" >&5
8597 echo "${ECHO_T}just compiled" >&6
8598 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8599 # We already found the complete path
8600 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8601 echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
8602 elif test "x$target" = "x$host"; then
8603 # We can use an host tool
8604 AR_FOR_TARGET='$(AR)'
8605 echo "$as_me:$LINENO: result: host tool" >&5
8606 echo "${ECHO_T}host tool" >&6
8607 else
8608 # We need a cross tool
8609 echo "$as_me:$LINENO: result: pre-installed" >&5
8610 echo "${ECHO_T}pre-installed" >&6
8611 fi
8612 fi
8613 echo "$as_me:$LINENO: checking where to find the target as" >&5
8614 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
8615 if test "x${build}" != "x${host}" ; then
8616 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
8617 # We already found the complete path
8618 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
8619 echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
8620 else
8621 # Canadian cross, just use what we found
8622 echo "$as_me:$LINENO: result: pre-installed" >&5
8623 echo "${ECHO_T}pre-installed" >&6
8624 fi
8625 else
8626 ok=yes
8627 case " ${configdirs} " in
8628 *" gas "*) ;;
8629 *) ok=no ;;
8630 esac
8631
8632 if test $ok = yes; then
8633 # An in-tree tool is available and we can use it
8634 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
8635 echo "$as_me:$LINENO: result: just compiled" >&5
8636 echo "${ECHO_T}just compiled" >&6
8637 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
8638 # We already found the complete path
8639 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
8640 echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
8641 elif test "x$target" = "x$host"; then
8642 # We can use an host tool
8643 AS_FOR_TARGET='$(AS)'
8644 echo "$as_me:$LINENO: result: host tool" >&5
8645 echo "${ECHO_T}host tool" >&6
8646 else
8647 # We need a cross tool
8648 echo "$as_me:$LINENO: result: pre-installed" >&5
8649 echo "${ECHO_T}pre-installed" >&6
8650 fi
8651 fi
8652 echo "$as_me:$LINENO: checking where to find the target cc" >&5
8653 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
8654 if test "x${build}" != "x${host}" ; then
8655 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
8656 # We already found the complete path
8657 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
8658 echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
8659 else
8660 # Canadian cross, just use what we found
8661 echo "$as_me:$LINENO: result: pre-installed" >&5
8662 echo "${ECHO_T}pre-installed" >&6
8663 fi
8664 else
8665 ok=yes
8666 case " ${configdirs} " in
8667 *" gcc "*) ;;
8668 *) ok=no ;;
8669 esac
8670
8671 if test $ok = yes; then
8672 # An in-tree tool is available and we can use it
8673 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
8674 echo "$as_me:$LINENO: result: just compiled" >&5
8675 echo "${ECHO_T}just compiled" >&6
8676 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
8677 # We already found the complete path
8678 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
8679 echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
8680 elif test "x$target" = "x$host"; then
8681 # We can use an host tool
8682 CC_FOR_TARGET='$(CC)'
8683 echo "$as_me:$LINENO: result: host tool" >&5
8684 echo "${ECHO_T}host tool" >&6
8685 else
8686 # We need a cross tool
8687 echo "$as_me:$LINENO: result: pre-installed" >&5
8688 echo "${ECHO_T}pre-installed" >&6
8689 fi
8690 fi
8691 echo "$as_me:$LINENO: checking where to find the target c++" >&5
8692 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
8693 if test "x${build}" != "x${host}" ; then
8694 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
8695 # We already found the complete path
8696 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
8697 echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
8698 else
8699 # Canadian cross, just use what we found
8700 echo "$as_me:$LINENO: result: pre-installed" >&5
8701 echo "${ECHO_T}pre-installed" >&6
8702 fi
8703 else
8704 ok=yes
8705 case " ${configdirs} " in
8706 *" gcc "*) ;;
8707 *) ok=no ;;
8708 esac
8709 case ,${enable_languages}, in
8710 *,c++,*) ;;
8711 *) ok=no ;;
8712 esac
8713 if test $ok = yes; then
8714 # An in-tree tool is available and we can use it
8715 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
8716 echo "$as_me:$LINENO: result: just compiled" >&5
8717 echo "${ECHO_T}just compiled" >&6
8718 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
8719 # We already found the complete path
8720 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
8721 echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
8722 elif test "x$target" = "x$host"; then
8723 # We can use an host tool
8724 CXX_FOR_TARGET='$(CXX)'
8725 echo "$as_me:$LINENO: result: host tool" >&5
8726 echo "${ECHO_T}host tool" >&6
8727 else
8728 # We need a cross tool
8729 echo "$as_me:$LINENO: result: pre-installed" >&5
8730 echo "${ECHO_T}pre-installed" >&6
8731 fi
8732 fi
8733 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
8734 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
8735 if test "x${build}" != "x${host}" ; then
8736 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
8737 # We already found the complete path
8738 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
8739 echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
8740 else
8741 # Canadian cross, just use what we found
8742 echo "$as_me:$LINENO: result: pre-installed" >&5
8743 echo "${ECHO_T}pre-installed" >&6
8744 fi
8745 else
8746 ok=yes
8747 case " ${configdirs} " in
8748 *" gcc "*) ;;
8749 *) ok=no ;;
8750 esac
8751 case ,${enable_languages}, in
8752 *,c++,*) ;;
8753 *) ok=no ;;
8754 esac
8755 if test $ok = yes; then
8756 # An in-tree tool is available and we can use it
8757 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'
8758 echo "$as_me:$LINENO: result: just compiled" >&5
8759 echo "${ECHO_T}just compiled" >&6
8760 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
8761 # We already found the complete path
8762 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
8763 echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
8764 elif test "x$target" = "x$host"; then
8765 # We can use an host tool
8766 RAW_CXX_FOR_TARGET='$(CXX)'
8767 echo "$as_me:$LINENO: result: host tool" >&5
8768 echo "${ECHO_T}host tool" >&6
8769 else
8770 # We need a cross tool
8771 echo "$as_me:$LINENO: result: pre-installed" >&5
8772 echo "${ECHO_T}pre-installed" >&6
8773 fi
8774 fi
8775 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
8776 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
8777 if test "x${build}" != "x${host}" ; then
8778 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
8779 # We already found the complete path
8780 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
8781 echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
8782 else
8783 # Canadian cross, just use what we found
8784 echo "$as_me:$LINENO: result: pre-installed" >&5
8785 echo "${ECHO_T}pre-installed" >&6
8786 fi
8787 else
8788 ok=yes
8789 case " ${configdirs} " in
8790 *" binutils "*) ;;
8791 *) ok=no ;;
8792 esac
8793
8794 if test $ok = yes; then
8795 # An in-tree tool is available and we can use it
8796 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
8797 echo "$as_me:$LINENO: result: just compiled" >&5
8798 echo "${ECHO_T}just compiled" >&6
8799 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
8800 # We already found the complete path
8801 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
8802 echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
8803 elif test "x$target" = "x$host"; then
8804 # We can use an host tool
8805 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
8806 echo "$as_me:$LINENO: result: host tool" >&5
8807 echo "${ECHO_T}host tool" >&6
8808 else
8809 # We need a cross tool
8810 echo "$as_me:$LINENO: result: pre-installed" >&5
8811 echo "${ECHO_T}pre-installed" >&6
8812 fi
8813 fi
8814 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
8815 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
8816 if test "x${build}" != "x${host}" ; then
8817 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
8818 # We already found the complete path
8819 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
8820 echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
8821 else
8822 # Canadian cross, just use what we found
8823 echo "$as_me:$LINENO: result: pre-installed" >&5
8824 echo "${ECHO_T}pre-installed" >&6
8825 fi
8826 else
8827 ok=yes
8828 case " ${configdirs} " in
8829 *" gcc "*) ;;
8830 *) ok=no ;;
8831 esac
8832
8833 if test $ok = yes; then
8834 # An in-tree tool is available and we can use it
8835 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
8836 echo "$as_me:$LINENO: result: just compiled" >&5
8837 echo "${ECHO_T}just compiled" >&6
8838 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
8839 # We already found the complete path
8840 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
8841 echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
8842 elif test "x$target" = "x$host"; then
8843 # We can use an host tool
8844 GCC_FOR_TARGET='$()'
8845 echo "$as_me:$LINENO: result: host tool" >&5
8846 echo "${ECHO_T}host tool" >&6
8847 else
8848 # We need a cross tool
8849 echo "$as_me:$LINENO: result: pre-installed" >&5
8850 echo "${ECHO_T}pre-installed" >&6
8851 fi
8852 fi
8853 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
8854 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
8855 if test "x${build}" != "x${host}" ; then
8856 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
8857 # We already found the complete path
8858 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
8859 echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
8860 else
8861 # Canadian cross, just use what we found
8862 echo "$as_me:$LINENO: result: pre-installed" >&5
8863 echo "${ECHO_T}pre-installed" >&6
8864 fi
8865 else
8866 ok=yes
8867 case " ${configdirs} " in
8868 *" gcc "*) ;;
8869 *) ok=no ;;
8870 esac
8871 case ,${enable_languages}, in
8872 *,java,*) ;;
8873 *) ok=no ;;
8874 esac
8875 if test $ok = yes; then
8876 # An in-tree tool is available and we can use it
8877 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
8878 echo "$as_me:$LINENO: result: just compiled" >&5
8879 echo "${ECHO_T}just compiled" >&6
8880 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
8881 # We already found the complete path
8882 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
8883 echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
8884 elif test "x$target" = "x$host"; then
8885 # We can use an host tool
8886 GCJ_FOR_TARGET='$(GCJ)'
8887 echo "$as_me:$LINENO: result: host tool" >&5
8888 echo "${ECHO_T}host tool" >&6
8889 else
8890 # We need a cross tool
8891 echo "$as_me:$LINENO: result: pre-installed" >&5
8892 echo "${ECHO_T}pre-installed" >&6
8893 fi
8894 fi
8895 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
8896 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
8897 if test "x${build}" != "x${host}" ; then
8898 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
8899 # We already found the complete path
8900 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
8901 echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
8902 else
8903 # Canadian cross, just use what we found
8904 echo "$as_me:$LINENO: result: pre-installed" >&5
8905 echo "${ECHO_T}pre-installed" >&6
8906 fi
8907 else
8908 ok=yes
8909 case " ${configdirs} " in
8910 *" gcc "*) ;;
8911 *) ok=no ;;
8912 esac
8913 case ,${enable_languages}, in
8914 *,fortran,*) ;;
8915 *) ok=no ;;
8916 esac
8917 if test $ok = yes; then
8918 # An in-tree tool is available and we can use it
8919 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
8920 echo "$as_me:$LINENO: result: just compiled" >&5
8921 echo "${ECHO_T}just compiled" >&6
8922 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
8923 # We already found the complete path
8924 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
8925 echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
8926 elif test "x$target" = "x$host"; then
8927 # We can use an host tool
8928 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
8929 echo "$as_me:$LINENO: result: host tool" >&5
8930 echo "${ECHO_T}host tool" >&6
8931 else
8932 # We need a cross tool
8933 echo "$as_me:$LINENO: result: pre-installed" >&5
8934 echo "${ECHO_T}pre-installed" >&6
8935 fi
8936 fi
8937 echo "$as_me:$LINENO: checking where to find the target ld" >&5
8938 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
8939 if test "x${build}" != "x${host}" ; then
8940 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
8941 # We already found the complete path
8942 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
8943 echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
8944 else
8945 # Canadian cross, just use what we found
8946 echo "$as_me:$LINENO: result: pre-installed" >&5
8947 echo "${ECHO_T}pre-installed" >&6
8948 fi
8949 else
8950 ok=yes
8951 case " ${configdirs} " in
8952 *" ld "*) ;;
8953 *) ok=no ;;
8954 esac
8955
8956 if test $ok = yes; then
8957 # An in-tree tool is available and we can use it
8958 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
8959 echo "$as_me:$LINENO: result: just compiled" >&5
8960 echo "${ECHO_T}just compiled" >&6
8961 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
8962 # We already found the complete path
8963 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
8964 echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
8965 elif test "x$target" = "x$host"; then
8966 # We can use an host tool
8967 LD_FOR_TARGET='$(LD)'
8968 echo "$as_me:$LINENO: result: host tool" >&5
8969 echo "${ECHO_T}host tool" >&6
8970 else
8971 # We need a cross tool
8972 echo "$as_me:$LINENO: result: pre-installed" >&5
8973 echo "${ECHO_T}pre-installed" >&6
8974 fi
8975 fi
8976 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
8977 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
8978 if test "x${build}" != "x${host}" ; then
8979 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
8980 # We already found the complete path
8981 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
8982 echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
8983 else
8984 # Canadian cross, just use what we found
8985 echo "$as_me:$LINENO: result: pre-installed" >&5
8986 echo "${ECHO_T}pre-installed" >&6
8987 fi
8988 else
8989 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
8990 # We already found the complete path
8991 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
8992 echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
8993 elif test "x$target" = "x$host"; then
8994 # We can use an host tool
8995 LIPO_FOR_TARGET='$(LIPO)'
8996 echo "$as_me:$LINENO: result: host tool" >&5
8997 echo "${ECHO_T}host tool" >&6
8998 else
8999 # We need a cross tool
9000 echo "$as_me:$LINENO: result: pre-installed" >&5
9001 echo "${ECHO_T}pre-installed" >&6
9002 fi
9003 fi
9004 echo "$as_me:$LINENO: checking where to find the target nm" >&5
9005 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
9006 if test "x${build}" != "x${host}" ; then
9007 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9008 # We already found the complete path
9009 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9010 echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
9011 else
9012 # Canadian cross, just use what we found
9013 echo "$as_me:$LINENO: result: pre-installed" >&5
9014 echo "${ECHO_T}pre-installed" >&6
9015 fi
9016 else
9017 ok=yes
9018 case " ${configdirs} " in
9019 *" binutils "*) ;;
9020 *) ok=no ;;
9021 esac
9022
9023 if test $ok = yes; then
9024 # An in-tree tool is available and we can use it
9025 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
9026 echo "$as_me:$LINENO: result: just compiled" >&5
9027 echo "${ECHO_T}just compiled" >&6
9028 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9029 # We already found the complete path
9030 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9031 echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
9032 elif test "x$target" = "x$host"; then
9033 # We can use an host tool
9034 NM_FOR_TARGET='$(NM)'
9035 echo "$as_me:$LINENO: result: host tool" >&5
9036 echo "${ECHO_T}host tool" >&6
9037 else
9038 # We need a cross tool
9039 echo "$as_me:$LINENO: result: pre-installed" >&5
9040 echo "${ECHO_T}pre-installed" >&6
9041 fi
9042 fi
9043 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
9044 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
9045 if test "x${build}" != "x${host}" ; then
9046 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9047 # We already found the complete path
9048 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9049 echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
9050 else
9051 # Canadian cross, just use what we found
9052 echo "$as_me:$LINENO: result: pre-installed" >&5
9053 echo "${ECHO_T}pre-installed" >&6
9054 fi
9055 else
9056 ok=yes
9057 case " ${configdirs} " in
9058 *" binutils "*) ;;
9059 *) ok=no ;;
9060 esac
9061
9062 if test $ok = yes; then
9063 # An in-tree tool is available and we can use it
9064 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
9065 echo "$as_me:$LINENO: result: just compiled" >&5
9066 echo "${ECHO_T}just compiled" >&6
9067 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9068 # We already found the complete path
9069 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9070 echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
9071 elif test "x$target" = "x$host"; then
9072 # We can use an host tool
9073 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
9074 echo "$as_me:$LINENO: result: host tool" >&5
9075 echo "${ECHO_T}host tool" >&6
9076 else
9077 # We need a cross tool
9078 echo "$as_me:$LINENO: result: pre-installed" >&5
9079 echo "${ECHO_T}pre-installed" >&6
9080 fi
9081 fi
9082 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
9083 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
9084 if test "x${build}" != "x${host}" ; then
9085 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9086 # We already found the complete path
9087 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9088 echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
9089 else
9090 # Canadian cross, just use what we found
9091 echo "$as_me:$LINENO: result: pre-installed" >&5
9092 echo "${ECHO_T}pre-installed" >&6
9093 fi
9094 else
9095 ok=yes
9096 case " ${configdirs} " in
9097 *" binutils "*) ;;
9098 *) ok=no ;;
9099 esac
9100
9101 if test $ok = yes; then
9102 # An in-tree tool is available and we can use it
9103 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
9104 echo "$as_me:$LINENO: result: just compiled" >&5
9105 echo "${ECHO_T}just compiled" >&6
9106 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9107 # We already found the complete path
9108 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9109 echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
9110 elif test "x$target" = "x$host"; then
9111 # We can use an host tool
9112 RANLIB_FOR_TARGET='$(RANLIB)'
9113 echo "$as_me:$LINENO: result: host tool" >&5
9114 echo "${ECHO_T}host tool" >&6
9115 else
9116 # We need a cross tool
9117 echo "$as_me:$LINENO: result: pre-installed" >&5
9118 echo "${ECHO_T}pre-installed" >&6
9119 fi
9120 fi
9121 echo "$as_me:$LINENO: checking where to find the target strip" >&5
9122 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
9123 if test "x${build}" != "x${host}" ; then
9124 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9125 # We already found the complete path
9126 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9127 echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
9128 else
9129 # Canadian cross, just use what we found
9130 echo "$as_me:$LINENO: result: pre-installed" >&5
9131 echo "${ECHO_T}pre-installed" >&6
9132 fi
9133 else
9134 ok=yes
9135 case " ${configdirs} " in
9136 *" binutils "*) ;;
9137 *) ok=no ;;
9138 esac
9139
9140 if test $ok = yes; then
9141 # An in-tree tool is available and we can use it
9142 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
9143 echo "$as_me:$LINENO: result: just compiled" >&5
9144 echo "${ECHO_T}just compiled" >&6
9145 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9146 # We already found the complete path
9147 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9148 echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
9149 elif test "x$target" = "x$host"; then
9150 # We can use an host tool
9151 STRIP_FOR_TARGET='$(STRIP)'
9152 echo "$as_me:$LINENO: result: host tool" >&5
9153 echo "${ECHO_T}host tool" >&6
9154 else
9155 # We need a cross tool
9156 echo "$as_me:$LINENO: result: pre-installed" >&5
9157 echo "${ECHO_T}pre-installed" >&6
9158 fi
9159 fi
9160 echo "$as_me:$LINENO: checking where to find the target windres" >&5
9161 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
9162 if test "x${build}" != "x${host}" ; then
9163 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9164 # We already found the complete path
9165 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9166 echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
9167 else
9168 # Canadian cross, just use what we found
9169 echo "$as_me:$LINENO: result: pre-installed" >&5
9170 echo "${ECHO_T}pre-installed" >&6
9171 fi
9172 else
9173 ok=yes
9174 case " ${configdirs} " in
9175 *" binutils "*) ;;
9176 *) ok=no ;;
9177 esac
9178
9179 if test $ok = yes; then
9180 # An in-tree tool is available and we can use it
9181 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
9182 echo "$as_me:$LINENO: result: just compiled" >&5
9183 echo "${ECHO_T}just compiled" >&6
9184 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9185 # We already found the complete path
9186 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9187 echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
9188 elif test "x$target" = "x$host"; then
9189 # We can use an host tool
9190 WINDRES_FOR_TARGET='$(WINDRES)'
9191 echo "$as_me:$LINENO: result: host tool" >&5
9192 echo "${ECHO_T}host tool" >&6
9193 else
9194 # We need a cross tool
9195 echo "$as_me:$LINENO: result: pre-installed" >&5
9196 echo "${ECHO_T}pre-installed" >&6
9197 fi
9198 fi
9199
9200
9201
9202
9203 # Certain tools may need extra flags.
9204 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9205 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9206 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9207
9208 # When building target libraries, except in a Canadian cross, we use
9209 # the same toolchain as the compiler we just built.
9210 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9211 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9212 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9213 if test $host = $build; then
9214 case " $configdirs " in
9215 *" gcc "*)
9216 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9217 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9218 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9219 ;;
9220 esac
9221 fi
9222
9223
9224
9225
9226
9227 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9228 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9229 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9230 if test "${enable_maintainer_mode+set}" = set; then
9231 enableval="$enable_maintainer_mode"
9232 USE_MAINTAINER_MODE=$enableval
9233 else
9234 USE_MAINTAINER_MODE=no
9235 fi;
9236 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9237 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9238
9239
9240 if test "$USE_MAINTAINER_MODE" = yes; then
9241 MAINTAINER_MODE_TRUE=
9242 MAINTAINER_MODE_FALSE='#'
9243 else
9244 MAINTAINER_MODE_TRUE='#'
9245 MAINTAINER_MODE_FALSE=
9246 fi
9247 MAINT=$MAINTAINER_MODE_TRUE
9248
9249 # ---------------------
9250 # GCC bootstrap support
9251 # ---------------------
9252
9253 # Stage specific cflags for build.
9254 stage1_cflags="-g"
9255 case $build in
9256 vax-*-*)
9257 case ${GCC} in
9258 yes) stage1_cflags="-g -Wa,-J" ;;
9259 *) stage1_cflags="-g -J" ;;
9260 esac ;;
9261 powerpc-*-darwin*)
9262 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
9263 # sources; use -no-cpp-precomp to get to GNU cpp.
9264 # Apple's GCC has bugs in designated initializer handling, so disable
9265 # that too.
9266 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
9267 ;;
9268 esac
9269
9270
9271 # Enable -Werror in bootstrap stage2 and later.
9272 # Change the default to "no" on release branches.
9273 # Check whether --enable-werror or --disable-werror was given.
9274 if test "${enable_werror+set}" = set; then
9275 enableval="$enable_werror"
9276
9277 else
9278 enable_werror=yes
9279 fi;
9280 case ${enable_werror} in
9281 yes) stage2_werror_flag="--enable-werror-always" ;;
9282 *) stage2_werror_flag="" ;;
9283 esac
9284
9285
9286 ac_config_files="$ac_config_files Makefile"
9287 cat >confcache <<\_ACEOF
9288 # This file is a shell script that caches the results of configure
9289 # tests run on this system so they can be shared between configure
9290 # scripts and configure runs, see configure's option --config-cache.
9291 # It is not useful on other systems. If it contains results you don't
9292 # want to keep, you may remove or edit it.
9293 #
9294 # config.status only pays attention to the cache file if you give it
9295 # the --recheck option to rerun configure.
9296 #
9297 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9298 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9299 # following values.
9300
9301 _ACEOF
9302
9303 # The following way of writing the cache mishandles newlines in values,
9304 # but we know of no workaround that is simple, portable, and efficient.
9305 # So, don't put newlines in cache variables' values.
9306 # Ultrix sh set writes to stderr and can't be redirected directly,
9307 # and sets the high bit in the cache file unless we assign to the vars.
9308 {
9309 (set) 2>&1 |
9310 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9311 *ac_space=\ *)
9312 # `set' does not quote correctly, so add quotes (double-quote
9313 # substitution turns \\\\ into \\, and sed turns \\ into \).
9314 sed -n \
9315 "s/'/'\\\\''/g;
9316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9317 ;;
9318 *)
9319 # `set' quotes correctly as required by POSIX, so do not add quotes.
9320 sed -n \
9321 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9322 ;;
9323 esac;
9324 } |
9325 sed '
9326 t clear
9327 : clear
9328 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9329 t end
9330 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9331 : end' >>confcache
9332 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9333 if test -w $cache_file; then
9334 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9335 cat confcache >$cache_file
9336 else
9337 echo "not updating unwritable cache $cache_file"
9338 fi
9339 fi
9340 rm -f confcache
9341
9342 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9343 # Let make expand exec_prefix.
9344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9345
9346 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9347 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9348 # trailing colons and then remove the whole line if VPATH becomes empty
9349 # (actually we leave an empty line to preserve line numbers).
9350 if test "x$srcdir" = x.; then
9351 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9352 s/:*\$(srcdir):*/:/;
9353 s/:*\${srcdir}:*/:/;
9354 s/:*@srcdir@:*/:/;
9355 s/^\([^=]*=[ ]*\):*/\1/;
9356 s/:*$//;
9357 s/^[^=]*=[ ]*$//;
9358 }'
9359 fi
9360
9361 # Transform confdefs.h into DEFS.
9362 # Protect against shell expansion while executing Makefile rules.
9363 # Protect against Makefile macro expansion.
9364 #
9365 # If the first sed substitution is executed (which looks for macros that
9366 # take arguments), then we branch to the quote section. Otherwise,
9367 # look for a macro that doesn't take arguments.
9368 cat >confdef2opt.sed <<\_ACEOF
9369 t clear
9370 : clear
9371 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
9372 t quote
9373 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
9374 t quote
9375 d
9376 : quote
9377 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
9378 s,\[,\\&,g
9379 s,\],\\&,g
9380 s,\$,$$,g
9381 p
9382 _ACEOF
9383 # We use echo to avoid assuming a particular line-breaking character.
9384 # The extra dot is to prevent the shell from consuming trailing
9385 # line-breaks from the sub-command output. A line-break within
9386 # single-quotes doesn't work because, if this script is created in a
9387 # platform that uses two characters for line-breaks (e.g., DOS), tr
9388 # would break.
9389 ac_LF_and_DOT=`echo; echo .`
9390 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9391 rm -f confdef2opt.sed
9392
9393
9394 ac_libobjs=
9395 ac_ltlibobjs=
9396 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9397 # 1. Remove the extension, and $U if already installed.
9398 ac_i=`echo "$ac_i" |
9399 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9400 # 2. Add them.
9401 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9402 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9403 done
9404 LIBOBJS=$ac_libobjs
9405
9406 LTLIBOBJS=$ac_ltlibobjs
9407
9408
9409
9410 : ${CONFIG_STATUS=./config.status}
9411 ac_clean_files_save=$ac_clean_files
9412 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9413 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9414 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9415 cat >$CONFIG_STATUS <<_ACEOF
9416 #! $SHELL
9417 # Generated by $as_me.
9418 # Run this file to recreate the current configuration.
9419 # Compiler output produced by configure, useful for debugging
9420 # configure, is in config.log if it exists.
9421
9422 debug=false
9423 ac_cs_recheck=false
9424 ac_cs_silent=false
9425 SHELL=\${CONFIG_SHELL-$SHELL}
9426 _ACEOF
9427
9428 cat >>$CONFIG_STATUS <<\_ACEOF
9429 ## --------------------- ##
9430 ## M4sh Initialization. ##
9431 ## --------------------- ##
9432
9433 # Be Bourne compatible
9434 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9435 emulate sh
9436 NULLCMD=:
9437 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9438 # is contrary to our usage. Disable this feature.
9439 alias -g '${1+"$@"}'='"$@"'
9440 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9441 set -o posix
9442 fi
9443 DUALCASE=1; export DUALCASE # for MKS sh
9444
9445 # Support unset when possible.
9446 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9447 as_unset=unset
9448 else
9449 as_unset=false
9450 fi
9451
9452
9453 # Work around bugs in pre-3.0 UWIN ksh.
9454 $as_unset ENV MAIL MAILPATH
9455 PS1='$ '
9456 PS2='> '
9457 PS4='+ '
9458
9459 # NLS nuisances.
9460 for as_var in \
9461 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9462 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9463 LC_TELEPHONE LC_TIME
9464 do
9465 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9466 eval $as_var=C; export $as_var
9467 else
9468 $as_unset $as_var
9469 fi
9470 done
9471
9472 # Required to use basename.
9473 if expr a : '\(a\)' >/dev/null 2>&1; then
9474 as_expr=expr
9475 else
9476 as_expr=false
9477 fi
9478
9479 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9480 as_basename=basename
9481 else
9482 as_basename=false
9483 fi
9484
9485
9486 # Name of the executable.
9487 as_me=`$as_basename "$0" ||
9488 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9489 X"$0" : 'X\(//\)$' \| \
9490 X"$0" : 'X\(/\)$' \| \
9491 . : '\(.\)' 2>/dev/null ||
9492 echo X/"$0" |
9493 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9494 /^X\/\(\/\/\)$/{ s//\1/; q; }
9495 /^X\/\(\/\).*/{ s//\1/; q; }
9496 s/.*/./; q'`
9497
9498
9499 # PATH needs CR, and LINENO needs CR and PATH.
9500 # Avoid depending upon Character Ranges.
9501 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9502 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9503 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9504 as_cr_digits='0123456789'
9505 as_cr_alnum=$as_cr_Letters$as_cr_digits
9506
9507 # The user is always right.
9508 if test "${PATH_SEPARATOR+set}" != set; then
9509 echo "#! /bin/sh" >conf$$.sh
9510 echo "exit 0" >>conf$$.sh
9511 chmod +x conf$$.sh
9512 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9513 PATH_SEPARATOR=';'
9514 else
9515 PATH_SEPARATOR=:
9516 fi
9517 rm -f conf$$.sh
9518 fi
9519
9520
9521 as_lineno_1=$LINENO
9522 as_lineno_2=$LINENO
9523 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9524 test "x$as_lineno_1" != "x$as_lineno_2" &&
9525 test "x$as_lineno_3" = "x$as_lineno_2" || {
9526 # Find who we are. Look in the path if we contain no path at all
9527 # relative or not.
9528 case $0 in
9529 *[\\/]* ) as_myself=$0 ;;
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 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9536 done
9537
9538 ;;
9539 esac
9540 # We did not find ourselves, most probably we were run as `sh COMMAND'
9541 # in which case we are not to be found in the path.
9542 if test "x$as_myself" = x; then
9543 as_myself=$0
9544 fi
9545 if test ! -f "$as_myself"; then
9546 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9547 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9548 { (exit 1); exit 1; }; }
9549 fi
9550 case $CONFIG_SHELL in
9551 '')
9552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9553 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9554 do
9555 IFS=$as_save_IFS
9556 test -z "$as_dir" && as_dir=.
9557 for as_base in sh bash ksh sh5; do
9558 case $as_dir in
9559 /*)
9560 if ("$as_dir/$as_base" -c '
9561 as_lineno_1=$LINENO
9562 as_lineno_2=$LINENO
9563 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9564 test "x$as_lineno_1" != "x$as_lineno_2" &&
9565 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9566 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9567 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9568 CONFIG_SHELL=$as_dir/$as_base
9569 export CONFIG_SHELL
9570 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9571 fi;;
9572 esac
9573 done
9574 done
9575 ;;
9576 esac
9577
9578 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9579 # uniformly replaced by the line number. The first 'sed' inserts a
9580 # line-number line before each line; the second 'sed' does the real
9581 # work. The second script uses 'N' to pair each line-number line
9582 # with the numbered line, and appends trailing '-' during
9583 # substitution so that $LINENO is not a special case at line end.
9584 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9585 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9586 sed '=' <$as_myself |
9587 sed '
9588 N
9589 s,$,-,
9590 : loop
9591 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9592 t loop
9593 s,-$,,
9594 s,^['$as_cr_digits']*\n,,
9595 ' >$as_me.lineno &&
9596 chmod +x $as_me.lineno ||
9597 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9598 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9599 { (exit 1); exit 1; }; }
9600
9601 # Don't try to exec as it changes $[0], causing all sort of problems
9602 # (the dirname of $[0] is not the place where we might find the
9603 # original and so on. Autoconf is especially sensible to this).
9604 . ./$as_me.lineno
9605 # Exit status is that of the last command.
9606 exit
9607 }
9608
9609
9610 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9611 *c*,-n*) ECHO_N= ECHO_C='
9612 ' ECHO_T=' ' ;;
9613 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9614 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9615 esac
9616
9617 if expr a : '\(a\)' >/dev/null 2>&1; then
9618 as_expr=expr
9619 else
9620 as_expr=false
9621 fi
9622
9623 rm -f conf$$ conf$$.exe conf$$.file
9624 echo >conf$$.file
9625 if ln -s conf$$.file conf$$ 2>/dev/null; then
9626 # We could just check for DJGPP; but this test a) works b) is more generic
9627 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9628 if test -f conf$$.exe; then
9629 # Don't use ln at all; we don't have any links
9630 as_ln_s='cp -p'
9631 else
9632 as_ln_s='ln -s'
9633 fi
9634 elif ln conf$$.file conf$$ 2>/dev/null; then
9635 as_ln_s=ln
9636 else
9637 as_ln_s='cp -p'
9638 fi
9639 rm -f conf$$ conf$$.exe conf$$.file
9640
9641 if mkdir -p . 2>/dev/null; then
9642 as_mkdir_p=:
9643 else
9644 test -d ./-p && rmdir ./-p
9645 as_mkdir_p=false
9646 fi
9647
9648 as_executable_p="test -f"
9649
9650 # Sed expression to map a string onto a valid CPP name.
9651 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9652
9653 # Sed expression to map a string onto a valid variable name.
9654 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9655
9656
9657 # IFS
9658 # We need space, tab and new line, in precisely that order.
9659 as_nl='
9660 '
9661 IFS=" $as_nl"
9662
9663 # CDPATH.
9664 $as_unset CDPATH
9665
9666 exec 6>&1
9667
9668 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9669 # report actual input values of CONFIG_FILES etc. instead of their
9670 # values after options handling. Logging --version etc. is OK.
9671 exec 5>>config.log
9672 {
9673 echo
9674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9675 ## Running $as_me. ##
9676 _ASBOX
9677 } >&5
9678 cat >&5 <<_CSEOF
9679
9680 This file was extended by $as_me, which was
9681 generated by GNU Autoconf 2.59. Invocation command line was
9682
9683 CONFIG_FILES = $CONFIG_FILES
9684 CONFIG_HEADERS = $CONFIG_HEADERS
9685 CONFIG_LINKS = $CONFIG_LINKS
9686 CONFIG_COMMANDS = $CONFIG_COMMANDS
9687 $ $0 $@
9688
9689 _CSEOF
9690 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9691 echo >&5
9692 _ACEOF
9693
9694 # Files that config.status was made for.
9695 if test -n "$ac_config_files"; then
9696 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9697 fi
9698
9699 if test -n "$ac_config_headers"; then
9700 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9701 fi
9702
9703 if test -n "$ac_config_links"; then
9704 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9705 fi
9706
9707 if test -n "$ac_config_commands"; then
9708 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9709 fi
9710
9711 cat >>$CONFIG_STATUS <<\_ACEOF
9712
9713 ac_cs_usage="\
9714 \`$as_me' instantiates files from templates according to the
9715 current configuration.
9716
9717 Usage: $0 [OPTIONS] [FILE]...
9718
9719 -h, --help print this help, then exit
9720 -V, --version print version number, then exit
9721 -q, --quiet do not print progress messages
9722 -d, --debug don't remove temporary files
9723 --recheck update $as_me by reconfiguring in the same conditions
9724 --file=FILE[:TEMPLATE]
9725 instantiate the configuration file FILE
9726
9727 Configuration files:
9728 $config_files
9729
9730 Report bugs to <bug-autoconf@gnu.org>."
9731 _ACEOF
9732
9733 cat >>$CONFIG_STATUS <<_ACEOF
9734 ac_cs_version="\\
9735 config.status
9736 configured by $0, generated by GNU Autoconf 2.59,
9737 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9738
9739 Copyright (C) 2003 Free Software Foundation, Inc.
9740 This config.status script is free software; the Free Software Foundation
9741 gives unlimited permission to copy, distribute and modify it."
9742 srcdir=$srcdir
9743 INSTALL="$INSTALL"
9744 _ACEOF
9745
9746 cat >>$CONFIG_STATUS <<\_ACEOF
9747 # If no file are specified by the user, then we need to provide default
9748 # value. By we need to know if files were specified by the user.
9749 ac_need_defaults=:
9750 while test $# != 0
9751 do
9752 case $1 in
9753 --*=*)
9754 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9755 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9756 ac_shift=:
9757 ;;
9758 -*)
9759 ac_option=$1
9760 ac_optarg=$2
9761 ac_shift=shift
9762 ;;
9763 *) # This is not an option, so the user has probably given explicit
9764 # arguments.
9765 ac_option=$1
9766 ac_need_defaults=false;;
9767 esac
9768
9769 case $ac_option in
9770 # Handling of the options.
9771 _ACEOF
9772 cat >>$CONFIG_STATUS <<\_ACEOF
9773 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9774 ac_cs_recheck=: ;;
9775 --version | --vers* | -V )
9776 echo "$ac_cs_version"; exit 0 ;;
9777 --he | --h)
9778 # Conflict between --help and --header
9779 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9780 Try \`$0 --help' for more information." >&5
9781 echo "$as_me: error: ambiguous option: $1
9782 Try \`$0 --help' for more information." >&2;}
9783 { (exit 1); exit 1; }; };;
9784 --help | --hel | -h )
9785 echo "$ac_cs_usage"; exit 0 ;;
9786 --debug | --d* | -d )
9787 debug=: ;;
9788 --file | --fil | --fi | --f )
9789 $ac_shift
9790 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9791 ac_need_defaults=false;;
9792 --header | --heade | --head | --hea )
9793 $ac_shift
9794 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9795 ac_need_defaults=false;;
9796 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9797 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9798 ac_cs_silent=: ;;
9799
9800 # This is an error.
9801 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9802 Try \`$0 --help' for more information." >&5
9803 echo "$as_me: error: unrecognized option: $1
9804 Try \`$0 --help' for more information." >&2;}
9805 { (exit 1); exit 1; }; } ;;
9806
9807 *) ac_config_targets="$ac_config_targets $1" ;;
9808
9809 esac
9810 shift
9811 done
9812
9813 ac_configure_extra_args=
9814
9815 if $ac_cs_silent; then
9816 exec 6>/dev/null
9817 ac_configure_extra_args="$ac_configure_extra_args --silent"
9818 fi
9819
9820 _ACEOF
9821 cat >>$CONFIG_STATUS <<_ACEOF
9822 if \$ac_cs_recheck; then
9823 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9824 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9825 fi
9826
9827 _ACEOF
9828
9829
9830
9831
9832
9833 cat >>$CONFIG_STATUS <<\_ACEOF
9834 for ac_config_target in $ac_config_targets
9835 do
9836 case "$ac_config_target" in
9837 # Handling of arguments.
9838 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9839 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9840 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9841 { (exit 1); exit 1; }; };;
9842 esac
9843 done
9844
9845 # If the user did not use the arguments to specify the items to instantiate,
9846 # then the envvar interface is used. Set only those that are not.
9847 # We use the long form for the default assignment because of an extremely
9848 # bizarre bug on SunOS 4.1.3.
9849 if $ac_need_defaults; then
9850 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9851 fi
9852
9853 # Have a temporary directory for convenience. Make it in the build tree
9854 # simply because there is no reason to put it here, and in addition,
9855 # creating and moving files from /tmp can sometimes cause problems.
9856 # Create a temporary directory, and hook for its removal unless debugging.
9857 $debug ||
9858 {
9859 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9860 trap '{ (exit 1); exit 1; }' 1 2 13 15
9861 }
9862
9863 # Create a (secure) tmp directory for tmp files.
9864
9865 {
9866 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9867 test -n "$tmp" && test -d "$tmp"
9868 } ||
9869 {
9870 tmp=./confstat$$-$RANDOM
9871 (umask 077 && mkdir $tmp)
9872 } ||
9873 {
9874 echo "$me: cannot create a temporary directory in ." >&2
9875 { (exit 1); exit 1; }
9876 }
9877
9878 _ACEOF
9879
9880 cat >>$CONFIG_STATUS <<_ACEOF
9881
9882 #
9883 # CONFIG_FILES section.
9884 #
9885
9886 # No need to generate the scripts if there are no CONFIG_FILES.
9887 # This happens for instance when ./config.status config.h
9888 if test -n "\$CONFIG_FILES"; then
9889 # Protect against being on the right side of a sed subst in config.status.
9890 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9891 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9892 s,@SHELL@,$SHELL,;t t
9893 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9894 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9895 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9896 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9897 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9898 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9899 s,@exec_prefix@,$exec_prefix,;t t
9900 s,@prefix@,$prefix,;t t
9901 s,@program_transform_name@,$program_transform_name,;t t
9902 s,@bindir@,$bindir,;t t
9903 s,@sbindir@,$sbindir,;t t
9904 s,@libexecdir@,$libexecdir,;t t
9905 s,@datadir@,$datadir,;t t
9906 s,@sysconfdir@,$sysconfdir,;t t
9907 s,@sharedstatedir@,$sharedstatedir,;t t
9908 s,@localstatedir@,$localstatedir,;t t
9909 s,@libdir@,$libdir,;t t
9910 s,@includedir@,$includedir,;t t
9911 s,@oldincludedir@,$oldincludedir,;t t
9912 s,@infodir@,$infodir,;t t
9913 s,@mandir@,$mandir,;t t
9914 s,@build_alias@,$build_alias,;t t
9915 s,@host_alias@,$host_alias,;t t
9916 s,@target_alias@,$target_alias,;t t
9917 s,@DEFS@,$DEFS,;t t
9918 s,@ECHO_C@,$ECHO_C,;t t
9919 s,@ECHO_N@,$ECHO_N,;t t
9920 s,@ECHO_T@,$ECHO_T,;t t
9921 s,@LIBS@,$LIBS,;t t
9922 s,@build@,$build,;t t
9923 s,@build_cpu@,$build_cpu,;t t
9924 s,@build_vendor@,$build_vendor,;t t
9925 s,@build_os@,$build_os,;t t
9926 s,@host@,$host,;t t
9927 s,@host_cpu@,$host_cpu,;t t
9928 s,@host_vendor@,$host_vendor,;t t
9929 s,@host_os@,$host_os,;t t
9930 s,@target@,$target,;t t
9931 s,@target_cpu@,$target_cpu,;t t
9932 s,@target_vendor@,$target_vendor,;t t
9933 s,@target_os@,$target_os,;t t
9934 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9935 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9936 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9937 s,@LN@,$LN,;t t
9938 s,@LN_S@,$LN_S,;t t
9939 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
9940 s,@build_subdir@,$build_subdir,;t t
9941 s,@host_subdir@,$host_subdir,;t t
9942 s,@target_subdir@,$target_subdir,;t t
9943 s,@CC@,$CC,;t t
9944 s,@CFLAGS@,$CFLAGS,;t t
9945 s,@LDFLAGS@,$LDFLAGS,;t t
9946 s,@CPPFLAGS@,$CPPFLAGS,;t t
9947 s,@ac_ct_CC@,$ac_ct_CC,;t t
9948 s,@EXEEXT@,$EXEEXT,;t t
9949 s,@OBJEXT@,$OBJEXT,;t t
9950 s,@GNATBIND@,$GNATBIND,;t t
9951 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
9952 s,@do_compare@,$do_compare,;t t
9953 s,@gmplibs@,$gmplibs,;t t
9954 s,@gmpinc@,$gmpinc,;t t
9955 s,@stage1_languages@,$stage1_languages,;t t
9956 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
9957 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
9958 s,@tooldir@,$tooldir,;t t
9959 s,@build_tooldir@,$build_tooldir,;t t
9960 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
9961 s,@GDB_TK@,$GDB_TK,;t t
9962 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
9963 s,@build_configargs@,$build_configargs,;t t
9964 s,@build_configdirs@,$build_configdirs,;t t
9965 s,@host_configargs@,$host_configargs,;t t
9966 s,@configdirs@,$configdirs,;t t
9967 s,@target_configargs@,$target_configargs,;t t
9968 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9969 s,@config_shell@,$config_shell,;t t
9970 s,@YACC@,$YACC,;t t
9971 s,@BISON@,$BISON,;t t
9972 s,@M4@,$M4,;t t
9973 s,@LEX@,$LEX,;t t
9974 s,@FLEX@,$FLEX,;t t
9975 s,@MAKEINFO@,$MAKEINFO,;t t
9976 s,@EXPECT@,$EXPECT,;t t
9977 s,@RUNTEST@,$RUNTEST,;t t
9978 s,@AR@,$AR,;t t
9979 s,@AS@,$AS,;t t
9980 s,@DLLTOOL@,$DLLTOOL,;t t
9981 s,@LD@,$LD,;t t
9982 s,@LIPO@,$LIPO,;t t
9983 s,@NM@,$NM,;t t
9984 s,@RANLIB@,$RANLIB,;t t
9985 s,@STRIP@,$STRIP,;t t
9986 s,@WINDRES@,$WINDRES,;t t
9987 s,@OBJCOPY@,$OBJCOPY,;t t
9988 s,@OBJDUMP@,$OBJDUMP,;t t
9989 s,@CXX@,$CXX,;t t
9990 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
9991 s,@CXXFLAGS@,$CXXFLAGS,;t t
9992 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
9993 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
9994 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
9995 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
9996 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
9997 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
9998 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
9999 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10000 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10001 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10002 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10003 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10004 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10005 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10006 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10007 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10008 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10009 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10010 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10011 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10012 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10013 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10014 s,@MAINT@,$MAINT,;t t
10015 s,@stage1_cflags@,$stage1_cflags,;t t
10016 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10017 s,@LIBOBJS@,$LIBOBJS,;t t
10018 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10019 /@serialization_dependencies@/r $serialization_dependencies
10020 s,@serialization_dependencies@,,;t t
10021 /@host_makefile_frag@/r $host_makefile_frag
10022 s,@host_makefile_frag@,,;t t
10023 /@target_makefile_frag@/r $target_makefile_frag
10024 s,@target_makefile_frag@,,;t t
10025 /@alphaieee_frag@/r $alphaieee_frag
10026 s,@alphaieee_frag@,,;t t
10027 /@ospace_frag@/r $ospace_frag
10028 s,@ospace_frag@,,;t t
10029 CEOF
10030
10031 _ACEOF
10032
10033 cat >>$CONFIG_STATUS <<\_ACEOF
10034 # Split the substitutions into bite-sized pieces for seds with
10035 # small command number limits, like on Digital OSF/1 and HP-UX.
10036 ac_max_sed_lines=48
10037 ac_sed_frag=1 # Number of current file.
10038 ac_beg=1 # First line for current file.
10039 ac_end=$ac_max_sed_lines # Line after last line for current file.
10040 ac_more_lines=:
10041 ac_sed_cmds=
10042 while $ac_more_lines; do
10043 if test $ac_beg -gt 1; then
10044 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10045 else
10046 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10047 fi
10048 if test ! -s $tmp/subs.frag; then
10049 ac_more_lines=false
10050 else
10051 # The purpose of the label and of the branching condition is to
10052 # speed up the sed processing (if there are no `@' at all, there
10053 # is no need to browse any of the substitutions).
10054 # These are the two extra sed commands mentioned above.
10055 (echo ':t
10056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10057 if test -z "$ac_sed_cmds"; then
10058 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10059 else
10060 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10061 fi
10062 ac_sed_frag=`expr $ac_sed_frag + 1`
10063 ac_beg=$ac_end
10064 ac_end=`expr $ac_end + $ac_max_sed_lines`
10065 fi
10066 done
10067 if test -z "$ac_sed_cmds"; then
10068 ac_sed_cmds=cat
10069 fi
10070 fi # test -n "$CONFIG_FILES"
10071
10072 _ACEOF
10073 cat >>$CONFIG_STATUS <<\_ACEOF
10074 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10075 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10076 case $ac_file in
10077 - | *:- | *:-:* ) # input from stdin
10078 cat >$tmp/stdin
10079 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10080 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10081 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10082 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10083 * ) ac_file_in=$ac_file.in ;;
10084 esac
10085
10086 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10087 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10089 X"$ac_file" : 'X\(//\)[^/]' \| \
10090 X"$ac_file" : 'X\(//\)$' \| \
10091 X"$ac_file" : 'X\(/\)' \| \
10092 . : '\(.\)' 2>/dev/null ||
10093 echo X"$ac_file" |
10094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10096 /^X\(\/\/\)$/{ s//\1/; q; }
10097 /^X\(\/\).*/{ s//\1/; q; }
10098 s/.*/./; q'`
10099 { if $as_mkdir_p; then
10100 mkdir -p "$ac_dir"
10101 else
10102 as_dir="$ac_dir"
10103 as_dirs=
10104 while test ! -d "$as_dir"; do
10105 as_dirs="$as_dir $as_dirs"
10106 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10107 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10108 X"$as_dir" : 'X\(//\)[^/]' \| \
10109 X"$as_dir" : 'X\(//\)$' \| \
10110 X"$as_dir" : 'X\(/\)' \| \
10111 . : '\(.\)' 2>/dev/null ||
10112 echo X"$as_dir" |
10113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10115 /^X\(\/\/\)$/{ s//\1/; q; }
10116 /^X\(\/\).*/{ s//\1/; q; }
10117 s/.*/./; q'`
10118 done
10119 test ! -n "$as_dirs" || mkdir $as_dirs
10120 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10121 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10122 { (exit 1); exit 1; }; }; }
10123
10124 ac_builddir=.
10125
10126 if test "$ac_dir" != .; then
10127 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10128 # A "../" for each directory in $ac_dir_suffix.
10129 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10130 else
10131 ac_dir_suffix= ac_top_builddir=
10132 fi
10133
10134 case $srcdir in
10135 .) # No --srcdir option. We are building in place.
10136 ac_srcdir=.
10137 if test -z "$ac_top_builddir"; then
10138 ac_top_srcdir=.
10139 else
10140 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10141 fi ;;
10142 [\\/]* | ?:[\\/]* ) # Absolute path.
10143 ac_srcdir=$srcdir$ac_dir_suffix;
10144 ac_top_srcdir=$srcdir ;;
10145 *) # Relative path.
10146 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10147 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10148 esac
10149
10150 # Do not use `cd foo && pwd` to compute absolute paths, because
10151 # the directories may not exist.
10152 case `pwd` in
10153 .) ac_abs_builddir="$ac_dir";;
10154 *)
10155 case "$ac_dir" in
10156 .) ac_abs_builddir=`pwd`;;
10157 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10158 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10159 esac;;
10160 esac
10161 case $ac_abs_builddir in
10162 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10163 *)
10164 case ${ac_top_builddir}. in
10165 .) ac_abs_top_builddir=$ac_abs_builddir;;
10166 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10167 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10168 esac;;
10169 esac
10170 case $ac_abs_builddir in
10171 .) ac_abs_srcdir=$ac_srcdir;;
10172 *)
10173 case $ac_srcdir in
10174 .) ac_abs_srcdir=$ac_abs_builddir;;
10175 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10176 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10177 esac;;
10178 esac
10179 case $ac_abs_builddir in
10180 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10181 *)
10182 case $ac_top_srcdir in
10183 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10184 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10185 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10186 esac;;
10187 esac
10188
10189
10190 case $INSTALL in
10191 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10192 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10193 esac
10194
10195 if test x"$ac_file" != x-; then
10196 { echo "$as_me:$LINENO: creating $ac_file" >&5
10197 echo "$as_me: creating $ac_file" >&6;}
10198 rm -f "$ac_file"
10199 fi
10200 # Let's still pretend it is `configure' which instantiates (i.e., don't
10201 # use $as_me), people would be surprised to read:
10202 # /* config.h. Generated by config.status. */
10203 if test x"$ac_file" = x-; then
10204 configure_input=
10205 else
10206 configure_input="$ac_file. "
10207 fi
10208 configure_input=$configure_input"Generated from `echo $ac_file_in |
10209 sed 's,.*/,,'` by configure."
10210
10211 # First look for the input files in the build tree, otherwise in the
10212 # src tree.
10213 ac_file_inputs=`IFS=:
10214 for f in $ac_file_in; do
10215 case $f in
10216 -) echo $tmp/stdin ;;
10217 [\\/$]*)
10218 # Absolute (can't be DOS-style, as IFS=:)
10219 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10220 echo "$as_me: error: cannot find input file: $f" >&2;}
10221 { (exit 1); exit 1; }; }
10222 echo "$f";;
10223 *) # Relative
10224 if test -f "$f"; then
10225 # Build tree
10226 echo "$f"
10227 elif test -f "$srcdir/$f"; then
10228 # Source tree
10229 echo "$srcdir/$f"
10230 else
10231 # /dev/null tree
10232 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10233 echo "$as_me: error: cannot find input file: $f" >&2;}
10234 { (exit 1); exit 1; }; }
10235 fi;;
10236 esac
10237 done` || { (exit 1); exit 1; }
10238 _ACEOF
10239 cat >>$CONFIG_STATUS <<_ACEOF
10240 sed "$ac_vpsub
10241 $extrasub
10242 _ACEOF
10243 cat >>$CONFIG_STATUS <<\_ACEOF
10244 :t
10245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10246 s,@configure_input@,$configure_input,;t t
10247 s,@srcdir@,$ac_srcdir,;t t
10248 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10249 s,@top_srcdir@,$ac_top_srcdir,;t t
10250 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10251 s,@builddir@,$ac_builddir,;t t
10252 s,@abs_builddir@,$ac_abs_builddir,;t t
10253 s,@top_builddir@,$ac_top_builddir,;t t
10254 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10255 s,@INSTALL@,$ac_INSTALL,;t t
10256 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10257 rm -f $tmp/stdin
10258 if test x"$ac_file" != x-; then
10259 mv $tmp/out $ac_file
10260 else
10261 cat $tmp/out
10262 rm -f $tmp/out
10263 fi
10264
10265 done
10266 _ACEOF
10267
10268 cat >>$CONFIG_STATUS <<\_ACEOF
10269
10270 { (exit 0); exit 0; }
10271 _ACEOF
10272 chmod +x $CONFIG_STATUS
10273 ac_clean_files=$ac_clean_files_save
10274
10275
10276 # configure is writing to config.log, and then calls config.status.
10277 # config.status does its own redirection, appending to config.log.
10278 # Unfortunately, on DOS this fails, as config.log is still kept open
10279 # by configure, so config.status won't be able to write to it; its
10280 # output is simply discarded. So we exec the FD to /dev/null,
10281 # effectively closing config.log, so it can be properly (re)opened and
10282 # appended to by config.status. When coming back to configure, we
10283 # need to make the FD available again.
10284 if test "$no_create" != yes; then
10285 ac_cs_success=:
10286 ac_config_status_args=
10287 test "$silent" = yes &&
10288 ac_config_status_args="$ac_config_status_args --quiet"
10289 exec 5>/dev/null
10290 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10291 exec 5>>config.log
10292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10293 # would make configure fail if this is the last instruction.
10294 $ac_cs_success || { (exit 1); exit 1; }
10295 fi
10296