]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
* parser.c (cp_parser_primary_expression): Reformat overly long lines.
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
1c710c3c 3# Generated by GNU Autoconf 2.59.
671aa708 4#
1c710c3c 5# Copyright (C) 2003 Free Software Foundation, Inc.
671aa708
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
1c710c3c
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
0b0dc272 226
1c710c3c
DJ
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" $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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
671aa708 254ac_default_prefix=/usr/local
1c710c3c
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
275ac_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 build_noncanonical host_noncanonical target_noncanonical 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_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE 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 RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
671aa708
NN
277
278# Initialize some variables set by options.
1c710c3c
DJ
279ac_init_help=
280ac_init_version=false
671aa708
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
1c710c3c 283cache_file=/dev/null
671aa708 284exec_prefix=NONE
671aa708 285no_create=
671aa708
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
671aa708
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
1c710c3c
DJ
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.
671aa708
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
79c06341 315
671aa708
NN
316ac_prev=
317for ac_option
318do
671aa708
NN
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
79c06341 325
1c710c3c 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
1c710c3c 330 case $ac_option in
671aa708
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 335 bindir=$ac_optarg ;;
671aa708
NN
336
337 -build | --build | --buil | --bui | --bu)
1c710c3c 338 ac_prev=build_alias ;;
671aa708 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 340 build_alias=$ac_optarg ;;
671aa708
NN
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=*)
1c710c3c
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
671aa708
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
1c710c3c 356 datadir=$ac_optarg ;;
671aa708
NN
357
358 -disable-* | --disable-*)
1c710c3c 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 360 # Reject names that are not valid shell variable names.
1c710c3c
DJ
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" ;;
671aa708
NN
366
367 -enable-* | --enable-*)
1c710c3c 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 369 # Reject names that are not valid shell variable names.
1c710c3c
DJ
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"`;;
671aa708
NN
376 *) ac_optarg=yes ;;
377 esac
1c710c3c 378 eval "enable_$ac_feature='$ac_optarg'" ;;
671aa708
NN
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=*)
1c710c3c 387 exec_prefix=$ac_optarg ;;
671aa708
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
1c710c3c
DJ
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 ;;
671aa708
NN
399
400 -host | --host | --hos | --ho)
1c710c3c 401 ac_prev=host_alias ;;
671aa708 402 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 403 host_alias=$ac_optarg ;;
671aa708
NN
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=*)
1c710c3c 410 includedir=$ac_optarg ;;
671aa708
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 415 infodir=$ac_optarg ;;
671aa708
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 420 libdir=$ac_optarg ;;
671aa708
NN
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=*)
1c710c3c 427 libexecdir=$ac_optarg ;;
671aa708
NN
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=*)
1c710c3c 436 localstatedir=$ac_optarg ;;
671aa708
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 441 mandir=$ac_optarg ;;
671aa708
NN
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 \
1c710c3c 448 | --no-cr | --no-c | -n)
671aa708
NN
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=*)
1c710c3c 462 oldincludedir=$ac_optarg ;;
671aa708
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 467 prefix=$ac_optarg ;;
671aa708
NN
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=*)
1c710c3c 474 program_prefix=$ac_optarg ;;
671aa708
NN
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=*)
1c710c3c 481 program_suffix=$ac_optarg ;;
671aa708
NN
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=*)
1c710c3c 498 program_transform_name=$ac_optarg ;;
671aa708
NN
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=*)
1c710c3c 508 sbindir=$ac_optarg ;;
671aa708
NN
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=*)
1c710c3c 519 sharedstatedir=$ac_optarg ;;
671aa708
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
1c710c3c 524 site=$ac_optarg ;;
671aa708
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 529 srcdir=$ac_optarg ;;
671aa708
NN
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=*)
1c710c3c 536 sysconfdir=$ac_optarg ;;
671aa708
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 539 ac_prev=target_alias ;;
671aa708 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 541 target_alias=$ac_optarg ;;
671aa708
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
1c710c3c
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
671aa708
NN
548
549 -with-* | --with-*)
1c710c3c 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 551 # Reject names that are not valid shell variable names.
1c710c3c
DJ
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; }; }
671aa708 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
1c710c3c
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
671aa708
NN
558 *) ac_optarg=yes ;;
559 esac
1c710c3c 560 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
561
562 -without-* | --without-*)
1c710c3c 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 564 # Reject names that are not valid shell variable names.
1c710c3c
DJ
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" ;;
671aa708
NN
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=*)
1c710c3c 580 x_includes=$ac_optarg ;;
671aa708
NN
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=*)
1c710c3c 587 x_libraries=$ac_optarg ;;
671aa708 588
1c710c3c
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
671aa708
NN
592 ;;
593
1c710c3c
DJ
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
671aa708 604 *)
1c710c3c
DJ
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}
671aa708
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
1c710c3c
DJ
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; }; }
af71363e 619fi
af71363e 620
1c710c3c
DJ
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
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
630done
fb0103e5 631
1c710c3c
DJ
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
671aa708 635do
1c710c3c
DJ
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; }; };;
671aa708
NN
641 esac
642done
643
1c710c3c
DJ
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.
647build=$build_alias
648host=$host_alias
649target=$target_alias
0b0dc272 650
1c710c3c
DJ
651# FIXME: To remove some day.
652if 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
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
671aa708 666
671aa708
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
1c710c3c
DJ
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 ||
678echo 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'`
671aa708
NN
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
1c710c3c
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
671aa708 695 else
1c710c3c
DJ
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699fi
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; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732
733#
734# Report the --help message.
735#
736if 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
742Usage: $0 [OPTION]... [VAR=VALUE]...
743
744To assign environment variables (e.g., CC, CFLAGS...), specify them as
745VAR=VALUE. See below for descriptions of some of the useful variables.
746
747Defaults for the options are specified in brackets.
748
749Configuration:
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
763Installation 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
769By default, \`make install' will install all the files in
770\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
771an installation prefix other than \`$ac_default_prefix' using \`--prefix',
772for instance \`--prefix=\$HOME'.
773
774For better control, use the options below.
775
776Fine 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
793Program 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
798System 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
803fi
804
805if test -n "$ac_init_help"; then
806
807 cat <<\_ACEOF
808
809Optional 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-stage1-languages=all choose additional languages to build during
815 stage1. Mostly useful for compiler development.
816 --enable-objc-gc enable the use of Boehm's garbage collector with
817 the GNU Objective-C runtime.
818 --enable-bootstrap Enable bootstrapping yes if native build
819 --enable-serial-{host,target,build}-configure
820 Force sequential configuration of
821 sub-packages for the host, target or build
822 machine, or all sub-packages
823 --enable-maintainer-mode enable make rules and dependencies not useful
824 (and sometimes confusing) to the casual installer
825 --enable-stage1-checking=all choose additional checking for stage1
826 of the compiler.
827 --enable-werror enable -Werror in bootstrap stage2 and later
828
829Optional Packages:
830 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
831 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
832 --with-build-libsubdir=DIR Directory where to find libraries for build system
833 --with-mpfr-dir=PATH This option has been REMOVED
834 --with-mpfr=PATH Specify prefix directory for installed MPFR package
835 Equivalent to --with-mpfr-include=PATH/include
836 plus --with-mpfr-lib=PATH/lib
837 --with-mpfr-include=PATH
838 Specify directory for installed MPFR include files
839 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
840 --with-gmp-dir=PATH This option has been REMOVED
841 --with-gmp=PATH Specify prefix directory for the installed GMP package
842 Equivalent to --with-gmp-include=PATH/include
843 plus --with-gmp-lib=PATH/lib
844 --with-gmp-include=PATH Specify directory for installed GMP include files
845 --with-gmp-lib=PATH Specify the directory for the installed GMP library
846 --with-build-sysroot=sysroot
847 use sysroot as the system root during the build
848 --with-build-time-tools=path
849 use given path to find target tools during the build
850 --with-datarootdir Use datarootdir as the data root directory.
851 --with-docdir Install documentation in this directory.
852 --with-htmldir Install html in this directory.
853
854Some influential environment variables:
855 CC C compiler command
856 CFLAGS C compiler flags
857 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
858 nonstandard directory <lib dir>
859 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
860 headers in a nonstandard directory <include dir>
861
862Use these variables to override the choices made by `configure' or to help
863it to find libraries and programs with nonstandard names/locations.
864
865_ACEOF
866fi
867
868if test "$ac_init_help" = "recursive"; then
869 # If there are subdirs, report their specific --help.
870 ac_popdir=`pwd`
871 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
872 test -d $ac_dir || continue
873 ac_builddir=.
874
875if test "$ac_dir" != .; then
876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
877 # A "../" for each directory in $ac_dir_suffix.
878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
879else
880 ac_dir_suffix= ac_top_builddir=
881fi
882
883case $srcdir in
884 .) # No --srcdir option. We are building in place.
885 ac_srcdir=.
886 if test -z "$ac_top_builddir"; then
887 ac_top_srcdir=.
888 else
889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
890 fi ;;
891 [\\/]* | ?:[\\/]* ) # Absolute path.
892 ac_srcdir=$srcdir$ac_dir_suffix;
893 ac_top_srcdir=$srcdir ;;
894 *) # Relative path.
895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
897esac
898
899# Do not use `cd foo && pwd` to compute absolute paths, because
900# the directories may not exist.
901case `pwd` in
902.) ac_abs_builddir="$ac_dir";;
903*)
904 case "$ac_dir" in
905 .) ac_abs_builddir=`pwd`;;
906 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
907 *) ac_abs_builddir=`pwd`/"$ac_dir";;
908 esac;;
909esac
910case $ac_abs_builddir in
911.) ac_abs_top_builddir=${ac_top_builddir}.;;
912*)
913 case ${ac_top_builddir}. in
914 .) ac_abs_top_builddir=$ac_abs_builddir;;
915 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
916 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
917 esac;;
918esac
919case $ac_abs_builddir in
920.) ac_abs_srcdir=$ac_srcdir;;
921*)
922 case $ac_srcdir in
923 .) ac_abs_srcdir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
925 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
926 esac;;
927esac
928case $ac_abs_builddir in
929.) ac_abs_top_srcdir=$ac_top_srcdir;;
930*)
931 case $ac_top_srcdir in
932 .) ac_abs_top_srcdir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
934 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
935 esac;;
936esac
937
938 cd $ac_dir
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
941 echo
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
944 echo
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
948 echo
949 $ac_configure --help
950 else
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 fi
953 cd $ac_popdir
954 done
955fi
956
957test -n "$ac_init_help" && exit 0
958if $ac_init_version; then
959 cat <<\_ACEOF
960
961Copyright (C) 2003 Free Software Foundation, Inc.
962This configure script is free software; the Free Software Foundation
963gives unlimited permission to copy, distribute and modify it.
964_ACEOF
965 exit 0
0b0dc272 966fi
1c710c3c
DJ
967exec 5>config.log
968cat >&5 <<_ACEOF
969This file contains any messages produced by compilers while
970running configure, to aid debugging if configure makes a mistake.
971
972It was created by $as_me, which was
973generated by GNU Autoconf 2.59. Invocation command line was
974
975 $ $0 $@
976
977_ACEOF
978{
979cat <<_ASUNAME
980## --------- ##
981## Platform. ##
982## --------- ##
983
984hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985uname -m = `(uname -m) 2>/dev/null || echo unknown`
986uname -r = `(uname -r) 2>/dev/null || echo unknown`
987uname -s = `(uname -s) 2>/dev/null || echo unknown`
988uname -v = `(uname -v) 2>/dev/null || echo unknown`
989
990/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
992
993/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
994/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
995/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
997/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
998/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
999/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000
1001_ASUNAME
1002
1003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004for as_dir in $PATH
1005do
1006 IFS=$as_save_IFS
1007 test -z "$as_dir" && as_dir=.
1008 echo "PATH: $as_dir"
1009done
1010
1011} >&5
1012
1013cat >&5 <<_ACEOF
1014
1015
1016## ----------- ##
1017## Core tests. ##
1018## ----------- ##
1019
1020_ACEOF
1021
1022
1023# Keep a trace of the command line.
1024# Strip out --no-create and --no-recursion so they do not pile up.
1025# Strip out --silent because we don't want to record it for future runs.
1026# Also quote any args containing shell meta-characters.
1027# Make two passes to allow for proper duplicate-argument suppression.
1028ac_configure_args=
1029ac_configure_args0=
1030ac_configure_args1=
1031ac_sep=
1032ac_must_keep_next=false
1033for ac_pass in 1 2
1034do
1035 for ac_arg
1036 do
1037 case $ac_arg in
1038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1041 continue ;;
1042 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1043 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1044 esac
1045 case $ac_pass in
1046 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047 2)
1048 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1049 if test $ac_must_keep_next = true; then
1050 ac_must_keep_next=false # Got value, back to normal.
1051 else
1052 case $ac_arg in
1053 *=* | --config-cache | -C | -disable-* | --disable-* \
1054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1056 | -with-* | --with-* | -without-* | --without-* | --x)
1057 case "$ac_configure_args0 " in
1058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1059 esac
1060 ;;
1061 -* ) ac_must_keep_next=true ;;
1062 esac
1063 fi
1064 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1065 # Get rid of the leading space.
1066 ac_sep=" "
1067 ;;
1068 esac
1069 done
1070done
1071$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1072$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073
1074# When interrupted or exit'd, cleanup temporary files, and complete
1075# config.log. We remove comments because anyway the quotes in there
1076# would cause problems or look ugly.
1077# WARNING: Be sure not to use single quotes in there, as some shells,
1078# such as our DU 5.0 friend, will then `close' the trap.
1079trap 'exit_status=$?
1080 # Save into config.log some information that might help in debugging.
1081 {
1082 echo
1083
1084 cat <<\_ASBOX
1085## ---------------- ##
1086## Cache variables. ##
1087## ---------------- ##
1088_ASBOX
1089 echo
1090 # The following way of writing the cache mishandles newlines in values,
1091{
1092 (set) 2>&1 |
1093 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1094 *ac_space=\ *)
1095 sed -n \
1096 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1098 ;;
1099 *)
1100 sed -n \
1101 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102 ;;
1103 esac;
1104}
1105 echo
1106
1107 cat <<\_ASBOX
1108## ----------------- ##
1109## Output variables. ##
1110## ----------------- ##
1111_ASBOX
1112 echo
1113 for ac_var in $ac_subst_vars
1114 do
1115 eval ac_val=$`echo $ac_var`
1116 echo "$ac_var='"'"'$ac_val'"'"'"
1117 done | sort
1118 echo
1119
1120 if test -n "$ac_subst_files"; then
1121 cat <<\_ASBOX
1122## ------------- ##
1123## Output files. ##
1124## ------------- ##
1125_ASBOX
1126 echo
1127 for ac_var in $ac_subst_files
1128 do
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1133 fi
1134
1135 if test -s confdefs.h; then
1136 cat <<\_ASBOX
1137## ----------- ##
1138## confdefs.h. ##
1139## ----------- ##
1140_ASBOX
1141 echo
1142 sed "/^$/d" confdefs.h | sort
1143 echo
1144 fi
1145 test "$ac_signal" != 0 &&
1146 echo "$as_me: caught signal $ac_signal"
1147 echo "$as_me: exit $exit_status"
1148 } >&5
1149 rm -f core *.core &&
1150 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1151 exit $exit_status
1152 ' 0
1153for ac_signal in 1 2 13 15; do
1154 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1155done
1156ac_signal=0
1157
1158# confdefs.h avoids OS command line length limits that DEFS can exceed.
1159rm -rf conftest* confdefs.h
1160# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1161echo >confdefs.h
1162
1163# Predefined preprocessor variables.
1164
1165cat >>confdefs.h <<_ACEOF
1166#define PACKAGE_NAME "$PACKAGE_NAME"
1167_ACEOF
1168
1169
1170cat >>confdefs.h <<_ACEOF
1171#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1172_ACEOF
1173
1174
1175cat >>confdefs.h <<_ACEOF
1176#define PACKAGE_VERSION "$PACKAGE_VERSION"
1177_ACEOF
0b0dc272 1178
1c710c3c
DJ
1179
1180cat >>confdefs.h <<_ACEOF
1181#define PACKAGE_STRING "$PACKAGE_STRING"
1182_ACEOF
1183
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1187_ACEOF
1188
1189
1190# Let the site file select an alternate cache file if it wants to.
671aa708 1191# Prefer explicitly selected file to automatically selected ones.
bba5e0ca
EB
1192if test -z "$CONFIG_SITE"; then
1193 if test "x$prefix" != xNONE; then
1194 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1195 else
1196 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
671aa708
NN
1197 fi
1198fi
1199for ac_site_file in $CONFIG_SITE; do
1200 if test -r "$ac_site_file"; then
1c710c3c
DJ
1201 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1202echo "$as_me: loading site script $ac_site_file" >&6;}
1203 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1204 . "$ac_site_file"
1205 fi
1206done
1207
1208if test -r "$cache_file"; then
1c710c3c
DJ
1209 # Some versions of bash will fail to source /dev/null (special
1210 # files actually), so we avoid doing that.
1211 if test -f "$cache_file"; then
1212 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1213echo "$as_me: loading cache $cache_file" >&6;}
1214 case $cache_file in
1215 [\\/]* | ?:[\\/]* ) . $cache_file;;
1216 *) . ./$cache_file;;
1217 esac
1218 fi
671aa708 1219else
1c710c3c
DJ
1220 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1221echo "$as_me: creating cache $cache_file" >&6;}
1222 >$cache_file
1223fi
1224
1225# Check that the precious variables saved in the cache have kept the same
1226# value.
1227ac_cache_corrupted=false
1228for ac_var in `(set) 2>&1 |
1229 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1231 eval ac_new_set=\$ac_env_${ac_var}_set
1232 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1233 eval ac_new_val="\$ac_env_${ac_var}_value"
1234 case $ac_old_set,$ac_new_set in
1235 set,)
1236 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1237echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1238 ac_cache_corrupted=: ;;
1239 ,set)
1240 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1241echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1242 ac_cache_corrupted=: ;;
1243 ,);;
1244 *)
1245 if test "x$ac_old_val" != "x$ac_new_val"; then
1246 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1247echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1248 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1249echo "$as_me: former value: $ac_old_val" >&2;}
1250 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1251echo "$as_me: current value: $ac_new_val" >&2;}
1252 ac_cache_corrupted=:
1253 fi;;
1254 esac
1255 # Pass precious variables to config.status.
1256 if test "$ac_new_set" = set; then
1257 case $ac_new_val in
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 *) ac_arg=$ac_var=$ac_new_val ;;
1261 esac
1262 case " $ac_configure_args " in
1263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1264 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1265 esac
1266 fi
1267done
1268if $ac_cache_corrupted; then
1269 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1270echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1271 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1272echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1273 { (exit 1); exit 1; }; }
671aa708
NN
1274fi
1275
1276ac_ext=c
671aa708 1277ac_cpp='$CPP $CPPFLAGS'
1c710c3c
DJ
1278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1280ac_compiler_gnu=$ac_cv_c_compiler_gnu
1281
1282
1283
1284
1285
671aa708
NN
1286
1287
d02c69be 1288
1c710c3c
DJ
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302# Find the build, host, and target systems.
671aa708 1303ac_aux_dir=
4c4a5bbc 1304for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
671aa708
NN
1305 if test -f $ac_dir/install-sh; then
1306 ac_aux_dir=$ac_dir
1307 ac_install_sh="$ac_aux_dir/install-sh -c"
1308 break
1309 elif test -f $ac_dir/install.sh; then
1310 ac_aux_dir=$ac_dir
1311 ac_install_sh="$ac_aux_dir/install.sh -c"
1312 break
1c710c3c
DJ
1313 elif test -f $ac_dir/shtool; then
1314 ac_aux_dir=$ac_dir
1315 ac_install_sh="$ac_aux_dir/shtool install -c"
1316 break
671aa708
NN
1317 fi
1318done
1319if test -z "$ac_aux_dir"; then
1c710c3c
DJ
1320 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1321echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1322 { (exit 1); exit 1; }; }
671aa708 1323fi
1c710c3c
DJ
1324ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1327
1c710c3c
DJ
1328# Make sure we can run config.sub.
1329$ac_config_sub sun4 >/dev/null 2>&1 ||
1330 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1331echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1332 { (exit 1); exit 1; }; }
1333
1334echo "$as_me:$LINENO: checking build system type" >&5
1335echo $ECHO_N "checking build system type... $ECHO_C" >&6
1336if test "${ac_cv_build+set}" = set; then
1337 echo $ECHO_N "(cached) $ECHO_C" >&6
1338else
1339 ac_cv_build_alias=$build_alias
1340test -z "$ac_cv_build_alias" &&
1341 ac_cv_build_alias=`$ac_config_guess`
1342test -z "$ac_cv_build_alias" &&
1343 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1344echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1345 { (exit 1); exit 1; }; }
1346ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1347 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1348echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1349 { (exit 1); exit 1; }; }
1350
1351fi
1352echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1353echo "${ECHO_T}$ac_cv_build" >&6
1354build=$ac_cv_build
1355build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1356build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1357build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1358
671aa708 1359
1c710c3c
DJ
1360 case ${build_alias} in
1361 "") build_noncanonical=${build} ;;
1362 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1363esac
1364
1365
af71363e 1366
1c710c3c
DJ
1367 case ${host_alias} in
1368 "") host_noncanonical=${build_noncanonical} ;;
1369 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1370esac
1371
af71363e 1372
1c710c3c
DJ
1373
1374 case ${target_alias} in
1375 "") target_noncanonical=${host_noncanonical} ;;
1376 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1377esac
1378
af71363e 1379
1c710c3c
DJ
1380
1381
1382test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1383 test "$program_prefix$program_suffix$program_transform_name" = \
1384 NONENONEs,x,x, &&
1c710c3c 1385 program_transform_name=s,y,y,
af71363e 1386
1c710c3c
DJ
1387echo "$as_me:$LINENO: checking host system type" >&5
1388echo $ECHO_N "checking host system type... $ECHO_C" >&6
1389if test "${ac_cv_host+set}" = set; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1391else
1c710c3c
DJ
1392 ac_cv_host_alias=$host_alias
1393test -z "$ac_cv_host_alias" &&
1394 ac_cv_host_alias=$ac_cv_build_alias
1395ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1396 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1397echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1398 { (exit 1); exit 1; }; }
1399
af71363e 1400fi
1c710c3c
DJ
1401echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1402echo "${ECHO_T}$ac_cv_host" >&6
1403host=$ac_cv_host
1404host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407
1408
1409echo "$as_me:$LINENO: checking target system type" >&5
1410echo $ECHO_N "checking target system type... $ECHO_C" >&6
1411if test "${ac_cv_target+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1413else
1414 ac_cv_target_alias=$target_alias
1415test "x$ac_cv_target_alias" = "x" &&
1416 ac_cv_target_alias=$ac_cv_host_alias
1417ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1419echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1420 { (exit 1); exit 1; }; }
1421
1422fi
1423echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1424echo "${ECHO_T}$ac_cv_target" >&6
1425target=$ac_cv_target
1426target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429
1430
1431# The aliases save the names the user supplied, while $host etc.
1432# will get canonicalized.
1433test -n "$target_alias" &&
1434 test "$program_prefix$program_suffix$program_transform_name" = \
1435 NONENONEs,x,x, &&
1436 program_prefix=${target_alias}-
671aa708 1437test "$program_prefix" != NONE &&
1c710c3c 1438 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1439# Use a double $ so make ignores it.
1440test "$program_suffix" != NONE &&
1c710c3c
DJ
1441 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1442# Double any \ or $. echo might interpret backslashes.
1443# By default was `s,x,x', remove it if useless.
1444cat <<\_ACEOF >conftest.sed
1445s/[\\$]/&&/g;s/;s,x,x,$//
1446_ACEOF
1447program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1448rm conftest.sed
af71363e 1449
671aa708
NN
1450
1451
775956d0
NN
1452# Get 'install' or 'install-sh' and its variants.
1453# Find a good install program. We prefer a C program (faster),
1454# so one script is as good as another. But avoid the broken or
1455# incompatible versions:
1456# SysV /etc/install, /usr/sbin/install
1457# SunOS /usr/etc/install
1458# IRIX /sbin/install
1459# AIX /bin/install
1c710c3c 1460# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1461# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1462# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1463# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1464# OS/2's system install, which has a completely different semantic
775956d0 1465# ./install, which can be erroneously created by make from ./install.sh.
1c710c3c
DJ
1466echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1467echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1468if test -z "$INSTALL"; then
1c710c3c
DJ
1469if test "${ac_cv_path_install+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1471else
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 # Account for people who put trailing slashes in PATH elements.
1478case $as_dir/ in
1479 ./ | .// | /cC/* | \
1480 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1481 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1482 /usr/ucb/* ) ;;
1483 *)
1484 # OSF1 and SCO ODT 3.0 have their own names for install.
1485 # Don't use installbsd from OSF since it installs stuff as root
1486 # by default.
1487 for ac_prog in ginstall scoinst install; do
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1490 if test $ac_prog = install &&
1c710c3c 1491 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1492 # AIX install. It has an incompatible calling convention.
1493 :
1c710c3c
DJ
1494 elif test $ac_prog = install &&
1495 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1496 # program-specific install script used by HP pwplus--don't use.
1497 :
775956d0 1498 else
1c710c3c
DJ
1499 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1500 break 3
775956d0
NN
1501 fi
1502 fi
1503 done
1c710c3c
DJ
1504 done
1505 ;;
1506esac
1507done
1508
775956d0
NN
1509
1510fi
1511 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1512 INSTALL=$ac_cv_path_install
775956d0
NN
1513 else
1514 # As a last resort, use the slow shell script. We don't cache a
1515 # path for INSTALL within a source directory, because that will
1516 # break other packages using the cache if that directory is
1517 # removed, or if the path is relative.
1c710c3c 1518 INSTALL=$ac_install_sh
775956d0
NN
1519 fi
1520fi
1c710c3c
DJ
1521echo "$as_me:$LINENO: result: $INSTALL" >&5
1522echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1523
1524# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1525# It thinks the first close brace ends the variable substitution.
1526test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1527
1c710c3c 1528test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1529
1530test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1531
1c710c3c
DJ
1532echo "$as_me:$LINENO: checking whether ln works" >&5
1533echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1534if test "${acx_cv_prog_LN+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1536else
1537 rm -f conftestdata_t
1538echo >conftestdata_f
1539if ln conftestdata_f conftestdata_t 2>/dev/null
1540then
1541 acx_cv_prog_LN=ln
1542else
1543 acx_cv_prog_LN=no
1544fi
1545rm -f conftestdata_f conftestdata_t
1546
1547fi
1548if test $acx_cv_prog_LN = no; then
1549 LN="cp"
1c710c3c
DJ
1550 echo "$as_me:$LINENO: result: no, using $LN" >&5
1551echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1552else
1553 LN="$acx_cv_prog_LN"
1c710c3c
DJ
1554 echo "$as_me:$LINENO: result: yes" >&5
1555echo "${ECHO_T}yes" >&6
ad6717df
PB
1556fi
1557
1c710c3c
DJ
1558echo "$as_me:$LINENO: checking whether ln -s works" >&5
1559echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1560LN_S=$as_ln_s
1561if test "$LN_S" = "ln -s"; then
1562 echo "$as_me:$LINENO: result: yes" >&5
1563echo "${ECHO_T}yes" >&6
fb0103e5 1564else
1c710c3c
DJ
1565 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1566echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1567fi
1568
775956d0 1569
79c06341 1570### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1571### If we are on Windows, search for the shell. This will permit people
1572### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1573### without also having to set CONFIG_SHELL. This code will work when
1574### using bash, which sets OSTYPE.
1575case "${OSTYPE}" in
1576*win32*)
671aa708
NN
1577 if test x${CONFIG_SHELL} = x ; then
1578 if test ! -f /bin/sh ; then
1579 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1580 CONFIG_SHELL=${SHELL}
1581 export CONFIG_SHELL
1582 else
1583 for prog in sh sh.exe bash bash.exe; do
1584 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1585 for dir in $PATH; do
1586 test -z "$dir" && dir=.
1587 if test -f $dir/$prog; then
1588 CONFIG_SHELL=$dir/$prog
1589 export CONFIG_SHELL
1590 break
1591 fi
1592 done
1593 IFS="$save_ifs"
1594 test -n "${CONFIG_SHELL}" && break
1595 done
1596 fi
1597 fi
1598 fi
1599 ;;
1600esac
1601
1602config_shell=${CONFIG_SHELL-/bin/sh}
1603
79c06341
JL
1604progname=$0
1605# if PWD already has a value, it is probably wrong.
671aa708 1606if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 1607
b348267b 1608# Export original configure arguments for use by sub-configures. These
eeae7b41
DJ
1609# will be expanded by make, so quote '$'.
1610tmp="$progname $@"
1611sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
1612$tmp
b348267b 1613EOF_SED
eeae7b41
DJ
1614TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
1615rm -f conftestsed.out
3dfabf63 1616
cc1e60ea 1617
671aa708 1618moveifchange=${srcdir}/move-if-change
79c06341 1619
ee6a22df
L
1620srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1621
1622# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1623# a relative path.
1624if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1625 INSTALL="${srcpwd}/install-sh -c"
1626fi
1627
671aa708
NN
1628# Set srcdir to "." if that's what it is.
1629# This is important for multilib support.
1630pwd=`${PWDCMD-pwd}`
671aa708
NN
1631if test "${pwd}" = "${srcpwd}" ; then
1632 srcdir=.
79c06341
JL
1633fi
1634
671aa708 1635topsrcdir=$srcpwd
5d4a5ee6 1636
671aa708 1637extra_host_args=
afabd8e6 1638
671aa708
NN
1639### To add a new directory to the tree, first choose whether it is a target
1640### or a host dependent tool. Then put it into the appropriate list
1641### (library or tools, host or target), doing a dependency sort.
79c06341 1642
1c710c3c 1643# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1644# configdirs, or target_configdirs; see the serialization section below.
79c06341 1645
1c710c3c
DJ
1646# Dependency sorting is only needed when *configuration* must be done in
1647# a particular order. In all cases a dependency should be specified in
671aa708 1648# the Makefile, whether or not it's implicitly specified here.
79c06341 1649
671aa708
NN
1650# Double entries in build_configdirs, configdirs, or target_configdirs may
1651# cause circular dependencies and break everything horribly.
79c06341 1652
23f6b2f9
PB
1653# these library is used by various programs built for the build
1654# environment
1655#
1656build_libs="build-libiberty"
1657
1658# these tools are built for the build environment
71b5d516 1659build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1660
671aa708
NN
1661# these libraries are used by various programs built for the host environment
1662#
e69bf64b 1663host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
671aa708 1664
671aa708
NN
1665# these tools are built for the host environment
1666# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1667# know that we are building the simulator.
1668# binutils, gas and ld appear in that order because it makes sense to run
1669# "make check" in that particular order.
5395b47b 1670host_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"
671aa708
NN
1671
1672# libgcj represents the runtime libraries only used by gcj.
1673libgcj="target-libffi \
671aa708
NN
1674 target-zlib \
1675 target-qthreads \
1676 target-libjava"
1677
1678# these libraries are built for the target environment, and are built after
1679# the host libraries and the host tools (which may be a cross compiler)
1680#
4dbda6f0 1681target_libraries="target-libiberty \
fa958513 1682 target-libgcc \
671aa708
NN
1683 target-libgloss \
1684 target-newlib \
cb543528 1685 target-libstdc++-v3 \
6de9cd9a 1686 target-libmudflap \
77008252 1687 target-libssp \
6de9cd9a 1688 target-libgfortran \
7cd0cf9c 1689 target-boehm-gc \
77d187bc 1690 ${libgcj} \
d9cdb878 1691 target-libobjc \
953ff289
DN
1692 target-libada \
1693 target-libgomp"
671aa708 1694
4dbda6f0
NN
1695# these tools are built using the target libraries, and are intended to
1696# run only in the target environment
671aa708 1697#
4dbda6f0 1698# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1699# list belongs in this list. those programs are also very likely
1700# candidates for the "native_only" list which follows
1701#
97286f7f 1702target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1703
671aa708 1704################################################################################
79c06341 1705
671aa708
NN
1706## All tools belong in one of the four categories, and are assigned above
1707## We assign ${configdirs} this way to remove all embedded newlines. This
1708## is important because configure will choke if they ever get through.
1709## ${configdirs} is directories we build using the host tools.
1710## ${target_configdirs} is directories we build using the target tools.
671aa708 1711configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1712target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1713build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1714
671aa708 1715################################################################################
79c06341 1716
671aa708 1717srcname="gnu development package"
79c06341 1718
671aa708
NN
1719# This gets set non-empty for some net releases of packages.
1720appdirs=""
79c06341 1721
671aa708
NN
1722# Define is_cross_compiler to save on calls to 'test'.
1723is_cross_compiler=
1724if test x"${host}" = x"${target}" ; then
1725 is_cross_compiler=no
79c06341 1726else
671aa708 1727 is_cross_compiler=yes
1c710c3c 1728fi
79c06341 1729
b4acb5ef 1730# Find the build and target subdir names.
8b87bb96 1731
2e9e6f68
DJ
1732# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1733# have matching libraries, they should use host libraries: Makefile.tpl
1734# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1735# However, they still use the build modules, because the corresponding
1736# host modules (e.g. bison) are only built for the host when bootstrap
1737# finishes. So:
1738# - build_subdir is where we find build modules, and never changes.
1739# - build_libsubdir is where we find build libraries, and can be overridden.
1740
1741# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1742build_subdir="build-${build_noncanonical}"
1c710c3c 1743
2e9e6f68
DJ
1744# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1745if test "${with_build_libsubdir+set}" = set; then
1746 withval="$with_build_libsubdir"
1747 build_libsubdir="$withval"
1748else
1749 build_libsubdir="$build_subdir"
1c710c3c 1750fi;
215c351a
PB
1751# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1752if ( test $srcdir = . && test -d gcc ) \
1753 || test -d $srcdir/../host-${host_noncanonical}; then
1754 host_subdir="host-${host_noncanonical}"
1755else
1756 host_subdir=.
1757fi
8b87bb96
NN
1758# No prefix.
1759target_subdir=${target_noncanonical}
1c710c3c 1760
79c06341 1761
671aa708
NN
1762# Skipdirs are removed silently.
1763skipdirs=
1764# Noconfigdirs are removed loudly.
1765noconfigdirs=""
79c06341 1766
671aa708
NN
1767use_gnu_ld=
1768# Make sure we don't let GNU ld be added if we didn't want it.
1769if test x$with_gnu_ld = xno ; then
1770 use_gnu_ld=no
1771 noconfigdirs="$noconfigdirs ld"
79c06341
JL
1772fi
1773
671aa708
NN
1774use_gnu_as=
1775# Make sure we don't let GNU as be added if we didn't want it.
1776if test x$with_gnu_as = xno ; then
1777 use_gnu_as=no
1778 noconfigdirs="$noconfigdirs gas"
79c06341
JL
1779fi
1780
1c710c3c 1781# some tools are so dependent upon X11 that if we're not building with X,
671aa708 1782# it's not even worth trying to configure, much less build, that tool.
79c06341 1783
671aa708
NN
1784case ${with_x} in
1785 yes | "") ;; # the default value for this tree is that X11 is available
1786 no)
b4f96efe 1787 skipdirs="${skipdirs} tk itcl libgui"
671aa708 1788 # We won't be able to build gdbtk without X.
1c710c3c 1789 enable_gdbtk=no
671aa708
NN
1790 ;;
1791 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1792esac
79c06341 1793
671aa708 1794# Some tools are only suitable for building in a "native" situation.
1c710c3c 1795# Remove these if host!=target.
9e299237 1796native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
79c06341 1797
671aa708
NN
1798# Similarly, some are only suitable for cross toolchains.
1799# Remove these if host=target.
1800cross_only="target-libgloss target-newlib target-opcodes"
1801
1802case $is_cross_compiler in
1803 no) skipdirs="${skipdirs} ${cross_only}" ;;
1804 yes) skipdirs="${skipdirs} ${native_only}" ;;
1805esac
79c06341 1806
671aa708
NN
1807# If both --with-headers and --with-libs are specified, default to
1808# --without-newlib.
ee6a22df
L
1809if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1810 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
1811 if test x"${with_newlib}" = x ; then
1812 with_newlib=no
1813 fi
79c06341
JL
1814fi
1815
671aa708
NN
1816# Recognize --with-newlib/--without-newlib.
1817case ${with_newlib} in
1818 no) skipdirs="${skipdirs} target-newlib" ;;
1819 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1820esac
79c06341 1821
671aa708 1822# Configure extra directories which are host specific
79c06341 1823
671aa708
NN
1824case "${host}" in
1825 *-cygwin*)
1826 configdirs="$configdirs libtermcap" ;;
1827esac
79c06341 1828
4fab7234
HPN
1829# A target can indicate whether a language isn't supported for some reason.
1830# Only spaces may be used in this macro; not newlines or tabs.
1831unsupported_languages=
1832
1c710c3c 1833# Remove more programs from consideration, based on the host or
671aa708
NN
1834# target this usually means that a port of the program doesn't
1835# exist yet.
ec8d6ddc 1836
671aa708
NN
1837case "${host}" in
1838 hppa*64*-*-*)
1839 noconfigdirs="$noconfigdirs byacc"
1840 ;;
f2a0e225 1841 i[3456789]86-*-vsta)
b4f96efe 1842 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 1843 ;;
f2a0e225 1844 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 1845 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 1846 ;;
95af8923
KT
1847 x86_64-*-mingw*)
1848 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1849 ;;
f2a0e225 1850 i[3456789]86-*-mingw32*)
b4f96efe 1851 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 1852 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 1853 ;;
f2a0e225 1854 i[3456789]86-*-beos*)
b4f96efe 1855 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 1856 ;;
671aa708 1857 *-*-cygwin*)
a22c2d8d 1858 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
1859 ;;
1860 *-*-netbsd*)
a22c2d8d 1861 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
1862 ;;
1863 ppc*-*-pe)
b4f96efe 1864 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
1865 ;;
1866 powerpc-*-beos*)
b4f96efe 1867 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 1868 ;;
671aa708 1869esac
ec8d6ddc 1870
6de9cd9a 1871
d9cdb878
AC
1872# Check whether --enable-libada or --disable-libada was given.
1873if test "${enable_libada+set}" = set; then
1874 enableval="$enable_libada"
1875 ENABLE_LIBADA=$enableval
1876else
1877 ENABLE_LIBADA=yes
1c710c3c 1878fi;
d9cdb878 1879if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 1880 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
1881fi
1882
ef0087a7
KH
1883# Check whether --enable-libssp or --disable-libssp was given.
1884if test "${enable_libssp+set}" = set; then
1885 enableval="$enable_libssp"
1886 ENABLE_LIBSSP=$enableval
1887else
1888 ENABLE_LIBSSP=yes
1c710c3c 1889fi;
ef0087a7 1890
671aa708
NN
1891# Save it here so that, even in case of --enable-libgcj, if the Java
1892# front-end isn't enabled, we still get libgcj disabled.
1893libgcj_saved=$libgcj
1894case $enable_libgcj in
1895yes)
1896 # If we reset it here, it won't get added to noconfigdirs in the
1897 # target-specific build rules, so it will be forcibly enabled
1898 # (unless the Java language itself isn't enabled).
1899 libgcj=
1900 ;;
1901no)
1902 # Make sure we get it printed in the list of not supported target libs.
1903 noconfigdirs="$noconfigdirs ${libgcj}"
1904 ;;
1905esac
ec8d6ddc 1906
6de9cd9a 1907
27079765
AH
1908# Disable libmudflap on some systems.
1909if test x$enable_libmudflap = x ; then
dfcada9a 1910 case "${target}" in
670cbfcf 1911 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
98a5bb3b 1912 # Enable libmudflap by default in GNU and friends.
dfcada9a 1913 ;;
a3e8d8b4
LR
1914 *-*-freebsd*)
1915 # Enable libmudflap by default in FreeBSD.
1916 ;;
dfcada9a
MM
1917 *)
1918 # Disable it by default everywhere else.
1919 noconfigdirs="$noconfigdirs target-libmudflap"
1920 ;;
1921 esac
27079765 1922fi
6de9cd9a 1923
27079765
AH
1924# Disable libgomp on non POSIX hosted systems.
1925if test x$enable_libgomp = x ; then
953ff289
DN
1926 # Enable libgomp by default on hosted POSIX systems.
1927 case "${target}" in
670cbfcf 1928 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
1929 ;;
1930 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1931 ;;
04879af3 1932 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 1933 ;;
cac90078 1934 *-*-darwin* | *-*-aix*)
953ff289
DN
1935 ;;
1936 *)
1937 noconfigdirs="$noconfigdirs target-libgomp"
1938 ;;
1939 esac
27079765 1940fi
953ff289 1941
6de9cd9a 1942
671aa708
NN
1943case "${target}" in
1944 *-*-chorusos)
cb253473 1945 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 1946 ;;
42c1cd8a 1947 powerpc-*-darwin* | i[3456789]86-*-darwin*)
55eb837d 1948 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 1949 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 1950 ;;
42c1cd8a
AT
1951 *-*-darwin*)
1952 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1953 noconfigdirs="$noconfigdirs sim target-rda"
1954 noconfigdirs="$noconfigdirs ${libgcj}"
1955 ;;
671aa708 1956 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 1957 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 1958 ;;
c3f84f61 1959 *-*-freebsd*)
6de9cd9a
DN
1960 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1961 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1962 && test -f /usr/local/include/gmp.h; then
1963 with_gmp=/usr/local
1964 fi
1965
1966 # Skip some stuff that's unsupported on some FreeBSD configurations.
1967 case "${target}" in
1968 i*86-*-*) ;;
1969 alpha*-*-*) ;;
1970 *)
cb253473 1971 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
1972 ;;
1973 esac
1974 ;;
ef4e7569
US
1975 *-*-kaos*)
1976 # Remove unsupported stuff on all kaOS configurations.
cb253473 1977 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
1978 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1979 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1980 noconfigdirs="$noconfigdirs target-libgloss"
1981 ;;
671aa708
NN
1982 *-*-netbsd*)
1983 # Skip some stuff on all NetBSD configurations.
1984 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1985
1986 # Skip some stuff that's unsupported on some NetBSD configurations.
1987 case "${target}" in
1988 i*86-*-netbsdelf*) ;;
0590b963 1989 arm*-*-netbsdelf*) ;;
671aa708 1990 *)
cb253473 1991 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
1992 ;;
1993 esac
1994 ;;
61fec9ff 1995 *-*-netware*)
cb253473 1996 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
1997 ;;
1998 *-*-rtems*)
cb253473 1999 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2000 ;;
a8ba31f2
EC
2001 # The tpf target doesn't support gdb yet.
2002 *-*-tpf*)
cb253473 2003 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2004 ;;
5785c0ed 2005 *-*-uclinux*)
cb253473 2006 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2007 ;;
671aa708 2008 *-*-vxworks*)
cb253473 2009 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2010 ;;
2011 alpha*-dec-osf*)
2012 # ld works, but does not support shared libraries.
2013 # newlib is not 64 bit ready. I'm not sure about fileutils.
2014 # gas doesn't generate exception information.
2015 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2016 ;;
2017 alpha*-*-*vms*)
cb253473 2018 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2019 ;;
2020 alpha*-*-linux*)
2021 # newlib is not 64 bit ready
2022 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2023 ;;
671aa708
NN
2024 alpha*-*-*)
2025 # newlib is not 64 bit ready
cb253473 2026 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2027 ;;
33952f6f 2028 am33_2.0-*-linux*)
cb253473 2029 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2030 ;;
671aa708 2031 sh-*-linux*)
cb253473 2032 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2033 ;;
671aa708 2034 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2035 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2036 noconfigdirs="$noconfigdirs target-examples"
2037 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2038 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2039 noconfigdirs="$noconfigdirs expect dejagnu"
2040 # the C++ libraries don't build on top of CE's C libraries
cb543528 2041 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2042 noconfigdirs="$noconfigdirs target-newlib"
2043 case "${host}" in
2044 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2045 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2046 ;;
2047 esac
2048 ;;
2049 arc-*-*)
cb253473 2050 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2051 ;;
ee6a22df 2052 arm-semi-aof )
ee6a22df 2053 ;;
671aa708 2054 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2055 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2056 ;;
b3f8d95d 2057 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708
NN
2058 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2059 ;;
077fc835
KH
2060 arm*-*-linux-gnueabi)
2061 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2062 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2063 ;;
972974fc 2064 arm*-*-symbianelf*)
cb253473 2065 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
972974fc 2066 ;;
671aa708 2067 arm-*-pe*)
cb253473 2068 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2069 ;;
671aa708 2070 thumb-*-coff)
cb253473 2071 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2072 ;;
2073 thumb-*-elf)
cb253473 2074 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2075 ;;
671aa708 2076 thumb-*-pe)
cb253473 2077 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2078 ;;
2079 arm-*-riscix*)
cb253473 2080 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2081 ;;
2082 avr-*-*)
cb253473 2083 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2084 ;;
6b65a26d 2085 bfin-*-*)
8b3c6c5a 2086 noconfigdirs="$noconfigdirs gdb"
61efc800 2087 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2088 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2089 fi
2090 ;;
671aa708 2091 c4x-*-* | tic4x-*-*)
cb253473 2092 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2093 ;;
2094 c54x*-*-* | tic54x-*-*)
cb253473 2095 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2096 ;;
40d64b5a 2097 cris-*-* | crisv32-*-*)
4fab7234 2098 unsupported_languages="$unsupported_languages java"
40d64b5a 2099 case "${target}" in
c2e0d3a9 2100 *-*-aout)
7f26dfa3 2101 unsupported_languages="$unsupported_languages fortran"
4fab7234 2102 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2103 *-*-elf)
7f26dfa3 2104 unsupported_languages="$unsupported_languages fortran"
789ec619 2105 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2106 *-*-linux*)
789ec619 2107 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2108 *)
7f26dfa3 2109 unsupported_languages="$unsupported_languages fortran"
cb253473 2110 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2111 esac
671aa708 2112 ;;
25b656e7 2113 crx-*-*)
cb253473 2114 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2115 ;;
671aa708 2116 d10v-*-*)
cb253473 2117 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2118 ;;
2119 d30v-*-*)
cb253473 2120 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2121 ;;
2122 fr30-*-elf*)
cb253473 2123 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2124 ;;
2125 frv-*-*)
cb253473 2126 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2127 ;;
2128 h8300*-*-*)
cb253473 2129 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2130 ;;
2131 h8500-*-*)
cb253473 2132 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2133 ;;
ee6a22df 2134 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2135 ;;
671aa708
NN
2136 hppa*64*-*-linux* | parisc*64*-*-linux*)
2137 # In this case, it's because the hppa64-linux target is for
2138 # the kernel only at this point and has no libc, and thus no
2139 # headers, crt*.o, etc., all of which are needed by these.
2140 noconfigdirs="$noconfigdirs target-zlib"
2141 ;;
3e732ba0
JDA
2142 parisc*-*-linux* | hppa*-*-linux*)
2143 ;;
671aa708 2144 hppa*-*-*elf* | \
671aa708
NN
2145 hppa*-*-lites* | \
2146 hppa*-*-openbsd* | \
2147 hppa*64*-*-*)
cb253473 2148 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2149 ;;
2a332582
JDA
2150 hppa*-hp-hpux11*)
2151 noconfigdirs="$noconfigdirs ld shellutils"
2152 ;;
671aa708
NN
2153 hppa*-*-*)
2154 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2155 # build on HP-UX 10.20.
cb253473 2156 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2157 ;;
fb87ad5d 2158 i960-*-*)
cb253473 2159 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2160 ;;
671aa708
NN
2161 ia64*-*-elf*)
2162 # No gdb support yet.
b4f96efe 2163 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2164 ;;
2165 ia64*-**-hpux*)
2166 # No gdb or ld support yet.
cb253473 2167 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2168 ;;
ee6a22df 2169 i370-*-opened*)
ee6a22df 2170 ;;
f2a0e225 2171 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2172 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2173 ;;
f2a0e225 2174 i[3456789]86-*-linux*)
671aa708
NN
2175 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2176 # not build java stuff by default.
2177 case "${target}" in
2178 *-*-*libc1*)
cb253473 2179 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2180 esac
2181
2182 # This section makes it possible to build newlib natively on linux.
2183 # If we are using a cross compiler then don't configure newlib.
2184 if test x${is_cross_compiler} != xno ; then
3aa83176 2185 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2186 fi
2187 noconfigdirs="$noconfigdirs target-libgloss"
2188 # If we are not using a cross compiler, do configure newlib.
2189 # Note however, that newlib will only be configured in this situation
2190 # if the --with-newlib option has been given, because otherwise
2191 # 'target-newlib' will appear in skipdirs.
2192 ;;
f2a0e225 2193 i[3456789]86-*-mingw32*)
b91f0a41
CV
2194 target_configdirs="$target_configdirs target-winsup"
2195 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2196 ;;
95af8923
KT
2197 x86_64-*-mingw*)
2198 target_configdirs="$target_configdirs target-winsup"
2199 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2200 ;;
671aa708
NN
2201 *-*-cygwin*)
2202 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2203 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2204 # always build newlib if winsup directory is present.
b91f0a41 2205 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2206 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2207 elif test -d "$srcdir/newlib"; then
b91f0a41 2208 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2209 fi
1c710c3c 2210 ;;
ee6a22df
L
2211 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2212 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2213 ;;
f2a0e225 2214 i[3456789]86-*-pe)
cb253473 2215 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2216 ;;
f2a0e225 2217 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2218 # The linker does not yet know about weak symbols in COFF,
2219 # and is not configured to handle mixed ELF and COFF.
cb253473 2220 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2221 ;;
f2a0e225 2222 i[3456789]86-*-sco*)
cb253473 2223 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2224 ;;
f2a0e225 2225 i[3456789]86-*-solaris2*)
671aa708
NN
2226 noconfigdirs="$noconfigdirs target-libgloss"
2227 ;;
f2a0e225 2228 i[3456789]86-*-sysv4*)
cb253473 2229 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2230 ;;
f2a0e225 2231 i[3456789]86-*-beos*)
cb253473 2232 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2233 ;;
d1f8db0c
PB
2234 i[3456789]86-*-rdos*)
2235 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2236 ;;
fb87ad5d 2237 m32r-*-*)
cb253473 2238 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2239 ;;
671aa708 2240 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2241 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2242 ;;
2243 m68k-*-elf*)
cb253473 2244 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2245 ;;
2246 m68k-*-coff*)
cb253473 2247 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2248 ;;
2249 mcore-*-pe*)
2250 # The EPOC C++ environment does not support exceptions or rtti,
2251 # and so building libstdc++-v3 tends not to always work.
2252 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2253 ;;
2254 mmix-*-*)
4fab7234 2255 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2256 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2257 ;;
2258 mn10200-*-*)
cb253473 2259 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2260 ;;
2261 mn10300-*-*)
cb253473 2262 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2263 ;;
ab34901f 2264 mt-*-*)
79dd769c
AH
2265 noconfigdirs="$noconfigdirs sim"
2266 ;;
671aa708
NN
2267 powerpc-*-aix*)
2268 # copied from rs6000-*-* entry
cb253473 2269 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2270 ;;
2271 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2272 target_configdirs="$target_configdirs target-winsup"
cb253473 2273 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2274 # always build newlib.
2275 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2276 ;;
2277 # This is temporary until we can link against shared libraries
2278 powerpcle-*-solaris*)
cb253473 2279 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
671aa708
NN
2280 ;;
2281 powerpc-*-beos*)
cb253473 2282 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2283 ;;
671aa708 2284 powerpc-*-eabi)
cb253473 2285 noconfigdirs="$noconfigdirs ${libgcj}"
ee6a22df
L
2286 ;;
2287 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
671aa708 2288 ;;
671aa708 2289 rs6000-*-lynxos*)
cb253473 2290 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2291 ;;
2292 rs6000-*-aix*)
cb253473 2293 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2294 ;;
2295 rs6000-*-*)
cb253473 2296 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2297 ;;
2298 m68k-apollo-*)
cb253473 2299 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708
NN
2300 ;;
2301 mips*-*-irix5*)
cb253473 2302 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2303 ;;
2304 mips*-*-irix6*)
671aa708
NN
2305 # Linking libjava exceeds command-line length limits on at least
2306 # IRIX 6.2, but not on IRIX 6.5.
2307 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2308 # <oldham@codesourcery.com>
cb253473 2309 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2310 ;;
671aa708 2311 mips*-*-bsd*)
cb253473 2312 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2313 ;;
d0fe5ad3 2314 mips64*-*-linux*)
1ee4c5a0 2315 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
d0fe5ad3 2316 ;;
671aa708
NN
2317 mips*-*-linux*)
2318 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2319 ;;
2320 mips*-*-*)
cb253473 2321 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2322 ;;
2323 romp-*-*)
cb253473 2324 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2325 ;;
669f01d8 2326 sh-*-* | sh64-*-*)
671aa708 2327 case "${host}" in
f2a0e225
KC
2328 i[3456789]86-*-vsta) ;; # don't add gprof back in
2329 i[3456789]86-*-go32*) ;; # don't add gprof back in
2330 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2331 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2332 esac
cb253473 2333 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2334 ;;
671aa708 2335 sparc-*-elf*)
cb253473 2336 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2337 ;;
2338 sparc64-*-elf*)
cb253473 2339 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2340 ;;
2341 sparclite-*-*)
cb253473 2342 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2343 ;;
2344 sparc-*-sunos4*)
cb253473 2345 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2346 if test x${is_cross_compiler} != xno ; then
2347 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2348 else
2349 use_gnu_ld=no
2350 fi
2351 ;;
bba5e0ca 2352 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2353 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2354 ;;
671aa708
NN
2355 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2356 ;;
85d9c13c 2357 spu-*-*)
ea6f5c57 2358 skipdirs="target-libssp"
85d9c13c 2359 ;;
671aa708 2360 v810-*-*)
cb253473 2361 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2362 ;;
2363 v850-*-*)
cb253473 2364 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2365 ;;
2366 v850e-*-*)
cb253473 2367 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2368 ;;
2369 v850ea-*-*)
cb253473 2370 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2371 ;;
2372 vax-*-vms)
cb253473 2373 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2374 ;;
2375 vax-*-*)
cb253473 2376 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2377 ;;
0d4f1b4e 2378 xtensa-*-*)
cb253473 2379 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2380 ;;
671aa708 2381 ip2k-*-*)
cb253473 2382 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2383 ;;
c3f84f61 2384 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2385 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2386 ;;
2387 *-*-lynxos*)
cb253473 2388 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2389 ;;
671aa708 2390 *-*-*)
cb253473 2391 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2392 ;;
2393esac
79c06341 2394
671aa708
NN
2395# If we aren't building newlib, then don't build libgloss, since libgloss
2396# depends upon some newlib header files.
2397case "${noconfigdirs}" in
2398 *target-libgloss*) ;;
2399 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2400esac
2401
671aa708
NN
2402# Work in distributions that contain no compiler tools, like Autoconf.
2403tentative_cc=""
2404host_makefile_frag=/dev/null
2405if test -d ${srcdir}/config ; then
2406case "${host}" in
2407 m68k-hp-hpux*)
2408 # Avoid "too much defining" errors from HPUX compiler.
2409 tentative_cc="cc -Wp,-H256000"
2410 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2411 # If it's HP/UX ar, this should be harmless.
2412 RANLIB="ar ts"
2413 ;;
2414 m68k-apollo-sysv*)
2415 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2416 ;;
2417 m68k-apollo-bsd*)
2418 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2419 # chokes on bfd, the compiler won't let you assign integers to enums, and
2420 # other problems. Defining CC to gcc is a questionable way to say "don't use
2421 # the apollo compiler" (the preferred version of GCC could be called cc,
2422 # or whatever), but I'm not sure leaving CC as cc is any better...
2423 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2424 # Used to have BISON=yacc.
2425 tentative_cc=gcc
2426 ;;
2427 m88k-dg-dgux*)
2428 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2429 ;;
2430 m88k-harris-cxux*)
2431 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2432 tentative_cc="cc -Xa"
2433 host_makefile_frag="config/mh-cxux"
2434 ;;
2435 m88k-motorola-sysv*)
2436 ;;
2437 mips*-dec-ultrix*)
2438 tentative_cc="cc -Wf,-XNg1000"
2439 host_makefile_frag="config/mh-decstation"
2440 ;;
2441 mips*-nec-sysv4*)
2442 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2443 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2444 host_makefile_frag="config/mh-necv4"
2445 ;;
2446 mips*-sgi-irix4*)
2447 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2448 # environment. Also bump switch table size so that cp-parse will
2449 # compile. Bump string length limit so linker builds.
2450 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2451 ;;
2452 mips*-*-sysv4*)
2453 host_makefile_frag="config/mh-sysv4"
2454 ;;
2455 mips*-*-sysv*)
2456 # This is for a MIPS running RISC/os 4.52C.
2457
2458 # This is needed for GDB, but needs to be in the top-level make because
2459 # if a library is compiled with the bsd headers and gets linked with the
2460 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2461 # a different size).
2462 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2463 # known except to select the sysv environment. Could we use /proc instead?
2464 # These "sysv environments" and "bsd environments" often end up being a pain.
2465 #
2466 # This is not part of CFLAGS because perhaps not all C compilers have this
2467 # option.
2468 tentative_cc="cc -systype sysv"
2469 ;;
2470 i370-ibm-opened*)
2471 tentative_cc="c89"
2472 ;;
f2a0e225 2473 i[3456789]86-*-sysv5*)
671aa708
NN
2474 host_makefile_frag="config/mh-sysv5"
2475 ;;
f2a0e225 2476 i[3456789]86-*-dgux*)
671aa708
NN
2477 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2478 host_makefile_frag="config/mh-dgux386"
2479 ;;
f2a0e225 2480 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2481 # The MetaWare compiler will generate a copyright message unless you
2482 # turn it off by adding the -Hnocopyr flag.
2483 tentative_cc="cc -Hnocopyr"
2484 ;;
f2a0e225 2485 i[3456789]86-ncr-sysv4*)
671aa708
NN
2486 # for an NCR 3000 (i486/SVR4) system.
2487 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2488 # This compiler not only emits obnoxious copyright messages every time
2489 # you run it, but it chokes and dies on a whole bunch of GNU source
2490 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2491 tentative_cc="/usr/ccs/ATT/cc"
2492 host_makefile_frag="config/mh-ncr3000"
2493 ;;
f2a0e225 2494 i[3456789]86-*-sco3.2v5*)
671aa708 2495 ;;
f2a0e225 2496 i[3456789]86-*-sco*)
671aa708
NN
2497 # The native C compiler botches some simple uses of const. Unfortunately,
2498 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2499 tentative_cc="cc -Dconst="
2500 host_makefile_frag="config/mh-sco"
2501 ;;
f2a0e225 2502 i[3456789]86-*-udk*)
671aa708
NN
2503 host_makefile_frag="config/mh-sysv5"
2504 ;;
f2a0e225 2505 i[3456789]86-*-solaris2*)
671aa708
NN
2506 host_makefile_frag="config/mh-sysv4"
2507 ;;
f2a0e225 2508 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2509 host_makefile_frag="config/mh-djgpp"
2510 ;;
2511 *-cygwin*)
2512 host_makefile_frag="config/mh-cygwin"
2513 ;;
2514 *-mingw32*)
671aa708 2515 ;;
95af8923
KT
2516 *-mingw64*)
2517 ;;
671aa708
NN
2518 *-interix*)
2519 host_makefile_frag="config/mh-interix"
2520 ;;
2521 vax-*-ultrix2*)
2522 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2523 tentative_cc=gcc
2524 ;;
2525 *-*-solaris2*)
2526 host_makefile_frag="config/mh-solaris"
2527 ;;
2528 m68k-sun-sunos*)
2529 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2530 # without overflowing the jump tables (-J says to use a 32 bit table)
2531 tentative_cc="cc -J"
2532 ;;
2533 *-hp-hpux*)
2534 tentative_cc="cc -Wp,-H256000"
2535 ;;
2536 *-*-hiux*)
2537 tentative_cc="cc -Wp,-H256000"
2538 ;;
2539 rs6000-*-lynxos*)
2540 # /bin/cc is less than useful for our purposes. Always use GCC
2541 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2542 host_makefile_frag="config/mh-lynxrs6k"
2543 ;;
45f366ab 2544 powerpc-*-darwin*)
be8fff81
RB
2545 host_makefile_frag="config/mh-ppc-darwin"
2546 ;;
d19bca38
PB
2547 powerpc-*-aix*)
2548 host_makefile_frag="config/mh-ppc-aix"
2549 ;;
2550 rs6000-*-aix*)
2551 host_makefile_frag="config/mh-ppc-aix"
2552 ;;
671aa708
NN
2553 *-*-lynxos*)
2554 # /bin/cc is less than useful for our purposes. Always use GCC
2555 tentative_cc="/bin/gcc"
2556 ;;
2557 *-*-sysv4*)
2558 host_makefile_frag="config/mh-sysv4"
2559 ;;
95c53c62
RS
2560 # This is placed last to prevent interfering with the cases above.
2561 i[3456789]86-*-*)
2562 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2563 host_makefile_frag="config/mh-x86omitfp"
2564 ;;
671aa708
NN
2565esac
2566fi
2567
55ffb5ed
NN
2568# If we aren't going to be using gcc, see if we can extract a definition
2569# of CC from the fragment.
2570# Actually, use the 'pre-extracted' version above.
2571if test -z "${CC}" && test "${build}" = "${host}" ; then
2572 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2573 found=
2574 for dir in $PATH; do
2575 test -z "$dir" && dir=.
2576 if test -f $dir/gcc; then
2577 found=yes
2578 break
2579 fi
2580 done
2581 IFS="$save_ifs"
2582 if test -z "${found}" && test -n "${tentative_cc}" ; then
2583 CC=$tentative_cc
2584 fi
2585fi
2586
2587if test "${build}" != "${host}" ; then
2588 # If we are doing a Canadian Cross, in which the host and build systems
2589 # are not the same, we set reasonable default values for the tools.
2590
1c710c3c 2591 CC=${CC-${host_noncanonical}-gcc}
55ffb5ed 2592 CFLAGS=${CFLAGS-"-g -O2"}
1c710c3c 2593 CXX=${CXX-${host_noncanonical}-c++}
55ffb5ed
NN
2594 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2595 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
55ffb5ed
NN
2596
2597else
fb0103e5
RG
2598 # Set reasonable default values for some tools even if not Canadian.
2599 # Of course, these are different reasonable default values, originally
2600 # specified directly in the Makefile.
2601 # We don't export, so that autoconf can do its job.
2602 # Note that all these settings are above the fragment inclusion point
2603 # in Makefile.in, so can still be overridden by fragments.
2604 # This is all going to change when we autoconfiscate...
a4b9e93e 2605
fb0103e5 2606 CC_FOR_BUILD="\$(CC)"
1c710c3c
DJ
2607 ac_ext=c
2608ac_cpp='$CPP $CPPFLAGS'
2609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612if test -n "$ac_tool_prefix"; then
2613 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2614set dummy ${ac_tool_prefix}gcc; ac_word=$2
2615echo "$as_me:$LINENO: checking for $ac_word" >&5
2616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2617if test "${ac_cv_prog_CC+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619else
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
2622else
2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634done
2635done
2636
2637fi
2638fi
2639CC=$ac_cv_prog_CC
2640if test -n "$CC"; then
2641 echo "$as_me:$LINENO: result: $CC" >&5
2642echo "${ECHO_T}$CC" >&6
2643else
2644 echo "$as_me:$LINENO: result: no" >&5
2645echo "${ECHO_T}no" >&6
2646fi
2647
2648fi
2649if test -z "$ac_cv_prog_CC"; then
2650 ac_ct_CC=$CC
fb0103e5
RG
2651 # Extract the first word of "gcc", so it can be a program name with args.
2652set dummy gcc; ac_word=$2
1c710c3c
DJ
2653echo "$as_me:$LINENO: checking for $ac_word" >&5
2654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657else
2658 if test -n "$ac_ct_CC"; then
2659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_ac_ct_CC="gcc"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672done
2673done
2674
2675fi
2676fi
2677ac_ct_CC=$ac_cv_prog_ac_ct_CC
2678if test -n "$ac_ct_CC"; then
2679 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2680echo "${ECHO_T}$ac_ct_CC" >&6
2681else
2682 echo "$as_me:$LINENO: result: no" >&5
2683echo "${ECHO_T}no" >&6
2684fi
2685
2686 CC=$ac_ct_CC
2687else
2688 CC="$ac_cv_prog_CC"
2689fi
2690
2691if test -z "$CC"; then
2692 if test -n "$ac_tool_prefix"; then
2693 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2694set dummy ${ac_tool_prefix}cc; ac_word=$2
2695echo "$as_me:$LINENO: checking for $ac_word" >&5
2696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697if test "${ac_cv_prog_CC+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2699else
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC="$CC" # Let the user override the test.
2702else
1c710c3c
DJ
2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_CC="${ac_tool_prefix}cc"
2711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714done
2715done
2716
0b0dc272 2717fi
0b0dc272 2718fi
1c710c3c 2719CC=$ac_cv_prog_CC
af71363e 2720if test -n "$CC"; then
1c710c3c
DJ
2721 echo "$as_me:$LINENO: result: $CC" >&5
2722echo "${ECHO_T}$CC" >&6
2723else
2724 echo "$as_me:$LINENO: result: no" >&5
2725echo "${ECHO_T}no" >&6
2726fi
2727
2728fi
2729if test -z "$ac_cv_prog_CC"; then
2730 ac_ct_CC=$CC
2731 # Extract the first word of "cc", so it can be a program name with args.
2732set dummy cc; ac_word=$2
2733echo "$as_me:$LINENO: checking for $ac_word" >&5
2734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2735if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737else
2738 if test -n "$ac_ct_CC"; then
2739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740else
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_ac_ct_CC="cc"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752done
2753done
2754
2755fi
2756fi
2757ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758if test -n "$ac_ct_CC"; then
2759 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2760echo "${ECHO_T}$ac_ct_CC" >&6
0b0dc272 2761else
1c710c3c
DJ
2762 echo "$as_me:$LINENO: result: no" >&5
2763echo "${ECHO_T}no" >&6
0b0dc272
AM
2764fi
2765
1c710c3c
DJ
2766 CC=$ac_ct_CC
2767else
2768 CC="$ac_cv_prog_CC"
2769fi
2770
2771fi
55ffb5ed
NN
2772if test -z "$CC"; then
2773 # Extract the first word of "cc", so it can be a program name with args.
2774set dummy cc; ac_word=$2
1c710c3c
DJ
2775echo "$as_me:$LINENO: checking for $ac_word" >&5
2776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2777if test "${ac_cv_prog_CC+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2779else
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782else
0b0dc272 2783 ac_prog_rejected=no
1c710c3c
DJ
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2792 ac_prog_rejected=yes
2793 continue
2794 fi
2795 ac_cv_prog_CC="cc"
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799done
2800done
2801
55ffb5ed
NN
2802if test $ac_prog_rejected = yes; then
2803 # We found a bogon in the path, so make sure we never use it.
2804 set dummy $ac_cv_prog_CC
2805 shift
1c710c3c 2806 if test $# != 0; then
55ffb5ed
NN
2807 # We chose a different compiler from the bogus one.
2808 # However, it has the same basename, so the bogon will be chosen
2809 # first if we set CC to just the basename; use the full file name.
2810 shift
1c710c3c 2811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
2812 fi
2813fi
2814fi
2815fi
1c710c3c 2816CC=$ac_cv_prog_CC
55ffb5ed 2817if test -n "$CC"; then
1c710c3c
DJ
2818 echo "$as_me:$LINENO: result: $CC" >&5
2819echo "${ECHO_T}$CC" >&6
55ffb5ed 2820else
1c710c3c
DJ
2821 echo "$as_me:$LINENO: result: no" >&5
2822echo "${ECHO_T}no" >&6
55ffb5ed
NN
2823fi
2824
1c710c3c
DJ
2825fi
2826if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2828 for ac_prog in cl
2829 do
2830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2831set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2832echo "$as_me:$LINENO: checking for $ac_word" >&5
2833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2834if test "${ac_cv_prog_CC+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2836else
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839else
1c710c3c
DJ
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851done
2852done
2853
55ffb5ed
NN
2854fi
2855fi
1c710c3c 2856CC=$ac_cv_prog_CC
55ffb5ed 2857if test -n "$CC"; then
1c710c3c
DJ
2858 echo "$as_me:$LINENO: result: $CC" >&5
2859echo "${ECHO_T}$CC" >&6
a4b9e93e 2860else
1c710c3c
DJ
2861 echo "$as_me:$LINENO: result: no" >&5
2862echo "${ECHO_T}no" >&6
fb0103e5 2863fi
af71363e 2864
1c710c3c
DJ
2865 test -n "$CC" && break
2866 done
af71363e 2867fi
1c710c3c
DJ
2868if test -z "$CC"; then
2869 ac_ct_CC=$CC
2870 for ac_prog in cl
2871do
2872 # Extract the first word of "$ac_prog", so it can be a program name with args.
2873set dummy $ac_prog; ac_word=$2
2874echo "$as_me:$LINENO: checking for $ac_word" >&5
2875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 2878else
1c710c3c
DJ
2879 if test -n "$ac_ct_CC"; then
2880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 2881else
1c710c3c
DJ
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_ac_ct_CC="$ac_prog"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2892 fi
2893done
2894done
2895
af71363e
AS
2896fi
2897fi
1c710c3c
DJ
2898ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899if test -n "$ac_ct_CC"; then
2900 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2901echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 2902else
1c710c3c
DJ
2903 echo "$as_me:$LINENO: result: no" >&5
2904echo "${ECHO_T}no" >&6
af71363e 2905fi
0b0dc272 2906
1c710c3c
DJ
2907 test -n "$ac_ct_CC" && break
2908done
2909
2910 CC=$ac_ct_CC
2911fi
2912
2913fi
2914
2915
2916test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2917See \`config.log' for more details." >&5
2918echo "$as_me: error: no acceptable C compiler found in \$PATH
2919See \`config.log' for more details." >&2;}
2920 { (exit 1); exit 1; }; }
2921
2922# Provide some information about the compiler.
2923echo "$as_me:$LINENO:" \
2924 "checking for C compiler version" >&5
2925ac_compiler=`set X $ac_compile; echo $2`
2926{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2927 (eval $ac_compiler --version </dev/null >&5) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }
2931{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2932 (eval $ac_compiler -v </dev/null >&5) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2937 (eval $ac_compiler -V </dev/null >&5) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }
2941
2942cat >conftest.$ac_ext <<_ACEOF
2943/* confdefs.h. */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h. */
2948
2949int
2950main ()
2951{
2952
2953 ;
2954 return 0;
2955}
2956_ACEOF
2957ac_clean_files_save=$ac_clean_files
2958ac_clean_files="$ac_clean_files a.out a.exe b.out"
2959# Try to create an executable without -o first, disregard a.out.
2960# It will help us diagnose broken compilers, and finding out an intuition
2961# of exeext.
2962echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2963echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2964ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2965if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2966 (eval $ac_link_default) 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; then
2970 # Find the output, starting from the most likely. This scheme is
2971# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2972# resort.
2973
2974# Be careful to initialize this variable, since it used to be cached.
2975# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2976ac_cv_exeext=
2977# b.out is created by i960 compilers.
2978for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2979do
2980 test -f "$ac_file" || continue
2981 case $ac_file in
2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2983 ;;
2984 conftest.$ac_ext )
2985 # This is the source file.
2986 ;;
2987 [ab].out )
2988 # We found the default executable, but exeext='' is most
2989 # certainly right.
2990 break;;
2991 *.* )
2992 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2993 # FIXME: I believe we export ac_cv_exeext for Libtool,
2994 # but it would be cool to find out if it's true. Does anybody
2995 # maintain Libtool? --akim.
2996 export ac_cv_exeext
2997 break;;
2998 * )
2999 break;;
3000 esac
3001done
3002else
3003 echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
3005
3006{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3007See \`config.log' for more details." >&5
3008echo "$as_me: error: C compiler cannot create executables
3009See \`config.log' for more details." >&2;}
3010 { (exit 77); exit 77; }; }
3011fi
3012
3013ac_exeext=$ac_cv_exeext
3014echo "$as_me:$LINENO: result: $ac_file" >&5
3015echo "${ECHO_T}$ac_file" >&6
3016
3017# Check the compiler produces executables we can run. If not, either
3018# the compiler is broken, or we cross compile.
3019echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3020echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3021# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3022# If not cross compiling, check that we can run a simple program.
3023if test "$cross_compiling" != yes; then
3024 if { ac_try='./$ac_file'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 (eval $ac_try) 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 cross_compiling=no
3031 else
3032 if test "$cross_compiling" = maybe; then
3033 cross_compiling=yes
3034 else
3035 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3036If you meant to cross compile, use \`--host'.
3037See \`config.log' for more details." >&5
3038echo "$as_me: error: cannot run C compiled programs.
3039If you meant to cross compile, use \`--host'.
3040See \`config.log' for more details." >&2;}
3041 { (exit 1); exit 1; }; }
3042 fi
3043 fi
3044fi
3045echo "$as_me:$LINENO: result: yes" >&5
3046echo "${ECHO_T}yes" >&6
3047
3048rm -f a.out a.exe conftest$ac_cv_exeext b.out
3049ac_clean_files=$ac_clean_files_save
3050# Check the compiler produces executables we can run. If not, either
3051# the compiler is broken, or we cross compile.
3052echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3053echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3054echo "$as_me:$LINENO: result: $cross_compiling" >&5
3055echo "${ECHO_T}$cross_compiling" >&6
3056
3057echo "$as_me:$LINENO: checking for suffix of executables" >&5
3058echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3060 (eval $ac_link) 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; then
3064 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3065# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3066# work properly (i.e., refer to `conftest.exe'), while it won't with
3067# `rm'.
3068for ac_file in conftest.exe conftest conftest.*; do
3069 test -f "$ac_file" || continue
3070 case $ac_file in
3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073 export ac_cv_exeext
3074 break;;
3075 * ) break;;
3076 esac
3077done
af71363e 3078else
1c710c3c
DJ
3079 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3080See \`config.log' for more details." >&5
3081echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3082See \`config.log' for more details." >&2;}
3083 { (exit 1); exit 1; }; }
3084fi
3085
3086rm -f conftest$ac_cv_exeext
3087echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3088echo "${ECHO_T}$ac_cv_exeext" >&6
3089
3090rm -f conftest.$ac_ext
3091EXEEXT=$ac_cv_exeext
3092ac_exeext=$EXEEXT
3093echo "$as_me:$LINENO: checking for suffix of object files" >&5
3094echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3095if test "${ac_cv_objext+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3097else
3098 cat >conftest.$ac_ext <<_ACEOF
3099/* confdefs.h. */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
3103/* end confdefs.h. */
3104
3105int
3106main ()
3107{
3108
3109 ;
3110 return 0;
3111}
3112_ACEOF
3113rm -f conftest.o conftest.obj
3114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3115 (eval $ac_compile) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; then
3119 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3120 case $ac_file in
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3122 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3123 break;;
3124 esac
3125done
3126else
3127 echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3131See \`config.log' for more details." >&5
3132echo "$as_me: error: cannot compute suffix of object files: cannot compile
3133See \`config.log' for more details." >&2;}
3134 { (exit 1); exit 1; }; }
3135fi
3136
3137rm -f conftest.$ac_cv_objext conftest.$ac_ext
3138fi
3139echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3140echo "${ECHO_T}$ac_cv_objext" >&6
3141OBJEXT=$ac_cv_objext
3142ac_objext=$OBJEXT
3143echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3144echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3145if test "${ac_cv_c_compiler_gnu+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3147else
3148 cat >conftest.$ac_ext <<_ACEOF
3149/* confdefs.h. */
3150_ACEOF
3151cat confdefs.h >>conftest.$ac_ext
3152cat >>conftest.$ac_ext <<_ACEOF
3153/* end confdefs.h. */
3154
3155int
3156main ()
3157{
3158#ifndef __GNUC__
3159 choke me
3160#endif
3161
3162 ;
3163 return 0;
3164}
3165_ACEOF
3166rm -f conftest.$ac_objext
3167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3168 (eval $ac_compile) 2>conftest.er1
3169 ac_status=$?
3170 grep -v '^ *+' conftest.er1 >conftest.err
3171 rm -f conftest.er1
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -z "$ac_c_werror_flag"
3176 || test ! -s conftest.err'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; } &&
3182 { ac_try='test -s conftest.$ac_objext'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 (eval $ac_try) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3188 ac_compiler_gnu=yes
3189else
3190 echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193ac_compiler_gnu=no
3194fi
3195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3196ac_cv_c_compiler_gnu=$ac_compiler_gnu
3197
3198fi
3199echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3200echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3201GCC=`test $ac_compiler_gnu = yes && echo yes`
3202ac_test_CFLAGS=${CFLAGS+set}
3203ac_save_CFLAGS=$CFLAGS
3204CFLAGS="-g"
3205echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3206echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3207if test "${ac_cv_prog_cc_g+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209else
3210 cat >conftest.$ac_ext <<_ACEOF
3211/* confdefs.h. */
3212_ACEOF
3213cat confdefs.h >>conftest.$ac_ext
3214cat >>conftest.$ac_ext <<_ACEOF
3215/* end confdefs.h. */
3216
3217int
3218main ()
3219{
3220
3221 ;
3222 return 0;
3223}
3224_ACEOF
3225rm -f conftest.$ac_objext
3226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3227 (eval $ac_compile) 2>conftest.er1
3228 ac_status=$?
3229 grep -v '^ *+' conftest.er1 >conftest.err
3230 rm -f conftest.er1
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } &&
3234 { ac_try='test -z "$ac_c_werror_flag"
3235 || test ! -s conftest.err'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 (eval $ac_try) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; } &&
3241 { ac_try='test -s conftest.$ac_objext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 (eval $ac_try) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
55ffb5ed
NN
3247 ac_cv_prog_cc_g=yes
3248else
1c710c3c
DJ
3249 echo "$as_me: failed program was:" >&5
3250sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3251
1c710c3c 3252ac_cv_prog_cc_g=no
0b0dc272 3253fi
1c710c3c
DJ
3254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3255fi
3256echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3257echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3258if test "$ac_test_CFLAGS" = set; then
1c710c3c 3259 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3260elif test $ac_cv_prog_cc_g = yes; then
3261 if test "$GCC" = yes; then
3262 CFLAGS="-g -O2"
3263 else
3264 CFLAGS="-g"
3265 fi
3266else
3267 if test "$GCC" = yes; then
3268 CFLAGS="-O2"
3269 else
3270 CFLAGS=
3271 fi
3272fi
1c710c3c
DJ
3273echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3274echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3275if test "${ac_cv_prog_cc_stdc+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
3278 ac_cv_prog_cc_stdc=no
3279ac_save_CC=$CC
3280cat >conftest.$ac_ext <<_ACEOF
3281/* confdefs.h. */
3282_ACEOF
3283cat confdefs.h >>conftest.$ac_ext
3284cat >>conftest.$ac_ext <<_ACEOF
3285/* end confdefs.h. */
3286#include <stdarg.h>
3287#include <stdio.h>
3288#include <sys/types.h>
3289#include <sys/stat.h>
3290/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3291struct buf { int x; };
3292FILE * (*rcsopen) (struct buf *, struct stat *, int);
3293static char *e (p, i)
3294 char **p;
3295 int i;
3296{
3297 return p[i];
3298}
3299static char *f (char * (*g) (char **, int), char **p, ...)
3300{
3301 char *s;
3302 va_list v;
3303 va_start (v,p);
3304 s = g (p, va_arg (v,int));
3305 va_end (v);
3306 return s;
3307}
3308
3309/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3310 function prototypes and stuff, but not '\xHH' hex character constants.
3311 These don't provoke an error unfortunately, instead are silently treated
3312 as 'x'. The following induces an error, until -std1 is added to get
3313 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3314 array size at least. It's necessary to write '\x00'==0 to get something
3315 that's true only with -std1. */
3316int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3317
3318int test (int i, double x);
3319struct s1 {int (*f) (int a);};
3320struct s2 {int (*f) (double a);};
3321int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3322int argc;
3323char **argv;
3324int
3325main ()
3326{
3327return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3328 ;
3329 return 0;
3330}
3331_ACEOF
3332# Don't try gcc -ansi; that turns off useful extensions and
3333# breaks some systems' header files.
3334# AIX -qlanglvl=ansi
3335# Ultrix and OSF/1 -std1
3336# HP-UX 10.20 and later -Ae
3337# HP-UX older versions -Aa -D_HPUX_SOURCE
3338# SVR4 -Xc -D__EXTENSIONS__
3339for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3340do
3341 CC="$ac_save_CC $ac_arg"
3342 rm -f conftest.$ac_objext
3343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -z "$ac_c_werror_flag"
3352 || test ! -s conftest.err'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 ac_cv_prog_cc_stdc=$ac_arg
3365break
3366else
3367 echo "$as_me: failed program was:" >&5
3368sed 's/^/| /' conftest.$ac_ext >&5
3369
3370fi
3371rm -f conftest.err conftest.$ac_objext
3372done
3373rm -f conftest.$ac_ext conftest.$ac_objext
3374CC=$ac_save_CC
3375
3376fi
3377
3378case "x$ac_cv_prog_cc_stdc" in
3379 x|xno)
3380 echo "$as_me:$LINENO: result: none needed" >&5
3381echo "${ECHO_T}none needed" >&6 ;;
3382 *)
3383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3384echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3385 CC="$CC $ac_cv_prog_cc_stdc" ;;
3386esac
3387
3388# Some people use a C++ compiler to compile C. Since we use `exit',
3389# in C++ we need to declare it. In case someone uses the same compiler
3390# for both compiling C and C++ we need to have the C++ compiler decide
3391# the declaration of exit, since it's the most demanding environment.
3392cat >conftest.$ac_ext <<_ACEOF
3393#ifndef __cplusplus
3394 choke me
3395#endif
3396_ACEOF
3397rm -f conftest.$ac_objext
3398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399 (eval $ac_compile) 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -z "$ac_c_werror_flag"
3407 || test ! -s conftest.err'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3419 for ac_declaration in \
3420 '' \
3421 'extern "C" void std::exit (int) throw (); using std::exit;' \
3422 'extern "C" void std::exit (int); using std::exit;' \
3423 'extern "C" void exit (int) throw ();' \
3424 'extern "C" void exit (int);' \
3425 'void exit (int);'
3426do
3427 cat >conftest.$ac_ext <<_ACEOF
3428/* confdefs.h. */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h. */
3433$ac_declaration
3434#include <stdlib.h>
3435int
3436main ()
3437{
3438exit (42);
3439 ;
3440 return 0;
3441}
3442_ACEOF
3443rm -f conftest.$ac_objext
3444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_c_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 :
3466else
3467 echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470continue
3471fi
3472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 cat >conftest.$ac_ext <<_ACEOF
3474/* confdefs.h. */
3475_ACEOF
3476cat confdefs.h >>conftest.$ac_ext
3477cat >>conftest.$ac_ext <<_ACEOF
3478/* end confdefs.h. */
3479$ac_declaration
3480int
3481main ()
3482{
3483exit (42);
3484 ;
3485 return 0;
3486}
3487_ACEOF
3488rm -f conftest.$ac_objext
3489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490 (eval $ac_compile) 2>conftest.er1
3491 ac_status=$?
3492 grep -v '^ *+' conftest.er1 >conftest.err
3493 rm -f conftest.er1
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } &&
3497 { ac_try='test -z "$ac_c_werror_flag"
3498 || test ! -s conftest.err'
3499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 (eval $ac_try) 2>&5
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; } &&
3504 { ac_try='test -s conftest.$ac_objext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 break
3511else
3512 echo "$as_me: failed program was:" >&5
3513sed 's/^/| /' conftest.$ac_ext >&5
3514
3515fi
3516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517done
3518rm -f conftest*
3519if test -n "$ac_declaration"; then
3520 echo '#ifdef __cplusplus' >>confdefs.h
3521 echo $ac_declaration >>confdefs.h
3522 echo '#endif' >>confdefs.h
3523fi
3524
3525else
3526 echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529fi
3530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3531ac_ext=c
3532ac_cpp='$CPP $CPPFLAGS'
3533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535ac_compiler_gnu=$ac_cv_c_compiler_gnu
55ffb5ed
NN
3536
3537
23f6b2f9
PB
3538 # We must set the default linker to the linker used by gcc for the correct
3539 # operation of libtool. If LD is not defined and we are using gcc, try to
3540 # set the LD default to the ld used by gcc.
3541 if test -z "$LD"; then
3542 if test "$GCC" = yes; then
3543 case $build in
3544 *-*-mingw*)
3545 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3546 *)
3547 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
3548 esac
3549 case $gcc_prog_ld in
3550 # Accept absolute paths.
3551 [\\/]* | [A-Za-z]:[\\/]*)
3552 LD="$gcc_prog_ld" ;;
3553 esac
3554 fi
3555 fi
3556
3557 CXX=${CXX-"c++"}
3558 CFLAGS=${CFLAGS-"-g"}
3559 CXXFLAGS=${CXXFLAGS-"-g -O2"}
3560fi
3561
23f6b2f9
PB
3562
3563
55ffb5ed 3564
1c710c3c
DJ
3565if test -n "$ac_tool_prefix"; then
3566 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 3567set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
1c710c3c
DJ
3568echo "$as_me:$LINENO: checking for $ac_word" >&5
3569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3570if test "${ac_cv_prog_GNATBIND+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3572else
3573 if test -n "$GNATBIND"; then
3574 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3575else
1c710c3c
DJ
3576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577for as_dir in $PATH
3578do
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587done
3588done
3589
55ffb5ed
NN
3590fi
3591fi
1c710c3c 3592GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 3593if test -n "$GNATBIND"; then
1c710c3c
DJ
3594 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3595echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 3596else
1c710c3c
DJ
3597 echo "$as_me:$LINENO: result: no" >&5
3598echo "${ECHO_T}no" >&6
55ffb5ed
NN
3599fi
3600
1c710c3c 3601fi
55ffb5ed 3602if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 3603 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
3604 # Extract the first word of "gnatbind", so it can be a program name with args.
3605set dummy gnatbind; ac_word=$2
1c710c3c
DJ
3606echo "$as_me:$LINENO: checking for $ac_word" >&5
3607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 3610else
1c710c3c
DJ
3611 if test -n "$ac_ct_GNATBIND"; then
3612 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 3613else
1c710c3c
DJ
3614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615for as_dir in $PATH
3616do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3624 fi
3625done
3626done
3627
3628 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
3629fi
3630fi
1c710c3c
DJ
3631ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3632if test -n "$ac_ct_GNATBIND"; then
3633 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3634echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 3635else
1c710c3c
DJ
3636 echo "$as_me:$LINENO: result: no" >&5
3637echo "${ECHO_T}no" >&6
55ffb5ed
NN
3638fi
3639
1c710c3c 3640 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 3641else
1c710c3c 3642 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
3643fi
3644
1c710c3c
DJ
3645if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 3647set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
1c710c3c
DJ
3648echo "$as_me:$LINENO: checking for $ac_word" >&5
3649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3650if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
3652else
3653 if test -n "$GNATMAKE"; then
3654 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3655else
1c710c3c
DJ
3656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657for as_dir in $PATH
3658do
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3666 fi
3667done
3668done
3669
5305be7e
RG
3670fi
3671fi
1c710c3c 3672GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 3673if test -n "$GNATMAKE"; then
1c710c3c
DJ
3674 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3675echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 3676else
1c710c3c
DJ
3677 echo "$as_me:$LINENO: result: no" >&5
3678echo "${ECHO_T}no" >&6
5305be7e
RG
3679fi
3680
1c710c3c 3681fi
5305be7e 3682if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 3683 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
3684 # Extract the first word of "gnatmake", so it can be a program name with args.
3685set dummy gnatmake; ac_word=$2
1c710c3c
DJ
3686echo "$as_me:$LINENO: checking for $ac_word" >&5
3687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 3690else
1c710c3c
DJ
3691 if test -n "$ac_ct_GNATMAKE"; then
3692 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 3693else
1c710c3c
DJ
3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705done
3706done
3707
3708 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
3709fi
3710fi
1c710c3c
DJ
3711ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3712if test -n "$ac_ct_GNATMAKE"; then
3713 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3714echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 3715else
1c710c3c
DJ
3716 echo "$as_me:$LINENO: result: no" >&5
3717echo "${ECHO_T}no" >&6
5305be7e
RG
3718fi
3719
1c710c3c 3720 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 3721else
1c710c3c 3722 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
3723fi
3724
1c710c3c
DJ
3725echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3726echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3727if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3729else
3730 cat >conftest.adb <<EOF
3731procedure conftest is begin null; end conftest;
3732EOF
3733acx_cv_cc_gcc_supports_ada=no
3734# There is a bug in old released versions of GCC which causes the
3735# driver to exit successfully when the appropriate language module
3736# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3737# Therefore we must check for the error message as well as an
3738# unsuccessful exit.
1db673ca
RO
3739# Other compilers, like HP Tru64 UNIX cc, exit successfully when
3740# given a .adb file, but produce no object file. So we must check
3741# if an object file was really produced to guard against this.
55ffb5ed 3742errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 3743if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 3744 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
3745fi
3746rm -f conftest.*
3747fi
1c710c3c
DJ
3748echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3749echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 3750
5305be7e 3751if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
3752 have_gnat=yes
3753else
3754 have_gnat=no
3755fi
3756
1c710c3c
DJ
3757echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
3758echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
3759if test "${gcc_cv_prog_cmp_skip+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
3761else
3762 echo abfoo >t1
3763 echo cdfoo >t2
3764 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
3765 if cmp t1 t2 2 2 > /dev/null 2>&1; then
3766 if cmp t1 t2 1 1 > /dev/null 2>&1; then
3767 :
3768 else
3769 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
3770 fi
3771 fi
a76494aa
PB
3772 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
3773 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 3774 :
a76494aa
PB
3775 else
3776 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
3777 fi
3778 fi
3779 rm t1 t2
3780
3781fi
1c710c3c
DJ
3782echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
3783echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
3784do_compare="$gcc_cv_prog_cmp_skip"
3785
3786
55ffb5ed 3787
bebf829d 3788# Check for GMP and MPFR
e69bf64b 3789gmplibs="-lmpfr -lgmp"
6de9cd9a 3790gmpinc=
e69bf64b
PB
3791have_gmp=no
3792
bebf829d
PB
3793# Specify a location for mpfr
3794# check for this first so it ends up on the link line before gmp.
1c710c3c 3795
bebf829d
PB
3796# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
3797if test "${with_mpfr_dir+set}" = set; then
3798 withval="$with_mpfr_dir"
1c710c3c
DJ
3799 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
3800Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
3801echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
3802Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
3803 { (exit 1); exit 1; }; }
3804fi;
bebf829d
PB
3805
3806
bebf829d
PB
3807# Check whether --with-mpfr or --without-mpfr was given.
3808if test "${with_mpfr+set}" = set; then
3809 withval="$with_mpfr"
1c710c3c
DJ
3810
3811fi;
bebf829d 3812
8a877c9c
KG
3813# Check whether --with-mpfr_include or --without-mpfr_include was given.
3814if test "${with_mpfr_include+set}" = set; then
3815 withval="$with_mpfr_include"
1c710c3c
DJ
3816
3817fi;
8a877c9c
KG
3818
3819# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
3820if test "${with_mpfr_lib+set}" = set; then
3821 withval="$with_mpfr_lib"
8a877c9c 3822
1c710c3c 3823fi;
bebf829d
PB
3824
3825if test "x$with_mpfr" != x; then
3826 gmplibs="-L$with_mpfr/lib $gmplibs"
3827 gmpinc="-I$with_mpfr/include"
3828fi
8a877c9c
KG
3829if test "x$with_mpfr_include" != x; then
3830 gmpinc="-I$with_mpfr_include"
3831fi
3832if test "x$with_mpfr_lib" != x; then
3833 gmplibs="-L$with_mpfr_lib $gmplibs"
3834fi
e69bf64b
PB
3835if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
3836 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
3837 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
3838 # Do not test the mpfr version. Assume that it is sufficient, since
3839 # it is in the source tree, and the library has not been built yet
3840 # but it would be included on the link line in the version check below
3841 # hence making the test fail.
3842 have_gmp=yes
3843fi
bebf829d 3844
6de9cd9a 3845# Specify a location for gmp
1c710c3c 3846
6de9cd9a
DN
3847# Check whether --with-gmp-dir or --without-gmp-dir was given.
3848if test "${with_gmp_dir+set}" = set; then
3849 withval="$with_gmp_dir"
1c710c3c
DJ
3850 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
3851Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
3852echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
3853Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
3854 { (exit 1); exit 1; }; }
3855fi;
6de9cd9a 3856
6de9cd9a
DN
3857
3858# Check whether --with-gmp or --without-gmp was given.
3859if test "${with_gmp+set}" = set; then
3860 withval="$with_gmp"
1c710c3c
DJ
3861
3862fi;
6de9cd9a 3863
8a877c9c
KG
3864# Check whether --with-gmp_include or --without-gmp_include was given.
3865if test "${with_gmp_include+set}" = set; then
3866 withval="$with_gmp_include"
1c710c3c
DJ
3867
3868fi;
8a877c9c
KG
3869
3870# Check whether --with-gmp_lib or --without-gmp_lib was given.
3871if test "${with_gmp_lib+set}" = set; then
3872 withval="$with_gmp_lib"
8a877c9c 3873
1c710c3c 3874fi;
8a877c9c 3875
6de9cd9a 3876
bebf829d
PB
3877if test "x$with_gmp" != x; then
3878 gmplibs="-L$with_gmp/lib $gmplibs"
3879 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 3880fi
8a877c9c
KG
3881if test "x$with_gmp_include" != x; then
3882 gmpinc="-I$with_gmp_include $gmpinc"
3883fi
3884if test "x$with_gmp_lib" != x; then
3885 gmplibs="-L$with_gmp_lib $gmplibs"
3886fi
e69bf64b
PB
3887if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
3888 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
3889 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
3890 # Do not test the gmp version. Assume that it is sufficient, since
3891 # it is in the source tree, and the library has not been built yet
3892 # but it would be included on the link line in the version check below
3893 # hence making the test fail.
3894 have_gmp=yes
3895fi
6de9cd9a 3896
d943d7c4 3897if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
3898 have_gmp=yes
3899 saved_CFLAGS="$CFLAGS"
3900 CFLAGS="$CFLAGS $gmpinc"
3901 # Check GMP actually works
1c710c3c
DJ
3902 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
3903echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
3904
3905cat >conftest.$ac_ext <<_ACEOF
3906/* confdefs.h. */
3907_ACEOF
3908cat confdefs.h >>conftest.$ac_ext
3909cat >>conftest.$ac_ext <<_ACEOF
3910/* end confdefs.h. */
6de9cd9a 3911#include "gmp.h"
1c710c3c
DJ
3912int
3913main ()
3914{
6de9cd9a 3915
e69bf64b
PB
3916 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
3917 choke me
3918 #endif
1c710c3c
DJ
3919
3920 ;
3921 return 0;
3922}
3923_ACEOF
3924rm -f conftest.$ac_objext
3925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3926 (eval $ac_compile) 2>conftest.er1
3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } &&
3933 { ac_try='test -z "$ac_c_werror_flag"
3934 || test ! -s conftest.err'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 (eval $ac_try) 2>&5
3937 ac_status=$?
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; } &&
3940 { ac_try='test -s conftest.$ac_objext'
3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 (eval $ac_try) 2>&5
3943 ac_status=$?
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; }; then
3946 echo "$as_me:$LINENO: result: yes" >&5
3947echo "${ECHO_T}yes" >&6
3948else
3949 echo "$as_me: failed program was:" >&5
3950sed 's/^/| /' conftest.$ac_ext >&5
3951
3952echo "$as_me:$LINENO: result: no" >&5
3953echo "${ECHO_T}no" >&6; have_gmp=no
3954fi
3955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 3956
e69bf64b
PB
3957 if test x"$have_gmp" = xyes; then
3958 saved_LIBS="$LIBS"
3959 LIBS="$LIBS $gmplibs"
1c710c3c
DJ
3960 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
3961echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
3962 cat >conftest.$ac_ext <<_ACEOF
3963/* confdefs.h. */
3964_ACEOF
3965cat confdefs.h >>conftest.$ac_ext
3966cat >>conftest.$ac_ext <<_ACEOF
3967/* end confdefs.h. */
70ec446f 3968#include <gmp.h>
e69bf64b 3969 #include <mpfr.h>
1c710c3c
DJ
3970int
3971main ()
3972{
e48d66a9 3973
e69bf64b
PB
3974 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
3975 choke me
3976 #endif
3977 mpfr_t n; mpfr_init(n);
3978 mpfr_t x; mpfr_init(x);
3979 int t;
3980 mpfr_atan2 (n, n, x, GMP_RNDN);
3981 mpfr_erfc (n, x, GMP_RNDN);
3982 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
3983
3984 ;
3985 return 0;
3986}
3987_ACEOF
3988rm -f conftest.$ac_objext conftest$ac_exeext
3989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3990 (eval $ac_link) 2>conftest.er1
3991 ac_status=$?
3992 grep -v '^ *+' conftest.er1 >conftest.err
3993 rm -f conftest.er1
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try='test -z "$ac_c_werror_flag"
3998 || test ! -s conftest.err'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; } &&
4004 { ac_try='test -s conftest$ac_exeext'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 (eval $ac_try) 2>&5
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 cat >conftest.$ac_ext <<_ACEOF
4011/* confdefs.h. */
4012_ACEOF
4013cat confdefs.h >>conftest.$ac_ext
4014cat >>conftest.$ac_ext <<_ACEOF
4015/* end confdefs.h. */
a3993f33 4016#include <gmp.h>
e69bf64b 4017 #include <mpfr.h>
1c710c3c
DJ
4018int
4019main ()
4020{
a3993f33 4021
e69bf64b
PB
4022 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4023 choke me
4024 #endif
4025 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4026
4027 ;
4028 return 0;
4029}
4030_ACEOF
4031rm -f conftest.$ac_objext conftest$ac_exeext
4032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4033 (eval $ac_link) 2>conftest.er1
4034 ac_status=$?
4035 grep -v '^ *+' conftest.er1 >conftest.err
4036 rm -f conftest.er1
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -z "$ac_c_werror_flag"
4041 || test ! -s conftest.err'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; } &&
4047 { ac_try='test -s conftest$ac_exeext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 (eval $ac_try) 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 echo "$as_me:$LINENO: result: yes" >&5
4054echo "${ECHO_T}yes" >&6
4055else
4056 echo "$as_me: failed program was:" >&5
4057sed 's/^/| /' conftest.$ac_ext >&5
4058
4059echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4060echo "${ECHO_T}buggy but acceptable" >&6
4061fi
4062rm -f conftest.err conftest.$ac_objext \
4063 conftest$ac_exeext conftest.$ac_ext
4064else
4065 echo "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
4067
4068echo "$as_me:$LINENO: result: no" >&5
4069echo "${ECHO_T}no" >&6; have_gmp=no
4070fi
4071rm -f conftest.err conftest.$ac_objext \
4072 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4073 LIBS="$saved_LIBS"
4074 fi
4075 CFLAGS="$saved_CFLAGS"
6de9cd9a 4076
e69bf64b 4077 if test x$have_gmp != xyes; then
1c710c3c
DJ
4078 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4079Try the --with-gmp and/or --with-mpfr options to specify their locations.
4080Copies of these libraries' source code can be found at their respective
4081hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4082See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4083If you obtained GMP and/or MPFR from a vendor distribution package, make
4084sure that you have installed both the libraries and the header files.
4085They may be located in separate packages." >&5
4086echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
ca558912
KG
4087Try the --with-gmp and/or --with-mpfr options to specify their locations.
4088Copies of these libraries' source code can be found at their respective
4089hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4090See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4091If you obtained GMP and/or MPFR from a vendor distribution package, make
4092sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4093They may be located in separate packages." >&2;}
4094 { (exit 1); exit 1; }; }
e69bf64b 4095 fi
70ec446f
KG
4096fi
4097
bebf829d 4098# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4099
4100
4101
1e0f07d3 4102# By default, C is the only stage 1 language.
e1888513 4103stage1_languages=,c,
2805b53a 4104
55ffb5ed
NN
4105# Figure out what language subdirectories are present.
4106# Look if the user specified --enable-languages="..."; if not, use
4107# the environment variable $LANGUAGES if defined. $LANGUAGES might
4108# go away some day.
4109# NB: embedded tabs in this IF block -- do not untabify
4110if test -d ${srcdir}/gcc; then
4111 if test x"${enable_languages+set}" != xset; then
4112 if test x"${LANGUAGES+set}" = xset; then
4113 enable_languages="${LANGUAGES}"
4114 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4115 else
4116 enable_languages=all
4117 fi
4118 else
4119 if test x"${enable_languages}" = x ||
4120 test x"${enable_languages}" = xyes;
4121 then
4122 echo configure.in: --enable-languages needs at least one language argument 1>&2
4123 exit 1
4124 fi
4125 fi
4126 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4127
7f26dfa3
FXC
4128 # 'f95' is the old name for the 'fortran' language. We issue a warning
4129 # and make the substitution.
4130 case ,${enable_languages}, in
4131 *,f95,*)
4132 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4133 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4134 ;;
4135 esac
4136
55ffb5ed
NN
4137 # First scan to see if an enabled language requires some other language.
4138 # We assume that a given config-lang.in will list all the language
4139 # front ends it requires, even if some are required indirectly.
4140 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4141 case ${lang_frag} in
4142 ..) ;;
4143 # The odd quoting in the next line works around
4144 # an apparent bug in bash 1.12 on linux.
4145 ${srcdir}/gcc/[*]/config-lang.in) ;;
4146 *)
4147 # From the config-lang.in, get $language, $lang_requires
4148 language=
4149 lang_requires=
4150 . ${lang_frag}
4151 for other in ${lang_requires} ; do
4152 case ,${enable_languages}, in
4153 *,$other,*) ;;
4154 *,all,*) ;;
4155 *,$language,*)
4156 echo " \`$other' language required by \`$language'; enabling" 1>&2
4157 enable_languages="${enable_languages},${other}"
4158 ;;
4159 esac
4160 done
4161 ;;
4162 esac
4163 done
4164
e1888513 4165 new_enable_languages=,c,
55ffb5ed 4166 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 4167 potential_languages=,c,
55ffb5ed
NN
4168
4169 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4170 case ${lang_frag} in
4171 ..) ;;
4172 # The odd quoting in the next line works around
4173 # an apparent bug in bash 1.12 on linux.
4174 ${srcdir}/gcc/[*]/config-lang.in) ;;
4175 *)
1c710c3c 4176 # From the config-lang.in, get $language, $target_libs,
2805b53a 4177 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
4178 language=
4179 target_libs=
4180 lang_dirs=
1546bb64 4181 subdir_requires=
e1888513
PB
4182 boot_language=no
4183 build_by_default=yes
55ffb5ed 4184 . ${lang_frag}
e1888513
PB
4185 if test x${language} = x; then
4186 echo "${lang_frag} doesn't set \$language." 1>&2
4187 exit 1
4188 fi
4189
4190 case ,${enable_languages}, in
4191 *,${language},*)
55ffb5ed
NN
4192 # Language was explicitly selected; include it.
4193 add_this_lang=yes
4194 ;;
e1888513
PB
4195 *,all,*)
4196 # 'all' was selected, select it if it is a default language
4197 add_this_lang=${build_by_default}
55ffb5ed
NN
4198 ;;
4199 *)
4200 add_this_lang=no
4201 ;;
4202 esac
6de9cd9a 4203
1546bb64 4204 # Disable languages that need other directories if these aren't available.
95695ad3 4205 for i in $subdir_requires; do
b6348cb3 4206 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
4207 case ,${enable_languages}, in
4208 *,${language},*)
4209 # Specifically requested language; tell them.
1c710c3c
DJ
4210 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4211echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4212 { (exit 1); exit 1; }; }
1546bb64
PB
4213 ;;
4214 *)
4215 # Silently disable.
e1888513 4216 add_this_lang=unsupported
1546bb64
PB
4217 ;;
4218 esac
4219 done
4220
e1888513
PB
4221 # Disable Ada if no preexisting GNAT is available.
4222 case ,${enable_languages},:${language}:${have_gnat} in
4223 *,${language},*:ada:no)
4224 # Specifically requested language; tell them.
1c710c3c
DJ
4225 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4226echo "$as_me: error: GNAT is required to build $language" >&2;}
4227 { (exit 1); exit 1; }; }
e1888513
PB
4228 ;;
4229 *:ada:no)
4230 # Silently disable.
4231 add_this_lang=unsupported
4232 ;;
4233 esac
4234
4fab7234
HPN
4235 # Disable a language that is unsupported by the target.
4236 case " $unsupported_languages " in
4237 *" $language "*)
e1888513 4238 add_this_lang=unsupported
4fab7234
HPN
4239 ;;
4240 esac
4241
6de9cd9a 4242 case $add_this_lang in
e1888513 4243 unsupported)
55ffb5ed 4244 # Remove language-dependent dirs.
2805b53a
NN
4245 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4246 ;;
e1888513
PB
4247 no)
4248 # Remove language-dependent dirs; still show language as supported.
4249 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4250 potential_languages="${potential_languages}${language},"
4251 ;;
4252 yes)
4253 new_enable_languages="${new_enable_languages}${language},"
4254 potential_languages="${potential_languages}${language},"
2805b53a
NN
4255 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4256 case ${boot_language} in
4257 yes)
340de83f 4258 # Add to (comma-separated) list of stage 1 languages.
e1888513 4259 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
4260 ;;
4261 esac
4262 ;;
55ffb5ed
NN
4263 esac
4264 ;;
4265 esac
4266 done
4267
e1888513
PB
4268 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4269if test "${enable_stage1_languages+set}" = set; then
4270 enableval="$enable_stage1_languages"
4271 case ,${enable_stage1_languages}, in
4272 ,no,|,,)
4273 # Set it to something that will have no effect in the loop below
4274 enable_stage1_languages=c ;;
4275 ,yes,)
4276 enable_stage1_languages=`echo $new_enable_languages | \
4277 sed -e "s/^,//" -e "s/,$//" ` ;;
4278 *,all,*)
4279 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4280 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4281 esac
4282
4283 # Add "good" languages from enable_stage1_languages to stage1_languages,
4284 # while "bad" languages go in missing_languages. Leave no duplicates.
4285 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4286 case $potential_languages in
4287 *,$i,*)
4288 case $stage1_languages in
4289 *,$i,*) ;;
4290 *) stage1_languages="$stage1_languages$i," ;;
4291 esac ;;
4292 *)
4293 case $missing_languages in
4294 *,$i,*) ;;
4295 *) missing_languages="$missing_languages$i," ;;
4296 esac ;;
4297 esac
4298 done
1c710c3c 4299fi;
e1888513
PB
4300
4301 # Remove leading/trailing commas that were added for simplicity
4302 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 4303 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
4304 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4305 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4306
55ffb5ed 4307 if test "x$missing_languages" != x; then
1c710c3c 4308 { { echo "$as_me:$LINENO: error:
0cf085e4 4309The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
4310Supported languages are: ${potential_languages}" >&5
4311echo "$as_me: error:
4312The following requested languages could not be built: ${missing_languages}
4313Supported languages are: ${potential_languages}" >&2;}
4314 { (exit 1); exit 1; }; }
55ffb5ed 4315 fi
55ffb5ed
NN
4316 if test "x$new_enable_languages" != "x$enable_languages"; then
4317 echo The following languages will be built: ${new_enable_languages}
e1888513 4318 enable_languages="$new_enable_languages"
55ffb5ed 4319 fi
e1888513 4320
1c710c3c 4321
6bbec498 4322 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
55ffb5ed
NN
4323fi
4324
27079765
AH
4325# Handle --disable-<component> generically.
4326for dir in $configdirs $build_configdirs $target_configdirs ; do
4327 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4328 if eval test x\${enable_${dirname}} "=" xno ; then
4329 noconfigdirs="$noconfigdirs $dir"
4330 fi
4331done
4332
7cd0cf9c
DA
4333# Check for Boehm's garbage collector
4334# Check whether --enable-objc-gc or --disable-objc-gc was given.
4335if test "${enable_objc_gc+set}" = set; then
4336 enableval="$enable_objc_gc"
4337 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4338 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
4339 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4340echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4341 { (exit 1); exit 1; }; }
7cd0cf9c
DA
4342 ;;
4343esac
1c710c3c 4344fi;
7cd0cf9c
DA
4345
4346# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
4347case ,${enable_languages},:${enable_objc_gc} in
4348 *,objc,*:yes)
7cd0cf9c
DA
4349 # Keep target-boehm-gc if requested for Objective-C.
4350 ;;
7cd0cf9c 4351 *)
2a79fd67
DA
4352 # Otherwise remove target-boehm-gc depending on target-libjava.
4353 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4354 noconfigdirs="$noconfigdirs target-boehm-gc"
4355 fi
7cd0cf9c
DA
4356 ;;
4357esac
4358
ee6a22df
L
4359# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4360# $build_configdirs and $target_configdirs.
55ffb5ed
NN
4361# If we have the source for $noconfigdirs entries, add them to $notsupp.
4362
4363notsupp=""
4364for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 4365 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
4366 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4367 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4368 if test -r $srcdir/$dirname/configure ; then
4369 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4370 true
4371 else
4372 notsupp="$notsupp $dir"
4373 fi
4374 fi
4375 fi
ee6a22df
L
4376 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4377 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4378 if test -r $srcdir/$dirname/configure ; then
4379 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4380 true
4381 else
4382 notsupp="$notsupp $dir"
4383 fi
4384 fi
4385 fi
55ffb5ed
NN
4386 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4387 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4388 if test -r $srcdir/$dirname/configure ; then
4389 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4390 true
4391 else
4392 notsupp="$notsupp $dir"
4393 fi
4394 fi
4395 fi
4396done
4397
4398# Sometimes the tools are distributed with libiberty but with no other
4399# libraries. In that case, we don't want to build target-libiberty.
54fdc474 4400# Don't let libgcc imply libiberty either.
55ffb5ed 4401if test -n "${target_configdirs}" ; then
54fdc474 4402 libgcc=
55ffb5ed
NN
4403 others=
4404 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
4405 if test "$i" = "libgcc"; then
4406 libgcc=target-libgcc
4407 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
4408 if test -r $srcdir/$i/configure ; then
4409 others=yes;
4410 break;
4411 fi
4412 fi
4413 done
4414 if test -z "${others}" ; then
54fdc474 4415 target_configdirs=$libgcc
55ffb5ed
NN
4416 fi
4417fi
4418
4419# Quietly strip out all directories which aren't configurable in this tree.
4420# This relies on all configurable subdirectories being autoconfiscated, which
4421# is now the case.
23f6b2f9
PB
4422build_configdirs_all="$build_configdirs"
4423build_configdirs=
4424for i in ${build_configdirs_all} ; do
1c710c3c 4425 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
4426 if test -f ${srcdir}/$j/configure ; then
4427 build_configdirs="${build_configdirs} $i"
4428 fi
4429done
4430
55ffb5ed
NN
4431configdirs_all="$configdirs"
4432configdirs=
4433for i in ${configdirs_all} ; do
4434 if test -f ${srcdir}/$i/configure ; then
4435 configdirs="${configdirs} $i"
4436 fi
4437done
23f6b2f9 4438
55ffb5ed
NN
4439target_configdirs_all="$target_configdirs"
4440target_configdirs=
4441for i in ${target_configdirs_all} ; do
1c710c3c 4442 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
4443 if test -f ${srcdir}/$j/configure ; then
4444 target_configdirs="${target_configdirs} $i"
4445 fi
4446done
4447
4448# Produce a warning message for the subdirs we can't configure.
4449# This isn't especially interesting in the Cygnus tree, but in the individual
4450# FSF releases, it's important to let people know when their machine isn't
4451# supported by the one or two programs in a package.
4452
4453if test -n "${notsupp}" && test -z "${norecursion}" ; then
4454 # If $appdirs is non-empty, at least one of those directories must still
4455 # be configured, or we error out. (E.g., if the gas release supports a
4456 # specified target in some subdirs but not the gas subdir, we shouldn't
4457 # pretend that all is well.)
4458 if test -n "$appdirs" ; then
4459 for dir in $appdirs ; do
4460 if test -r $dir/Makefile.in ; then
4461 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4462 appdirs=""
4463 break
4464 fi
23f6b2f9 4465 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
4466 appdirs=""
4467 break
4468 fi
4469 fi
4470 done
4471 if test -n "$appdirs" ; then
4472 echo "*** This configuration is not supported by this package." 1>&2
4473 exit 1
4474 fi
4475 fi
4476 # Okay, some application will build, or we don't care to check. Still
4477 # notify of subdirs not getting built.
4478 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4479 echo " ${notsupp}" 1>&2
4480 echo " (Any other directories should still work fine.)" 1>&2
4481fi
4482
4483case "$host" in
4484 *msdosdjgpp*)
4485 enable_gdbtk=no ;;
4486esac
4487
4488copy_dirs=
4489
1c710c3c 4490
526635cb
MM
4491# Check whether --with-build-sysroot or --without-build-sysroot was given.
4492if test "${with_build_sysroot+set}" = set; then
4493 withval="$with_build_sysroot"
4494 if test x"$withval" != x ; then
4495 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
4496 fi
4497else
4498 SYSROOT_CFLAGS_FOR_TARGET=
1c710c3c 4499fi;
526635cb
MM
4500
4501
55ffb5ed
NN
4502# Handle --with-headers=XXX. If the value is not "yes", the contents of
4503# the named directory are copied to $(tooldir)/sys-include.
4504if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
4505 if test x${is_cross_compiler} = xno ; then
4506 echo 1>&2 '***' --with-headers is only supported when cross compiling
4507 exit 1
4508 fi
4509 if test x"${with_headers}" != xyes ; then
4510 case "${exec_prefixoption}" in
4511 "") x=${prefix} ;;
4512 *) x=${exec_prefix} ;;
4513 esac
1c710c3c 4514 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
4515 fi
4516fi
4517
4518# Handle --with-libs=XXX. If the value is not "yes", the contents of
4519# the name directories are copied to $(tooldir)/lib. Multiple directories
4520# are permitted.
4521if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
4522 if test x${is_cross_compiler} = xno ; then
4523 echo 1>&2 '***' --with-libs is only supported when cross compiling
4524 exit 1
4525 fi
4526 if test x"${with_libs}" != xyes ; then
4527 # Copy the libraries in reverse order, so that files in the first named
4528 # library override files in subsequent libraries.
4529 case "${exec_prefixoption}" in
4530 "") x=${prefix} ;;
4531 *) x=${exec_prefix} ;;
4532 esac
4533 for l in ${with_libs}; do
1c710c3c 4534 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
4535 done
4536 fi
4537fi
4538
e8b05380
PB
4539# Set with_gnu_as and with_gnu_ld as appropriate.
4540#
4541# This is done by determining whether or not the appropriate directory
4542# is available, and by checking whether or not specific configurations
4543# have requested that this magic not happen.
1c710c3c
DJ
4544#
4545# The command line options always override the explicit settings in
e8b05380
PB
4546# configure.in, and the settings in configure.in override this magic.
4547#
1c710c3c 4548# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
4549# want to do that, then you should use the --without-gnu-as and
4550# --without-gnu-ld options for the configure script.
4551
4552if test x${use_gnu_as} = x &&
4553 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
4554 with_gnu_as=yes
4555 extra_host_args="$extra_host_args --with-gnu-as"
4556fi
4557
4558if test x${use_gnu_ld} = x &&
4559 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
4560 with_gnu_ld=yes
4561 extra_host_args="$extra_host_args --with-gnu-ld"
4562fi
4563
4564# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4565# can detect this case.
4566
4567if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
4568 with_newlib=yes
4569 extra_host_args="$extra_host_args --with-newlib"
4570fi
4571
55ffb5ed
NN
4572# Handle ${copy_dirs}
4573set fnord ${copy_dirs}
4574shift
4575while test $# != 0 ; do
4576 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
4577 :
4578 else
4579 echo Copying $1 to $2
4580
4581 # Use the install script to create the directory and all required
4582 # parent directories.
4583 if test -d $2 ; then
4584 :
4585 else
4586 echo >config.temp
4587 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
4588 fi
4589
4590 # Copy the directory, assuming we have tar.
4591 # FIXME: Should we use B in the second tar? Not all systems support it.
4592 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
4593
4594 # It is the responsibility of the user to correctly adjust all
4595 # symlinks. If somebody can figure out how to handle them correctly
4596 # here, feel free to add the code.
4597
4598 echo $1 > $2/COPIED
4599 fi
4600 shift; shift
4601done
4602
e8b05380
PB
4603# Determine a target-dependent exec_prefix that the installed
4604# gcc will search in. Keep this list sorted by triplet, with
4605# the *-*-osname triplets last.
4606md_exec_prefix=
4607case "${target}" in
4608 alpha*-*-*vms*)
4609 md_exec_prefix=/gnu/lib/gcc-lib
4610 ;;
4611 i3456786-pc-msdosdjgpp*)
4612 md_exec_prefix=/dev/env/DJDIR/bin
4613 ;;
4614 i3456786-*-sco3.2v5*)
4615 if test $with_gnu_as = yes; then
4616 md_exec_prefix=/usr/gnu/bin
4617 else
4618 md_exec_prefix=/usr/ccs/bin/elf
4619 fi
4620 ;;
4621
4622 mn10300-*-* | \
4623 powerpc-*-chorusos* | \
4624 powerpc*-*-eabi* | \
4625 powerpc*-*-sysv* | \
4626 powerpc*-*-kaos* | \
4627 s390x-ibm-tpf*)
4628 md_exec_prefix=/usr/ccs/bin
4629 ;;
4630 sparc64-*-elf*)
4631 ;;
4632 v850*-*-*)
4633 md_exec_prefix=/usr/ccs/bin
4634 ;;
4635 xtensa-*-elf*)
4636 ;;
4637
4638 *-*-beos* | \
4639 *-*-elf* | \
4640 *-*-hpux* | \
4641 *-*-netware* | \
4642 *-*-nto-qnx* | \
4643 *-*-rtems* | \
4644 *-*-solaris2* | \
4645 *-*-sysv45* | \
4646 *-*-vxworks* | \
4647 *-wrs-windiss)
4648 md_exec_prefix=/usr/ccs/bin
4649 ;;
4650esac
4651
671aa708
NN
4652extra_arflags_for_target=
4653extra_nmflags_for_target=
4654extra_ranlibflags_for_target=
4655target_makefile_frag=/dev/null
4656case "${target}" in
3e19841a
PB
4657 mep*-*-*)
4658 target_makefile_frag="config/mt-mep"
4659 ;;
58e24147
AM
4660 spu-*-*)
4661 target_makefile_frag="config/mt-spu"
4662 ;;
61fec9ff 4663 *-*-netware*)
671aa708
NN
4664 target_makefile_frag="config/mt-netware"
4665 ;;
98a5bb3b
RM
4666 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
4667 target_makefile_frag="config/mt-gnu"
671aa708
NN
4668 ;;
4669 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 4670 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
4671 # commands to handle both 32-bit and 64-bit objects. These flags are
4672 # harmless if we're using GNU nm or ar.
4673 extra_arflags_for_target=" -X32_64"
4674 extra_nmflags_for_target=" -B -X32_64"
4675 ;;
4676 *-*-darwin*)
4677 # ranlib from Darwin requires the -c flag to look at common symbols.
4678 extra_ranlibflags_for_target=" -c"
4679 ;;
4680 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
4681 target_makefile_frag="config/mt-wince"
4682 ;;
4683esac
4684
4685alphaieee_frag=/dev/null
4686case $target in
4687 alpha*-*-*)
4688 # This just makes sure to use the -mieee option to build target libs.
4689 # This should probably be set individually by each library.
4690 alphaieee_frag="config/mt-alphaieee"
4691 ;;
4692esac
4693
4694# If --enable-target-optspace always use -Os instead of -O2 to build
4695# the target libraries, similarly if it is not specified, use -Os
4696# on selected platforms.
4697ospace_frag=/dev/null
4698case "${enable_target_optspace}:${target}" in
4699 yes:*)
4700 ospace_frag="config/mt-ospace"
4701 ;;
4702 :d30v-*)
4703 ospace_frag="config/mt-d30v"
4704 ;;
4705 :m32r-* | :d10v-* | :fr30-*)
4706 ospace_frag="config/mt-ospace"
4707 ;;
4708 no:* | :*)
4709 ;;
4710 *)
4711 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
4712 ;;
4713esac
4714
671aa708
NN
4715# Default to using --with-stabs for certain targets.
4716if test x${with_stabs} = x ; then
4717 case "${target}" in
89a95129 4718 mips*-*-irix[56]*)
671aa708
NN
4719 ;;
4720 mips*-*-* | alpha*-*-osf*)
4721 with_stabs=yes;
4722 extra_host_args="${extra_host_args} --with-stabs"
4723 ;;
4724 esac
4725fi
4726
4727# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
4728# them automatically.
4729case "${host}" in
1c710c3c 4730 hppa*64*-*-hpux11*)
671aa708
NN
4731 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
4732 ;;
4733esac
4734
671aa708
NN
4735# Some systems (e.g., one of the i386-aix systems the gas testers are
4736# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 4737tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
4738build_tooldir=${tooldir}
4739
671aa708
NN
4740# Create a .gdbinit file which runs the one in srcdir
4741# and tells GDB to look there for source files.
4742
4743if test -r ${srcdir}/.gdbinit ; then
4744 case ${srcdir} in
4745 .) ;;
4746 *) cat > ./.gdbinit <<EOF
4747# ${NO_EDIT}
4748dir ${srcdir}
4749dir .
4750source ${srcdir}/.gdbinit
4751EOF
4752 ;;
4753 esac
4754fi
4755
671aa708
NN
4756# Make sure that the compiler is able to generate an executable. If it
4757# can't, we are probably in trouble. We don't care whether we can run the
4758# executable--we might be using a cross compiler--we only care whether it
4759# can be created. At this point the main configure script has set CC.
4760we_are_ok=no
4761echo "int main () { return 0; }" > conftest.c
4762${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
4763if test $? = 0 ; then
4764 if test -s conftest || test -s conftest.exe ; then
4765 we_are_ok=yes
4766 fi
1c710c3c 4767fi
671aa708
NN
4768case $we_are_ok in
4769 no)
4770 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
4771 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
4772 rm -f conftest*
4773 exit 1
4774 ;;
4775esac
4776rm -f conftest*
4777
4778# The Solaris /usr/ucb/cc compiler does not appear to work.
4779case "${host}" in
4780 sparc-sun-solaris2*)
4781 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
4782 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
4783 could_use=
4784 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
4785 if test -d /opt/cygnus/bin ; then
4786 if test "$could_use" = "" ; then
4787 could_use="/opt/cygnus/bin"
4788 else
4789 could_use="$could_use or /opt/cygnus/bin"
4790 fi
4791 fi
4792 if test "$could_use" = "" ; then
4793 echo "Warning: compilation may fail because you're using"
4794 echo "/usr/ucb/cc. You should change your PATH or CC "
4795 echo "variable and rerun configure."
4796 else
4797 echo "Warning: compilation may fail because you're using"
4798 echo "/usr/ucb/cc, when you should use the C compiler from"
4799 echo "$could_use. You should change your"
4800 echo "PATH or CC variable and rerun configure."
4801 fi
4802 fi
4803 ;;
4804esac
4805
671aa708
NN
4806case "${host}" in
4807 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 4808 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
671aa708
NN
4809 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
4810esac
4811
4812# Record target_configdirs and the configure arguments for target and
4813# build configuration in Makefile.
4814target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 4815build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 4816
671aa708
NN
4817# Determine whether gdb needs tk/tcl or not.
4818# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
4819# and in that case we want gdb to be built without tk. Ugh!
4820# In fact I believe gdb is the *only* package directly dependent on tk,
4821# so we should be able to put the 'maybe's in unconditionally and
4822# leave out the maybe dependencies when enable_gdbtk is false. I'm not
4823# 100% sure that that's safe though.
e914a571 4824
b4f96efe 4825gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
4826case "$enable_gdbtk" in
4827 no)
4828 GDB_TK="" ;;
e914a571
AC
4829 yes)
4830 GDB_TK="${gdb_tk}" ;;
671aa708 4831 *)
e914a571
AC
4832 # Only add the dependency on gdbtk when GDBtk is part of the gdb
4833 # distro. Eventually someone will fix this and move Insight, nee
4834 # gdbtk to a separate directory.
4835 if test -d ${srcdir}/gdb/gdbtk ; then
4836 GDB_TK="${gdb_tk}"
4837 else
4838 GDB_TK=""
4839 fi
4840 ;;
671aa708 4841esac
ef9db8d5
DJ
4842CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
4843INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 4844
60975492 4845# Strip out unwanted targets.
8b87bb96
NN
4846
4847# While at that, we remove Makefiles if we were started for recursive
4848# configuration, so that the top-level Makefile reconfigures them,
4849# like we used to do when configure itself was recursive.
8b87bb96 4850
60975492
PB
4851# Loop over modules. $extrasub must be used with care, limiting as
4852# much as possible the usage of range addresses. That's because autoconf
4853# splits the sed script to overcome limits in the number of commands,
4854# and relying on carefully-timed sed passes may turn out to be very hard
4855# to maintain later. In this particular case, you just have to be careful
4856# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 4857
f516a7da
PB
4858# Check whether --enable-bootstrap or --disable-bootstrap was given.
4859if test "${enable_bootstrap+set}" = set; then
4860 enableval="$enable_bootstrap"
1c710c3c 4861
f516a7da 4862else
ce521a9c 4863 enable_bootstrap=default
1c710c3c 4864fi;
f516a7da 4865
ce521a9c
PB
4866# Issue errors and warnings for invalid/strange bootstrap combinations.
4867case "$configdirs" in
4868 *gcc*) have_compiler=yes ;;
4869 *) have_compiler=no ;;
4870esac
4871
4872case "$have_compiler:$host:$target:$enable_bootstrap" in
4873 *:*:*:no) ;;
4874
1ca26cd2 4875 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
4876 # and we are in a native configuration.
4877 yes:$build:$build:default)
1ca26cd2 4878 enable_bootstrap=yes ;;
ce521a9c
PB
4879
4880 *:*:*:default)
4881 enable_bootstrap=no ;;
4882
4883 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 4884 yes:$build:$build:yes)
ce521a9c
PB
4885 ;;
4886
4887 # Other configurations, but we have a compiler. Assume the user knows
4888 # what he's doing.
2d309510 4889 yes:*:*:yes)
1c710c3c
DJ
4890 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
4891echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
4892 ;;
4893
4894 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 4895 no:*:*:yes)
1c710c3c
DJ
4896 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
4897echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
4898 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
4899
4900 # Fail if wrong command line
4901 *)
1c710c3c
DJ
4902 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
4903echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
4904 { (exit 1); exit 1; }; }
ce521a9c
PB
4905 ;;
4906esac
4907
4908# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
4909case "$enable_bootstrap" in
4910 yes)
5607edfd 4911 bootstrap_suffix=bootstrap ;;
f516a7da 4912 no)
5607edfd 4913 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
4914esac
4915
23f6b2f9 4916for module in ${build_configdirs} ; do
5607edfd
PB
4917 if test -z "${no_recursion}" \
4918 && test -f ${build_subdir}/${module}/Makefile; then
4919 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
4920 rm -f ${build_subdir}/${module}/Makefile
4921 fi
4922 extrasub="$extrasub
4923/^@if build-$module\$/d
4924/^@endif build-$module\$/d
4925/^@if build-$module-$bootstrap_suffix\$/d
4926/^@endif build-$module-$bootstrap_suffix\$/d"
4927done
4928for module in ${configdirs} ; do
a6fbc1e2 4929 if test -z "${no_recursion}"; then
f063a9ed 4930 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
4931 if test -f ${file}; then
4932 echo 1>&2 "*** removing ${file} to force reconfigure"
4933 rm -f ${file}
4934 fi
4935 done
5607edfd
PB
4936 fi
4937 extrasub="$extrasub
4938/^@if $module\$/d
4939/^@endif $module\$/d
4940/^@if $module-$bootstrap_suffix\$/d
4941/^@endif $module-$bootstrap_suffix\$/d"
4942done
4943for module in ${target_configdirs} ; do
4944 if test -z "${no_recursion}" \
4945 && test -f ${target_subdir}/${module}/Makefile; then
4946 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
4947 rm -f ${target_subdir}/${module}/Makefile
4948 fi
4949 extrasub="$extrasub
4950/^@if target-$module\$/d
4951/^@endif target-$module\$/d
4952/^@if target-$module-$bootstrap_suffix\$/d
4953/^@endif target-$module-$bootstrap_suffix\$/d"
4954done
4955
60975492
PB
4956extrasub="$extrasub
4957/^@if /,/^@endif /d"
671aa708
NN
4958
4959# Create the serialization dependencies. This uses a temporary file.
4960
ade82b16
AO
4961# Check whether --enable-serial-configure or --disable-serial-configure was given.
4962if test "${enable_serial_configure+set}" = set; then
4963 enableval="$enable_serial_configure"
ade82b16 4964
1c710c3c 4965fi;
ade82b16 4966
bf1d3e81
NN
4967case ${enable_serial_configure} in
4968 yes)
4969 enable_serial_build_configure=yes
4970 enable_serial_host_configure=yes
4971 enable_serial_target_configure=yes
4972 ;;
4973esac
4974
671aa708
NN
4975# These force 'configure's to be done one at a time, to avoid problems
4976# with contention over a shared config.cache.
4977rm -f serdep.tmp
ade82b16 4978echo '# serdep.tmp' > serdep.tmp
671aa708 4979olditem=
bf1d3e81 4980test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
4981for item in ${build_configdirs} ; do
4982 case ${olditem} in
4983 "") ;;
ade82b16 4984 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
4985 esac
4986 olditem=${item}
4987done
4988olditem=
bf1d3e81 4989test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
4990for item in ${configdirs} ; do
4991 case ${olditem} in
4992 "") ;;
ade82b16 4993 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
4994 esac
4995 olditem=${item}
4996done
4997olditem=
bf1d3e81 4998test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
4999for item in ${target_configdirs} ; do
5000 case ${olditem} in
5001 "") ;;
ade82b16 5002 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
5003 esac
5004 olditem=${item}
5005done
5006serialization_dependencies=serdep.tmp
5007
5008
ade82b16 5009# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
5010# target, nonopt, and variable assignments. These are the ones we
5011# might not want to pass down to subconfigures. Also strip
5012# program-prefix, program-suffix, and program-transform-name, so that
5013# we can pass down a consistent program-transform-name.
5014baseargs=
5015keep_next=no
5016skip_next=no
5017eval "set -- $ac_configure_args"
44bfc3ac
DJ
5018for ac_arg
5019do
1c710c3c
DJ
5020 if test X"$skip_next" = X"yes"; then
5021 skip_next=no
5022 continue
5023 fi
5024 if test X"$keep_next" = X"yes"; then
5025 case $ac_arg in
5026 *\'*)
5027 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5028 esac
5029 baseargs="$baseargs '$ac_arg'"
5030 keep_next=no
5031 continue
5032 fi
5033
5034 # Handle separated arguments. Based on the logic generated by
5035 # autoconf 2.59.
5036 case $ac_arg in
5037 *=* | --config-cache | -C | -disable-* | --disable-* \
5038 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5039 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5040 | -with-* | --with-* | -without-* | --without-* | --x)
5041 separate_arg=no
5042 ;;
5043 -*)
5044 separate_arg=yes
5045 ;;
5046 *)
5047 separate_arg=no
5048 ;;
5049 esac
5050
5051 case "$ac_arg" in
5052 --no*)
5053 continue
5054 ;;
5055 --c* | \
5056 --sr* | \
5057 --ho* | \
5058 --bu* | \
5059 --t* | \
5060 --program-* | \
5061 -cache_file* | \
5062 -srcdir* | \
5063 -host* | \
5064 -build* | \
5065 -target* | \
5066 -program-prefix* | \
5067 -program-suffix* | \
5068 -program-transform-name* )
5069 skip_next=$separate_arg
5070 continue
5071 ;;
5072 -*)
5073 # An option. Add it.
5074 case $ac_arg in
5075 *\'*)
5076 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5077 esac
5078 baseargs="$baseargs '$ac_arg'"
5079 keep_next=$separate_arg
5080 ;;
5081 *)
5082 # Either a variable assignment, or a nonopt (triplet). Don't
5083 # pass it down; let the Makefile handle this.
5084 continue
5085 ;;
5086 esac
5087done
5088# Remove the initial space we just introduced and, as these will be
5089# expanded by make, quote '$'.
5090baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 5091
43bb47c2
DJ
5092# Add in --program-transform-name, after --program-prefix and
5093# --program-suffix have been applied to it. Autoconf has already
5094# doubled dollar signs and backslashes in program_transform_name; we want
5095# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 5096# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
5097# Also, because we want to override the logic in subdir configure scripts to
5098# choose program_transform_name, replace any s,x,x, with s,y,y,.
5099sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5100${program_transform_name}
5101EOF_SED
5102gcc_transform_name=`cat conftestsed.out`
5103rm -f conftestsed.out
5104baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5105
671aa708
NN
5106# For the build-side libraries, we just need to pretend we're native,
5107# and not use the same cache file. Multilibs are neither needed nor
5108# desired.
e69bf64b 5109build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
5110
5111# For host modules, accept cache file option, or specification as blank.
5112case "${cache_file}" in
5113"") # empty
5114 cache_file_option="" ;;
5115/* | [A-Za-z]:[\\/]* ) # absolute path
5116 cache_file_option="--cache-file=${cache_file}" ;;
5117*) # relative path
5118 cache_file_option="--cache-file=../${cache_file}" ;;
5119esac
5120
09438bde
NN
5121# Host dirs don't like to share a cache file either, horribly enough.
5122# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 5123host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
5124
5125target_configargs=${baseargs}
5126
5127# Passing a --with-cross-host argument lets the target libraries know
5128# whether they are being built with a cross-compiler or being built
5129# native. However, it would be better to use other mechanisms to make the
5130# sorts of decisions they want to make on this basis. Please consider
5131# this option to be deprecated. FIXME.
5132if test x${is_cross_compiler} = xyes ; then
1c710c3c 5133 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
5134fi
5135
5136# Default to --enable-multilib.
5137if test x${enable_multilib} = x ; then
5138 target_configargs="--enable-multilib ${target_configargs}"
5139fi
5140
5141# Pass --with-newlib if appropriate. Note that target_configdirs has
5142# changed from the earlier setting of with_newlib.
5143if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5144 target_configargs="--with-newlib ${target_configargs}"
5145fi
5146
6b9eb62c
NN
5147# Different target subdirs use different values of certain variables
5148# (notably CXX). Worse, multilibs use *lots* of different values.
5149# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5150# it doesn't automatically accept command-line overrides of them.
5151# This means it's not safe for target subdirs to share a cache file,
5152# which is disgusting, but there you have it. Hopefully this can be
5153# fixed in future. It's still worthwhile to use a cache file for each
5154# directory. I think.
5155
bebcd931
MS
5156# Pass the appropriate --build, --host, --target and --cache-file arguments.
5157# We need to pass --target, as newer autoconf's requires consistency
5158# for target_alias and gcc doesn't manage it consistently.
e69bf64b 5159target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 5160
671aa708
NN
5161FLAGS_FOR_TARGET=
5162case " $target_configdirs " in
5163 *" newlib "*)
5164 case " $target_configargs " in
5165 *" --with-newlib "*)
5166 case "$target" in
5167 *-cygwin*)
aa8f1f57 5168 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' ;;
671aa708
NN
5169 esac
5170
5171 # If we're not building GCC, don't discard standard headers.
5172 if test -d ${srcdir}/gcc; then
5173 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5174
5175 if test "${build}" != "${host}"; then
5176 # On Canadian crosses, CC_FOR_TARGET will have already been set
5177 # by `configure', so we won't have an opportunity to add -Bgcc/
5178 # to it. This is right: we don't want to search that directory
5179 # for binaries, but we want the header files in there, so add
5180 # them explicitly.
215c351a 5181 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
5182
5183 # Someone might think of using the pre-installed headers on
5184 # Canadian crosses, in case the installed compiler is not fully
5185 # compatible with the compiler being built. In this case, it
5186 # would be better to flag an error than risking having
5187 # incompatible object files being constructed. We can't
5188 # guarantee that an error will be flagged, but let's hope the
5189 # compiler will do it, when presented with incompatible header
5190 # files.
5191 fi
5192 fi
5193
5194 case "${target}-${is_cross_compiler}" in
f2a0e225 5195 i[3456789]86-*-linux*-no)
671aa708
NN
5196 # Here host == target, so we don't need to build gcc,
5197 # so we don't want to discard standard headers.
5198 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5199 ;;
5200 *)
5201 # If we're building newlib, use its generic headers last, but search
5202 # for any libc-related directories first (so make it the last -B
5203 # switch).
5204 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5205 ;;
5206 esac
5207 ;;
5208 esac
5209 ;;
5210esac
b91f0a41
CV
5211case "$target" in
5212*-mingw*)
5213 # Can't be handled as Cygwin above since Mingw does not use newlib.
5214 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
5215esac
671aa708 5216
6691a79e
ME
5217# Allow the user to override the flags for
5218# our build compiler if desired.
5219CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5220
671aa708
NN
5221# On Canadian crosses, we'll be searching the right directories for
5222# the previously-installed cross compiler, so don't bother to add
5223# flags for directories within the install tree of the compiler
5224# being built; programs in there won't even run.
5225if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5226 # Search for pre-installed headers if nothing else fits.
9124bc53 5227 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
5228fi
5229
5230if test "x${use_gnu_ld}" = x &&
5231 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5232 # Arrange for us to find uninstalled linker scripts.
215c351a 5233 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
5234fi
5235
e88a2c09
DD
5236# Search for other target-specific linker scripts and such.
5237case "${target}" in
5238 m32c-*-* )
5239 if test -d ${srcdir}/libgloss/m32c; then
5240 # This is for crt0.o
5241 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5242 # This is for r8c.ld
5243 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5244 # This is for libnosys.a
5245 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5246 fi
5247 ;;
3e19841a
PB
5248 mep*)
5249 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5250 ;;
e88a2c09
DD
5251esac
5252
671aa708 5253# Makefile fragments.
7b61653a
PE
5254for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5255do
5256 eval fragval=\$$frag
5257 if test $fragval != /dev/null; then
5258 eval $frag=${srcdir}/$fragval
5259 fi
5260done
671aa708
NN
5261
5262
5263
5264
5265
5266# Miscellanea: directories, flags, etc.
5267
5268
5269
5270
5271
5272
5273
23f6b2f9 5274# Build module lists & subconfigure args.
671aa708
NN
5275
5276
5277
2abefe3d
PB
5278# Host module lists & subconfigure args.
5279
5280
5281
5282# Target module lists & subconfigure args.
5283
5284
5285
5286# Build tools.
5287
5288
5289
5290# Generate default definitions for YACC, M4, LEX and other programs that run
5291# on the build machine. These are used if the Makefile can't locate these
5292# programs in objdir.
5293MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5294
5295for ac_prog in 'bison -y' byacc yacc
5296do
1c710c3c 5297 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5298set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5299echo "$as_me:$LINENO: checking for $ac_word" >&5
5300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5301if test "${ac_cv_prog_YACC+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5303else
5304 if test -n "$YACC"; then
5305 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5306else
1c710c3c
DJ
5307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308for as_dir in $PATH
5309do
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_YACC="$ac_prog"
5315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5317 fi
5318done
5319done
5320
2abefe3d
PB
5321fi
5322fi
1c710c3c 5323YACC=$ac_cv_prog_YACC
2abefe3d 5324if test -n "$YACC"; then
1c710c3c
DJ
5325 echo "$as_me:$LINENO: result: $YACC" >&5
5326echo "${ECHO_T}$YACC" >&6
2abefe3d 5327else
1c710c3c
DJ
5328 echo "$as_me:$LINENO: result: no" >&5
5329echo "${ECHO_T}no" >&6
2abefe3d
PB
5330fi
5331
1c710c3c 5332 test -n "$YACC" && break
2abefe3d
PB
5333done
5334test -n "$YACC" || YACC="$MISSING bison -y"
5335
5336case " $build_configdirs " in
5337 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5338 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5339esac
5340
5341for ac_prog in bison
5342do
1c710c3c 5343 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5344set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5345echo "$as_me:$LINENO: checking for $ac_word" >&5
5346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5347if test "${ac_cv_prog_BISON+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5349else
5350 if test -n "$BISON"; then
5351 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5352else
1c710c3c
DJ
5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH
5355do
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_BISON="$ac_prog"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5363 fi
5364done
5365done
5366
2abefe3d
PB
5367fi
5368fi
1c710c3c 5369BISON=$ac_cv_prog_BISON
2abefe3d 5370if test -n "$BISON"; then
1c710c3c
DJ
5371 echo "$as_me:$LINENO: result: $BISON" >&5
5372echo "${ECHO_T}$BISON" >&6
2abefe3d 5373else
1c710c3c
DJ
5374 echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
2abefe3d
PB
5376fi
5377
1c710c3c 5378 test -n "$BISON" && break
2abefe3d
PB
5379done
5380test -n "$BISON" || BISON="$MISSING bison"
5381
5382case " $build_configdirs " in
5383 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5384esac
5385
5386for ac_prog in gm4 gnum4 m4
5387do
1c710c3c 5388 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5389set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5390echo "$as_me:$LINENO: checking for $ac_word" >&5
5391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5392if test "${ac_cv_prog_M4+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5394else
5395 if test -n "$M4"; then
5396 ac_cv_prog_M4="$M4" # Let the user override the test.
5397else
1c710c3c
DJ
5398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399for as_dir in $PATH
5400do
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_M4="$ac_prog"
5406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5408 fi
5409done
5410done
5411
2abefe3d
PB
5412fi
5413fi
1c710c3c 5414M4=$ac_cv_prog_M4
2abefe3d 5415if test -n "$M4"; then
1c710c3c
DJ
5416 echo "$as_me:$LINENO: result: $M4" >&5
5417echo "${ECHO_T}$M4" >&6
2abefe3d 5418else
1c710c3c
DJ
5419 echo "$as_me:$LINENO: result: no" >&5
5420echo "${ECHO_T}no" >&6
2abefe3d
PB
5421fi
5422
1c710c3c 5423 test -n "$M4" && break
2abefe3d
PB
5424done
5425test -n "$M4" || M4="$MISSING m4"
5426
5427case " $build_configdirs " in
5428 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5429esac
5430
5431for ac_prog in flex lex
5432do
1c710c3c 5433 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5434set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5435echo "$as_me:$LINENO: checking for $ac_word" >&5
5436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5437if test "${ac_cv_prog_LEX+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5439else
5440 if test -n "$LEX"; then
5441 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5442else
1c710c3c
DJ
5443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_prog_LEX="$ac_prog"
5451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5453 fi
5454done
5455done
5456
2abefe3d
PB
5457fi
5458fi
1c710c3c 5459LEX=$ac_cv_prog_LEX
2abefe3d 5460if test -n "$LEX"; then
1c710c3c
DJ
5461 echo "$as_me:$LINENO: result: $LEX" >&5
5462echo "${ECHO_T}$LEX" >&6
2abefe3d 5463else
1c710c3c
DJ
5464 echo "$as_me:$LINENO: result: no" >&5
5465echo "${ECHO_T}no" >&6
2abefe3d
PB
5466fi
5467
1c710c3c 5468 test -n "$LEX" && break
2abefe3d
PB
5469done
5470test -n "$LEX" || LEX="$MISSING flex"
5471
5472case " $build_configdirs " in
5473 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5474 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5475esac
5476
5477for ac_prog in flex
5478do
1c710c3c 5479 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5480set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5481echo "$as_me:$LINENO: checking for $ac_word" >&5
5482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5483if test "${ac_cv_prog_FLEX+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5485else
5486 if test -n "$FLEX"; then
5487 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5488else
1c710c3c
DJ
5489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490for as_dir in $PATH
5491do
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496 ac_cv_prog_FLEX="$ac_prog"
5497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 break 2
5499 fi
5500done
5501done
5502
2abefe3d
PB
5503fi
5504fi
1c710c3c 5505FLEX=$ac_cv_prog_FLEX
2abefe3d 5506if test -n "$FLEX"; then
1c710c3c
DJ
5507 echo "$as_me:$LINENO: result: $FLEX" >&5
5508echo "${ECHO_T}$FLEX" >&6
2abefe3d 5509else
1c710c3c
DJ
5510 echo "$as_me:$LINENO: result: no" >&5
5511echo "${ECHO_T}no" >&6
2abefe3d
PB
5512fi
5513
1c710c3c 5514 test -n "$FLEX" && break
2abefe3d
PB
5515done
5516test -n "$FLEX" || FLEX="$MISSING flex"
5517
5518case " $build_configdirs " in
5519 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5520esac
5521
5522for ac_prog in makeinfo
5523do
1c710c3c 5524 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5525set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5526echo "$as_me:$LINENO: checking for $ac_word" >&5
5527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5528if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5530else
5531 if test -n "$MAKEINFO"; then
5532 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5533else
1c710c3c
DJ
5534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535for as_dir in $PATH
5536do
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_prog_MAKEINFO="$ac_prog"
5542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5544 fi
5545done
5546done
5547
2abefe3d
PB
5548fi
5549fi
1c710c3c 5550MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 5551if test -n "$MAKEINFO"; then
1c710c3c
DJ
5552 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5553echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 5554else
1c710c3c
DJ
5555 echo "$as_me:$LINENO: result: no" >&5
5556echo "${ECHO_T}no" >&6
2abefe3d
PB
5557fi
5558
1c710c3c 5559 test -n "$MAKEINFO" && break
2abefe3d
PB
5560done
5561test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
5562
5563case " $build_configdirs " in
5564 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5565 *)
5566
27b6c940 5567 # For an installed makeinfo, we require it to be from texinfo 4.4 or
2abefe3d
PB
5568 # higher, else we use the "missing" dummy.
5569 if ${MAKEINFO} --version \
27b6c940 5570 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
2abefe3d
PB
5571 :
5572 else
5573 MAKEINFO="$MISSING makeinfo"
5574 fi
5575 ;;
5576
5577esac
671aa708 5578
2abefe3d 5579# FIXME: expect and dejagnu may become build tools?
671aa708 5580
2abefe3d
PB
5581for ac_prog in expect
5582do
1c710c3c 5583 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5584set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5585echo "$as_me:$LINENO: checking for $ac_word" >&5
5586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5587if test "${ac_cv_prog_EXPECT+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5589else
5590 if test -n "$EXPECT"; then
5591 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5592else
1c710c3c
DJ
5593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594for as_dir in $PATH
5595do
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_EXPECT="$ac_prog"
5601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5603 fi
5604done
5605done
5606
2abefe3d
PB
5607fi
5608fi
1c710c3c 5609EXPECT=$ac_cv_prog_EXPECT
2abefe3d 5610if test -n "$EXPECT"; then
1c710c3c
DJ
5611 echo "$as_me:$LINENO: result: $EXPECT" >&5
5612echo "${ECHO_T}$EXPECT" >&6
2abefe3d 5613else
1c710c3c
DJ
5614 echo "$as_me:$LINENO: result: no" >&5
5615echo "${ECHO_T}no" >&6
2abefe3d 5616fi
671aa708 5617
1c710c3c 5618 test -n "$EXPECT" && break
2abefe3d
PB
5619done
5620test -n "$EXPECT" || EXPECT="expect"
671aa708 5621
2abefe3d
PB
5622case " $configdirs " in
5623 *" expect "*)
5624 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
5625 ;;
5626esac
671aa708 5627
2abefe3d
PB
5628for ac_prog in runtest
5629do
1c710c3c 5630 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5631set dummy $ac_prog; ac_word=$2
1c710c3c
DJ
5632echo "$as_me:$LINENO: checking for $ac_word" >&5
5633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5634if test "${ac_cv_prog_RUNTEST+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5636else
5637 if test -n "$RUNTEST"; then
5638 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 5639else
1c710c3c
DJ
5640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641for as_dir in $PATH
5642do
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647 ac_cv_prog_RUNTEST="$ac_prog"
5648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5650 fi
5651done
5652done
5653
2abefe3d
PB
5654fi
5655fi
1c710c3c 5656RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 5657if test -n "$RUNTEST"; then
1c710c3c
DJ
5658 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5659echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 5660else
1c710c3c
DJ
5661 echo "$as_me:$LINENO: result: no" >&5
5662echo "${ECHO_T}no" >&6
2abefe3d 5663fi
671aa708 5664
1c710c3c 5665 test -n "$RUNTEST" && break
2abefe3d
PB
5666done
5667test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 5668
2abefe3d
PB
5669case " $configdirs " in
5670 *" dejagnu "*)
c394e891 5671 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
5672 ;;
5673esac
671aa708
NN
5674
5675
671aa708 5676# Host tools.
ca9f4b81
AO
5677ncn_tool_prefix=
5678test -n "$host_alias" && ncn_tool_prefix=$host_alias-
5679ncn_target_tool_prefix=
5680test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
5681
2693c0b0
PB
5682 for ncn_progname in ar; do
5683 if test -n "$ncn_tool_prefix"; then
5684 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5685set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
5686echo "$as_me:$LINENO: checking for $ac_word" >&5
5687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5688if test "${ac_cv_prog_AR+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5690else
5691 if test -n "$AR"; then
5692 ac_cv_prog_AR="$AR" # Let the user override the test.
5693else
1c710c3c
DJ
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5704 fi
5705done
5706done
5707
ca9f4b81
AO
5708fi
5709fi
1c710c3c 5710AR=$ac_cv_prog_AR
ca9f4b81 5711if test -n "$AR"; then
1c710c3c
DJ
5712 echo "$as_me:$LINENO: result: $AR" >&5
5713echo "${ECHO_T}$AR" >&6
ca9f4b81 5714else
1c710c3c
DJ
5715 echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
ca9f4b81
AO
5717fi
5718
2693c0b0
PB
5719 fi
5720 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
5721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5722set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
5723echo "$as_me:$LINENO: checking for $ac_word" >&5
5724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5725if test "${ac_cv_prog_AR+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5727else
2693c0b0 5728 if test -n "$AR"; then
af71363e
AS
5729 ac_cv_prog_AR="$AR" # Let the user override the test.
5730else
1c710c3c
DJ
5731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH
5733do
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738 ac_cv_prog_AR="${ncn_progname}"
5739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 break 2
5741 fi
5742done
5743done
5744
ca9f4b81
AO
5745fi
5746fi
1c710c3c 5747AR=$ac_cv_prog_AR
2693c0b0 5748if test -n "$AR"; then
1c710c3c
DJ
5749 echo "$as_me:$LINENO: result: $AR" >&5
5750echo "${ECHO_T}$AR" >&6
ca9f4b81 5751else
1c710c3c
DJ
5752 echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
ca9f4b81 5754fi
1c710c3c 5755
2693c0b0
PB
5756 fi
5757 test -n "$ac_cv_prog_AR" && break
5758done
5759
5760if test -z "$ac_cv_prog_AR" ; then
5761 set dummy ar
5762 if test $build = $host ; then
5763 AR="$2"
ca9f4b81 5764 else
2693c0b0 5765 AR="${ncn_tool_prefix}$2"
ca9f4b81 5766 fi
ca9f4b81
AO
5767fi
5768
2693c0b0
PB
5769 for ncn_progname in as; do
5770 if test -n "$ncn_tool_prefix"; then
5771 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5772set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
5773echo "$as_me:$LINENO: checking for $ac_word" >&5
5774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5775if test "${ac_cv_prog_AS+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5777else
5778 if test -n "$AS"; then
5779 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 5780else
1c710c3c
DJ
5781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782for as_dir in $PATH
5783do
5784 IFS=$as_save_IFS
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5788 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 break 2
5791 fi
5792done
5793done
5794
ca9f4b81
AO
5795fi
5796fi
1c710c3c 5797AS=$ac_cv_prog_AS
ca9f4b81 5798if test -n "$AS"; then
1c710c3c
DJ
5799 echo "$as_me:$LINENO: result: $AS" >&5
5800echo "${ECHO_T}$AS" >&6
ca9f4b81 5801else
1c710c3c
DJ
5802 echo "$as_me:$LINENO: result: no" >&5
5803echo "${ECHO_T}no" >&6
ca9f4b81
AO
5804fi
5805
2693c0b0
PB
5806 fi
5807 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
5808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5809set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
5810echo "$as_me:$LINENO: checking for $ac_word" >&5
5811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812if test "${ac_cv_prog_AS+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5814else
2693c0b0
PB
5815 if test -n "$AS"; then
5816 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 5817else
1c710c3c
DJ
5818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819for as_dir in $PATH
5820do
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_AS="${ncn_progname}"
5826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 break 2
5828 fi
5829done
5830done
5831
ca9f4b81
AO
5832fi
5833fi
1c710c3c 5834AS=$ac_cv_prog_AS
2693c0b0 5835if test -n "$AS"; then
1c710c3c
DJ
5836 echo "$as_me:$LINENO: result: $AS" >&5
5837echo "${ECHO_T}$AS" >&6
ca9f4b81 5838else
1c710c3c
DJ
5839 echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
ca9f4b81 5841fi
1c710c3c 5842
2693c0b0
PB
5843 fi
5844 test -n "$ac_cv_prog_AS" && break
5845done
5846
5847if test -z "$ac_cv_prog_AS" ; then
5848 set dummy as
5849 if test $build = $host ; then
5850 AS="$2"
ca9f4b81 5851 else
2693c0b0 5852 AS="${ncn_tool_prefix}$2"
ca9f4b81 5853 fi
ca9f4b81
AO
5854fi
5855
2693c0b0
PB
5856 for ncn_progname in dlltool; do
5857 if test -n "$ncn_tool_prefix"; then
5858 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5859set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
5860echo "$as_me:$LINENO: checking for $ac_word" >&5
5861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5862if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5864else
5865 if test -n "$DLLTOOL"; then
5866 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5867else
1c710c3c
DJ
5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869for as_dir in $PATH
5870do
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 break 2
5878 fi
5879done
5880done
5881
ca9f4b81
AO
5882fi
5883fi
1c710c3c 5884DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 5885if test -n "$DLLTOOL"; then
1c710c3c
DJ
5886 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5887echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 5888else
1c710c3c
DJ
5889 echo "$as_me:$LINENO: result: no" >&5
5890echo "${ECHO_T}no" >&6
ca9f4b81
AO
5891fi
5892
2693c0b0
PB
5893 fi
5894 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
5895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5896set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
5897echo "$as_me:$LINENO: checking for $ac_word" >&5
5898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5899if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5901else
2693c0b0
PB
5902 if test -n "$DLLTOOL"; then
5903 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 5904else
1c710c3c
DJ
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912 ac_cv_prog_DLLTOOL="${ncn_progname}"
5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916done
5917done
5918
ca9f4b81
AO
5919fi
5920fi
1c710c3c 5921DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 5922if test -n "$DLLTOOL"; then
1c710c3c
DJ
5923 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5924echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 5925else
1c710c3c
DJ
5926 echo "$as_me:$LINENO: result: no" >&5
5927echo "${ECHO_T}no" >&6
ca9f4b81 5928fi
1c710c3c 5929
2693c0b0
PB
5930 fi
5931 test -n "$ac_cv_prog_DLLTOOL" && break
5932done
5933
5934if test -z "$ac_cv_prog_DLLTOOL" ; then
5935 set dummy dlltool
5936 if test $build = $host ; then
5937 DLLTOOL="$2"
ca9f4b81 5938 else
2693c0b0 5939 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 5940 fi
ca9f4b81
AO
5941fi
5942
2693c0b0
PB
5943 for ncn_progname in ld; do
5944 if test -n "$ncn_tool_prefix"; then
5945 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5946set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
5947echo "$as_me:$LINENO: checking for $ac_word" >&5
5948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5949if test "${ac_cv_prog_LD+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5951else
5952 if test -n "$LD"; then
5953 ac_cv_prog_LD="$LD" # Let the user override the test.
5954else
1c710c3c
DJ
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5962 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 break 2
5965 fi
5966done
5967done
5968
ca9f4b81
AO
5969fi
5970fi
1c710c3c 5971LD=$ac_cv_prog_LD
ca9f4b81 5972if test -n "$LD"; then
1c710c3c
DJ
5973 echo "$as_me:$LINENO: result: $LD" >&5
5974echo "${ECHO_T}$LD" >&6
ca9f4b81 5975else
1c710c3c
DJ
5976 echo "$as_me:$LINENO: result: no" >&5
5977echo "${ECHO_T}no" >&6
ca9f4b81
AO
5978fi
5979
2693c0b0
PB
5980 fi
5981 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
5982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5983set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
5984echo "$as_me:$LINENO: checking for $ac_word" >&5
5985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5986if test "${ac_cv_prog_LD+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5988else
2693c0b0
PB
5989 if test -n "$LD"; then
5990 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 5991else
1c710c3c
DJ
5992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993for as_dir in $PATH
5994do
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999 ac_cv_prog_LD="${ncn_progname}"
6000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003done
6004done
6005
ca9f4b81
AO
6006fi
6007fi
1c710c3c 6008LD=$ac_cv_prog_LD
2693c0b0 6009if test -n "$LD"; then
1c710c3c
DJ
6010 echo "$as_me:$LINENO: result: $LD" >&5
6011echo "${ECHO_T}$LD" >&6
ca9f4b81 6012else
1c710c3c
DJ
6013 echo "$as_me:$LINENO: result: no" >&5
6014echo "${ECHO_T}no" >&6
ca9f4b81 6015fi
1c710c3c 6016
2693c0b0
PB
6017 fi
6018 test -n "$ac_cv_prog_LD" && break
6019done
6020
6021if test -z "$ac_cv_prog_LD" ; then
6022 set dummy ld
6023 if test $build = $host ; then
6024 LD="$2"
ca9f4b81 6025 else
2693c0b0 6026 LD="${ncn_tool_prefix}$2"
ca9f4b81 6027 fi
ca9f4b81
AO
6028fi
6029
2abefe3d
PB
6030 for ncn_progname in lipo; do
6031 if test -n "$ncn_tool_prefix"; then
6032 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6033set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6034echo "$as_me:$LINENO: checking for $ac_word" >&5
6035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6036if test "${ac_cv_prog_LIPO+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6038else
6039 if test -n "$LIPO"; then
6040 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6041else
1c710c3c
DJ
6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043for as_dir in $PATH
6044do
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6052 fi
6053done
6054done
6055
2abefe3d
PB
6056fi
6057fi
1c710c3c 6058LIPO=$ac_cv_prog_LIPO
2abefe3d 6059if test -n "$LIPO"; then
1c710c3c
DJ
6060 echo "$as_me:$LINENO: result: $LIPO" >&5
6061echo "${ECHO_T}$LIPO" >&6
2abefe3d 6062else
1c710c3c
DJ
6063 echo "$as_me:$LINENO: result: no" >&5
6064echo "${ECHO_T}no" >&6
2abefe3d
PB
6065fi
6066
6067 fi
6068 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6070set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6071echo "$as_me:$LINENO: checking for $ac_word" >&5
6072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6073if test "${ac_cv_prog_LIPO+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6075else
6076 if test -n "$LIPO"; then
6077 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6078else
1c710c3c
DJ
6079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080for as_dir in $PATH
6081do
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6086 ac_cv_prog_LIPO="${ncn_progname}"
6087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 break 2
6089 fi
6090done
6091done
6092
2abefe3d
PB
6093fi
6094fi
1c710c3c 6095LIPO=$ac_cv_prog_LIPO
2abefe3d 6096if test -n "$LIPO"; then
1c710c3c
DJ
6097 echo "$as_me:$LINENO: result: $LIPO" >&5
6098echo "${ECHO_T}$LIPO" >&6
2abefe3d 6099else
1c710c3c
DJ
6100 echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6
2abefe3d 6102fi
1c710c3c 6103
2abefe3d
PB
6104 fi
6105 test -n "$ac_cv_prog_LIPO" && break
6106done
6107
6108if test -z "$ac_cv_prog_LIPO" ; then
6109 set dummy lipo
6110 if test $build = $host ; then
6111 LIPO="$2"
6112 else
6113 LIPO="${ncn_tool_prefix}$2"
6114 fi
6115fi
6116
2693c0b0
PB
6117 for ncn_progname in nm; do
6118 if test -n "$ncn_tool_prefix"; then
6119 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6120set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6121echo "$as_me:$LINENO: checking for $ac_word" >&5
6122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6123if test "${ac_cv_prog_NM+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6125else
6126 if test -n "$NM"; then
6127 ac_cv_prog_NM="$NM" # Let the user override the test.
6128else
1c710c3c
DJ
6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH
6131do
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
6137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 break 2
6139 fi
6140done
6141done
6142
ca9f4b81
AO
6143fi
6144fi
1c710c3c 6145NM=$ac_cv_prog_NM
ca9f4b81 6146if test -n "$NM"; then
1c710c3c
DJ
6147 echo "$as_me:$LINENO: result: $NM" >&5
6148echo "${ECHO_T}$NM" >&6
ca9f4b81 6149else
1c710c3c
DJ
6150 echo "$as_me:$LINENO: result: no" >&5
6151echo "${ECHO_T}no" >&6
ca9f4b81
AO
6152fi
6153
2693c0b0
PB
6154 fi
6155 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6157set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6158echo "$as_me:$LINENO: checking for $ac_word" >&5
6159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6160if test "${ac_cv_prog_NM+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6162else
2693c0b0
PB
6163 if test -n "$NM"; then
6164 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 6165else
1c710c3c
DJ
6166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167for as_dir in $PATH
6168do
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6173 ac_cv_prog_NM="${ncn_progname}"
6174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 break 2
6176 fi
6177done
6178done
6179
ca9f4b81
AO
6180fi
6181fi
1c710c3c 6182NM=$ac_cv_prog_NM
2693c0b0 6183if test -n "$NM"; then
1c710c3c
DJ
6184 echo "$as_me:$LINENO: result: $NM" >&5
6185echo "${ECHO_T}$NM" >&6
ca9f4b81 6186else
1c710c3c
DJ
6187 echo "$as_me:$LINENO: result: no" >&5
6188echo "${ECHO_T}no" >&6
ca9f4b81 6189fi
1c710c3c 6190
2693c0b0
PB
6191 fi
6192 test -n "$ac_cv_prog_NM" && break
6193done
6194
6195if test -z "$ac_cv_prog_NM" ; then
6196 set dummy nm
6197 if test $build = $host ; then
6198 NM="$2"
ca9f4b81 6199 else
2693c0b0 6200 NM="${ncn_tool_prefix}$2"
ca9f4b81 6201 fi
ca9f4b81
AO
6202fi
6203
2693c0b0
PB
6204 for ncn_progname in ranlib; do
6205 if test -n "$ncn_tool_prefix"; then
6206 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6207set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6208echo "$as_me:$LINENO: checking for $ac_word" >&5
6209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6210if test "${ac_cv_prog_RANLIB+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6212else
6213 if test -n "$RANLIB"; then
6214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6215else
1c710c3c
DJ
6216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217for as_dir in $PATH
6218do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
6224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6226 fi
6227done
6228done
6229
ca9f4b81
AO
6230fi
6231fi
1c710c3c 6232RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 6233if test -n "$RANLIB"; then
1c710c3c
DJ
6234 echo "$as_me:$LINENO: result: $RANLIB" >&5
6235echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 6236else
1c710c3c
DJ
6237 echo "$as_me:$LINENO: result: no" >&5
6238echo "${ECHO_T}no" >&6
ca9f4b81
AO
6239fi
6240
2693c0b0
PB
6241 fi
6242 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
6243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6244set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6245echo "$as_me:$LINENO: checking for $ac_word" >&5
6246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6247if test "${ac_cv_prog_RANLIB+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6249else
2693c0b0
PB
6250 if test -n "$RANLIB"; then
6251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 6252else
1c710c3c
DJ
6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254for as_dir in $PATH
6255do
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260 ac_cv_prog_RANLIB="${ncn_progname}"
6261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6263 fi
6264done
6265done
6266
ca9f4b81
AO
6267fi
6268fi
1c710c3c 6269RANLIB=$ac_cv_prog_RANLIB
2693c0b0 6270if test -n "$RANLIB"; then
1c710c3c
DJ
6271 echo "$as_me:$LINENO: result: $RANLIB" >&5
6272echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 6273else
1c710c3c
DJ
6274 echo "$as_me:$LINENO: result: no" >&5
6275echo "${ECHO_T}no" >&6
ca9f4b81 6276fi
1c710c3c 6277
ca9f4b81 6278 fi
2693c0b0
PB
6279 test -n "$ac_cv_prog_RANLIB" && break
6280done
6281
6282if test -z "$ac_cv_prog_RANLIB" ; then
6283 RANLIB=":"
ca9f4b81
AO
6284fi
6285
2abefe3d
PB
6286 for ncn_progname in strip; do
6287 if test -n "$ncn_tool_prefix"; then
6288 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6289set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6290echo "$as_me:$LINENO: checking for $ac_word" >&5
6291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6292if test "${ac_cv_prog_STRIP+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6294else
6295 if test -n "$STRIP"; then
6296 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6297else
1c710c3c
DJ
6298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299for as_dir in $PATH
6300do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
6306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6308 fi
6309done
6310done
6311
2abefe3d
PB
6312fi
6313fi
1c710c3c 6314STRIP=$ac_cv_prog_STRIP
2abefe3d 6315if test -n "$STRIP"; then
1c710c3c
DJ
6316 echo "$as_me:$LINENO: result: $STRIP" >&5
6317echo "${ECHO_T}$STRIP" >&6
2abefe3d 6318else
1c710c3c
DJ
6319 echo "$as_me:$LINENO: result: no" >&5
6320echo "${ECHO_T}no" >&6
2abefe3d
PB
6321fi
6322
6323 fi
6324 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
6325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6326set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6327echo "$as_me:$LINENO: checking for $ac_word" >&5
6328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6329if test "${ac_cv_prog_STRIP+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6331else
6332 if test -n "$STRIP"; then
6333 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6334else
1c710c3c
DJ
6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336for as_dir in $PATH
6337do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342 ac_cv_prog_STRIP="${ncn_progname}"
6343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6345 fi
6346done
6347done
6348
2abefe3d
PB
6349fi
6350fi
1c710c3c 6351STRIP=$ac_cv_prog_STRIP
2abefe3d 6352if test -n "$STRIP"; then
1c710c3c
DJ
6353 echo "$as_me:$LINENO: result: $STRIP" >&5
6354echo "${ECHO_T}$STRIP" >&6
2abefe3d 6355else
1c710c3c
DJ
6356 echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6
2abefe3d 6358fi
1c710c3c 6359
2abefe3d
PB
6360 fi
6361 test -n "$ac_cv_prog_STRIP" && break
6362done
6363
6364if test -z "$ac_cv_prog_STRIP" ; then
6365 STRIP=":"
6366fi
6367
2693c0b0
PB
6368 for ncn_progname in windres; do
6369 if test -n "$ncn_tool_prefix"; then
6370 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6371set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6372echo "$as_me:$LINENO: checking for $ac_word" >&5
6373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6374if test "${ac_cv_prog_WINDRES+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6376else
6377 if test -n "$WINDRES"; then
6378 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6379else
1c710c3c
DJ
6380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381for as_dir in $PATH
6382do
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
6388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6390 fi
6391done
6392done
6393
ca9f4b81
AO
6394fi
6395fi
1c710c3c 6396WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 6397if test -n "$WINDRES"; then
1c710c3c
DJ
6398 echo "$as_me:$LINENO: result: $WINDRES" >&5
6399echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 6400else
1c710c3c
DJ
6401 echo "$as_me:$LINENO: result: no" >&5
6402echo "${ECHO_T}no" >&6
ca9f4b81
AO
6403fi
6404
2693c0b0
PB
6405 fi
6406 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6408set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6409echo "$as_me:$LINENO: checking for $ac_word" >&5
6410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6411if test "${ac_cv_prog_WINDRES+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6413else
2693c0b0
PB
6414 if test -n "$WINDRES"; then
6415 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 6416else
1c710c3c
DJ
6417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418for as_dir in $PATH
6419do
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424 ac_cv_prog_WINDRES="${ncn_progname}"
6425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 break 2
6427 fi
6428done
6429done
6430
ca9f4b81
AO
6431fi
6432fi
1c710c3c 6433WINDRES=$ac_cv_prog_WINDRES
2693c0b0 6434if test -n "$WINDRES"; then
1c710c3c
DJ
6435 echo "$as_me:$LINENO: result: $WINDRES" >&5
6436echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 6437else
1c710c3c
DJ
6438 echo "$as_me:$LINENO: result: no" >&5
6439echo "${ECHO_T}no" >&6
ca9f4b81 6440fi
1c710c3c 6441
2693c0b0
PB
6442 fi
6443 test -n "$ac_cv_prog_WINDRES" && break
6444done
6445
6446if test -z "$ac_cv_prog_WINDRES" ; then
6447 set dummy windres
6448 if test $build = $host ; then
6449 WINDRES="$2"
ca9f4b81 6450 else
2693c0b0 6451 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 6452 fi
ca9f4b81
AO
6453fi
6454
2693c0b0
PB
6455 for ncn_progname in objcopy; do
6456 if test -n "$ncn_tool_prefix"; then
6457 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6458set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6459echo "$as_me:$LINENO: checking for $ac_word" >&5
6460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6461if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6463else
6464 if test -n "$OBJCOPY"; then
6465 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6466else
1c710c3c
DJ
6467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468for as_dir in $PATH
6469do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6474 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478done
6479done
6480
ca9f4b81
AO
6481fi
6482fi
1c710c3c 6483OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 6484if test -n "$OBJCOPY"; then
1c710c3c
DJ
6485 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6486echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 6487else
1c710c3c
DJ
6488 echo "$as_me:$LINENO: result: no" >&5
6489echo "${ECHO_T}no" >&6
ca9f4b81
AO
6490fi
6491
2693c0b0
PB
6492 fi
6493 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6495set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6496echo "$as_me:$LINENO: checking for $ac_word" >&5
6497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6498if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6500else
2693c0b0
PB
6501 if test -n "$OBJCOPY"; then
6502 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 6503else
1c710c3c
DJ
6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505for as_dir in $PATH
6506do
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511 ac_cv_prog_OBJCOPY="${ncn_progname}"
6512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 break 2
6514 fi
6515done
6516done
6517
ca9f4b81
AO
6518fi
6519fi
1c710c3c 6520OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 6521if test -n "$OBJCOPY"; then
1c710c3c
DJ
6522 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6523echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 6524else
1c710c3c
DJ
6525 echo "$as_me:$LINENO: result: no" >&5
6526echo "${ECHO_T}no" >&6
ca9f4b81 6527fi
1c710c3c 6528
2693c0b0
PB
6529 fi
6530 test -n "$ac_cv_prog_OBJCOPY" && break
6531done
6532
6533if test -z "$ac_cv_prog_OBJCOPY" ; then
6534 set dummy objcopy
6535 if test $build = $host ; then
6536 OBJCOPY="$2"
ca9f4b81 6537 else
2693c0b0 6538 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 6539 fi
ca9f4b81
AO
6540fi
6541
2693c0b0
PB
6542 for ncn_progname in objdump; do
6543 if test -n "$ncn_tool_prefix"; then
6544 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6545set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6546echo "$as_me:$LINENO: checking for $ac_word" >&5
6547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6548if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6550else
6551 if test -n "$OBJDUMP"; then
6552 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6553else
1c710c3c
DJ
6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555for as_dir in $PATH
6556do
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6564 fi
6565done
6566done
6567
ca9f4b81
AO
6568fi
6569fi
1c710c3c 6570OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 6571if test -n "$OBJDUMP"; then
1c710c3c
DJ
6572 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6573echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 6574else
1c710c3c
DJ
6575 echo "$as_me:$LINENO: result: no" >&5
6576echo "${ECHO_T}no" >&6
ca9f4b81
AO
6577fi
6578
2693c0b0
PB
6579 fi
6580 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6582set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6583echo "$as_me:$LINENO: checking for $ac_word" >&5
6584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6585if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6587else
2693c0b0
PB
6588 if test -n "$OBJDUMP"; then
6589 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 6590else
1c710c3c
DJ
6591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598 ac_cv_prog_OBJDUMP="${ncn_progname}"
6599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 break 2
6601 fi
6602done
6603done
6604
ca9f4b81
AO
6605fi
6606fi
1c710c3c 6607OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 6608if test -n "$OBJDUMP"; then
1c710c3c
DJ
6609 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6610echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 6611else
1c710c3c
DJ
6612 echo "$as_me:$LINENO: result: no" >&5
6613echo "${ECHO_T}no" >&6
ca9f4b81 6614fi
1c710c3c 6615
2693c0b0
PB
6616 fi
6617 test -n "$ac_cv_prog_OBJDUMP" && break
6618done
6619
6620if test -z "$ac_cv_prog_OBJDUMP" ; then
6621 set dummy objdump
6622 if test $build = $host ; then
6623 OBJDUMP="$2"
ca9f4b81 6624 else
2693c0b0 6625 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 6626 fi
ca9f4b81
AO
6627fi
6628
671aa708
NN
6629
6630
6631
6632
6633
6634
2abefe3d 6635# Target tools.
1c710c3c 6636
e8b05380
PB
6637# Check whether --with-build-time-tools or --without-build-time-tools was given.
6638if test "${with_build_time_tools+set}" = set; then
6639 withval="$with_build_time_tools"
6640 case x"$withval" in
6641 x/*) ;;
6642 *)
6643 with_build_time_tools=
1c710c3c
DJ
6644 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
6645echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
6646 ;;
6647 esac
ca9f4b81 6648else
e8b05380 6649 with_build_time_tools=
1c710c3c 6650fi;
ca9f4b81 6651
e8b05380
PB
6652 if test -n "$with_build_time_tools"; then
6653 for ncn_progname in cc gcc; do
1c710c3c
DJ
6654 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6655echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
6656 if test -x $with_build_time_tools/${ncn_progname}; then
6657 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
6658 echo "$as_me:$LINENO: result: yes" >&5
6659echo "${ECHO_T}yes" >&6
72a7ab82 6660 break
e8b05380 6661 else
1c710c3c
DJ
6662 echo "$as_me:$LINENO: result: no" >&5
6663echo "${ECHO_T}no" >&6
72a7ab82
AP
6664 fi
6665 done
4de997d1
PB
6666fi
6667
e8b05380
PB
6668if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
6669 for ncn_progname in cc gcc; do
6670 if test -n "$ncn_target_tool_prefix"; then
6671 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 6672set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6673echo "$as_me:$LINENO: checking for $ac_word" >&5
6674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6675if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
6677else
6678 if test -n "$CC_FOR_TARGET"; then
6679 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6680else
1c710c3c
DJ
6681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682for as_dir in $PATH
6683do
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6688 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6691 fi
6692done
6693done
6694
4de997d1
PB
6695fi
6696fi
1c710c3c 6697CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 6698if test -n "$CC_FOR_TARGET"; then
1c710c3c
DJ
6699 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6700echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 6701else
1c710c3c
DJ
6702 echo "$as_me:$LINENO: result: no" >&5
6703echo "${ECHO_T}no" >&6
4de997d1
PB
6704fi
6705
e8b05380
PB
6706 fi
6707 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
6708 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 6709set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6710echo "$as_me:$LINENO: checking for $ac_word" >&5
6711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6712if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 6714else
2693c0b0
PB
6715 if test -n "$CC_FOR_TARGET"; then
6716 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 6717else
1c710c3c
DJ
6718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719for as_dir in $PATH
6720do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729done
6730done
6731
4de997d1
PB
6732fi
6733fi
1c710c3c 6734CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 6735if test -n "$CC_FOR_TARGET"; then
1c710c3c
DJ
6736 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6737echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 6738else
1c710c3c
DJ
6739 echo "$as_me:$LINENO: result: no" >&5
6740echo "${ECHO_T}no" >&6
4de997d1 6741fi
1c710c3c 6742
e8b05380
PB
6743 fi
6744 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
6745 done
6746fi
1c710c3c 6747
2693c0b0
PB
6748if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
6749 set dummy cc gcc
6750 if test $build = $target ; then
6751 CC_FOR_TARGET="$2"
4de997d1 6752 else
2693c0b0 6753 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 6754 fi
4de997d1
PB
6755fi
6756
e8b05380
PB
6757 if test -n "$with_build_time_tools"; then
6758 for ncn_progname in c++ g++ cxx gxx; do
1c710c3c
DJ
6759 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6760echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
6761 if test -x $with_build_time_tools/${ncn_progname}; then
6762 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
6763 echo "$as_me:$LINENO: result: yes" >&5
6764echo "${ECHO_T}yes" >&6
e8b05380
PB
6765 break
6766 else
1c710c3c
DJ
6767 echo "$as_me:$LINENO: result: no" >&5
6768echo "${ECHO_T}no" >&6
e8b05380
PB
6769 fi
6770 done
6771fi
6772
6773if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
6774 for ncn_progname in c++ g++ cxx gxx; do
6775 if test -n "$ncn_target_tool_prefix"; then
6776 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 6777set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6778echo "$as_me:$LINENO: checking for $ac_word" >&5
6779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6780if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
6782else
6783 if test -n "$CXX_FOR_TARGET"; then
6784 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
6785else
1c710c3c
DJ
6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6793 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6796 fi
6797done
6798done
6799
4de997d1
PB
6800fi
6801fi
1c710c3c 6802CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 6803if test -n "$CXX_FOR_TARGET"; then
1c710c3c
DJ
6804 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6805echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 6806else
1c710c3c
DJ
6807 echo "$as_me:$LINENO: result: no" >&5
6808echo "${ECHO_T}no" >&6
4de997d1
PB
6809fi
6810
e8b05380
PB
6811 fi
6812 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
6813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 6814set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6815echo "$as_me:$LINENO: checking for $ac_word" >&5
6816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6817if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 6819else
2693c0b0
PB
6820 if test -n "$CXX_FOR_TARGET"; then
6821 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 6822else
1c710c3c
DJ
6823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824for as_dir in $PATH
6825do
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
6831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6833 fi
6834done
6835done
6836
4de997d1
PB
6837fi
6838fi
1c710c3c 6839CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 6840if test -n "$CXX_FOR_TARGET"; then
1c710c3c
DJ
6841 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6842echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 6843else
1c710c3c
DJ
6844 echo "$as_me:$LINENO: result: no" >&5
6845echo "${ECHO_T}no" >&6
4de997d1 6846fi
1c710c3c 6847
e8b05380
PB
6848 fi
6849 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
6850 done
6851fi
1c710c3c 6852
2693c0b0
PB
6853if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
6854 set dummy c++ g++ cxx gxx
6855 if test $build = $target ; then
6856 CXX_FOR_TARGET="$2"
4de997d1 6857 else
2693c0b0 6858 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 6859 fi
ca9f4b81
AO
6860fi
6861
e8b05380
PB
6862 if test -n "$with_build_time_tools"; then
6863 for ncn_progname in gcc; do
1c710c3c
DJ
6864 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6865echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
6866 if test -x $with_build_time_tools/${ncn_progname}; then
6867 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
6868 echo "$as_me:$LINENO: result: yes" >&5
6869echo "${ECHO_T}yes" >&6
e8b05380
PB
6870 break
6871 else
1c710c3c
DJ
6872 echo "$as_me:$LINENO: result: no" >&5
6873echo "${ECHO_T}no" >&6
e8b05380
PB
6874 fi
6875 done
6876fi
6877
6878if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
6879 for ncn_progname in gcc; do
6880 if test -n "$ncn_target_tool_prefix"; then
6881 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 6882set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6883echo "$as_me:$LINENO: checking for $ac_word" >&5
6884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6885if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6887else
e8b05380
PB
6888 if test -n "$GCC_FOR_TARGET"; then
6889 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 6890else
1c710c3c
DJ
6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892for as_dir in $PATH
6893do
6894 IFS=$as_save_IFS
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 break 2
6901 fi
6902done
6903done
6904
ca9f4b81
AO
6905fi
6906fi
1c710c3c 6907GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 6908if test -n "$GCC_FOR_TARGET"; then
1c710c3c
DJ
6909 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6910echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 6911else
1c710c3c
DJ
6912 echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6
ca9f4b81
AO
6914fi
6915
e8b05380
PB
6916 fi
6917 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
6918 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 6919set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
6920echo "$as_me:$LINENO: checking for $ac_word" >&5
6921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6922if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6924else
e8b05380
PB
6925 if test -n "$GCC_FOR_TARGET"; then
6926 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 6927else
1c710c3c
DJ
6928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929for as_dir in $PATH
6930do
6931 IFS=$as_save_IFS
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6935 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
6936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 break 2
6938 fi
6939done
6940done
6941
ca9f4b81
AO
6942fi
6943fi
1c710c3c 6944GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 6945if test -n "$GCC_FOR_TARGET"; then
1c710c3c
DJ
6946 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6947echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 6948else
1c710c3c
DJ
6949 echo "$as_me:$LINENO: result: no" >&5
6950echo "${ECHO_T}no" >&6
ca9f4b81 6951fi
1c710c3c 6952
e8b05380
PB
6953 fi
6954 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
6955 done
6956fi
1c710c3c 6957
e8b05380
PB
6958if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
6959 GCC_FOR_TARGET="${CC_FOR_TARGET}"
6960fi
6961
6962 if test -n "$with_build_time_tools"; then
6963 for ncn_progname in gcj; do
1c710c3c
DJ
6964 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6965echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
6966 if test -x $with_build_time_tools/${ncn_progname}; then
6967 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
6968 echo "$as_me:$LINENO: result: yes" >&5
6969echo "${ECHO_T}yes" >&6
e8b05380
PB
6970 break
6971 else
1c710c3c
DJ
6972 echo "$as_me:$LINENO: result: no" >&5
6973echo "${ECHO_T}no" >&6
e8b05380
PB
6974 fi
6975 done
6976fi
6977
6978if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
6979 for ncn_progname in gcj; do
6980 if test -n "$ncn_target_tool_prefix"; then
6981 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6982set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
6983echo "$as_me:$LINENO: checking for $ac_word" >&5
6984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6985if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 6987else
fb0103e5
RG
6988 if test -n "$GCJ_FOR_TARGET"; then
6989 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6990else
1c710c3c
DJ
6991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6998 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7001 fi
7002done
7003done
7004
e8b05380
PB
7005fi
7006fi
1c710c3c 7007GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
e8b05380 7008if test -n "$GCJ_FOR_TARGET"; then
1c710c3c
DJ
7009 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7010echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
e8b05380 7011else
1c710c3c
DJ
7012 echo "$as_me:$LINENO: result: no" >&5
7013echo "${ECHO_T}no" >&6
e8b05380
PB
7014fi
7015
7016 fi
7017 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
7018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7019set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7020echo "$as_me:$LINENO: checking for $ac_word" >&5
7021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7022if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
7024else
7025 if test -n "$GCJ_FOR_TARGET"; then
7026 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
7027else
1c710c3c
DJ
7028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029for as_dir in $PATH
7030do
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
7036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 break 2
7038 fi
7039done
7040done
7041
e8b05380
PB
7042fi
7043fi
1c710c3c 7044GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
e8b05380 7045if test -n "$GCJ_FOR_TARGET"; then
1c710c3c
DJ
7046 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7047echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
e8b05380 7048else
1c710c3c
DJ
7049 echo "$as_me:$LINENO: result: no" >&5
7050echo "${ECHO_T}no" >&6
e8b05380 7051fi
1c710c3c 7052
e8b05380
PB
7053 fi
7054 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
7055 done
7056fi
1c710c3c 7057
e8b05380
PB
7058if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
7059 set dummy gcj
7060 if test $build = $target ; then
7061 GCJ_FOR_TARGET="$2"
7062 else
7063 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 7064 fi
e8b05380 7065fi
2693c0b0 7066
e8b05380
PB
7067 if test -n "$with_build_time_tools"; then
7068 for ncn_progname in gfortran; do
1c710c3c
DJ
7069 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7070echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7071 if test -x $with_build_time_tools/${ncn_progname}; then
7072 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7073 echo "$as_me:$LINENO: result: yes" >&5
7074echo "${ECHO_T}yes" >&6
e8b05380
PB
7075 break
7076 else
1c710c3c
DJ
7077 echo "$as_me:$LINENO: result: no" >&5
7078echo "${ECHO_T}no" >&6
e8b05380
PB
7079 fi
7080 done
7081fi
7082
7083if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
7084 for ncn_progname in gfortran; do
7085 if test -n "$ncn_target_tool_prefix"; then
7086 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7087set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7088echo "$as_me:$LINENO: checking for $ac_word" >&5
7089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7090if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
7092else
7093 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
7094 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7095else
7096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097for as_dir in $PATH
7098do
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7103 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7106 fi
7107done
7108done
7109
e8b05380
PB
7110fi
7111fi
1c710c3c 7112GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 7113if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
7114 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7115echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 7116else
1c710c3c
DJ
7117 echo "$as_me:$LINENO: result: no" >&5
7118echo "${ECHO_T}no" >&6
e8b05380
PB
7119fi
7120
7121 fi
7122 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
7123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7124set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7125echo "$as_me:$LINENO: checking for $ac_word" >&5
7126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7127if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
7129else
7130 if test -n "$GFORTRAN_FOR_TARGET"; then
7131 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7132else
1c710c3c
DJ
7133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134for as_dir in $PATH
7135do
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7143 fi
7144done
7145done
7146
e8b05380
PB
7147fi
7148fi
1c710c3c 7149GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 7150if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
7151 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7152echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 7153else
1c710c3c
DJ
7154 echo "$as_me:$LINENO: result: no" >&5
7155echo "${ECHO_T}no" >&6
e8b05380 7156fi
1c710c3c 7157
e8b05380
PB
7158 fi
7159 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
7160 done
7161fi
1c710c3c 7162
e8b05380
PB
7163if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
7164 set dummy gfortran
2693c0b0 7165 if test $build = $target ; then
e8b05380 7166 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 7167 else
e8b05380
PB
7168 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
7169 fi
7170fi
7171
7172
7173
7174# The user is always right.
7175if test "${PATH_SEPARATOR+set}" != set; then
7176 echo "#! /bin/sh" >conf$$.sh
7177 echo "exit 0" >>conf$$.sh
7178 chmod +x conf$$.sh
7179 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7180 PATH_SEPARATOR=';'
7181 else
1c710c3c 7182 PATH_SEPARATOR=:
ca9f4b81 7183 fi
e8b05380
PB
7184 rm -f conf$$.sh
7185fi
7186
7187
7188
7189if test "x$exec_prefix" = xNONE; then
7190 if test "x$prefix" = xNONE; then
7191 gcc_cv_tool_prefix=$ac_default_prefix
7192 else
7193 gcc_cv_tool_prefix=$prefix
7194 fi
7195else
7196 gcc_cv_tool_prefix=$exec_prefix
7197fi
7198
7199# If there is no compiler in the tree, use the PATH only. In any
7200# case, if there is no compiler in the tree nobody should use
7201# AS_FOR_TARGET and LD_FOR_TARGET.
7202if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7203 gcc_version=`cat $srcdir/gcc/BASE-VER`
7204 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7205 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7206 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7207 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7208 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7209 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7210else
7211 gcc_cv_tool_dirs=
7212fi
7213
7214if test x$build = x$target && test -n "$md_exec_prefix"; then
7215 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7216fi
7217
7218
7219
7220cat > conftest.c << \EOF
7221#ifdef __GNUC__
7222 gcc_yay;
7223#endif
7224EOF
7225if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
7226 have_gcc_for_target=yes
7227else
7228 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
7229 have_gcc_for_target=no
7230fi
7231rm conftest.c
7232
7233
7234
7235
7236if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7237 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
7238 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
7239echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7240 if test -x $with_build_time_tools/ar; then
7241 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
7242 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
1c710c3c
DJ
7243 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
7244echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 7245 else
1c710c3c
DJ
7246 echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6
d1f8db0c 7248 fi
e8b05380
PB
7249 elif test $build != $host && test $have_gcc_for_target = yes; then
7250 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
7251 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
7252 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
7253 fi
7254fi
3e19841a 7255if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
7256 # Extract the first word of "ar", so it can be a program name with args.
7257set dummy ar; ac_word=$2
1c710c3c
DJ
7258echo "$as_me:$LINENO: checking for $ac_word" >&5
7259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7260if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 7262else
1c710c3c
DJ
7263 case $AR_FOR_TARGET in
7264 [\\/]* | ?:[\\/]*)
e8b05380
PB
7265 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
7266 ;;
e8b05380 7267 *)
1c710c3c
DJ
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $gcc_cv_tool_dirs
7270do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 break 2
7278 fi
7279done
7280done
7281
e8b05380
PB
7282 ;;
7283esac
7284fi
1c710c3c
DJ
7285AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7286
e8b05380 7287if test -n "$AR_FOR_TARGET"; then
1c710c3c
DJ
7288 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7289echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 7290else
1c710c3c
DJ
7291 echo "$as_me:$LINENO: result: no" >&5
7292echo "${ECHO_T}no" >&6
4de997d1
PB
7293fi
7294
e8b05380
PB
7295fi
7296if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7297 if test -n "$with_build_time_tools"; then
7298 for ncn_progname in ar; do
1c710c3c
DJ
7299 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7300echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7301 if test -x $with_build_time_tools/${ncn_progname}; then
7302 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7303 echo "$as_me:$LINENO: result: yes" >&5
7304echo "${ECHO_T}yes" >&6
e8b05380
PB
7305 break
7306 else
1c710c3c
DJ
7307 echo "$as_me:$LINENO: result: no" >&5
7308echo "${ECHO_T}no" >&6
e8b05380
PB
7309 fi
7310 done
7311fi
7312
7313if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
7314 for ncn_progname in ar; do
7315 if test -n "$ncn_target_tool_prefix"; then
7316 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 7317set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7318echo "$as_me:$LINENO: checking for $ac_word" >&5
7319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7320if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7322else
e8b05380
PB
7323 if test -n "$AR_FOR_TARGET"; then
7324 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 7325else
1c710c3c
DJ
7326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327for as_dir in $PATH
7328do
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 break 2
7336 fi
7337done
7338done
7339
4de997d1
PB
7340fi
7341fi
1c710c3c 7342AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 7343if test -n "$AR_FOR_TARGET"; then
1c710c3c
DJ
7344 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7345echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 7346else
1c710c3c
DJ
7347 echo "$as_me:$LINENO: result: no" >&5
7348echo "${ECHO_T}no" >&6
4de997d1
PB
7349fi
7350
e8b05380
PB
7351 fi
7352 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
7353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7354set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7355echo "$as_me:$LINENO: checking for $ac_word" >&5
7356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7357if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
7359else
7360 if test -n "$AR_FOR_TARGET"; then
7361 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7362else
1c710c3c
DJ
7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
7371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7373 fi
7374done
7375done
7376
e8b05380
PB
7377fi
7378fi
1c710c3c 7379AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 7380if test -n "$AR_FOR_TARGET"; then
1c710c3c
DJ
7381 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7382echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 7383else
1c710c3c
DJ
7384 echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6
e8b05380 7386fi
1c710c3c 7387
e8b05380
PB
7388 fi
7389 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
7390 done
7391fi
1c710c3c 7392
e8b05380
PB
7393if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7394 set dummy ar
7395 if test $build = $target ; then
7396 AR_FOR_TARGET="$2"
7397 else
7398 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 7399 fi
e8b05380
PB
7400fi
7401
d1f8db0c
PB
7402else
7403 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
7404fi
7405
7406
7407
7408
7409if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7410 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
7411 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
7412echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7413 if test -x $with_build_time_tools/as; then
7414 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7415 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
1c710c3c
DJ
7416 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
7417echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 7418 else
1c710c3c
DJ
7419 echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6
d1f8db0c 7421 fi
e8b05380
PB
7422 elif test $build != $host && test $have_gcc_for_target = yes; then
7423 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7424 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7425 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7426 fi
7427fi
3e19841a 7428if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
7429 # Extract the first word of "as", so it can be a program name with args.
7430set dummy as; ac_word=$2
1c710c3c
DJ
7431echo "$as_me:$LINENO: checking for $ac_word" >&5
7432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7433if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 7435else
1c710c3c
DJ
7436 case $AS_FOR_TARGET in
7437 [\\/]* | ?:[\\/]*)
e8b05380
PB
7438 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7439 ;;
e8b05380 7440 *)
1c710c3c
DJ
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $gcc_cv_tool_dirs
7443do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7451 fi
7452done
7453done
7454
e8b05380
PB
7455 ;;
7456esac
7457fi
1c710c3c
DJ
7458AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7459
e8b05380 7460if test -n "$AS_FOR_TARGET"; then
1c710c3c
DJ
7461 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7462echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 7463else
1c710c3c
DJ
7464 echo "$as_me:$LINENO: result: no" >&5
7465echo "${ECHO_T}no" >&6
e8b05380
PB
7466fi
7467
7468fi
7469if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7470 if test -n "$with_build_time_tools"; then
7471 for ncn_progname in as; do
1c710c3c
DJ
7472 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7473echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7474 if test -x $with_build_time_tools/${ncn_progname}; then
7475 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7476 echo "$as_me:$LINENO: result: yes" >&5
7477echo "${ECHO_T}yes" >&6
e8b05380
PB
7478 break
7479 else
1c710c3c
DJ
7480 echo "$as_me:$LINENO: result: no" >&5
7481echo "${ECHO_T}no" >&6
e8b05380
PB
7482 fi
7483 done
7484fi
7485
7486if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7487 for ncn_progname in as; do
7488 if test -n "$ncn_target_tool_prefix"; then
7489 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7490set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7491echo "$as_me:$LINENO: checking for $ac_word" >&5
7492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7493if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
7495else
7496 if test -n "$AS_FOR_TARGET"; then
7497 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7498else
1c710c3c
DJ
7499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500for as_dir in $PATH
7501do
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7506 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 break 2
7509 fi
7510done
7511done
7512
e8b05380
PB
7513fi
7514fi
1c710c3c 7515AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 7516if test -n "$AS_FOR_TARGET"; then
1c710c3c
DJ
7517 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7518echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 7519else
1c710c3c
DJ
7520 echo "$as_me:$LINENO: result: no" >&5
7521echo "${ECHO_T}no" >&6
e8b05380
PB
7522fi
7523
7524 fi
7525 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 7527set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7528echo "$as_me:$LINENO: checking for $ac_word" >&5
7529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7530if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7532else
e8b05380
PB
7533 if test -n "$AS_FOR_TARGET"; then
7534 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 7535else
1c710c3c
DJ
7536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537for as_dir in $PATH
7538do
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7543 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
7544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 break 2
7546 fi
7547done
7548done
7549
4de997d1
PB
7550fi
7551fi
1c710c3c 7552AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 7553if test -n "$AS_FOR_TARGET"; then
1c710c3c
DJ
7554 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7555echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 7556else
1c710c3c
DJ
7557 echo "$as_me:$LINENO: result: no" >&5
7558echo "${ECHO_T}no" >&6
4de997d1 7559fi
1c710c3c 7560
e8b05380
PB
7561 fi
7562 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7563 done
7564fi
1c710c3c 7565
e8b05380
PB
7566if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7567 set dummy as
7568 if test $build = $target ; then
7569 AS_FOR_TARGET="$2"
7570 else
7571 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 7572 fi
e8b05380 7573fi
2693c0b0 7574
d1f8db0c
PB
7575else
7576 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
7577fi
7578
e8b05380
PB
7579
7580
7581
7582if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7583 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
7584 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
7585echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7586 if test -x $with_build_time_tools/dlltool; then
7587 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7588 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
1c710c3c
DJ
7589 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7590echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 7591 else
1c710c3c
DJ
7592 echo "$as_me:$LINENO: result: no" >&5
7593echo "${ECHO_T}no" >&6
d1f8db0c 7594 fi
e8b05380
PB
7595 elif test $build != $host && test $have_gcc_for_target = yes; then
7596 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7597 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7598 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7599 fi
7600fi
3e19841a 7601if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
7602 # Extract the first word of "dlltool", so it can be a program name with args.
7603set dummy dlltool; ac_word=$2
1c710c3c
DJ
7604echo "$as_me:$LINENO: checking for $ac_word" >&5
7605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7606if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7608else
1c710c3c
DJ
7609 case $DLLTOOL_FOR_TARGET in
7610 [\\/]* | ?:[\\/]*)
e8b05380
PB
7611 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7612 ;;
e8b05380 7613 *)
1c710c3c
DJ
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615for as_dir in $gcc_cv_tool_dirs
7616do
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7621 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 break 2
7624 fi
7625done
7626done
7627
e8b05380
PB
7628 ;;
7629esac
4de997d1 7630fi
1c710c3c
DJ
7631DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7632
e8b05380 7633if test -n "$DLLTOOL_FOR_TARGET"; then
1c710c3c
DJ
7634 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7635echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 7636else
1c710c3c
DJ
7637 echo "$as_me:$LINENO: result: no" >&5
7638echo "${ECHO_T}no" >&6
4de997d1
PB
7639fi
7640
e8b05380
PB
7641fi
7642if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7643 if test -n "$with_build_time_tools"; then
7644 for ncn_progname in dlltool; do
1c710c3c
DJ
7645 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7646echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7647 if test -x $with_build_time_tools/${ncn_progname}; then
7648 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7649 echo "$as_me:$LINENO: result: yes" >&5
7650echo "${ECHO_T}yes" >&6
e8b05380
PB
7651 break
7652 else
1c710c3c
DJ
7653 echo "$as_me:$LINENO: result: no" >&5
7654echo "${ECHO_T}no" >&6
e8b05380
PB
7655 fi
7656 done
7657fi
7658
7659if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
7660 for ncn_progname in dlltool; do
7661 if test -n "$ncn_target_tool_prefix"; then
7662 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7663set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7664echo "$as_me:$LINENO: checking for $ac_word" >&5
7665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7666if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7668else
e8b05380
PB
7669 if test -n "$DLLTOOL_FOR_TARGET"; then
7670 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 7671else
1c710c3c
DJ
7672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673for as_dir in $PATH
7674do
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 break 2
7682 fi
7683done
7684done
7685
4de997d1
PB
7686fi
7687fi
1c710c3c 7688DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 7689if test -n "$DLLTOOL_FOR_TARGET"; then
1c710c3c
DJ
7690 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7691echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 7692else
1c710c3c
DJ
7693 echo "$as_me:$LINENO: result: no" >&5
7694echo "${ECHO_T}no" >&6
4de997d1 7695fi
4de997d1 7696
e8b05380
PB
7697 fi
7698 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
7699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7700set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7701echo "$as_me:$LINENO: checking for $ac_word" >&5
7702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7703if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7705else
e8b05380
PB
7706 if test -n "$DLLTOOL_FOR_TARGET"; then
7707 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 7708else
1c710c3c
DJ
7709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710for as_dir in $PATH
7711do
7712 IFS=$as_save_IFS
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7716 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
7717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7718 break 2
7719 fi
7720done
7721done
7722
4de997d1
PB
7723fi
7724fi
1c710c3c 7725DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 7726if test -n "$DLLTOOL_FOR_TARGET"; then
1c710c3c
DJ
7727 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7728echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 7729else
1c710c3c
DJ
7730 echo "$as_me:$LINENO: result: no" >&5
7731echo "${ECHO_T}no" >&6
4de997d1 7732fi
1c710c3c 7733
e8b05380
PB
7734 fi
7735 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
7736 done
7737fi
1c710c3c 7738
e8b05380
PB
7739if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
7740 set dummy dlltool
7741 if test $build = $target ; then
7742 DLLTOOL_FOR_TARGET="$2"
7743 else
7744 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
7745 fi
7746fi
7747
d1f8db0c
PB
7748else
7749 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
7750fi
7751
4de997d1 7752
e8b05380
PB
7753
7754
7755if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7756 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
7757 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
7758echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7759 if test -x $with_build_time_tools/ld; then
7760 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
7761 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
1c710c3c
DJ
7762 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
7763echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 7764 else
1c710c3c
DJ
7765 echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6
d1f8db0c 7767 fi
e8b05380
PB
7768 elif test $build != $host && test $have_gcc_for_target = yes; then
7769 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
7770 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
7771 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 7772 fi
e8b05380 7773fi
3e19841a 7774if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
7775 # Extract the first word of "ld", so it can be a program name with args.
7776set dummy ld; ac_word=$2
1c710c3c
DJ
7777echo "$as_me:$LINENO: checking for $ac_word" >&5
7778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7779if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7781else
1c710c3c
DJ
7782 case $LD_FOR_TARGET in
7783 [\\/]* | ?:[\\/]*)
e8b05380
PB
7784 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
7785 ;;
e8b05380 7786 *)
1c710c3c
DJ
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788for as_dir in $gcc_cv_tool_dirs
7789do
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 break 2
7797 fi
7798done
7799done
7800
e8b05380
PB
7801 ;;
7802esac
4de997d1 7803fi
1c710c3c
DJ
7804LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
7805
e8b05380 7806if test -n "$LD_FOR_TARGET"; then
1c710c3c
DJ
7807 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7808echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 7809else
1c710c3c
DJ
7810 echo "$as_me:$LINENO: result: no" >&5
7811echo "${ECHO_T}no" >&6
4de997d1 7812fi
2693c0b0 7813
e8b05380
PB
7814fi
7815if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7816 if test -n "$with_build_time_tools"; then
7817 for ncn_progname in ld; do
1c710c3c
DJ
7818 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7819echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7820 if test -x $with_build_time_tools/${ncn_progname}; then
7821 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7822 echo "$as_me:$LINENO: result: yes" >&5
7823echo "${ECHO_T}yes" >&6
e8b05380
PB
7824 break
7825 else
1c710c3c
DJ
7826 echo "$as_me:$LINENO: result: no" >&5
7827echo "${ECHO_T}no" >&6
e8b05380
PB
7828 fi
7829 done
ca9f4b81
AO
7830fi
7831
e8b05380
PB
7832if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
7833 for ncn_progname in ld; do
7834 if test -n "$ncn_target_tool_prefix"; then
7835 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 7836set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
7837echo "$as_me:$LINENO: checking for $ac_word" >&5
7838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7839if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7841else
4de997d1
PB
7842 if test -n "$LD_FOR_TARGET"; then
7843 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 7844else
1c710c3c
DJ
7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856done
7857done
7858
ca9f4b81
AO
7859fi
7860fi
1c710c3c 7861LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 7862if test -n "$LD_FOR_TARGET"; then
1c710c3c
DJ
7863 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7864echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 7865else
1c710c3c
DJ
7866 echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
ca9f4b81
AO
7868fi
7869
e8b05380
PB
7870 fi
7871 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
7872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 7873set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
7874echo "$as_me:$LINENO: checking for $ac_word" >&5
7875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7876if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7878else
2693c0b0
PB
7879 if test -n "$LD_FOR_TARGET"; then
7880 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 7881else
1c710c3c
DJ
7882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883for as_dir in $PATH
7884do
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
7890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7892 fi
7893done
7894done
7895
ca9f4b81
AO
7896fi
7897fi
1c710c3c 7898LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 7899if test -n "$LD_FOR_TARGET"; then
1c710c3c
DJ
7900 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7901echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 7902else
1c710c3c
DJ
7903 echo "$as_me:$LINENO: result: no" >&5
7904echo "${ECHO_T}no" >&6
ca9f4b81 7905fi
1c710c3c 7906
e8b05380
PB
7907 fi
7908 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
7909 done
7910fi
1c710c3c 7911
2693c0b0
PB
7912if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
7913 set dummy ld
7914 if test $build = $target ; then
7915 LD_FOR_TARGET="$2"
ca9f4b81 7916 else
2693c0b0 7917 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 7918 fi
ca9f4b81
AO
7919fi
7920
d1f8db0c
PB
7921else
7922 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
7923fi
7924
7925
7926
7927
7928if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7929 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
7930 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
7931echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7932 if test -x $with_build_time_tools/lipo; then
7933 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
7934 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
1c710c3c
DJ
7935 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
7936echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 7937 else
1c710c3c
DJ
7938 echo "$as_me:$LINENO: result: no" >&5
7939echo "${ECHO_T}no" >&6
d1f8db0c 7940 fi
e8b05380
PB
7941 elif test $build != $host && test $have_gcc_for_target = yes; then
7942 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
7943 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
7944 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
7945 fi
7946fi
3e19841a 7947if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
7948 # Extract the first word of "lipo", so it can be a program name with args.
7949set dummy lipo; ac_word=$2
1c710c3c
DJ
7950echo "$as_me:$LINENO: checking for $ac_word" >&5
7951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7952if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 7954else
1c710c3c
DJ
7955 case $LIPO_FOR_TARGET in
7956 [\\/]* | ?:[\\/]*)
e8b05380
PB
7957 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
7958 ;;
e8b05380 7959 *)
1c710c3c
DJ
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961for as_dir in $gcc_cv_tool_dirs
7962do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7967 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7970 fi
7971done
7972done
7973
e8b05380
PB
7974 ;;
7975esac
7976fi
1c710c3c
DJ
7977LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
7978
e8b05380 7979if test -n "$LIPO_FOR_TARGET"; then
1c710c3c
DJ
7980 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7981echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 7982else
1c710c3c
DJ
7983 echo "$as_me:$LINENO: result: no" >&5
7984echo "${ECHO_T}no" >&6
e8b05380
PB
7985fi
7986
7987fi
7988if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7989 if test -n "$with_build_time_tools"; then
7990 for ncn_progname in lipo; do
1c710c3c
DJ
7991 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7992echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7993 if test -x $with_build_time_tools/${ncn_progname}; then
7994 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
7995 echo "$as_me:$LINENO: result: yes" >&5
7996echo "${ECHO_T}yes" >&6
e8b05380
PB
7997 break
7998 else
1c710c3c
DJ
7999 echo "$as_me:$LINENO: result: no" >&5
8000echo "${ECHO_T}no" >&6
e8b05380
PB
8001 fi
8002 done
8003fi
8004
8005if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
8006 for ncn_progname in lipo; do
8007 if test -n "$ncn_target_tool_prefix"; then
8008 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8009set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8010echo "$as_me:$LINENO: checking for $ac_word" >&5
8011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8012if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
8014else
8015 if test -n "$LIPO_FOR_TARGET"; then
8016 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8017else
1c710c3c
DJ
8018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019for as_dir in $PATH
8020do
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2
8028 fi
8029done
8030done
8031
040b1c5a
GK
8032fi
8033fi
1c710c3c 8034LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 8035if test -n "$LIPO_FOR_TARGET"; then
1c710c3c
DJ
8036 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8037echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 8038else
1c710c3c
DJ
8039 echo "$as_me:$LINENO: result: no" >&5
8040echo "${ECHO_T}no" >&6
040b1c5a
GK
8041fi
8042
e8b05380
PB
8043 fi
8044 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
8045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 8046set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8047echo "$as_me:$LINENO: checking for $ac_word" >&5
8048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8049if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
8051else
8052 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
8053 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8054else
1c710c3c
DJ
8055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056for as_dir in $PATH
8057do
8058 IFS=$as_save_IFS
8059 test -z "$as_dir" && as_dir=.
8060 for ac_exec_ext in '' $ac_executable_extensions; do
8061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8062 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
8063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8064 break 2
8065 fi
8066done
8067done
8068
040b1c5a
GK
8069fi
8070fi
1c710c3c 8071LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 8072if test -n "$LIPO_FOR_TARGET"; then
1c710c3c
DJ
8073 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8074echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 8075else
1c710c3c
DJ
8076 echo "$as_me:$LINENO: result: no" >&5
8077echo "${ECHO_T}no" >&6
040b1c5a 8078fi
1c710c3c 8079
e8b05380
PB
8080 fi
8081 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
8082 done
8083fi
1c710c3c 8084
040b1c5a
GK
8085if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
8086 set dummy lipo
8087 if test $build = $target ; then
8088 LIPO_FOR_TARGET="$2"
8089 else
8090 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
8091 fi
8092fi
8093
d1f8db0c
PB
8094else
8095 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
8096fi
8097
8098
8099
8100
8101if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8102 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8103 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
8104echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8105 if test -x $with_build_time_tools/nm; then
8106 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
8107 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
1c710c3c
DJ
8108 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
8109echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 8110 else
1c710c3c
DJ
8111 echo "$as_me:$LINENO: result: no" >&5
8112echo "${ECHO_T}no" >&6
d1f8db0c 8113 fi
e8b05380
PB
8114 elif test $build != $host && test $have_gcc_for_target = yes; then
8115 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
8116 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
8117 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8118 fi
8119fi
3e19841a 8120if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8121 # Extract the first word of "nm", so it can be a program name with args.
8122set dummy nm; ac_word=$2
1c710c3c
DJ
8123echo "$as_me:$LINENO: checking for $ac_word" >&5
8124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8125if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8127else
1c710c3c
DJ
8128 case $NM_FOR_TARGET in
8129 [\\/]* | ?:[\\/]*)
e8b05380
PB
8130 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
8131 ;;
e8b05380 8132 *)
1c710c3c
DJ
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134for as_dir in $gcc_cv_tool_dirs
8135do
8136 IFS=$as_save_IFS
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8142 break 2
8143 fi
8144done
8145done
8146
e8b05380
PB
8147 ;;
8148esac
8149fi
1c710c3c
DJ
8150NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8151
e8b05380 8152if test -n "$NM_FOR_TARGET"; then
1c710c3c
DJ
8153 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8154echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 8155else
1c710c3c
DJ
8156 echo "$as_me:$LINENO: result: no" >&5
8157echo "${ECHO_T}no" >&6
e8b05380
PB
8158fi
8159
8160fi
8161if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8162 if test -n "$with_build_time_tools"; then
8163 for ncn_progname in nm; do
1c710c3c
DJ
8164 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8165echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8166 if test -x $with_build_time_tools/${ncn_progname}; then
8167 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8168 echo "$as_me:$LINENO: result: yes" >&5
8169echo "${ECHO_T}yes" >&6
e8b05380
PB
8170 break
8171 else
1c710c3c
DJ
8172 echo "$as_me:$LINENO: result: no" >&5
8173echo "${ECHO_T}no" >&6
e8b05380
PB
8174 fi
8175 done
8176fi
8177
8178if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
8179 for ncn_progname in nm; do
8180 if test -n "$ncn_target_tool_prefix"; then
8181 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 8182set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8183echo "$as_me:$LINENO: checking for $ac_word" >&5
8184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8185if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8187else
4de997d1
PB
8188 if test -n "$NM_FOR_TARGET"; then
8189 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 8190else
1c710c3c
DJ
8191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192for as_dir in $PATH
8193do
8194 IFS=$as_save_IFS
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8198 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 break 2
8201 fi
8202done
8203done
8204
ca9f4b81
AO
8205fi
8206fi
1c710c3c 8207NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 8208if test -n "$NM_FOR_TARGET"; then
1c710c3c
DJ
8209 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8210echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 8211else
1c710c3c
DJ
8212 echo "$as_me:$LINENO: result: no" >&5
8213echo "${ECHO_T}no" >&6
ca9f4b81
AO
8214fi
8215
e8b05380
PB
8216 fi
8217 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
8218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8219set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8220echo "$as_me:$LINENO: checking for $ac_word" >&5
8221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8222if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8224else
2693c0b0
PB
8225 if test -n "$NM_FOR_TARGET"; then
8226 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 8227else
1c710c3c
DJ
8228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229for as_dir in $PATH
8230do
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8235 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
8236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 break 2
8238 fi
8239done
8240done
8241
ca9f4b81
AO
8242fi
8243fi
1c710c3c 8244NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 8245if test -n "$NM_FOR_TARGET"; then
1c710c3c
DJ
8246 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8247echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 8248else
1c710c3c
DJ
8249 echo "$as_me:$LINENO: result: no" >&5
8250echo "${ECHO_T}no" >&6
ca9f4b81 8251fi
1c710c3c 8252
e8b05380
PB
8253 fi
8254 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
8255 done
8256fi
1c710c3c 8257
2693c0b0
PB
8258if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
8259 set dummy nm
8260 if test $build = $target ; then
8261 NM_FOR_TARGET="$2"
ca9f4b81 8262 else
2693c0b0 8263 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 8264 fi
ca9f4b81
AO
8265fi
8266
d1f8db0c
PB
8267else
8268 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
8269fi
8270
8271
8272
8273
8274if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8275 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8276 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
8277echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8278 if test -x $with_build_time_tools/objdump; then
8279 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
8280 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
1c710c3c
DJ
8281 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
8282echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 8283 else
1c710c3c
DJ
8284 echo "$as_me:$LINENO: result: no" >&5
8285echo "${ECHO_T}no" >&6
d1f8db0c 8286 fi
e8b05380
PB
8287 elif test $build != $host && test $have_gcc_for_target = yes; then
8288 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
8289 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
8290 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8291 fi
8292fi
3e19841a 8293if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8294 # Extract the first word of "objdump", so it can be a program name with args.
8295set dummy objdump; ac_word=$2
1c710c3c
DJ
8296echo "$as_me:$LINENO: checking for $ac_word" >&5
8297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8298if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8300else
1c710c3c
DJ
8301 case $OBJDUMP_FOR_TARGET in
8302 [\\/]* | ?:[\\/]*)
e8b05380
PB
8303 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
8304 ;;
e8b05380 8305 *)
1c710c3c
DJ
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307for as_dir in $gcc_cv_tool_dirs
8308do
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8313 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 break 2
8316 fi
8317done
8318done
8319
e8b05380
PB
8320 ;;
8321esac
8322fi
1c710c3c
DJ
8323OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8324
e8b05380 8325if test -n "$OBJDUMP_FOR_TARGET"; then
1c710c3c
DJ
8326 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8327echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 8328else
1c710c3c
DJ
8329 echo "$as_me:$LINENO: result: no" >&5
8330echo "${ECHO_T}no" >&6
e8b05380
PB
8331fi
8332
8333fi
8334if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8335 if test -n "$with_build_time_tools"; then
8336 for ncn_progname in objdump; do
1c710c3c
DJ
8337 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8338echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8339 if test -x $with_build_time_tools/${ncn_progname}; then
8340 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8341 echo "$as_me:$LINENO: result: yes" >&5
8342echo "${ECHO_T}yes" >&6
e8b05380
PB
8343 break
8344 else
1c710c3c
DJ
8345 echo "$as_me:$LINENO: result: no" >&5
8346echo "${ECHO_T}no" >&6
e8b05380
PB
8347 fi
8348 done
8349fi
8350
8351if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
8352 for ncn_progname in objdump; do
8353 if test -n "$ncn_target_tool_prefix"; then
8354 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8355set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8356echo "$as_me:$LINENO: checking for $ac_word" >&5
8357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8358if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
8360else
8361 if test -n "$OBJDUMP_FOR_TARGET"; then
8362 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8363else
1c710c3c
DJ
8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8371 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8374 fi
8375done
8376done
8377
d739199a
DJ
8378fi
8379fi
1c710c3c 8380OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 8381if test -n "$OBJDUMP_FOR_TARGET"; then
1c710c3c
DJ
8382 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8383echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 8384else
1c710c3c
DJ
8385 echo "$as_me:$LINENO: result: no" >&5
8386echo "${ECHO_T}no" >&6
d739199a
DJ
8387fi
8388
e8b05380
PB
8389 fi
8390 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
8391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 8392set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8393echo "$as_me:$LINENO: checking for $ac_word" >&5
8394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8395if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
8397else
8398 if test -n "$OBJDUMP_FOR_TARGET"; then
8399 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8400else
1c710c3c
DJ
8401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402for as_dir in $PATH
8403do
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8411 fi
8412done
8413done
8414
d739199a
DJ
8415fi
8416fi
1c710c3c 8417OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 8418if test -n "$OBJDUMP_FOR_TARGET"; then
1c710c3c
DJ
8419 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8420echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 8421else
1c710c3c
DJ
8422 echo "$as_me:$LINENO: result: no" >&5
8423echo "${ECHO_T}no" >&6
d739199a 8424fi
1c710c3c 8425
e8b05380
PB
8426 fi
8427 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8428 done
8429fi
1c710c3c 8430
d739199a
DJ
8431if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8432 set dummy objdump
8433 if test $build = $target ; then
8434 OBJDUMP_FOR_TARGET="$2"
8435 else
8436 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8437 fi
8438fi
8439
d1f8db0c
PB
8440else
8441 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
8442fi
8443
8444
8445
8446
8447if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8448 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8449 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
8450echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8451 if test -x $with_build_time_tools/ranlib; then
8452 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8453 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
1c710c3c
DJ
8454 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8455echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 8456 else
1c710c3c
DJ
8457 echo "$as_me:$LINENO: result: no" >&5
8458echo "${ECHO_T}no" >&6
d1f8db0c 8459 fi
e8b05380
PB
8460 elif test $build != $host && test $have_gcc_for_target = yes; then
8461 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8462 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8463 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8464 fi
8465fi
3e19841a 8466if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8467 # Extract the first word of "ranlib", so it can be a program name with args.
8468set dummy ranlib; ac_word=$2
1c710c3c
DJ
8469echo "$as_me:$LINENO: checking for $ac_word" >&5
8470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8471if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8473else
1c710c3c
DJ
8474 case $RANLIB_FOR_TARGET in
8475 [\\/]* | ?:[\\/]*)
e8b05380
PB
8476 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8477 ;;
e8b05380 8478 *)
1c710c3c
DJ
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480for as_dir in $gcc_cv_tool_dirs
8481do
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8486 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 break 2
8489 fi
8490done
8491done
8492
e8b05380
PB
8493 ;;
8494esac
8495fi
1c710c3c
DJ
8496RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8497
e8b05380 8498if test -n "$RANLIB_FOR_TARGET"; then
1c710c3c
DJ
8499 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8500echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 8501else
1c710c3c
DJ
8502 echo "$as_me:$LINENO: result: no" >&5
8503echo "${ECHO_T}no" >&6
e8b05380
PB
8504fi
8505
8506fi
8507if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8508 if test -n "$with_build_time_tools"; then
8509 for ncn_progname in ranlib; do
1c710c3c
DJ
8510 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8511echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8512 if test -x $with_build_time_tools/${ncn_progname}; then
8513 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8514 echo "$as_me:$LINENO: result: yes" >&5
8515echo "${ECHO_T}yes" >&6
e8b05380
PB
8516 break
8517 else
1c710c3c
DJ
8518 echo "$as_me:$LINENO: result: no" >&5
8519echo "${ECHO_T}no" >&6
e8b05380
PB
8520 fi
8521 done
8522fi
8523
8524if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8525 for ncn_progname in ranlib; do
8526 if test -n "$ncn_target_tool_prefix"; then
8527 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 8528set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8529echo "$as_me:$LINENO: checking for $ac_word" >&5
8530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8531if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8533else
4de997d1
PB
8534 if test -n "$RANLIB_FOR_TARGET"; then
8535 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 8536else
1c710c3c
DJ
8537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538for as_dir in $PATH
8539do
8540 IFS=$as_save_IFS
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8544 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8546 break 2
8547 fi
8548done
8549done
8550
ca9f4b81
AO
8551fi
8552fi
1c710c3c 8553RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 8554if test -n "$RANLIB_FOR_TARGET"; then
1c710c3c
DJ
8555 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8556echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 8557else
1c710c3c
DJ
8558 echo "$as_me:$LINENO: result: no" >&5
8559echo "${ECHO_T}no" >&6
ca9f4b81
AO
8560fi
8561
e8b05380
PB
8562 fi
8563 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8565set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8566echo "$as_me:$LINENO: checking for $ac_word" >&5
8567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8568if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8570else
2693c0b0
PB
8571 if test -n "$RANLIB_FOR_TARGET"; then
8572 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 8573else
1c710c3c
DJ
8574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575for as_dir in $PATH
8576do
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8581 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 break 2
8584 fi
8585done
8586done
8587
ca9f4b81
AO
8588fi
8589fi
1c710c3c 8590RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 8591if test -n "$RANLIB_FOR_TARGET"; then
1c710c3c
DJ
8592 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8593echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 8594else
1c710c3c
DJ
8595 echo "$as_me:$LINENO: result: no" >&5
8596echo "${ECHO_T}no" >&6
ca9f4b81 8597fi
1c710c3c 8598
e8b05380
PB
8599 fi
8600 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8601 done
8602fi
1c710c3c 8603
e8b05380
PB
8604if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8605 set dummy ranlib
8606 if test $build = $target ; then
8607 RANLIB_FOR_TARGET="$2"
8608 else
8609 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 8610 fi
e8b05380 8611fi
2693c0b0 8612
d1f8db0c
PB
8613else
8614 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
8615fi
8616
e8b05380
PB
8617
8618
8619
8620if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8621 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8622 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
8623echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8624 if test -x $with_build_time_tools/strip; then
8625 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8626 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
1c710c3c
DJ
8627 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
8628echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 8629 else
1c710c3c
DJ
8630 echo "$as_me:$LINENO: result: no" >&5
8631echo "${ECHO_T}no" >&6
d1f8db0c 8632 fi
e8b05380
PB
8633 elif test $build != $host && test $have_gcc_for_target = yes; then
8634 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8635 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8636 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8637 fi
8638fi
3e19841a 8639if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8640 # Extract the first word of "strip", so it can be a program name with args.
8641set dummy strip; ac_word=$2
1c710c3c
DJ
8642echo "$as_me:$LINENO: checking for $ac_word" >&5
8643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8644if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8646else
1c710c3c
DJ
8647 case $STRIP_FOR_TARGET in
8648 [\\/]* | ?:[\\/]*)
e8b05380
PB
8649 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
8650 ;;
e8b05380 8651 *)
1c710c3c
DJ
8652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653for as_dir in $gcc_cv_tool_dirs
8654do
8655 IFS=$as_save_IFS
8656 test -z "$as_dir" && as_dir=.
8657 for ac_exec_ext in '' $ac_executable_extensions; do
8658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8659 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8661 break 2
8662 fi
8663done
8664done
8665
e8b05380
PB
8666 ;;
8667esac
8668fi
1c710c3c
DJ
8669STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
8670
e8b05380 8671if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
8672 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8673echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 8674else
1c710c3c
DJ
8675 echo "$as_me:$LINENO: result: no" >&5
8676echo "${ECHO_T}no" >&6
e8b05380
PB
8677fi
8678
8679fi
8680if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8681 if test -n "$with_build_time_tools"; then
8682 for ncn_progname in strip; do
1c710c3c
DJ
8683 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8684echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8685 if test -x $with_build_time_tools/${ncn_progname}; then
8686 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8687 echo "$as_me:$LINENO: result: yes" >&5
8688echo "${ECHO_T}yes" >&6
e8b05380
PB
8689 break
8690 else
1c710c3c
DJ
8691 echo "$as_me:$LINENO: result: no" >&5
8692echo "${ECHO_T}no" >&6
e8b05380
PB
8693 fi
8694 done
8695fi
8696
8697if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
8698 for ncn_progname in strip; do
8699 if test -n "$ncn_target_tool_prefix"; then
8700 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 8701set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8702echo "$as_me:$LINENO: checking for $ac_word" >&5
8703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8704if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
8706else
8707 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
8708 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8709else
8710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711for as_dir in $PATH
8712do
8713 IFS=$as_save_IFS
8714 test -z "$as_dir" && as_dir=.
8715 for ac_exec_ext in '' $ac_executable_extensions; do
8716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8717 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8719 break 2
8720 fi
8721done
8722done
8723
040b1c5a
GK
8724fi
8725fi
1c710c3c 8726STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 8727if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
8728 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8729echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 8730else
1c710c3c
DJ
8731 echo "$as_me:$LINENO: result: no" >&5
8732echo "${ECHO_T}no" >&6
040b1c5a
GK
8733fi
8734
e8b05380
PB
8735 fi
8736 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
8737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 8738set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8739echo "$as_me:$LINENO: checking for $ac_word" >&5
8740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8741if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
8743else
8744 if test -n "$STRIP_FOR_TARGET"; then
8745 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8746else
1c710c3c
DJ
8747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748for as_dir in $PATH
8749do
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8754 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
8755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 break 2
8757 fi
8758done
8759done
8760
040b1c5a
GK
8761fi
8762fi
1c710c3c 8763STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 8764if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
8765 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8766echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 8767else
1c710c3c
DJ
8768 echo "$as_me:$LINENO: result: no" >&5
8769echo "${ECHO_T}no" >&6
040b1c5a 8770fi
1c710c3c 8771
e8b05380
PB
8772 fi
8773 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
8774 done
8775fi
1c710c3c 8776
040b1c5a
GK
8777if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
8778 set dummy strip
8779 if test $build = $target ; then
8780 STRIP_FOR_TARGET="$2"
8781 else
8782 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8783 fi
8784fi
8785
d1f8db0c
PB
8786else
8787 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
8788fi
8789
8790
8791
8792
8793if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8794 if test -n "$with_build_time_tools"; then
1c710c3c
DJ
8795 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
8796echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8797 if test -x $with_build_time_tools/windres; then
8798 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
8799 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
1c710c3c
DJ
8800 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
8801echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 8802 else
1c710c3c
DJ
8803 echo "$as_me:$LINENO: result: no" >&5
8804echo "${ECHO_T}no" >&6
d1f8db0c 8805 fi
e8b05380
PB
8806 elif test $build != $host && test $have_gcc_for_target = yes; then
8807 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
8808 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
8809 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
8810 fi
8811fi
3e19841a 8812if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8813 # Extract the first word of "windres", so it can be a program name with args.
8814set dummy windres; ac_word=$2
1c710c3c
DJ
8815echo "$as_me:$LINENO: checking for $ac_word" >&5
8816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8817if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8819else
1c710c3c
DJ
8820 case $WINDRES_FOR_TARGET in
8821 [\\/]* | ?:[\\/]*)
e8b05380
PB
8822 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
8823 ;;
e8b05380 8824 *)
1c710c3c
DJ
8825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8826for as_dir in $gcc_cv_tool_dirs
8827do
8828 IFS=$as_save_IFS
8829 test -z "$as_dir" && as_dir=.
8830 for ac_exec_ext in '' $ac_executable_extensions; do
8831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8832 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8834 break 2
8835 fi
8836done
8837done
8838
e8b05380
PB
8839 ;;
8840esac
8841fi
1c710c3c
DJ
8842WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
8843
e8b05380 8844if test -n "$WINDRES_FOR_TARGET"; then
1c710c3c
DJ
8845 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8846echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 8847else
1c710c3c
DJ
8848 echo "$as_me:$LINENO: result: no" >&5
8849echo "${ECHO_T}no" >&6
e8b05380
PB
8850fi
8851
8852fi
8853if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8854 if test -n "$with_build_time_tools"; then
8855 for ncn_progname in windres; do
1c710c3c
DJ
8856 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8857echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8858 if test -x $with_build_time_tools/${ncn_progname}; then
8859 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1c710c3c
DJ
8860 echo "$as_me:$LINENO: result: yes" >&5
8861echo "${ECHO_T}yes" >&6
e8b05380
PB
8862 break
8863 else
1c710c3c
DJ
8864 echo "$as_me:$LINENO: result: no" >&5
8865echo "${ECHO_T}no" >&6
e8b05380
PB
8866 fi
8867 done
8868fi
8869
8870if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
8871 for ncn_progname in windres; do
8872 if test -n "$ncn_target_tool_prefix"; then
8873 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8874set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1c710c3c
DJ
8875echo "$as_me:$LINENO: checking for $ac_word" >&5
8876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8877if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8879else
4de997d1
PB
8880 if test -n "$WINDRES_FOR_TARGET"; then
8881 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 8882else
1c710c3c
DJ
8883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884for as_dir in $PATH
8885do
8886 IFS=$as_save_IFS
8887 test -z "$as_dir" && as_dir=.
8888 for ac_exec_ext in '' $ac_executable_extensions; do
8889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8890 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8892 break 2
8893 fi
8894done
8895done
8896
ca9f4b81
AO
8897fi
8898fi
1c710c3c 8899WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 8900if test -n "$WINDRES_FOR_TARGET"; then
1c710c3c
DJ
8901 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8902echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 8903else
1c710c3c
DJ
8904 echo "$as_me:$LINENO: result: no" >&5
8905echo "${ECHO_T}no" >&6
ca9f4b81
AO
8906fi
8907
e8b05380
PB
8908 fi
8909 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
8910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8911set dummy ${ncn_progname}; ac_word=$2
1c710c3c
DJ
8912echo "$as_me:$LINENO: checking for $ac_word" >&5
8913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8914if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8916else
2693c0b0
PB
8917 if test -n "$WINDRES_FOR_TARGET"; then
8918 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 8919else
1c710c3c
DJ
8920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921for as_dir in $PATH
8922do
8923 IFS=$as_save_IFS
8924 test -z "$as_dir" && as_dir=.
8925 for ac_exec_ext in '' $ac_executable_extensions; do
8926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8927 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
8928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8929 break 2
8930 fi
8931done
8932done
8933
ca9f4b81
AO
8934fi
8935fi
1c710c3c 8936WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 8937if test -n "$WINDRES_FOR_TARGET"; then
1c710c3c
DJ
8938 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8939echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 8940else
1c710c3c
DJ
8941 echo "$as_me:$LINENO: result: no" >&5
8942echo "${ECHO_T}no" >&6
ca9f4b81 8943fi
1c710c3c 8944
e8b05380
PB
8945 fi
8946 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
8947 done
8948fi
1c710c3c 8949
2693c0b0
PB
8950if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
8951 set dummy windres
8952 if test $build = $target ; then
8953 WINDRES_FOR_TARGET="$2"
ca9f4b81 8954 else
2693c0b0 8955 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 8956 fi
ca9f4b81
AO
8957fi
8958
d1f8db0c
PB
8959else
8960 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
8961fi
8962
4977bab6 8963
2abefe3d
PB
8964RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
8965
1c710c3c
DJ
8966echo "$as_me:$LINENO: checking where to find the target ar" >&5
8967echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 8968if test "x${build}" != "x${host}" ; then
e8b05380
PB
8969 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8970 # We already found the complete path
1c710c3c
DJ
8971 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8972echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
e8b05380
PB
8973 else
8974 # Canadian cross, just use what we found
1c710c3c
DJ
8975 echo "$as_me:$LINENO: result: pre-installed" >&5
8976echo "${ECHO_T}pre-installed" >&6
e8b05380 8977 fi
2abefe3d
PB
8978else
8979 ok=yes
8980 case " ${configdirs} " in
8981 *" binutils "*) ;;
8982 *) ok=no ;;
8983 esac
1c710c3c 8984
2abefe3d
PB
8985 if test $ok = yes; then
8986 # An in-tree tool is available and we can use it
8987 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
1c710c3c
DJ
8988 echo "$as_me:$LINENO: result: just compiled" >&5
8989echo "${ECHO_T}just compiled" >&6
e8b05380
PB
8990 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8991 # We already found the complete path
1c710c3c
DJ
8992 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8993echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
2abefe3d
PB
8994 elif test "x$target" = "x$host"; then
8995 # We can use an host tool
8996 AR_FOR_TARGET='$(AR)'
1c710c3c
DJ
8997 echo "$as_me:$LINENO: result: host tool" >&5
8998echo "${ECHO_T}host tool" >&6
2abefe3d
PB
8999 else
9000 # We need a cross tool
1c710c3c
DJ
9001 echo "$as_me:$LINENO: result: pre-installed" >&5
9002echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9003 fi
9004fi
0b0dc272 9005
1c710c3c
DJ
9006echo "$as_me:$LINENO: checking where to find the target as" >&5
9007echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 9008if test "x${build}" != "x${host}" ; then
e8b05380
PB
9009 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9010 # We already found the complete path
1c710c3c
DJ
9011 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9012echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
e8b05380
PB
9013 else
9014 # Canadian cross, just use what we found
1c710c3c
DJ
9015 echo "$as_me:$LINENO: result: pre-installed" >&5
9016echo "${ECHO_T}pre-installed" >&6
e8b05380 9017 fi
2abefe3d
PB
9018else
9019 ok=yes
9020 case " ${configdirs} " in
9021 *" gas "*) ;;
9022 *) ok=no ;;
9023 esac
1c710c3c 9024
2abefe3d
PB
9025 if test $ok = yes; then
9026 # An in-tree tool is available and we can use it
9027 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
1c710c3c
DJ
9028 echo "$as_me:$LINENO: result: just compiled" >&5
9029echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9030 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9031 # We already found the complete path
1c710c3c
DJ
9032 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9033echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
2abefe3d
PB
9034 elif test "x$target" = "x$host"; then
9035 # We can use an host tool
9036 AS_FOR_TARGET='$(AS)'
1c710c3c
DJ
9037 echo "$as_me:$LINENO: result: host tool" >&5
9038echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9039 else
9040 # We need a cross tool
1c710c3c
DJ
9041 echo "$as_me:$LINENO: result: pre-installed" >&5
9042echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9043 fi
9044fi
0b0dc272 9045
1c710c3c
DJ
9046echo "$as_me:$LINENO: checking where to find the target cc" >&5
9047echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 9048if test "x${build}" != "x${host}" ; then
e8b05380
PB
9049 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9050 # We already found the complete path
1c710c3c
DJ
9051 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9052echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
e8b05380
PB
9053 else
9054 # Canadian cross, just use what we found
1c710c3c
DJ
9055 echo "$as_me:$LINENO: result: pre-installed" >&5
9056echo "${ECHO_T}pre-installed" >&6
e8b05380 9057 fi
2abefe3d
PB
9058else
9059 ok=yes
9060 case " ${configdirs} " in
9061 *" gcc "*) ;;
9062 *) ok=no ;;
9063 esac
1c710c3c 9064
2abefe3d
PB
9065 if test $ok = yes; then
9066 # An in-tree tool is available and we can use it
9067 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
1c710c3c
DJ
9068 echo "$as_me:$LINENO: result: just compiled" >&5
9069echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9070 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9071 # We already found the complete path
1c710c3c
DJ
9072 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9073echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
2abefe3d
PB
9074 elif test "x$target" = "x$host"; then
9075 # We can use an host tool
9076 CC_FOR_TARGET='$(CC)'
1c710c3c
DJ
9077 echo "$as_me:$LINENO: result: host tool" >&5
9078echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9079 else
9080 # We need a cross tool
1c710c3c
DJ
9081 echo "$as_me:$LINENO: result: pre-installed" >&5
9082echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9083 fi
9084fi
0b0dc272 9085
1c710c3c
DJ
9086echo "$as_me:$LINENO: checking where to find the target c++" >&5
9087echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 9088if test "x${build}" != "x${host}" ; then
e8b05380
PB
9089 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9090 # We already found the complete path
1c710c3c
DJ
9091 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9092echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
e8b05380
PB
9093 else
9094 # Canadian cross, just use what we found
1c710c3c
DJ
9095 echo "$as_me:$LINENO: result: pre-installed" >&5
9096echo "${ECHO_T}pre-installed" >&6
e8b05380 9097 fi
2abefe3d
PB
9098else
9099 ok=yes
9100 case " ${configdirs} " in
9101 *" gcc "*) ;;
9102 *) ok=no ;;
9103 esac
9104 case ,${enable_languages}, in
9105 *,c++,*) ;;
9106 *) ok=no ;;
9107 esac
9108 if test $ok = yes; then
9109 # An in-tree tool is available and we can use it
9110 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'
1c710c3c
DJ
9111 echo "$as_me:$LINENO: result: just compiled" >&5
9112echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9113 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9114 # We already found the complete path
1c710c3c
DJ
9115 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9116echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
2abefe3d
PB
9117 elif test "x$target" = "x$host"; then
9118 # We can use an host tool
9119 CXX_FOR_TARGET='$(CXX)'
1c710c3c
DJ
9120 echo "$as_me:$LINENO: result: host tool" >&5
9121echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9122 else
9123 # We need a cross tool
1c710c3c
DJ
9124 echo "$as_me:$LINENO: result: pre-installed" >&5
9125echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9126 fi
9127fi
0b0dc272 9128
1c710c3c
DJ
9129echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
9130echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 9131if test "x${build}" != "x${host}" ; then
e8b05380
PB
9132 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9133 # We already found the complete path
1c710c3c
DJ
9134 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9135echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
e8b05380
PB
9136 else
9137 # Canadian cross, just use what we found
1c710c3c
DJ
9138 echo "$as_me:$LINENO: result: pre-installed" >&5
9139echo "${ECHO_T}pre-installed" >&6
e8b05380 9140 fi
2abefe3d
PB
9141else
9142 ok=yes
9143 case " ${configdirs} " in
9144 *" gcc "*) ;;
9145 *) ok=no ;;
9146 esac
9147 case ,${enable_languages}, in
9148 *,c++,*) ;;
9149 *) ok=no ;;
9150 esac
9151 if test $ok = yes; then
9152 # An in-tree tool is available and we can use it
9153 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'
1c710c3c
DJ
9154 echo "$as_me:$LINENO: result: just compiled" >&5
9155echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9156 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9157 # We already found the complete path
1c710c3c
DJ
9158 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9159echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
2abefe3d
PB
9160 elif test "x$target" = "x$host"; then
9161 # We can use an host tool
9162 RAW_CXX_FOR_TARGET='$(CXX)'
1c710c3c
DJ
9163 echo "$as_me:$LINENO: result: host tool" >&5
9164echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9165 else
9166 # We need a cross tool
1c710c3c
DJ
9167 echo "$as_me:$LINENO: result: pre-installed" >&5
9168echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9169 fi
9170fi
0b0dc272 9171
1c710c3c
DJ
9172echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
9173echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 9174if test "x${build}" != "x${host}" ; then
e8b05380
PB
9175 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9176 # We already found the complete path
1c710c3c
DJ
9177 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9178echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
e8b05380
PB
9179 else
9180 # Canadian cross, just use what we found
1c710c3c
DJ
9181 echo "$as_me:$LINENO: result: pre-installed" >&5
9182echo "${ECHO_T}pre-installed" >&6
e8b05380 9183 fi
2abefe3d
PB
9184else
9185 ok=yes
9186 case " ${configdirs} " in
9187 *" binutils "*) ;;
9188 *) ok=no ;;
9189 esac
1c710c3c 9190
2abefe3d
PB
9191 if test $ok = yes; then
9192 # An in-tree tool is available and we can use it
9193 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
1c710c3c
DJ
9194 echo "$as_me:$LINENO: result: just compiled" >&5
9195echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9196 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9197 # We already found the complete path
1c710c3c
DJ
9198 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9199echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
2abefe3d
PB
9200 elif test "x$target" = "x$host"; then
9201 # We can use an host tool
9202 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
1c710c3c
DJ
9203 echo "$as_me:$LINENO: result: host tool" >&5
9204echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9205 else
9206 # We need a cross tool
1c710c3c
DJ
9207 echo "$as_me:$LINENO: result: pre-installed" >&5
9208echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9209 fi
9210fi
0b0dc272 9211
1c710c3c
DJ
9212echo "$as_me:$LINENO: checking where to find the target gcc" >&5
9213echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 9214if test "x${build}" != "x${host}" ; then
e8b05380
PB
9215 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9216 # We already found the complete path
1c710c3c
DJ
9217 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9218echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
e8b05380
PB
9219 else
9220 # Canadian cross, just use what we found
1c710c3c
DJ
9221 echo "$as_me:$LINENO: result: pre-installed" >&5
9222echo "${ECHO_T}pre-installed" >&6
e8b05380 9223 fi
2abefe3d
PB
9224else
9225 ok=yes
9226 case " ${configdirs} " in
9227 *" gcc "*) ;;
9228 *) ok=no ;;
9229 esac
1c710c3c 9230
2abefe3d
PB
9231 if test $ok = yes; then
9232 # An in-tree tool is available and we can use it
9233 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
1c710c3c
DJ
9234 echo "$as_me:$LINENO: result: just compiled" >&5
9235echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9236 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9237 # We already found the complete path
1c710c3c
DJ
9238 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9239echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
2abefe3d
PB
9240 elif test "x$target" = "x$host"; then
9241 # We can use an host tool
9242 GCC_FOR_TARGET='$()'
1c710c3c
DJ
9243 echo "$as_me:$LINENO: result: host tool" >&5
9244echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9245 else
9246 # We need a cross tool
1c710c3c
DJ
9247 echo "$as_me:$LINENO: result: pre-installed" >&5
9248echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9249 fi
9250fi
0b0dc272 9251
1c710c3c
DJ
9252echo "$as_me:$LINENO: checking where to find the target gcj" >&5
9253echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 9254if test "x${build}" != "x${host}" ; then
e8b05380
PB
9255 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9256 # We already found the complete path
1c710c3c
DJ
9257 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9258echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
e8b05380
PB
9259 else
9260 # Canadian cross, just use what we found
1c710c3c
DJ
9261 echo "$as_me:$LINENO: result: pre-installed" >&5
9262echo "${ECHO_T}pre-installed" >&6
e8b05380 9263 fi
2abefe3d
PB
9264else
9265 ok=yes
9266 case " ${configdirs} " in
9267 *" gcc "*) ;;
9268 *) ok=no ;;
9269 esac
9270 case ,${enable_languages}, in
9271 *,java,*) ;;
9272 *) ok=no ;;
9273 esac
9274 if test $ok = yes; then
9275 # An in-tree tool is available and we can use it
9276 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
1c710c3c
DJ
9277 echo "$as_me:$LINENO: result: just compiled" >&5
9278echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9279 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9280 # We already found the complete path
1c710c3c
DJ
9281 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9282echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
2abefe3d
PB
9283 elif test "x$target" = "x$host"; then
9284 # We can use an host tool
9285 GCJ_FOR_TARGET='$(GCJ)'
1c710c3c
DJ
9286 echo "$as_me:$LINENO: result: host tool" >&5
9287echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9288 else
9289 # We need a cross tool
1c710c3c
DJ
9290 echo "$as_me:$LINENO: result: pre-installed" >&5
9291echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9292 fi
9293fi
0b0dc272 9294
1c710c3c
DJ
9295echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
9296echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 9297if test "x${build}" != "x${host}" ; then
e8b05380
PB
9298 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9299 # We already found the complete path
1c710c3c
DJ
9300 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9301echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
e8b05380
PB
9302 else
9303 # Canadian cross, just use what we found
1c710c3c
DJ
9304 echo "$as_me:$LINENO: result: pre-installed" >&5
9305echo "${ECHO_T}pre-installed" >&6
e8b05380 9306 fi
2abefe3d
PB
9307else
9308 ok=yes
9309 case " ${configdirs} " in
9310 *" gcc "*) ;;
9311 *) ok=no ;;
9312 esac
9313 case ,${enable_languages}, in
9314 *,fortran,*) ;;
9315 *) ok=no ;;
9316 esac
9317 if test $ok = yes; then
9318 # An in-tree tool is available and we can use it
9319 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
1c710c3c
DJ
9320 echo "$as_me:$LINENO: result: just compiled" >&5
9321echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9322 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9323 # We already found the complete path
1c710c3c
DJ
9324 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9325echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
2abefe3d
PB
9326 elif test "x$target" = "x$host"; then
9327 # We can use an host tool
9328 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
1c710c3c
DJ
9329 echo "$as_me:$LINENO: result: host tool" >&5
9330echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9331 else
9332 # We need a cross tool
1c710c3c
DJ
9333 echo "$as_me:$LINENO: result: pre-installed" >&5
9334echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9335 fi
9336fi
0b0dc272 9337
1c710c3c
DJ
9338echo "$as_me:$LINENO: checking where to find the target ld" >&5
9339echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 9340if test "x${build}" != "x${host}" ; then
e8b05380
PB
9341 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9342 # We already found the complete path
1c710c3c
DJ
9343 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9344echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
e8b05380
PB
9345 else
9346 # Canadian cross, just use what we found
1c710c3c
DJ
9347 echo "$as_me:$LINENO: result: pre-installed" >&5
9348echo "${ECHO_T}pre-installed" >&6
e8b05380 9349 fi
2abefe3d
PB
9350else
9351 ok=yes
9352 case " ${configdirs} " in
9353 *" ld "*) ;;
9354 *) ok=no ;;
9355 esac
1c710c3c 9356
2abefe3d
PB
9357 if test $ok = yes; then
9358 # An in-tree tool is available and we can use it
9359 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
1c710c3c
DJ
9360 echo "$as_me:$LINENO: result: just compiled" >&5
9361echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9362 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9363 # We already found the complete path
1c710c3c
DJ
9364 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9365echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
2abefe3d
PB
9366 elif test "x$target" = "x$host"; then
9367 # We can use an host tool
9368 LD_FOR_TARGET='$(LD)'
1c710c3c
DJ
9369 echo "$as_me:$LINENO: result: host tool" >&5
9370echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9371 else
9372 # We need a cross tool
1c710c3c
DJ
9373 echo "$as_me:$LINENO: result: pre-installed" >&5
9374echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9375 fi
9376fi
0b0dc272 9377
1c710c3c
DJ
9378echo "$as_me:$LINENO: checking where to find the target lipo" >&5
9379echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 9380if test "x${build}" != "x${host}" ; then
e8b05380
PB
9381 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9382 # We already found the complete path
1c710c3c
DJ
9383 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9384echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
e8b05380
PB
9385 else
9386 # Canadian cross, just use what we found
1c710c3c
DJ
9387 echo "$as_me:$LINENO: result: pre-installed" >&5
9388echo "${ECHO_T}pre-installed" >&6
e8b05380 9389 fi
2abefe3d 9390else
e8b05380
PB
9391 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9392 # We already found the complete path
1c710c3c
DJ
9393 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9394echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
e8b05380 9395 elif test "x$target" = "x$host"; then
2abefe3d
PB
9396 # We can use an host tool
9397 LIPO_FOR_TARGET='$(LIPO)'
1c710c3c
DJ
9398 echo "$as_me:$LINENO: result: host tool" >&5
9399echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9400 else
9401 # We need a cross tool
1c710c3c
DJ
9402 echo "$as_me:$LINENO: result: pre-installed" >&5
9403echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9404 fi
9405fi
0b0dc272 9406
1c710c3c
DJ
9407echo "$as_me:$LINENO: checking where to find the target nm" >&5
9408echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 9409if test "x${build}" != "x${host}" ; then
e8b05380
PB
9410 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9411 # We already found the complete path
1c710c3c
DJ
9412 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9413echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
e8b05380
PB
9414 else
9415 # Canadian cross, just use what we found
1c710c3c
DJ
9416 echo "$as_me:$LINENO: result: pre-installed" >&5
9417echo "${ECHO_T}pre-installed" >&6
e8b05380 9418 fi
2abefe3d
PB
9419else
9420 ok=yes
9421 case " ${configdirs} " in
9422 *" binutils "*) ;;
9423 *) ok=no ;;
9424 esac
1c710c3c 9425
2abefe3d
PB
9426 if test $ok = yes; then
9427 # An in-tree tool is available and we can use it
9428 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
1c710c3c
DJ
9429 echo "$as_me:$LINENO: result: just compiled" >&5
9430echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9431 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9432 # We already found the complete path
1c710c3c
DJ
9433 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9434echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
2abefe3d
PB
9435 elif test "x$target" = "x$host"; then
9436 # We can use an host tool
9437 NM_FOR_TARGET='$(NM)'
1c710c3c
DJ
9438 echo "$as_me:$LINENO: result: host tool" >&5
9439echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9440 else
9441 # We need a cross tool
1c710c3c
DJ
9442 echo "$as_me:$LINENO: result: pre-installed" >&5
9443echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9444 fi
9445fi
0b0dc272 9446
1c710c3c
DJ
9447echo "$as_me:$LINENO: checking where to find the target objdump" >&5
9448echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 9449if test "x${build}" != "x${host}" ; then
e8b05380
PB
9450 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9451 # We already found the complete path
1c710c3c
DJ
9452 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9453echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
e8b05380
PB
9454 else
9455 # Canadian cross, just use what we found
1c710c3c
DJ
9456 echo "$as_me:$LINENO: result: pre-installed" >&5
9457echo "${ECHO_T}pre-installed" >&6
e8b05380 9458 fi
2abefe3d
PB
9459else
9460 ok=yes
9461 case " ${configdirs} " in
9462 *" binutils "*) ;;
9463 *) ok=no ;;
9464 esac
1c710c3c 9465
2abefe3d
PB
9466 if test $ok = yes; then
9467 # An in-tree tool is available and we can use it
9468 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
1c710c3c
DJ
9469 echo "$as_me:$LINENO: result: just compiled" >&5
9470echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9471 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9472 # We already found the complete path
1c710c3c
DJ
9473 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9474echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
2abefe3d
PB
9475 elif test "x$target" = "x$host"; then
9476 # We can use an host tool
9477 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
1c710c3c
DJ
9478 echo "$as_me:$LINENO: result: host tool" >&5
9479echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9480 else
9481 # We need a cross tool
1c710c3c
DJ
9482 echo "$as_me:$LINENO: result: pre-installed" >&5
9483echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9484 fi
9485fi
0b0dc272 9486
1c710c3c
DJ
9487echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
9488echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 9489if test "x${build}" != "x${host}" ; then
e8b05380
PB
9490 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9491 # We already found the complete path
1c710c3c
DJ
9492 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9493echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
e8b05380
PB
9494 else
9495 # Canadian cross, just use what we found
1c710c3c
DJ
9496 echo "$as_me:$LINENO: result: pre-installed" >&5
9497echo "${ECHO_T}pre-installed" >&6
e8b05380 9498 fi
2abefe3d
PB
9499else
9500 ok=yes
9501 case " ${configdirs} " in
9502 *" binutils "*) ;;
9503 *) ok=no ;;
9504 esac
1c710c3c 9505
2abefe3d
PB
9506 if test $ok = yes; then
9507 # An in-tree tool is available and we can use it
9508 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
1c710c3c
DJ
9509 echo "$as_me:$LINENO: result: just compiled" >&5
9510echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9511 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9512 # We already found the complete path
1c710c3c
DJ
9513 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9514echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
2abefe3d
PB
9515 elif test "x$target" = "x$host"; then
9516 # We can use an host tool
9517 RANLIB_FOR_TARGET='$(RANLIB)'
1c710c3c
DJ
9518 echo "$as_me:$LINENO: result: host tool" >&5
9519echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9520 else
9521 # We need a cross tool
1c710c3c
DJ
9522 echo "$as_me:$LINENO: result: pre-installed" >&5
9523echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9524 fi
9525fi
0b0dc272 9526
1c710c3c
DJ
9527echo "$as_me:$LINENO: checking where to find the target strip" >&5
9528echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 9529if test "x${build}" != "x${host}" ; then
e8b05380
PB
9530 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9531 # We already found the complete path
1c710c3c
DJ
9532 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9533echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
e8b05380
PB
9534 else
9535 # Canadian cross, just use what we found
1c710c3c
DJ
9536 echo "$as_me:$LINENO: result: pre-installed" >&5
9537echo "${ECHO_T}pre-installed" >&6
e8b05380 9538 fi
2abefe3d
PB
9539else
9540 ok=yes
9541 case " ${configdirs} " in
9542 *" binutils "*) ;;
9543 *) ok=no ;;
9544 esac
1c710c3c 9545
2abefe3d
PB
9546 if test $ok = yes; then
9547 # An in-tree tool is available and we can use it
9548 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
1c710c3c
DJ
9549 echo "$as_me:$LINENO: result: just compiled" >&5
9550echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9551 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9552 # We already found the complete path
1c710c3c
DJ
9553 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9554echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
2abefe3d
PB
9555 elif test "x$target" = "x$host"; then
9556 # We can use an host tool
9557 STRIP_FOR_TARGET='$(STRIP)'
1c710c3c
DJ
9558 echo "$as_me:$LINENO: result: host tool" >&5
9559echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9560 else
9561 # We need a cross tool
1c710c3c
DJ
9562 echo "$as_me:$LINENO: result: pre-installed" >&5
9563echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9564 fi
9565fi
0b0dc272 9566
1c710c3c
DJ
9567echo "$as_me:$LINENO: checking where to find the target windres" >&5
9568echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 9569if test "x${build}" != "x${host}" ; then
e8b05380
PB
9570 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9571 # We already found the complete path
1c710c3c
DJ
9572 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9573echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
e8b05380
PB
9574 else
9575 # Canadian cross, just use what we found
1c710c3c
DJ
9576 echo "$as_me:$LINENO: result: pre-installed" >&5
9577echo "${ECHO_T}pre-installed" >&6
e8b05380 9578 fi
2abefe3d
PB
9579else
9580 ok=yes
9581 case " ${configdirs} " in
9582 *" binutils "*) ;;
9583 *) ok=no ;;
9584 esac
1c710c3c 9585
2abefe3d
PB
9586 if test $ok = yes; then
9587 # An in-tree tool is available and we can use it
9588 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
1c710c3c
DJ
9589 echo "$as_me:$LINENO: result: just compiled" >&5
9590echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9591 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9592 # We already found the complete path
1c710c3c
DJ
9593 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9594echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
2abefe3d
PB
9595 elif test "x$target" = "x$host"; then
9596 # We can use an host tool
9597 WINDRES_FOR_TARGET='$(WINDRES)'
1c710c3c
DJ
9598 echo "$as_me:$LINENO: result: host tool" >&5
9599echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9600 else
9601 # We need a cross tool
1c710c3c
DJ
9602 echo "$as_me:$LINENO: result: pre-installed" >&5
9603echo "${ECHO_T}pre-installed" >&6
2abefe3d 9604 fi
671aa708 9605fi
be912515
NN
9606
9607
9608
2abefe3d 9609
0b0dc272 9610
671aa708
NN
9611# Certain tools may need extra flags.
9612AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9613RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9614NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9615
2abefe3d
PB
9616# When building target libraries, except in a Canadian cross, we use
9617# the same toolchain as the compiler we just built.
9618COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9619COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9620COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9621if test $host = $build; then
9622 case " $configdirs " in
9623 *" gcc "*)
9624 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9625 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9626 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9627 ;;
9628 esac
9629fi
9630
9631
9632
9633
9634
1c710c3c
DJ
9635echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9636echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
ee03dc5e
AO
9637# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9638if test "${enable_maintainer_mode+set}" = set; then
9639 enableval="$enable_maintainer_mode"
9640 USE_MAINTAINER_MODE=$enableval
9641else
9642 USE_MAINTAINER_MODE=no
1c710c3c
DJ
9643fi;
9644echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9645echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
9646
9647
9648if test "$USE_MAINTAINER_MODE" = yes; then
9649 MAINTAINER_MODE_TRUE=
9650 MAINTAINER_MODE_FALSE='#'
9651else
9652 MAINTAINER_MODE_TRUE='#'
9653 MAINTAINER_MODE_FALSE=
1c710c3c 9654fi
ee03dc5e
AO
9655MAINT=$MAINTAINER_MODE_TRUE
9656
2805b53a
NN
9657# ---------------------
9658# GCC bootstrap support
9659# ---------------------
9660
9661# Stage specific cflags for build.
9662stage1_cflags="-g"
9663case $build in
9664 vax-*-*)
9665 case ${GCC} in
9666 yes) stage1_cflags="-g -Wa,-J" ;;
9667 *) stage1_cflags="-g -J" ;;
9668 esac ;;
2805b53a
NN
9669esac
9670
0b50988a
EB
9671# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
9672if test "$GCC" = yes; then
9673 saved_CFLAGS="$CFLAGS"
9674
9675 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
9676 CFLAGS="$CFLAGS -fkeep-inline-functions"
1c710c3c
DJ
9677 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
9678echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
9679 cat >conftest.$ac_ext <<_ACEOF
9680/* confdefs.h. */
9681_ACEOF
9682cat confdefs.h >>conftest.$ac_ext
9683cat >>conftest.$ac_ext <<_ACEOF
9684/* end confdefs.h. */
9685
9686int
9687main ()
9688{
9689
9690 ;
9691 return 0;
9692}
9693_ACEOF
9694rm -f conftest.$ac_objext
9695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9696 (eval $ac_compile) 2>conftest.er1
9697 ac_status=$?
9698 grep -v '^ *+' conftest.er1 >conftest.err
9699 rm -f conftest.er1
9700 cat conftest.err >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } &&
9703 { ac_try='test -z "$ac_c_werror_flag"
9704 || test ! -s conftest.err'
9705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 (eval $ac_try) 2>&5
9707 ac_status=$?
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; } &&
9710 { ac_try='test -s conftest.$ac_objext'
9711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 (eval $ac_try) 2>&5
9713 ac_status=$?
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; }; then
9716 echo "$as_me:$LINENO: result: yes" >&5
9717echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
9718else
9719 echo "$as_me: failed program was:" >&5
9720sed 's/^/| /' conftest.$ac_ext >&5
9721
9722echo "$as_me:$LINENO: result: no" >&5
9723echo "${ECHO_T}no" >&6
9724fi
9725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
9726
9727 CFLAGS="$saved_CFLAGS"
9728fi
9729
9730
2805b53a 9731
8efea775
PB
9732# Enable --enable-checking in stage1 of the compiler.
9733# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
9734if test "${enable_stage1_checking+set}" = set; then
9735 enableval="$enable_stage1_checking"
9736 stage1_checking=--enable-checking=${enable_stage1_checking}
9737else
9738 if test "x$enable_checking" = xno; then
9739 stage1_checking=--enable-checking
9740else
9741 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
9742fi
1c710c3c 9743fi;
8efea775
PB
9744
9745
2805b53a 9746# Enable -Werror in bootstrap stage2 and later.
2805b53a
NN
9747# Check whether --enable-werror or --disable-werror was given.
9748if test "${enable_werror+set}" = set; then
9749 enableval="$enable_werror"
1c710c3c 9750
2805b53a 9751else
416cfb5e 9752 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 9753 enable_werror=yes
88fceb68
PB
9754else
9755 enable_werror=no
9756fi
1c710c3c 9757fi;
09a9c095
NN
9758case ${enable_werror} in
9759 yes) stage2_werror_flag="--enable-werror-always" ;;
9760 *) stage2_werror_flag="" ;;
2805b53a
NN
9761esac
9762
9763
32845532 9764# Flags needed to enable html installing and building
1c710c3c 9765
32845532
CD
9766# Check whether --with-datarootdir or --without-datarootdir was given.
9767if test "${with_datarootdir+set}" = set; then
9768 withval="$with_datarootdir"
9769 datarootdir="\${prefix}/${withval}"
9770else
9771 datarootdir="\${prefix}/share"
1c710c3c 9772fi;
32845532
CD
9773
9774
9775# Check whether --with-docdir or --without-docdir was given.
9776if test "${with_docdir+set}" = set; then
9777 withval="$with_docdir"
9778 docdir="\${prefix}/${withval}"
9779else
9780 docdir="\${datarootdir}/doc"
1c710c3c 9781fi;
32845532
CD
9782
9783
9784# Check whether --with-htmldir or --without-htmldir was given.
9785if test "${with_htmldir+set}" = set; then
9786 withval="$with_htmldir"
9787 htmldir="\${prefix}/${withval}"
9788else
9789 htmldir="\${docdir}"
1c710c3c 9790fi;
32845532
CD
9791
9792
9793
9794
9795
1c710c3c
DJ
9796 ac_config_files="$ac_config_files Makefile"
9797cat >confcache <<\_ACEOF
671aa708
NN
9798# This file is a shell script that caches the results of configure
9799# tests run on this system so they can be shared between configure
1c710c3c
DJ
9800# scripts and configure runs, see configure's option --config-cache.
9801# It is not useful on other systems. If it contains results you don't
9802# want to keep, you may remove or edit it.
671aa708 9803#
1c710c3c
DJ
9804# config.status only pays attention to the cache file if you give it
9805# the --recheck option to rerun configure.
671aa708 9806#
1c710c3c
DJ
9807# `ac_cv_env_foo' variables (set or unset) will be overridden when
9808# loading this file, other *unset* `ac_cv_foo' will be assigned the
9809# following values.
9810
9811_ACEOF
9812
671aa708
NN
9813# The following way of writing the cache mishandles newlines in values,
9814# but we know of no workaround that is simple, portable, and efficient.
9815# So, don't put newlines in cache variables' values.
9816# Ultrix sh set writes to stderr and can't be redirected directly,
9817# and sets the high bit in the cache file unless we assign to the vars.
1c710c3c
DJ
9818{
9819 (set) 2>&1 |
9820 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9821 *ac_space=\ *)
9822 # `set' does not quote correctly, so add quotes (double-quote
9823 # substitution turns \\\\ into \\, and sed turns \\ into \).
9824 sed -n \
9825 "s/'/'\\\\''/g;
9826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9827 ;;
9828 *)
9829 # `set' quotes correctly as required by POSIX, so do not add quotes.
9830 sed -n \
9831 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9832 ;;
9833 esac;
9834} |
9835 sed '
9836 t clear
9837 : clear
9838 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9839 t end
9840 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9841 : end' >>confcache
9842if diff $cache_file confcache >/dev/null 2>&1; then :; else
671aa708 9843 if test -w $cache_file; then
1c710c3c
DJ
9844 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9845 cat confcache >$cache_file
671aa708
NN
9846 else
9847 echo "not updating unwritable cache $cache_file"
9848 fi
4977bab6 9849fi
671aa708 9850rm -f confcache
79c06341 9851
671aa708
NN
9852test "x$prefix" = xNONE && prefix=$ac_default_prefix
9853# Let make expand exec_prefix.
9854test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 9855
1c710c3c
DJ
9856# VPATH may cause trouble with some makes, so we remove $(srcdir),
9857# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9858# trailing colons and then remove the whole line if VPATH becomes empty
9859# (actually we leave an empty line to preserve line numbers).
671aa708 9860if test "x$srcdir" = x.; then
1c710c3c
DJ
9861 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9862s/:*\$(srcdir):*/:/;
9863s/:*\${srcdir}:*/:/;
9864s/:*@srcdir@:*/:/;
9865s/^\([^=]*=[ ]*\):*/\1/;
9866s/:*$//;
9867s/^[^=]*=[ ]*$//;
9868}'
671aa708 9869fi
79c06341 9870
671aa708
NN
9871# Transform confdefs.h into DEFS.
9872# Protect against shell expansion while executing Makefile rules.
9873# Protect against Makefile macro expansion.
1c710c3c
DJ
9874#
9875# If the first sed substitution is executed (which looks for macros that
9876# take arguments), then we branch to the quote section. Otherwise,
9877# look for a macro that doesn't take arguments.
9878cat >confdef2opt.sed <<\_ACEOF
9879t clear
9880: clear
9881s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
9882t quote
9883s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
9884t quote
9885d
9886: quote
9887s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
9888s,\[,\\&,g
9889s,\],\\&,g
9890s,\$,$$,g
9891p
9892_ACEOF
9893# We use echo to avoid assuming a particular line-breaking character.
9894# The extra dot is to prevent the shell from consuming trailing
9895# line-breaks from the sub-command output. A line-break within
9896# single-quotes doesn't work because, if this script is created in a
9897# platform that uses two characters for line-breaks (e.g., DOS), tr
9898# would break.
9899ac_LF_and_DOT=`echo; echo .`
9900DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9901rm -f confdef2opt.sed
9902
9903
9904ac_libobjs=
9905ac_ltlibobjs=
9906for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9907 # 1. Remove the extension, and $U if already installed.
9908 ac_i=`echo "$ac_i" |
9909 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9910 # 2. Add them.
9911 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9912 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9913done
9914LIBOBJS=$ac_libobjs
fb0103e5 9915
1c710c3c 9916LTLIBOBJS=$ac_ltlibobjs
0b0dc272 9917
af71363e 9918
1c710c3c
DJ
9919
9920: ${CONFIG_STATUS=./config.status}
9921ac_clean_files_save=$ac_clean_files
9922ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9923{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9924echo "$as_me: creating $CONFIG_STATUS" >&6;}
9925cat >$CONFIG_STATUS <<_ACEOF
9926#! $SHELL
9927# Generated by $as_me.
671aa708 9928# Run this file to recreate the current configuration.
671aa708 9929# Compiler output produced by configure, useful for debugging
1c710c3c 9930# configure, is in config.log if it exists.
0b0dc272 9931
1c710c3c
DJ
9932debug=false
9933ac_cs_recheck=false
9934ac_cs_silent=false
9935SHELL=\${CONFIG_SHELL-$SHELL}
9936_ACEOF
9937
9938cat >>$CONFIG_STATUS <<\_ACEOF
9939## --------------------- ##
9940## M4sh Initialization. ##
9941## --------------------- ##
9942
9943# Be Bourne compatible
9944if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9945 emulate sh
9946 NULLCMD=:
9947 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9948 # is contrary to our usage. Disable this feature.
9949 alias -g '${1+"$@"}'='"$@"'
9950elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9951 set -o posix
9952fi
9953DUALCASE=1; export DUALCASE # for MKS sh
9954
9955# Support unset when possible.
9956if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9957 as_unset=unset
9958else
9959 as_unset=false
9960fi
9961
9962
9963# Work around bugs in pre-3.0 UWIN ksh.
9964$as_unset ENV MAIL MAILPATH
9965PS1='$ '
9966PS2='> '
9967PS4='+ '
9968
9969# NLS nuisances.
9970for as_var in \
9971 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9972 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9973 LC_TELEPHONE LC_TIME
9974do
9975 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9976 eval $as_var=C; export $as_var
9977 else
9978 $as_unset $as_var
9979 fi
9980done
9981
9982# Required to use basename.
9983if expr a : '\(a\)' >/dev/null 2>&1; then
9984 as_expr=expr
9985else
9986 as_expr=false
9987fi
9988
9989if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9990 as_basename=basename
9991else
9992 as_basename=false
9993fi
9994
9995
9996# Name of the executable.
9997as_me=`$as_basename "$0" ||
9998$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9999 X"$0" : 'X\(//\)$' \| \
10000 X"$0" : 'X\(/\)$' \| \
10001 . : '\(.\)' 2>/dev/null ||
10002echo X/"$0" |
10003 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10004 /^X\/\(\/\/\)$/{ s//\1/; q; }
10005 /^X\/\(\/\).*/{ s//\1/; q; }
10006 s/.*/./; q'`
10007
10008
10009# PATH needs CR, and LINENO needs CR and PATH.
10010# Avoid depending upon Character Ranges.
10011as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10012as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10013as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10014as_cr_digits='0123456789'
10015as_cr_alnum=$as_cr_Letters$as_cr_digits
10016
10017# The user is always right.
10018if test "${PATH_SEPARATOR+set}" != set; then
10019 echo "#! /bin/sh" >conf$$.sh
10020 echo "exit 0" >>conf$$.sh
10021 chmod +x conf$$.sh
10022 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10023 PATH_SEPARATOR=';'
10024 else
10025 PATH_SEPARATOR=:
10026 fi
10027 rm -f conf$$.sh
10028fi
10029
10030
10031 as_lineno_1=$LINENO
10032 as_lineno_2=$LINENO
10033 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10034 test "x$as_lineno_1" != "x$as_lineno_2" &&
10035 test "x$as_lineno_3" = "x$as_lineno_2" || {
10036 # Find who we are. Look in the path if we contain no path at all
10037 # relative or not.
10038 case $0 in
10039 *[\\/]* ) as_myself=$0 ;;
10040 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10041for as_dir in $PATH
10042do
10043 IFS=$as_save_IFS
10044 test -z "$as_dir" && as_dir=.
10045 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10046done
10047
10048 ;;
10049 esac
10050 # We did not find ourselves, most probably we were run as `sh COMMAND'
10051 # in which case we are not to be found in the path.
10052 if test "x$as_myself" = x; then
10053 as_myself=$0
10054 fi
10055 if test ! -f "$as_myself"; then
10056 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10057echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10058 { (exit 1); exit 1; }; }
10059 fi
10060 case $CONFIG_SHELL in
10061 '')
10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10064do
10065 IFS=$as_save_IFS
10066 test -z "$as_dir" && as_dir=.
10067 for as_base in sh bash ksh sh5; do
10068 case $as_dir in
10069 /*)
10070 if ("$as_dir/$as_base" -c '
10071 as_lineno_1=$LINENO
10072 as_lineno_2=$LINENO
10073 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10074 test "x$as_lineno_1" != "x$as_lineno_2" &&
10075 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10076 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10077 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10078 CONFIG_SHELL=$as_dir/$as_base
10079 export CONFIG_SHELL
10080 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10081 fi;;
10082 esac
10083 done
10084done
10085;;
10086 esac
10087
10088 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10089 # uniformly replaced by the line number. The first 'sed' inserts a
10090 # line-number line before each line; the second 'sed' does the real
10091 # work. The second script uses 'N' to pair each line-number line
10092 # with the numbered line, and appends trailing '-' during
10093 # substitution so that $LINENO is not a special case at line end.
10094 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10095 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10096 sed '=' <$as_myself |
10097 sed '
10098 N
10099 s,$,-,
10100 : loop
10101 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10102 t loop
10103 s,-$,,
10104 s,^['$as_cr_digits']*\n,,
10105 ' >$as_me.lineno &&
10106 chmod +x $as_me.lineno ||
10107 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10108echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10109 { (exit 1); exit 1; }; }
10110
10111 # Don't try to exec as it changes $[0], causing all sort of problems
10112 # (the dirname of $[0] is not the place where we might find the
10113 # original and so on. Autoconf is especially sensible to this).
10114 . ./$as_me.lineno
10115 # Exit status is that of the last command.
10116 exit
10117}
10118
10119
10120case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10121 *c*,-n*) ECHO_N= ECHO_C='
10122' ECHO_T=' ' ;;
10123 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10124 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10125esac
10126
10127if expr a : '\(a\)' >/dev/null 2>&1; then
10128 as_expr=expr
10129else
10130 as_expr=false
10131fi
10132
10133rm -f conf$$ conf$$.exe conf$$.file
10134echo >conf$$.file
10135if ln -s conf$$.file conf$$ 2>/dev/null; then
10136 # We could just check for DJGPP; but this test a) works b) is more generic
10137 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10138 if test -f conf$$.exe; then
10139 # Don't use ln at all; we don't have any links
10140 as_ln_s='cp -p'
10141 else
10142 as_ln_s='ln -s'
10143 fi
10144elif ln conf$$.file conf$$ 2>/dev/null; then
10145 as_ln_s=ln
10146else
10147 as_ln_s='cp -p'
10148fi
10149rm -f conf$$ conf$$.exe conf$$.file
10150
10151if mkdir -p . 2>/dev/null; then
10152 as_mkdir_p=:
10153else
10154 test -d ./-p && rmdir ./-p
10155 as_mkdir_p=false
10156fi
10157
10158as_executable_p="test -f"
10159
10160# Sed expression to map a string onto a valid CPP name.
10161as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10162
10163# Sed expression to map a string onto a valid variable name.
10164as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10165
10166
10167# IFS
10168# We need space, tab and new line, in precisely that order.
10169as_nl='
10170'
10171IFS=" $as_nl"
10172
10173# CDPATH.
10174$as_unset CDPATH
10175
10176exec 6>&1
10177
10178# Open the log real soon, to keep \$[0] and so on meaningful, and to
10179# report actual input values of CONFIG_FILES etc. instead of their
10180# values after options handling. Logging --version etc. is OK.
10181exec 5>>config.log
10182{
10183 echo
10184 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10185## Running $as_me. ##
10186_ASBOX
10187} >&5
10188cat >&5 <<_CSEOF
10189
10190This file was extended by $as_me, which was
10191generated by GNU Autoconf 2.59. Invocation command line was
10192
10193 CONFIG_FILES = $CONFIG_FILES
10194 CONFIG_HEADERS = $CONFIG_HEADERS
10195 CONFIG_LINKS = $CONFIG_LINKS
10196 CONFIG_COMMANDS = $CONFIG_COMMANDS
10197 $ $0 $@
10198
10199_CSEOF
10200echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10201echo >&5
10202_ACEOF
10203
10204# Files that config.status was made for.
10205if test -n "$ac_config_files"; then
10206 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10207fi
10208
10209if test -n "$ac_config_headers"; then
10210 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10211fi
10212
10213if test -n "$ac_config_links"; then
10214 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10215fi
10216
10217if test -n "$ac_config_commands"; then
10218 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10219fi
10220
10221cat >>$CONFIG_STATUS <<\_ACEOF
10222
10223ac_cs_usage="\
10224\`$as_me' instantiates files from templates according to the
10225current configuration.
10226
10227Usage: $0 [OPTIONS] [FILE]...
10228
10229 -h, --help print this help, then exit
10230 -V, --version print version number, then exit
10231 -q, --quiet do not print progress messages
10232 -d, --debug don't remove temporary files
10233 --recheck update $as_me by reconfiguring in the same conditions
10234 --file=FILE[:TEMPLATE]
10235 instantiate the configuration file FILE
10236
10237Configuration files:
10238$config_files
10239
10240Report bugs to <bug-autoconf@gnu.org>."
10241_ACEOF
10242
10243cat >>$CONFIG_STATUS <<_ACEOF
10244ac_cs_version="\\
10245config.status
10246configured by $0, generated by GNU Autoconf 2.59,
10247 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10248
10249Copyright (C) 2003 Free Software Foundation, Inc.
10250This config.status script is free software; the Free Software Foundation
10251gives unlimited permission to copy, distribute and modify it."
10252srcdir=$srcdir
10253INSTALL="$INSTALL"
10254_ACEOF
10255
10256cat >>$CONFIG_STATUS <<\_ACEOF
10257# If no file are specified by the user, then we need to provide default
10258# value. By we need to know if files were specified by the user.
10259ac_need_defaults=:
10260while test $# != 0
a4b9e93e 10261do
1c710c3c
DJ
10262 case $1 in
10263 --*=*)
10264 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10265 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10266 ac_shift=:
10267 ;;
10268 -*)
10269 ac_option=$1
10270 ac_optarg=$2
10271 ac_shift=shift
10272 ;;
10273 *) # This is not an option, so the user has probably given explicit
10274 # arguments.
10275 ac_option=$1
10276 ac_need_defaults=false;;
10277 esac
10278
10279 case $ac_option in
10280 # Handling of the options.
10281_ACEOF
10282cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 10283 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c
DJ
10284 ac_cs_recheck=: ;;
10285 --version | --vers* | -V )
10286 echo "$ac_cs_version"; exit 0 ;;
10287 --he | --h)
10288 # Conflict between --help and --header
10289 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10290Try \`$0 --help' for more information." >&5
10291echo "$as_me: error: ambiguous option: $1
10292Try \`$0 --help' for more information." >&2;}
10293 { (exit 1); exit 1; }; };;
10294 --help | --hel | -h )
10295 echo "$ac_cs_usage"; exit 0 ;;
10296 --debug | --d* | -d )
10297 debug=: ;;
10298 --file | --fil | --fi | --f )
10299 $ac_shift
10300 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10301 ac_need_defaults=false;;
10302 --header | --heade | --head | --hea )
10303 $ac_shift
10304 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10305 ac_need_defaults=false;;
10306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10307 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10308 ac_cs_silent=: ;;
10309
10310 # This is an error.
10311 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10312Try \`$0 --help' for more information." >&5
10313echo "$as_me: error: unrecognized option: $1
10314Try \`$0 --help' for more information." >&2;}
10315 { (exit 1); exit 1; }; } ;;
10316
10317 *) ac_config_targets="$ac_config_targets $1" ;;
10318
0b0dc272 10319 esac
1c710c3c 10320 shift
0b0dc272
AM
10321done
10322
1c710c3c 10323ac_configure_extra_args=
0b0dc272 10324
1c710c3c
DJ
10325if $ac_cs_silent; then
10326 exec 6>/dev/null
10327 ac_configure_extra_args="$ac_configure_extra_args --silent"
10328fi
0b0dc272 10329
1c710c3c
DJ
10330_ACEOF
10331cat >>$CONFIG_STATUS <<_ACEOF
10332if \$ac_cs_recheck; then
10333 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10334 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10335fi
10336
10337_ACEOF
10338
10339
10340
10341
10342
10343cat >>$CONFIG_STATUS <<\_ACEOF
10344for ac_config_target in $ac_config_targets
10345do
10346 case "$ac_config_target" in
10347 # Handling of arguments.
10348 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10349 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10350echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10351 { (exit 1); exit 1; }; };;
10352 esac
10353done
10354
10355# If the user did not use the arguments to specify the items to instantiate,
10356# then the envvar interface is used. Set only those that are not.
10357# We use the long form for the default assignment because of an extremely
10358# bizarre bug on SunOS 4.1.3.
10359if $ac_need_defaults; then
10360 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10361fi
10362
10363# Have a temporary directory for convenience. Make it in the build tree
10364# simply because there is no reason to put it here, and in addition,
10365# creating and moving files from /tmp can sometimes cause problems.
10366# Create a temporary directory, and hook for its removal unless debugging.
10367$debug ||
10368{
10369 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10370 trap '{ (exit 1); exit 1; }' 1 2 13 15
10371}
10372
10373# Create a (secure) tmp directory for tmp files.
10374
10375{
10376 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10377 test -n "$tmp" && test -d "$tmp"
10378} ||
10379{
10380 tmp=./confstat$$-$RANDOM
10381 (umask 077 && mkdir $tmp)
10382} ||
10383{
10384 echo "$me: cannot create a temporary directory in ." >&2
10385 { (exit 1); exit 1; }
10386}
10387
10388_ACEOF
10389
10390cat >>$CONFIG_STATUS <<_ACEOF
10391
10392#
10393# CONFIG_FILES section.
10394#
10395
10396# No need to generate the scripts if there are no CONFIG_FILES.
10397# This happens for instance when ./config.status config.h
10398if test -n "\$CONFIG_FILES"; then
10399 # Protect against being on the right side of a sed subst in config.status.
10400 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10401 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10402s,@SHELL@,$SHELL,;t t
10403s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10404s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10405s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10406s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10407s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10408s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10409s,@exec_prefix@,$exec_prefix,;t t
10410s,@prefix@,$prefix,;t t
10411s,@program_transform_name@,$program_transform_name,;t t
10412s,@bindir@,$bindir,;t t
10413s,@sbindir@,$sbindir,;t t
10414s,@libexecdir@,$libexecdir,;t t
10415s,@datadir@,$datadir,;t t
10416s,@sysconfdir@,$sysconfdir,;t t
10417s,@sharedstatedir@,$sharedstatedir,;t t
10418s,@localstatedir@,$localstatedir,;t t
10419s,@libdir@,$libdir,;t t
10420s,@includedir@,$includedir,;t t
10421s,@oldincludedir@,$oldincludedir,;t t
10422s,@infodir@,$infodir,;t t
10423s,@mandir@,$mandir,;t t
10424s,@build_alias@,$build_alias,;t t
10425s,@host_alias@,$host_alias,;t t
10426s,@target_alias@,$target_alias,;t t
10427s,@DEFS@,$DEFS,;t t
10428s,@ECHO_C@,$ECHO_C,;t t
10429s,@ECHO_N@,$ECHO_N,;t t
10430s,@ECHO_T@,$ECHO_T,;t t
10431s,@LIBS@,$LIBS,;t t
10432s,@build@,$build,;t t
10433s,@build_cpu@,$build_cpu,;t t
10434s,@build_vendor@,$build_vendor,;t t
10435s,@build_os@,$build_os,;t t
10436s,@build_noncanonical@,$build_noncanonical,;t t
10437s,@host_noncanonical@,$host_noncanonical,;t t
10438s,@target_noncanonical@,$target_noncanonical,;t t
10439s,@host@,$host,;t t
10440s,@host_cpu@,$host_cpu,;t t
10441s,@host_vendor@,$host_vendor,;t t
10442s,@host_os@,$host_os,;t t
10443s,@target@,$target,;t t
10444s,@target_cpu@,$target_cpu,;t t
10445s,@target_vendor@,$target_vendor,;t t
10446s,@target_os@,$target_os,;t t
10447s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10448s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10449s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10450s,@LN@,$LN,;t t
10451s,@LN_S@,$LN_S,;t t
10452s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
10453s,@build_libsubdir@,$build_libsubdir,;t t
10454s,@build_subdir@,$build_subdir,;t t
10455s,@host_subdir@,$host_subdir,;t t
10456s,@target_subdir@,$target_subdir,;t t
10457s,@CC@,$CC,;t t
10458s,@CFLAGS@,$CFLAGS,;t t
10459s,@LDFLAGS@,$LDFLAGS,;t t
10460s,@CPPFLAGS@,$CPPFLAGS,;t t
10461s,@ac_ct_CC@,$ac_ct_CC,;t t
10462s,@EXEEXT@,$EXEEXT,;t t
10463s,@OBJEXT@,$OBJEXT,;t t
10464s,@GNATBIND@,$GNATBIND,;t t
10465s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
10466s,@GNATMAKE@,$GNATMAKE,;t t
10467s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
10468s,@do_compare@,$do_compare,;t t
10469s,@gmplibs@,$gmplibs,;t t
10470s,@gmpinc@,$gmpinc,;t t
10471s,@stage1_languages@,$stage1_languages,;t t
10472s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
10473s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
10474s,@tooldir@,$tooldir,;t t
10475s,@build_tooldir@,$build_tooldir,;t t
10476s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
10477s,@GDB_TK@,$GDB_TK,;t t
10478s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
10479s,@build_configargs@,$build_configargs,;t t
10480s,@build_configdirs@,$build_configdirs,;t t
10481s,@host_configargs@,$host_configargs,;t t
10482s,@configdirs@,$configdirs,;t t
10483s,@target_configargs@,$target_configargs,;t t
10484s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10485s,@config_shell@,$config_shell,;t t
10486s,@YACC@,$YACC,;t t
10487s,@BISON@,$BISON,;t t
10488s,@M4@,$M4,;t t
10489s,@LEX@,$LEX,;t t
10490s,@FLEX@,$FLEX,;t t
10491s,@MAKEINFO@,$MAKEINFO,;t t
10492s,@EXPECT@,$EXPECT,;t t
10493s,@RUNTEST@,$RUNTEST,;t t
10494s,@AR@,$AR,;t t
10495s,@AS@,$AS,;t t
10496s,@DLLTOOL@,$DLLTOOL,;t t
10497s,@LD@,$LD,;t t
10498s,@LIPO@,$LIPO,;t t
10499s,@NM@,$NM,;t t
10500s,@RANLIB@,$RANLIB,;t t
10501s,@STRIP@,$STRIP,;t t
10502s,@WINDRES@,$WINDRES,;t t
10503s,@OBJCOPY@,$OBJCOPY,;t t
10504s,@OBJDUMP@,$OBJDUMP,;t t
10505s,@CXX@,$CXX,;t t
10506s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
10507s,@CXXFLAGS@,$CXXFLAGS,;t t
10508s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
10509s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
10510s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
10511s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
10512s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
10513s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
10514s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
10515s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10516s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10517s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10518s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10519s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10520s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10521s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10522s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10523s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10524s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10525s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10526s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10527s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10528s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10529s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10530s,@MAINT@,$MAINT,;t t
10531s,@stage1_cflags@,$stage1_cflags,;t t
10532s,@stage1_checking@,$stage1_checking,;t t
10533s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10534s,@datarootdir@,$datarootdir,;t t
10535s,@docdir@,$docdir,;t t
10536s,@htmldir@,$htmldir,;t t
10537s,@LIBOBJS@,$LIBOBJS,;t t
10538s,@LTLIBOBJS@,$LTLIBOBJS,;t t
671aa708 10539/@serialization_dependencies@/r $serialization_dependencies
1c710c3c 10540s,@serialization_dependencies@,,;t t
671aa708 10541/@host_makefile_frag@/r $host_makefile_frag
1c710c3c 10542s,@host_makefile_frag@,,;t t
671aa708 10543/@target_makefile_frag@/r $target_makefile_frag
1c710c3c 10544s,@target_makefile_frag@,,;t t
671aa708 10545/@alphaieee_frag@/r $alphaieee_frag
1c710c3c 10546s,@alphaieee_frag@,,;t t
671aa708 10547/@ospace_frag@/r $ospace_frag
1c710c3c 10548s,@ospace_frag@,,;t t
671aa708 10549CEOF
79c06341 10550
1c710c3c
DJ
10551_ACEOF
10552
10553 cat >>$CONFIG_STATUS <<\_ACEOF
10554 # Split the substitutions into bite-sized pieces for seds with
10555 # small command number limits, like on Digital OSF/1 and HP-UX.
10556 ac_max_sed_lines=48
10557 ac_sed_frag=1 # Number of current file.
10558 ac_beg=1 # First line for current file.
10559 ac_end=$ac_max_sed_lines # Line after last line for current file.
10560 ac_more_lines=:
10561 ac_sed_cmds=
10562 while $ac_more_lines; do
10563 if test $ac_beg -gt 1; then
10564 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10565 else
10566 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10567 fi
10568 if test ! -s $tmp/subs.frag; then
10569 ac_more_lines=false
671aa708 10570 else
1c710c3c
DJ
10571 # The purpose of the label and of the branching condition is to
10572 # speed up the sed processing (if there are no `@' at all, there
10573 # is no need to browse any of the substitutions).
10574 # These are the two extra sed commands mentioned above.
10575 (echo ':t
10576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10577 if test -z "$ac_sed_cmds"; then
10578 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10579 else
10580 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10581 fi
10582 ac_sed_frag=`expr $ac_sed_frag + 1`
10583 ac_beg=$ac_end
10584 ac_end=`expr $ac_end + $ac_max_sed_lines`
671aa708 10585 fi
1c710c3c
DJ
10586 done
10587 if test -z "$ac_sed_cmds"; then
10588 ac_sed_cmds=cat
4977bab6 10589 fi
1c710c3c 10590fi # test -n "$CONFIG_FILES"
79c06341 10591
1c710c3c
DJ
10592_ACEOF
10593cat >>$CONFIG_STATUS <<\_ACEOF
10594for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
671aa708 10595 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1c710c3c
DJ
10596 case $ac_file in
10597 - | *:- | *:-:* ) # input from stdin
10598 cat >$tmp/stdin
10599 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10600 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10601 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10602 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10603 * ) ac_file_in=$ac_file.in ;;
671aa708 10604 esac
79c06341 10605
1c710c3c
DJ
10606 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10607 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10608$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10609 X"$ac_file" : 'X\(//\)[^/]' \| \
10610 X"$ac_file" : 'X\(//\)$' \| \
10611 X"$ac_file" : 'X\(/\)' \| \
10612 . : '\(.\)' 2>/dev/null ||
10613echo X"$ac_file" |
10614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10616 /^X\(\/\/\)$/{ s//\1/; q; }
10617 /^X\(\/\).*/{ s//\1/; q; }
10618 s/.*/./; q'`
10619 { if $as_mkdir_p; then
10620 mkdir -p "$ac_dir"
af71363e 10621 else
1c710c3c
DJ
10622 as_dir="$ac_dir"
10623 as_dirs=
10624 while test ! -d "$as_dir"; do
10625 as_dirs="$as_dir $as_dirs"
10626 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10627$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10628 X"$as_dir" : 'X\(//\)[^/]' \| \
10629 X"$as_dir" : 'X\(//\)$' \| \
10630 X"$as_dir" : 'X\(/\)' \| \
10631 . : '\(.\)' 2>/dev/null ||
10632echo X"$as_dir" |
10633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10635 /^X\(\/\/\)$/{ s//\1/; q; }
10636 /^X\(\/\).*/{ s//\1/; q; }
10637 s/.*/./; q'`
10638 done
10639 test ! -n "$as_dirs" || mkdir $as_dirs
10640 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10641echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10642 { (exit 1); exit 1; }; }; }
10643
10644 ac_builddir=.
0b0dc272 10645
1c710c3c
DJ
10646if test "$ac_dir" != .; then
10647 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10648 # A "../" for each directory in $ac_dir_suffix.
10649 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10650else
10651 ac_dir_suffix= ac_top_builddir=
10652fi
10653
10654case $srcdir in
10655 .) # No --srcdir option. We are building in place.
10656 ac_srcdir=.
10657 if test -z "$ac_top_builddir"; then
10658 ac_top_srcdir=.
10659 else
10660 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10661 fi ;;
10662 [\\/]* | ?:[\\/]* ) # Absolute path.
10663 ac_srcdir=$srcdir$ac_dir_suffix;
10664 ac_top_srcdir=$srcdir ;;
671aa708 10665 *) # Relative path.
1c710c3c
DJ
10666 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10667 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10668esac
a4b9e93e 10669
1c710c3c
DJ
10670# Do not use `cd foo && pwd` to compute absolute paths, because
10671# the directories may not exist.
10672case `pwd` in
10673.) ac_abs_builddir="$ac_dir";;
10674*)
10675 case "$ac_dir" in
10676 .) ac_abs_builddir=`pwd`;;
10677 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10678 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10679 esac;;
10680esac
10681case $ac_abs_builddir in
10682.) ac_abs_top_builddir=${ac_top_builddir}.;;
10683*)
10684 case ${ac_top_builddir}. in
10685 .) ac_abs_top_builddir=$ac_abs_builddir;;
10686 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10687 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10688 esac;;
10689esac
10690case $ac_abs_builddir in
10691.) ac_abs_srcdir=$ac_srcdir;;
10692*)
10693 case $ac_srcdir in
10694 .) ac_abs_srcdir=$ac_abs_builddir;;
10695 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10696 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10697 esac;;
10698esac
10699case $ac_abs_builddir in
10700.) ac_abs_top_srcdir=$ac_top_srcdir;;
10701*)
10702 case $ac_top_srcdir in
10703 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10704 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10705 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10706 esac;;
10707esac
0b0dc272 10708
1c710c3c
DJ
10709
10710 case $INSTALL in
10711 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10712 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 10713 esac
79c06341 10714
1c710c3c
DJ
10715 if test x"$ac_file" != x-; then
10716 { echo "$as_me:$LINENO: creating $ac_file" >&5
10717echo "$as_me: creating $ac_file" >&6;}
10718 rm -f "$ac_file"
10719 fi
10720 # Let's still pretend it is `configure' which instantiates (i.e., don't
10721 # use $as_me), people would be surprised to read:
10722 # /* config.h. Generated by config.status. */
10723 if test x"$ac_file" = x-; then
10724 configure_input=
10725 else
10726 configure_input="$ac_file. "
10727 fi
10728 configure_input=$configure_input"Generated from `echo $ac_file_in |
10729 sed 's,.*/,,'` by configure."
10730
10731 # First look for the input files in the build tree, otherwise in the
10732 # src tree.
10733 ac_file_inputs=`IFS=:
10734 for f in $ac_file_in; do
10735 case $f in
10736 -) echo $tmp/stdin ;;
10737 [\\/$]*)
10738 # Absolute (can't be DOS-style, as IFS=:)
10739 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10740echo "$as_me: error: cannot find input file: $f" >&2;}
10741 { (exit 1); exit 1; }; }
10742 echo "$f";;
10743 *) # Relative
10744 if test -f "$f"; then
10745 # Build tree
10746 echo "$f"
10747 elif test -f "$srcdir/$f"; then
10748 # Source tree
10749 echo "$srcdir/$f"
10750 else
10751 # /dev/null tree
10752 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10753echo "$as_me: error: cannot find input file: $f" >&2;}
10754 { (exit 1); exit 1; }; }
10755 fi;;
10756 esac
10757 done` || { (exit 1); exit 1; }
10758_ACEOF
10759cat >>$CONFIG_STATUS <<_ACEOF
10760 sed "$ac_vpsub
10761$extrasub
10762_ACEOF
10763cat >>$CONFIG_STATUS <<\_ACEOF
10764:t
10765/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10766s,@configure_input@,$configure_input,;t t
10767s,@srcdir@,$ac_srcdir,;t t
10768s,@abs_srcdir@,$ac_abs_srcdir,;t t
10769s,@top_srcdir@,$ac_top_srcdir,;t t
10770s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10771s,@builddir@,$ac_builddir,;t t
10772s,@abs_builddir@,$ac_abs_builddir,;t t
10773s,@top_builddir@,$ac_top_builddir,;t t
10774s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10775s,@INSTALL@,$ac_INSTALL,;t t
10776" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10777 rm -f $tmp/stdin
10778 if test x"$ac_file" != x-; then
10779 mv $tmp/out $ac_file
10780 else
10781 cat $tmp/out
10782 rm -f $tmp/out
10783 fi
79c06341 10784
1c710c3c
DJ
10785done
10786_ACEOF
79c06341 10787
1c710c3c 10788cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 10789
1c710c3c
DJ
10790{ (exit 0); exit 0; }
10791_ACEOF
671aa708 10792chmod +x $CONFIG_STATUS
1c710c3c
DJ
10793ac_clean_files=$ac_clean_files_save
10794
10795
10796# configure is writing to config.log, and then calls config.status.
10797# config.status does its own redirection, appending to config.log.
10798# Unfortunately, on DOS this fails, as config.log is still kept open
10799# by configure, so config.status won't be able to write to it; its
10800# output is simply discarded. So we exec the FD to /dev/null,
10801# effectively closing config.log, so it can be properly (re)opened and
10802# appended to by config.status. When coming back to configure, we
10803# need to make the FD available again.
10804if test "$no_create" != yes; then
10805 ac_cs_success=:
10806 ac_config_status_args=
10807 test "$silent" = yes &&
10808 ac_config_status_args="$ac_config_status_args --quiet"
10809 exec 5>/dev/null
10810 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10811 exec 5>>config.log
10812 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10813 # would make configure fail if this is the last instruction.
10814 $ac_cs_success || { (exit 1); exit 1; }
10815fi
79c06341 10816