Remove trailing zeros in array initializers.
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
c6b750e1 3# Generated by GNU Autoconf 2.59.
a0da8069 4#
c6b750e1 5# Copyright (C) 2003 Free Software Foundation, Inc.
a0da8069
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c6b750e1
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"
226
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
a0da8069 243
c6b750e1
DJ
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#
a0da8069 254ac_default_prefix=/usr/local
c6b750e1
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"
18f6b6ee 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 CXX CXXFLAGS ac_ct_CXX 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 CFLAGS_FOR_BUILD 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'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
a0da8069
NN
277
278# Initialize some variables set by options.
c6b750e1
DJ
279ac_init_help=
280ac_init_version=false
a0da8069
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
c6b750e1 283cache_file=/dev/null
a0da8069 284exec_prefix=NONE
a0da8069 285no_create=
a0da8069
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
a0da8069
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
c6b750e1
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.
a0da8069
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'
252b5132 315
a0da8069
NN
316ac_prev=
317for ac_option
318do
a0da8069
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
252b5132 325
c6b750e1 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
c6b750e1 330 case $ac_option in
a0da8069
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 335 bindir=$ac_optarg ;;
a0da8069
NN
336
337 -build | --build | --buil | --bui | --bu)
c6b750e1 338 ac_prev=build_alias ;;
a0da8069 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 340 build_alias=$ac_optarg ;;
a0da8069
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=*)
c6b750e1
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
a0da8069
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
c6b750e1 356 datadir=$ac_optarg ;;
a0da8069
NN
357
358 -disable-* | --disable-*)
c6b750e1 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 360 # Reject names that are not valid shell variable names.
c6b750e1
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" ;;
a0da8069
NN
366
367 -enable-* | --enable-*)
c6b750e1 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 369 # Reject names that are not valid shell variable names.
c6b750e1
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"`;;
a0da8069
NN
376 *) ac_optarg=yes ;;
377 esac
c6b750e1 378 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
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=*)
c6b750e1 387 exec_prefix=$ac_optarg ;;
a0da8069
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
c6b750e1
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 ;;
a0da8069
NN
399
400 -host | --host | --hos | --ho)
c6b750e1 401 ac_prev=host_alias ;;
a0da8069 402 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 403 host_alias=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 410 includedir=$ac_optarg ;;
a0da8069
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 415 infodir=$ac_optarg ;;
a0da8069
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 420 libdir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 427 libexecdir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 436 localstatedir=$ac_optarg ;;
a0da8069
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 441 mandir=$ac_optarg ;;
a0da8069
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 \
c6b750e1 448 | --no-cr | --no-c | -n)
a0da8069
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=*)
c6b750e1 462 oldincludedir=$ac_optarg ;;
a0da8069
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 467 prefix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 474 program_prefix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 481 program_suffix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 498 program_transform_name=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 508 sbindir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 519 sharedstatedir=$ac_optarg ;;
a0da8069
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
c6b750e1 524 site=$ac_optarg ;;
a0da8069
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 529 srcdir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 536 sysconfdir=$ac_optarg ;;
a0da8069
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 539 ac_prev=target_alias ;;
a0da8069 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 541 target_alias=$ac_optarg ;;
a0da8069
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
c6b750e1
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
a0da8069
NN
548
549 -with-* | --with-*)
c6b750e1 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 551 # Reject names that are not valid shell variable names.
c6b750e1
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; }; }
a0da8069 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
558 *) ac_optarg=yes ;;
559 esac
c6b750e1 560 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
561
562 -without-* | --without-*)
c6b750e1 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 564 # Reject names that are not valid shell variable names.
c6b750e1
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" ;;
a0da8069
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=*)
c6b750e1 580 x_includes=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 587 x_libraries=$ac_optarg ;;
a0da8069 588
c6b750e1
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
a0da8069
NN
592 ;;
593
c6b750e1
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
a0da8069 604 *)
c6b750e1
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}
a0da8069
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
c6b750e1
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; }; }
a0da8069 619fi
a0da8069 620
c6b750e1
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
a0da8069 631
c6b750e1
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
a0da8069 635do
c6b750e1
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; }; };;
a0da8069
NN
641 esac
642done
643
c6b750e1
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
376a0e54 650
c6b750e1
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
a0da8069 666
a0da8069
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.
c6b750e1
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'`
a0da8069
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
c6b750e1
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
a0da8069 695 else
c6b750e1
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
18f6b6ee
PB
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
c6b750e1
DJ
740
741#
742# Report the --help message.
743#
744if test "$ac_init_help" = "long"; then
745 # Omit some internal or obsolete options to make the list less imposing.
746 # This message is too long to be a string in the A/UX 3.1 sh.
747 cat <<_ACEOF
748\`configure' configures this package to adapt to many kinds of systems.
749
750Usage: $0 [OPTION]... [VAR=VALUE]...
751
752To assign environment variables (e.g., CC, CFLAGS...), specify them as
753VAR=VALUE. See below for descriptions of some of the useful variables.
754
755Defaults for the options are specified in brackets.
756
757Configuration:
758 -h, --help display this help and exit
759 --help=short display options specific to this package
760 --help=recursive display the short help of all the included packages
761 -V, --version display version information and exit
762 -q, --quiet, --silent do not print \`checking...' messages
763 --cache-file=FILE cache test results in FILE [disabled]
764 -C, --config-cache alias for \`--cache-file=config.cache'
765 -n, --no-create do not create output files
766 --srcdir=DIR find the sources in DIR [configure dir or \`..']
767
768_ACEOF
769
770 cat <<_ACEOF
771Installation directories:
772 --prefix=PREFIX install architecture-independent files in PREFIX
773 [$ac_default_prefix]
774 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
775 [PREFIX]
776
777By default, \`make install' will install all the files in
778\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
779an installation prefix other than \`$ac_default_prefix' using \`--prefix',
780for instance \`--prefix=\$HOME'.
781
782For better control, use the options below.
783
784Fine tuning of the installation directories:
785 --bindir=DIR user executables [EPREFIX/bin]
786 --sbindir=DIR system admin executables [EPREFIX/sbin]
787 --libexecdir=DIR program executables [EPREFIX/libexec]
788 --datadir=DIR read-only architecture-independent data [PREFIX/share]
789 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
790 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
791 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
792 --libdir=DIR object code libraries [EPREFIX/lib]
793 --includedir=DIR C header files [PREFIX/include]
794 --oldincludedir=DIR C header files for non-gcc [/usr/include]
795 --infodir=DIR info documentation [PREFIX/info]
796 --mandir=DIR man documentation [PREFIX/man]
797_ACEOF
798
799 cat <<\_ACEOF
800
801Program names:
802 --program-prefix=PREFIX prepend PREFIX to installed program names
803 --program-suffix=SUFFIX append SUFFIX to installed program names
804 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
805
806System types:
807 --build=BUILD configure for building on BUILD [guessed]
808 --host=HOST cross-compile to build programs to run on HOST [BUILD]
809 --target=TARGET configure for building compilers for TARGET [HOST]
810_ACEOF
a0da8069 811fi
a0da8069 812
c6b750e1
DJ
813if test -n "$ac_init_help"; then
814
815 cat <<\_ACEOF
816
817Optional Features:
818 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
819 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
820 --enable-libada Builds libada directory
821 --enable-libssp Builds libssp directory
822 --enable-stage1-languages=all choose additional languages to build during
823 stage1. Mostly useful for compiler development.
824 --enable-objc-gc enable the use of Boehm's garbage collector with
825 the GNU Objective-C runtime.
826 --enable-bootstrap Enable bootstrapping yes if native build
827 --enable-serial-{host,target,build}-configure
828 Force sequential configuration of
829 sub-packages for the host, target or build
830 machine, or all sub-packages
831 --enable-maintainer-mode enable make rules and dependencies not useful
832 (and sometimes confusing) to the casual installer
833 --enable-stage1-checking=all choose additional checking for stage1
834 of the compiler.
835 --enable-werror enable -Werror in bootstrap stage2 and later
836
837Optional Packages:
838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
840 --with-build-libsubdir=DIR Directory where to find libraries for build system
841 --with-mpfr-dir=PATH This option has been REMOVED
842 --with-mpfr=PATH Specify prefix directory for installed MPFR package
843 Equivalent to --with-mpfr-include=PATH/include
844 plus --with-mpfr-lib=PATH/lib
845 --with-mpfr-include=PATH
846 Specify directory for installed MPFR include files
847 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
848 --with-gmp-dir=PATH This option has been REMOVED
849 --with-gmp=PATH Specify prefix directory for the installed GMP package
850 Equivalent to --with-gmp-include=PATH/include
851 plus --with-gmp-lib=PATH/lib
852 --with-gmp-include=PATH Specify directory for installed GMP include files
853 --with-gmp-lib=PATH Specify the directory for the installed GMP library
854 --with-build-sysroot=sysroot
855 use sysroot as the system root during the build
856 --with-build-time-tools=path
857 use given path to find target tools during the build
858 --with-datarootdir Use datarootdir as the data root directory.
859 --with-docdir Install documentation in this directory.
860 --with-htmldir Install html in this directory.
861
862Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
18f6b6ee
PB
869 CXX C++ compiler command
870 CXXFLAGS C++ compiler flags
c6b750e1
DJ
871
872Use these variables to override the choices made by `configure' or to help
873it to find libraries and programs with nonstandard names/locations.
874
875_ACEOF
876fi
877
878if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
880 ac_popdir=`pwd`
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
883 ac_builddir=.
884
885if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889else
890 ac_dir_suffix= ac_top_builddir=
891fi
892
893case $srcdir in
894 .) # No --srcdir option. We are building in place.
895 ac_srcdir=.
896 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=.
898 else
899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 fi ;;
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
904 *) # Relative path.
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907esac
908
909# Do not use `cd foo && pwd` to compute absolute paths, because
910# the directories may not exist.
911case `pwd` in
912.) ac_abs_builddir="$ac_dir";;
913*)
914 case "$ac_dir" in
915 .) ac_abs_builddir=`pwd`;;
916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 esac;;
919esac
920case $ac_abs_builddir in
921.) ac_abs_top_builddir=${ac_top_builddir}.;;
922*)
923 case ${ac_top_builddir}. in
924 .) ac_abs_top_builddir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 esac;;
928esac
929case $ac_abs_builddir in
930.) ac_abs_srcdir=$ac_srcdir;;
931*)
932 case $ac_srcdir in
933 .) ac_abs_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 esac;;
937esac
938case $ac_abs_builddir in
939.) ac_abs_top_srcdir=$ac_top_srcdir;;
940*)
941 case $ac_top_srcdir in
942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
945 esac;;
946esac
947
948 cd $ac_dir
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
951 echo
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
954 echo
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
958 echo
959 $ac_configure --help
960 else
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962 fi
963 cd $ac_popdir
964 done
965fi
966
967test -n "$ac_init_help" && exit 0
968if $ac_init_version; then
969 cat <<\_ACEOF
970
971Copyright (C) 2003 Free Software Foundation, Inc.
972This configure script is free software; the Free Software Foundation
973gives unlimited permission to copy, distribute and modify it.
974_ACEOF
975 exit 0
976fi
977exec 5>config.log
978cat >&5 <<_ACEOF
979This file contains any messages produced by compilers while
980running configure, to aid debugging if configure makes a mistake.
981
982It was created by $as_me, which was
983generated by GNU Autoconf 2.59. Invocation command line was
984
985 $ $0 $@
986
987_ACEOF
988{
989cat <<_ASUNAME
990## --------- ##
991## Platform. ##
992## --------- ##
993
994hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995uname -m = `(uname -m) 2>/dev/null || echo unknown`
996uname -r = `(uname -r) 2>/dev/null || echo unknown`
997uname -s = `(uname -s) 2>/dev/null || echo unknown`
998uname -v = `(uname -v) 2>/dev/null || echo unknown`
999
1000/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002
1003/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1010
1011_ASUNAME
1012
1013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014for as_dir in $PATH
1015do
1016 IFS=$as_save_IFS
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1019done
1020
1021} >&5
1022
1023cat >&5 <<_ACEOF
1024
1025
1026## ----------- ##
1027## Core tests. ##
1028## ----------- ##
1029
1030_ACEOF
1031
1032
1033# Keep a trace of the command line.
1034# Strip out --no-create and --no-recursion so they do not pile up.
1035# Strip out --silent because we don't want to record it for future runs.
1036# Also quote any args containing shell meta-characters.
1037# Make two passes to allow for proper duplicate-argument suppression.
1038ac_configure_args=
1039ac_configure_args0=
1040ac_configure_args1=
1041ac_sep=
1042ac_must_keep_next=false
1043for ac_pass in 1 2
1044do
1045 for ac_arg
1046 do
1047 case $ac_arg in
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 continue ;;
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054 esac
1055 case $ac_pass in
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 2)
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1061 else
1062 case $ac_arg in
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 esac
1070 ;;
1071 -* ) ac_must_keep_next=true ;;
1072 esac
1073 fi
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1076 ac_sep=" "
1077 ;;
1078 esac
1079 done
1080done
1081$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083
1084# When interrupted or exit'd, cleanup temporary files, and complete
1085# config.log. We remove comments because anyway the quotes in there
1086# would cause problems or look ugly.
1087# WARNING: Be sure not to use single quotes in there, as some shells,
1088# such as our DU 5.0 friend, will then `close' the trap.
1089trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1091 {
1092 echo
1093
1094 cat <<\_ASBOX
1095## ---------------- ##
1096## Cache variables. ##
1097## ---------------- ##
1098_ASBOX
1099 echo
1100 # The following way of writing the cache mishandles newlines in values,
1101{
1102 (set) 2>&1 |
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 *ac_space=\ *)
1105 sed -n \
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108 ;;
1109 *)
1110 sed -n \
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 ;;
1113 esac;
1114}
1115 echo
1116
1117 cat <<\_ASBOX
1118## ----------------- ##
1119## Output variables. ##
1120## ----------------- ##
1121_ASBOX
1122 echo
1123 for ac_var in $ac_subst_vars
1124 do
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1127 done | sort
1128 echo
1129
1130 if test -n "$ac_subst_files"; then
1131 cat <<\_ASBOX
1132## ------------- ##
1133## Output files. ##
1134## ------------- ##
1135_ASBOX
1136 echo
1137 for ac_var in $ac_subst_files
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143 fi
1144
1145 if test -s confdefs.h; then
1146 cat <<\_ASBOX
1147## ----------- ##
1148## confdefs.h. ##
1149## ----------- ##
1150_ASBOX
1151 echo
1152 sed "/^$/d" confdefs.h | sort
1153 echo
1154 fi
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1158 } >&5
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 exit $exit_status
1162 ' 0
1163for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165done
1166ac_signal=0
1167
1168# confdefs.h avoids OS command line length limits that DEFS can exceed.
1169rm -rf conftest* confdefs.h
1170# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171echo >confdefs.h
1172
1173# Predefined preprocessor variables.
1174
1175cat >>confdefs.h <<_ACEOF
1176#define PACKAGE_NAME "$PACKAGE_NAME"
1177_ACEOF
1178
1179
1180cat >>confdefs.h <<_ACEOF
1181#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182_ACEOF
1183
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_VERSION "$PACKAGE_VERSION"
1187_ACEOF
1188
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_STRING "$PACKAGE_STRING"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197_ACEOF
1198
1199
1200# Let the site file select an alternate cache file if it wants to.
a0da8069 1201# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1202if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 else
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1207 fi
1208fi
1209for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
c6b750e1
DJ
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1214 . "$ac_site_file"
1215 fi
1216done
1217
1218if test -r "$cache_file"; then
c6b750e1
DJ
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223echo "$as_me: loading cache $cache_file" >&6;}
1224 case $cache_file in
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1227 esac
1228 fi
a0da8069 1229else
c6b750e1
DJ
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231echo "$as_me: creating cache $cache_file" >&6;}
1232 >$cache_file
1233fi
1234
1235# Check that the precious variables saved in the cache have kept the same
1236# value.
1237ac_cache_corrupted=false
1238for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1245 set,)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,set)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,);;
1254 *)
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted=:
1263 fi;;
1264 esac
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1267 case $ac_new_val in
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg=$ac_var=$ac_new_val ;;
1271 esac
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275 esac
1276 fi
1277done
1278if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
a0da8069
NN
1284fi
1285
1286ac_ext=c
a0da8069 1287ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290ac_compiler_gnu=$ac_cv_c_compiler_gnu
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
a0da8069
NN
1304
1305
75778ec4 1306
c6b750e1
DJ
1307
1308
1309
1310
1311
1312# Find the build, host, and target systems.
a0da8069 1313ac_aux_dir=
315b3b02 1314for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1315 if test -f $ac_dir/install-sh; then
1316 ac_aux_dir=$ac_dir
1317 ac_install_sh="$ac_aux_dir/install-sh -c"
1318 break
1319 elif test -f $ac_dir/install.sh; then
1320 ac_aux_dir=$ac_dir
1321 ac_install_sh="$ac_aux_dir/install.sh -c"
1322 break
c6b750e1
DJ
1323 elif test -f $ac_dir/shtool; then
1324 ac_aux_dir=$ac_dir
1325 ac_install_sh="$ac_aux_dir/shtool install -c"
1326 break
a0da8069
NN
1327 fi
1328done
1329if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1330 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1331echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1332 { (exit 1); exit 1; }; }
a0da8069 1333fi
c6b750e1
DJ
1334ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1335ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1336ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1337
c6b750e1
DJ
1338# Make sure we can run config.sub.
1339$ac_config_sub sun4 >/dev/null 2>&1 ||
1340 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1341echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1342 { (exit 1); exit 1; }; }
1343
1344echo "$as_me:$LINENO: checking build system type" >&5
1345echo $ECHO_N "checking build system type... $ECHO_C" >&6
1346if test "${ac_cv_build+set}" = set; then
1347 echo $ECHO_N "(cached) $ECHO_C" >&6
1348else
1349 ac_cv_build_alias=$build_alias
1350test -z "$ac_cv_build_alias" &&
1351 ac_cv_build_alias=`$ac_config_guess`
1352test -z "$ac_cv_build_alias" &&
1353 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1354echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1355 { (exit 1); exit 1; }; }
1356ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1357 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1358echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1359 { (exit 1); exit 1; }; }
1360
1361fi
1362echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1363echo "${ECHO_T}$ac_cv_build" >&6
1364build=$ac_cv_build
1365build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1366build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1367build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1368
a0da8069 1369
c6b750e1
DJ
1370 case ${build_alias} in
1371 "") build_noncanonical=${build} ;;
1372 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1373esac
1374
1375
cac3d6c4 1376
c6b750e1
DJ
1377 case ${host_alias} in
1378 "") host_noncanonical=${build_noncanonical} ;;
1379 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1380esac
1381
cac3d6c4 1382
c6b750e1
DJ
1383
1384 case ${target_alias} in
1385 "") target_noncanonical=${host_noncanonical} ;;
1386 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1387esac
1388
cac3d6c4 1389
c6b750e1
DJ
1390
1391
1392test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1393 test "$program_prefix$program_suffix$program_transform_name" = \
1394 NONENONEs,x,x, &&
c6b750e1 1395 program_transform_name=s,y,y,
cac3d6c4 1396
c6b750e1
DJ
1397echo "$as_me:$LINENO: checking host system type" >&5
1398echo $ECHO_N "checking host system type... $ECHO_C" >&6
1399if test "${ac_cv_host+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1401else
c6b750e1
DJ
1402 ac_cv_host_alias=$host_alias
1403test -z "$ac_cv_host_alias" &&
1404 ac_cv_host_alias=$ac_cv_build_alias
1405ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1406 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1407echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1408 { (exit 1); exit 1; }; }
1409
1410fi
1411echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1412echo "${ECHO_T}$ac_cv_host" >&6
1413host=$ac_cv_host
1414host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1415host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1416host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1417
1418
1419echo "$as_me:$LINENO: checking target system type" >&5
1420echo $ECHO_N "checking target system type... $ECHO_C" >&6
1421if test "${ac_cv_target+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1423else
1424 ac_cv_target_alias=$target_alias
1425test "x$ac_cv_target_alias" = "x" &&
1426 ac_cv_target_alias=$ac_cv_host_alias
1427ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1428 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1429echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1430 { (exit 1); exit 1; }; }
1431
cac3d6c4 1432fi
c6b750e1
DJ
1433echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1434echo "${ECHO_T}$ac_cv_target" >&6
1435target=$ac_cv_target
1436target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1437target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1438target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1439
1440
1441# The aliases save the names the user supplied, while $host etc.
1442# will get canonicalized.
1443test -n "$target_alias" &&
1444 test "$program_prefix$program_suffix$program_transform_name" = \
1445 NONENONEs,x,x, &&
1446 program_prefix=${target_alias}-
a0da8069 1447test "$program_prefix" != NONE &&
c6b750e1 1448 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1449# Use a double $ so make ignores it.
1450test "$program_suffix" != NONE &&
c6b750e1
DJ
1451 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1452# Double any \ or $. echo might interpret backslashes.
1453# By default was `s,x,x', remove it if useless.
1454cat <<\_ACEOF >conftest.sed
1455s/[\\$]/&&/g;s/;s,x,x,$//
1456_ACEOF
1457program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1458rm conftest.sed
cac3d6c4 1459
a0da8069
NN
1460
1461
e5c3f801
NN
1462# Get 'install' or 'install-sh' and its variants.
1463# Find a good install program. We prefer a C program (faster),
1464# so one script is as good as another. But avoid the broken or
1465# incompatible versions:
1466# SysV /etc/install, /usr/sbin/install
1467# SunOS /usr/etc/install
1468# IRIX /sbin/install
1469# AIX /bin/install
c6b750e1 1470# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1471# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1472# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1473# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1474# OS/2's system install, which has a completely different semantic
e5c3f801 1475# ./install, which can be erroneously created by make from ./install.sh.
c6b750e1
DJ
1476echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1477echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1478if test -z "$INSTALL"; then
c6b750e1
DJ
1479if test "${ac_cv_path_install+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1481else
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483for as_dir in $PATH
1484do
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 # Account for people who put trailing slashes in PATH elements.
1488case $as_dir/ in
1489 ./ | .// | /cC/* | \
1490 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1491 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1492 /usr/ucb/* ) ;;
1493 *)
1494 # OSF1 and SCO ODT 3.0 have their own names for install.
1495 # Don't use installbsd from OSF since it installs stuff as root
1496 # by default.
1497 for ac_prog in ginstall scoinst install; do
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1500 if test $ac_prog = install &&
c6b750e1 1501 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1502 # AIX install. It has an incompatible calling convention.
1503 :
c6b750e1
DJ
1504 elif test $ac_prog = install &&
1505 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1506 # program-specific install script used by HP pwplus--don't use.
1507 :
e5c3f801 1508 else
c6b750e1
DJ
1509 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1510 break 3
e5c3f801
NN
1511 fi
1512 fi
1513 done
c6b750e1
DJ
1514 done
1515 ;;
1516esac
1517done
1518
e5c3f801
NN
1519
1520fi
1521 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1522 INSTALL=$ac_cv_path_install
e5c3f801
NN
1523 else
1524 # As a last resort, use the slow shell script. We don't cache a
1525 # path for INSTALL within a source directory, because that will
1526 # break other packages using the cache if that directory is
1527 # removed, or if the path is relative.
c6b750e1 1528 INSTALL=$ac_install_sh
e5c3f801
NN
1529 fi
1530fi
c6b750e1
DJ
1531echo "$as_me:$LINENO: result: $INSTALL" >&5
1532echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1533
1534# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1535# It thinks the first close brace ends the variable substitution.
1536test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1537
c6b750e1 1538test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1539
1540test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1541
c6b750e1
DJ
1542echo "$as_me:$LINENO: checking whether ln works" >&5
1543echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1544if test "${acx_cv_prog_LN+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1546else
1547 rm -f conftestdata_t
1548echo >conftestdata_f
1549if ln conftestdata_f conftestdata_t 2>/dev/null
1550then
1551 acx_cv_prog_LN=ln
1552else
1553 acx_cv_prog_LN=no
1554fi
1555rm -f conftestdata_f conftestdata_t
1556
1557fi
1558if test $acx_cv_prog_LN = no; then
1559 LN="cp"
c6b750e1
DJ
1560 echo "$as_me:$LINENO: result: no, using $LN" >&5
1561echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1562else
1563 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1564 echo "$as_me:$LINENO: result: yes" >&5
1565echo "${ECHO_T}yes" >&6
656fdd47
PB
1566fi
1567
c6b750e1
DJ
1568echo "$as_me:$LINENO: checking whether ln -s works" >&5
1569echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1570LN_S=$as_ln_s
1571if test "$LN_S" = "ln -s"; then
1572 echo "$as_me:$LINENO: result: yes" >&5
1573echo "${ECHO_T}yes" >&6
cac3d6c4 1574else
c6b750e1
DJ
1575 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1576echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1577fi
1578
e5c3f801 1579
252b5132 1580### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1581### If we are on Windows, search for the shell. This will permit people
1582### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1583### without also having to set CONFIG_SHELL. This code will work when
1584### using bash, which sets OSTYPE.
1585case "${OSTYPE}" in
1586*win32*)
a0da8069
NN
1587 if test x${CONFIG_SHELL} = x ; then
1588 if test ! -f /bin/sh ; then
1589 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1590 CONFIG_SHELL=${SHELL}
1591 export CONFIG_SHELL
1592 else
1593 for prog in sh sh.exe bash bash.exe; do
1594 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1595 for dir in $PATH; do
1596 test -z "$dir" && dir=.
1597 if test -f $dir/$prog; then
1598 CONFIG_SHELL=$dir/$prog
1599 export CONFIG_SHELL
1600 break
1601 fi
1602 done
1603 IFS="$save_ifs"
1604 test -n "${CONFIG_SHELL}" && break
1605 done
1606 fi
1607 fi
1608 fi
1609 ;;
1610esac
1611
1612config_shell=${CONFIG_SHELL-/bin/sh}
1613
252b5132
RH
1614progname=$0
1615# if PWD already has a value, it is probably wrong.
a0da8069 1616if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1617
d2cc0e0d 1618# Export original configure arguments for use by sub-configures. These
8ff944f6
DJ
1619# will be expanded by make, so quote '$'.
1620tmp="$progname $@"
1621sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
1622$tmp
d2cc0e0d 1623EOF_SED
8ff944f6
DJ
1624TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
1625rm -f conftestsed.out
586c0873 1626
75205f78 1627
a0da8069 1628moveifchange=${srcdir}/move-if-change
252b5132 1629
0fdbe983
DJ
1630srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1631
1632# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1633# a relative path.
1634if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1635 INSTALL="${srcpwd}/install-sh -c"
1636fi
1637
a0da8069
NN
1638# Set srcdir to "." if that's what it is.
1639# This is important for multilib support.
1640pwd=`${PWDCMD-pwd}`
a0da8069
NN
1641if test "${pwd}" = "${srcpwd}" ; then
1642 srcdir=.
252b5132
RH
1643fi
1644
a0da8069 1645topsrcdir=$srcpwd
252b5132 1646
a0da8069 1647extra_host_args=
afefada0 1648
a0da8069
NN
1649### To add a new directory to the tree, first choose whether it is a target
1650### or a host dependent tool. Then put it into the appropriate list
1651### (library or tools, host or target), doing a dependency sort.
252b5132 1652
c6b750e1 1653# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1654# configdirs, or target_configdirs; see the serialization section below.
252b5132 1655
c6b750e1
DJ
1656# Dependency sorting is only needed when *configuration* must be done in
1657# a particular order. In all cases a dependency should be specified in
a0da8069 1658# the Makefile, whether or not it's implicitly specified here.
252b5132 1659
a0da8069
NN
1660# Double entries in build_configdirs, configdirs, or target_configdirs may
1661# cause circular dependencies and break everything horribly.
252b5132 1662
6a9cf61e
PB
1663# these library is used by various programs built for the build
1664# environment
1665#
1666build_libs="build-libiberty"
1667
1668# these tools are built for the build environment
ee025550 1669build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1670
a0da8069
NN
1671# these libraries are used by various programs built for the host environment
1672#
4b900473 1673host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1674
a0da8069
NN
1675# these tools are built for the host environment
1676# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1677# know that we are building the simulator.
1678# binutils, gas and ld appear in that order because it makes sense to run
1679# "make check" in that particular order.
b00612cc 1680host_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"
a0da8069
NN
1681
1682# libgcj represents the runtime libraries only used by gcj.
1683libgcj="target-libffi \
a0da8069
NN
1684 target-zlib \
1685 target-qthreads \
1686 target-libjava"
1687
1688# these libraries are built for the target environment, and are built after
1689# the host libraries and the host tools (which may be a cross compiler)
1690#
9c14acb8 1691target_libraries="target-libiberty \
6aa8ef82 1692 target-libgcc \
a0da8069
NN
1693 target-libgloss \
1694 target-newlib \
b9459e83 1695 target-libstdc++-v3 \
4b1cb4fe 1696 target-libmudflap \
bb780410 1697 target-libssp \
4b1cb4fe 1698 target-libgfortran \
4f0ef2d8 1699 target-boehm-gc \
83326456 1700 ${libgcj} \
a2592b1b 1701 target-libobjc \
b3ded179
PB
1702 target-libada \
1703 target-libgomp"
a0da8069 1704
9c14acb8
NN
1705# these tools are built using the target libraries, and are intended to
1706# run only in the target environment
a0da8069 1707#
9c14acb8 1708# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1709# list belongs in this list. those programs are also very likely
1710# candidates for the "native_only" list which follows
1711#
a3dd767d 1712target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1713
a0da8069 1714################################################################################
252b5132 1715
a0da8069
NN
1716## All tools belong in one of the four categories, and are assigned above
1717## We assign ${configdirs} this way to remove all embedded newlines. This
1718## is important because configure will choke if they ever get through.
1719## ${configdirs} is directories we build using the host tools.
1720## ${target_configdirs} is directories we build using the target tools.
a0da8069 1721configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1722target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1723build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1724
a0da8069 1725################################################################################
252b5132 1726
a0da8069 1727srcname="gnu development package"
252b5132 1728
a0da8069
NN
1729# This gets set non-empty for some net releases of packages.
1730appdirs=""
252b5132 1731
a0da8069
NN
1732# Define is_cross_compiler to save on calls to 'test'.
1733is_cross_compiler=
1734if test x"${host}" = x"${target}" ; then
1735 is_cross_compiler=no
252b5132 1736else
a0da8069 1737 is_cross_compiler=yes
c6b750e1 1738fi
252b5132 1739
9175bfc0 1740# Find the build and target subdir names.
dd12c3a8 1741
66a79c16
DJ
1742# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1743# have matching libraries, they should use host libraries: Makefile.tpl
1744# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1745# However, they still use the build modules, because the corresponding
1746# host modules (e.g. bison) are only built for the host when bootstrap
1747# finishes. So:
1748# - build_subdir is where we find build modules, and never changes.
1749# - build_libsubdir is where we find build libraries, and can be overridden.
1750
1751# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1752build_subdir="build-${build_noncanonical}"
c6b750e1 1753
66a79c16
DJ
1754# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1755if test "${with_build_libsubdir+set}" = set; then
1756 withval="$with_build_libsubdir"
1757 build_libsubdir="$withval"
1758else
1759 build_libsubdir="$build_subdir"
c6b750e1 1760fi;
b00612cc
PB
1761# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1762if ( test $srcdir = . && test -d gcc ) \
1763 || test -d $srcdir/../host-${host_noncanonical}; then
1764 host_subdir="host-${host_noncanonical}"
1765else
1766 host_subdir=.
1767fi
dd12c3a8
NN
1768# No prefix.
1769target_subdir=${target_noncanonical}
c6b750e1 1770
252b5132 1771
a0da8069
NN
1772# Skipdirs are removed silently.
1773skipdirs=
1774# Noconfigdirs are removed loudly.
1775noconfigdirs=""
252b5132 1776
a0da8069
NN
1777use_gnu_ld=
1778# Make sure we don't let GNU ld be added if we didn't want it.
1779if test x$with_gnu_ld = xno ; then
1780 use_gnu_ld=no
1781 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1782fi
1783
a0da8069
NN
1784use_gnu_as=
1785# Make sure we don't let GNU as be added if we didn't want it.
1786if test x$with_gnu_as = xno ; then
1787 use_gnu_as=no
1788 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1789fi
1790
c6b750e1 1791# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1792# it's not even worth trying to configure, much less build, that tool.
252b5132 1793
a0da8069
NN
1794case ${with_x} in
1795 yes | "") ;; # the default value for this tree is that X11 is available
1796 no)
675c6968 1797 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1798 # We won't be able to build gdbtk without X.
c6b750e1 1799 enable_gdbtk=no
a0da8069
NN
1800 ;;
1801 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1802esac
252b5132 1803
a0da8069 1804# Some tools are only suitable for building in a "native" situation.
c6b750e1 1805# Remove these if host!=target.
701628f5 1806native_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"
252b5132 1807
a0da8069
NN
1808# Similarly, some are only suitable for cross toolchains.
1809# Remove these if host=target.
1810cross_only="target-libgloss target-newlib target-opcodes"
1811
1812case $is_cross_compiler in
1813 no) skipdirs="${skipdirs} ${cross_only}" ;;
1814 yes) skipdirs="${skipdirs} ${native_only}" ;;
1815esac
252b5132 1816
a0da8069
NN
1817# If both --with-headers and --with-libs are specified, default to
1818# --without-newlib.
32be62b5
RS
1819if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1820 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1821 if test x"${with_newlib}" = x ; then
1822 with_newlib=no
1823 fi
252b5132
RH
1824fi
1825
a0da8069
NN
1826# Recognize --with-newlib/--without-newlib.
1827case ${with_newlib} in
1828 no) skipdirs="${skipdirs} target-newlib" ;;
1829 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1830esac
252b5132 1831
a0da8069 1832# Configure extra directories which are host specific
252b5132 1833
a0da8069
NN
1834case "${host}" in
1835 *-cygwin*)
1836 configdirs="$configdirs libtermcap" ;;
1837esac
252b5132 1838
59f7ec45
HPN
1839# A target can indicate whether a language isn't supported for some reason.
1840# Only spaces may be used in this macro; not newlines or tabs.
1841unsupported_languages=
1842
c6b750e1 1843# Remove more programs from consideration, based on the host or
a0da8069
NN
1844# target this usually means that a port of the program doesn't
1845# exist yet.
252b5132 1846
a0da8069
NN
1847case "${host}" in
1848 hppa*64*-*-*)
1849 noconfigdirs="$noconfigdirs byacc"
1850 ;;
ec11bdc6 1851 i[3456789]86-*-vsta)
675c6968 1852 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 1853 ;;
ec11bdc6 1854 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 1855 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 1856 ;;
2d1e8239
NC
1857 x86_64-*-mingw*)
1858 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1859 ;;
ec11bdc6 1860 i[3456789]86-*-mingw32*)
675c6968 1861 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 1862 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 1863 ;;
ec11bdc6 1864 i[3456789]86-*-beos*)
675c6968 1865 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 1866 ;;
a0da8069 1867 *-*-cygwin*)
a92834c8 1868 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
1869 ;;
1870 *-*-netbsd*)
a92834c8 1871 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
1872 ;;
1873 ppc*-*-pe)
675c6968 1874 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
1875 ;;
1876 powerpc-*-beos*)
675c6968 1877 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 1878 ;;
a0da8069 1879esac
252b5132 1880
4b1cb4fe 1881
a2592b1b
DD
1882# Check whether --enable-libada or --disable-libada was given.
1883if test "${enable_libada+set}" = set; then
1884 enableval="$enable_libada"
1885 ENABLE_LIBADA=$enableval
1886else
1887 ENABLE_LIBADA=yes
c6b750e1 1888fi;
a2592b1b 1889if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 1890 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
1891fi
1892
5f128533
KH
1893# Check whether --enable-libssp or --disable-libssp was given.
1894if test "${enable_libssp+set}" = set; then
1895 enableval="$enable_libssp"
1896 ENABLE_LIBSSP=$enableval
1897else
1898 ENABLE_LIBSSP=yes
c6b750e1 1899fi;
5f128533 1900
a0da8069
NN
1901# Save it here so that, even in case of --enable-libgcj, if the Java
1902# front-end isn't enabled, we still get libgcj disabled.
1903libgcj_saved=$libgcj
1904case $enable_libgcj in
1905yes)
1906 # If we reset it here, it won't get added to noconfigdirs in the
1907 # target-specific build rules, so it will be forcibly enabled
1908 # (unless the Java language itself isn't enabled).
1909 libgcj=
1910 ;;
1911no)
1912 # Make sure we get it printed in the list of not supported target libs.
1913 noconfigdirs="$noconfigdirs ${libgcj}"
1914 ;;
1915esac
252b5132 1916
4b1cb4fe 1917
a6df5a19
PB
1918# Disable libmudflap on some systems.
1919if test x$enable_libmudflap = x ; then
3e707e94 1920 case "${target}" in
b3ded179 1921 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
3d6dfe0f 1922 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
1923 ;;
1924 *-*-freebsd*)
1925 # Enable libmudflap by default in FreeBSD.
1926 ;;
1927 *)
1928 # Disable it by default everywhere else.
1929 noconfigdirs="$noconfigdirs target-libmudflap"
1930 ;;
1931 esac
a6df5a19 1932fi
4b1cb4fe 1933
a6df5a19
PB
1934# Disable libgomp on non POSIX hosted systems.
1935if test x$enable_libgomp = x ; then
b3ded179
PB
1936 # Enable libgomp by default on hosted POSIX systems.
1937 case "${target}" in
1938 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1939 ;;
1940 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1941 ;;
64ce424c 1942 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
1943 ;;
1944 *-*-darwin* | *-*-aix*)
1945 ;;
1946 *)
1947 noconfigdirs="$noconfigdirs target-libgomp"
1948 ;;
1949 esac
a6df5a19 1950fi
b3ded179 1951
4b1cb4fe 1952
a0da8069
NN
1953case "${target}" in
1954 *-*-chorusos)
54d1c879 1955 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 1956 ;;
790c0838 1957 powerpc-*-darwin* | i[3456789]86-*-darwin*)
b3f16a9b 1958 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 1959 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 1960 ;;
04d1ab34 1961 *-*-darwin*)
d320aacb 1962 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 1963 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 1964 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 1965 ;;
a0da8069 1966 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 1967 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 1968 ;;
de0b4a87 1969 *-*-freebsd*)
4b1cb4fe
DD
1970 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1971 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1972 && test -f /usr/local/include/gmp.h; then
1973 with_gmp=/usr/local
1974 fi
1975
1976 # Skip some stuff that's unsupported on some FreeBSD configurations.
1977 case "${target}" in
1978 i*86-*-*) ;;
1979 alpha*-*-*) ;;
1980 *)
54d1c879 1981 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
1982 ;;
1983 esac
1984 ;;
f8a495c8
NC
1985 *-*-kaos*)
1986 # Remove unsupported stuff on all kaOS configurations.
54d1c879 1987 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
1988 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1989 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1990 noconfigdirs="$noconfigdirs target-libgloss"
1991 ;;
a0da8069
NN
1992 *-*-netbsd*)
1993 # Skip some stuff on all NetBSD configurations.
1994 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1995
1996 # Skip some stuff that's unsupported on some NetBSD configurations.
1997 case "${target}" in
1998 i*86-*-netbsdelf*) ;;
5b474aa8 1999 arm*-*-netbsdelf*) ;;
a0da8069 2000 *)
54d1c879 2001 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2002 ;;
2003 esac
2004 ;;
2a3124ca 2005 *-*-netware*)
54d1c879 2006 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2007 ;;
2008 *-*-rtems*)
54d1c879 2009 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2010 ;;
1587117a
EC
2011 # The tpf target doesn't support gdb yet.
2012 *-*-tpf*)
54d1c879 2013 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2014 ;;
c1968181 2015 *-*-uclinux*)
54d1c879 2016 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2017 ;;
a0da8069 2018 *-*-vxworks*)
54d1c879 2019 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2020 ;;
2021 alpha*-dec-osf*)
2022 # ld works, but does not support shared libraries.
2023 # newlib is not 64 bit ready. I'm not sure about fileutils.
2024 # gas doesn't generate exception information.
2025 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2026 ;;
2027 alpha*-*-*vms*)
54d1c879 2028 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2029 ;;
2030 alpha*-*-linux*)
2031 # newlib is not 64 bit ready
2032 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2033 ;;
a0da8069
NN
2034 alpha*-*-*)
2035 # newlib is not 64 bit ready
54d1c879 2036 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2037 ;;
4a18bd6b 2038 am33_2.0-*-linux*)
54d1c879 2039 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2040 ;;
a0da8069 2041 sh-*-linux*)
54d1c879 2042 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2043 ;;
a0da8069 2044 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2045 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2046 noconfigdirs="$noconfigdirs target-examples"
2047 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2048 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2049 noconfigdirs="$noconfigdirs expect dejagnu"
2050 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2051 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2052 noconfigdirs="$noconfigdirs target-newlib"
2053 case "${host}" in
2054 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2055 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2056 ;;
2057 esac
2058 ;;
2059 arc-*-*)
54d1c879 2060 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2061 ;;
caeba88f 2062 arm-semi-aof )
caeba88f 2063 ;;
a0da8069 2064 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2065 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2066 ;;
11b04d1f 2067 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069
NN
2068 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2069 ;;
bd70a46f
KH
2070 arm*-*-linux-gnueabi)
2071 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2072 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2073 ;;
df4a6958 2074 arm*-*-symbianelf*)
54d1c879 2075 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
df4a6958 2076 ;;
a0da8069 2077 arm-*-pe*)
54d1c879 2078 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2079 ;;
a0da8069 2080 thumb-*-coff)
54d1c879 2081 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2082 ;;
2083 thumb-*-elf)
54d1c879 2084 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2085 ;;
a0da8069 2086 thumb-*-pe)
54d1c879 2087 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2088 ;;
2089 arm-*-riscix*)
54d1c879 2090 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2091 ;;
2092 avr-*-*)
54d1c879 2093 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2094 ;;
376a0e54 2095 bfin-*-*)
00d89675 2096 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2097 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2098 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2099 fi
2100 ;;
a0da8069 2101 c4x-*-* | tic4x-*-*)
54d1c879 2102 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2103 ;;
2104 c54x*-*-* | tic54x-*-*)
54d1c879 2105 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2106 ;;
c7e66c6d 2107 cris-*-* | crisv32-*-*)
59f7ec45 2108 unsupported_languages="$unsupported_languages java"
c7e66c6d 2109 case "${target}" in
2faa2958 2110 *-*-aout)
096f7d00 2111 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2112 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2113 *-*-elf)
096f7d00 2114 unsupported_languages="$unsupported_languages fortran"
5e818318 2115 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2116 *-*-linux*)
5e818318 2117 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2118 *)
096f7d00 2119 unsupported_languages="$unsupported_languages fortran"
54d1c879 2120 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2121 esac
a0da8069 2122 ;;
3e707e94 2123 crx-*-*)
54d1c879 2124 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2125 ;;
a0da8069 2126 d10v-*-*)
54d1c879 2127 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2128 ;;
2129 d30v-*-*)
54d1c879 2130 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2131 ;;
2132 fr30-*-elf*)
54d1c879 2133 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2134 ;;
2135 frv-*-*)
54d1c879 2136 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2137 ;;
2138 h8300*-*-*)
54d1c879 2139 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2140 ;;
2141 h8500-*-*)
54d1c879 2142 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2143 ;;
caeba88f 2144 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2145 ;;
a0da8069
NN
2146 hppa*64*-*-linux* | parisc*64*-*-linux*)
2147 # In this case, it's because the hppa64-linux target is for
2148 # the kernel only at this point and has no libc, and thus no
2149 # headers, crt*.o, etc., all of which are needed by these.
2150 noconfigdirs="$noconfigdirs target-zlib"
2151 ;;
5dcac624
DA
2152 parisc*-*-linux* | hppa*-*-linux*)
2153 ;;
a0da8069 2154 hppa*-*-*elf* | \
a0da8069
NN
2155 hppa*-*-lites* | \
2156 hppa*-*-openbsd* | \
2157 hppa*64*-*-*)
54d1c879 2158 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2159 ;;
2160 hppa*-hp-hpux11*)
2161 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069
NN
2162 ;;
2163 hppa*-*-*)
2164 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2165 # build on HP-UX 10.20.
54d1c879 2166 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2167 ;;
b07c2aad 2168 i960-*-*)
54d1c879 2169 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2170 ;;
a0da8069
NN
2171 ia64*-*-elf*)
2172 # No gdb support yet.
675c6968 2173 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2174 ;;
2175 ia64*-**-hpux*)
2176 # No gdb or ld support yet.
54d1c879 2177 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2178 ;;
caeba88f 2179 i370-*-opened*)
caeba88f 2180 ;;
ec11bdc6 2181 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2182 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2183 ;;
ec11bdc6 2184 i[3456789]86-*-linux*)
a0da8069
NN
2185 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2186 # not build java stuff by default.
2187 case "${target}" in
2188 *-*-*libc1*)
54d1c879 2189 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2190 esac
2191
2192 # This section makes it possible to build newlib natively on linux.
2193 # If we are using a cross compiler then don't configure newlib.
2194 if test x${is_cross_compiler} != xno ; then
bba45b8b 2195 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2196 fi
2197 noconfigdirs="$noconfigdirs target-libgloss"
2198 # If we are not using a cross compiler, do configure newlib.
2199 # Note however, that newlib will only be configured in this situation
2200 # if the --with-newlib option has been given, because otherwise
2201 # 'target-newlib' will appear in skipdirs.
2202 ;;
ec11bdc6 2203 i[3456789]86-*-mingw32*)
45055374
CV
2204 target_configdirs="$target_configdirs target-winsup"
2205 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2206 ;;
2d1e8239
NC
2207 x86_64-*-mingw*)
2208 target_configdirs="$target_configdirs target-winsup"
2209 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2210 ;;
a0da8069
NN
2211 *-*-cygwin*)
2212 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2213 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2214 # always build newlib if winsup directory is present.
45055374 2215 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2216 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2217 elif test -d "$srcdir/newlib"; then
45055374 2218 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2219 fi
c6b750e1 2220 ;;
caeba88f
AL
2221 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2222 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2223 ;;
ec11bdc6 2224 i[3456789]86-*-pe)
54d1c879 2225 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2226 ;;
ec11bdc6 2227 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2228 # The linker does not yet know about weak symbols in COFF,
2229 # and is not configured to handle mixed ELF and COFF.
54d1c879 2230 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2231 ;;
ec11bdc6 2232 i[3456789]86-*-sco*)
54d1c879 2233 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2234 ;;
ec11bdc6 2235 i[3456789]86-*-solaris2*)
a0da8069
NN
2236 noconfigdirs="$noconfigdirs target-libgloss"
2237 ;;
ec11bdc6 2238 i[3456789]86-*-sysv4*)
54d1c879 2239 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2240 ;;
ec11bdc6 2241 i[3456789]86-*-beos*)
54d1c879 2242 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2243 ;;
b59bea8a 2244 i[3456789]86-*-rdos*)
2429c060
PB
2245 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2246 ;;
b07c2aad 2247 m32r-*-*)
54d1c879 2248 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2249 ;;
a0da8069 2250 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2251 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2252 ;;
2253 m68k-*-elf*)
54d1c879 2254 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2255 ;;
2256 m68k-*-coff*)
54d1c879 2257 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2258 ;;
2259 mcore-*-pe*)
2260 # The EPOC C++ environment does not support exceptions or rtti,
2261 # and so building libstdc++-v3 tends not to always work.
2262 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2263 ;;
2264 mmix-*-*)
59f7ec45 2265 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2266 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2267 ;;
2268 mn10200-*-*)
54d1c879 2269 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2270 ;;
2271 mn10300-*-*)
54d1c879 2272 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2273 ;;
4970f871 2274 mt-*-*)
cdb9b172
AH
2275 noconfigdirs="$noconfigdirs sim"
2276 ;;
a0da8069
NN
2277 powerpc-*-aix*)
2278 # copied from rs6000-*-* entry
54d1c879 2279 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2280 ;;
2281 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2282 target_configdirs="$target_configdirs target-winsup"
54d1c879 2283 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2284 # always build newlib.
2285 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2286 ;;
2287 # This is temporary until we can link against shared libraries
2288 powerpcle-*-solaris*)
54d1c879 2289 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
a0da8069
NN
2290 ;;
2291 powerpc-*-beos*)
54d1c879 2292 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2293 ;;
a0da8069 2294 powerpc-*-eabi)
54d1c879 2295 noconfigdirs="$noconfigdirs ${libgcj}"
caeba88f
AL
2296 ;;
2297 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
a0da8069 2298 ;;
a0da8069 2299 rs6000-*-lynxos*)
54d1c879 2300 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2301 ;;
2302 rs6000-*-aix*)
54d1c879 2303 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2304 ;;
2305 rs6000-*-*)
54d1c879 2306 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2307 ;;
2308 m68k-apollo-*)
54d1c879 2309 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069
NN
2310 ;;
2311 mips*-*-irix5*)
54d1c879 2312 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2313 ;;
2314 mips*-*-irix6*)
a0da8069
NN
2315 # Linking libjava exceeds command-line length limits on at least
2316 # IRIX 6.2, but not on IRIX 6.5.
2317 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2318 # <oldham@codesourcery.com>
54d1c879 2319 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2320 ;;
a0da8069 2321 mips*-*-bsd*)
54d1c879 2322 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2323 ;;
1712ab83 2324 mips64*-*-linux*)
f3529cf1 2325 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1712ab83 2326 ;;
a0da8069
NN
2327 mips*-*-linux*)
2328 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2329 ;;
2330 mips*-*-*)
54d1c879 2331 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2332 ;;
2333 romp-*-*)
54d1c879 2334 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2335 ;;
dbf85af7 2336 sh-*-* | sh64-*-*)
a0da8069 2337 case "${host}" in
ec11bdc6
DD
2338 i[3456789]86-*-vsta) ;; # don't add gprof back in
2339 i[3456789]86-*-go32*) ;; # don't add gprof back in
2340 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2341 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2342 esac
54d1c879 2343 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2344 ;;
a0da8069 2345 sparc-*-elf*)
54d1c879 2346 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2347 ;;
2348 sparc64-*-elf*)
54d1c879 2349 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2350 ;;
2351 sparclite-*-*)
54d1c879 2352 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2353 ;;
2354 sparc-*-sunos4*)
54d1c879 2355 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2356 if test x${is_cross_compiler} != xno ; then
2357 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2358 else
2359 use_gnu_ld=no
2360 fi
2361 ;;
e3c770b1 2362 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2363 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2364 ;;
a0da8069
NN
2365 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2366 ;;
2839fe5d
BE
2367 spu-*-*)
2368 skipdirs="target-libssp"
2369 ;;
a0da8069 2370 v810-*-*)
54d1c879 2371 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2372 ;;
2373 v850-*-*)
54d1c879 2374 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2375 ;;
2376 v850e-*-*)
54d1c879 2377 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2378 ;;
2379 v850ea-*-*)
54d1c879 2380 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2381 ;;
2382 vax-*-vms)
54d1c879 2383 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2384 ;;
2385 vax-*-*)
54d1c879 2386 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2387 ;;
fbd1054d 2388 xtensa-*-*)
54d1c879 2389 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2390 ;;
a0da8069 2391 ip2k-*-*)
54d1c879 2392 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2393 ;;
de0b4a87 2394 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2395 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2396 ;;
2397 *-*-lynxos*)
54d1c879 2398 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2399 ;;
a0da8069 2400 *-*-*)
54d1c879 2401 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2402 ;;
2403esac
252b5132 2404
a0da8069
NN
2405# If we aren't building newlib, then don't build libgloss, since libgloss
2406# depends upon some newlib header files.
2407case "${noconfigdirs}" in
2408 *target-libgloss*) ;;
2409 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2410esac
2411
a0da8069
NN
2412# Work in distributions that contain no compiler tools, like Autoconf.
2413tentative_cc=""
2414host_makefile_frag=/dev/null
2415if test -d ${srcdir}/config ; then
2416case "${host}" in
2417 m68k-hp-hpux*)
2418 # Avoid "too much defining" errors from HPUX compiler.
2419 tentative_cc="cc -Wp,-H256000"
2420 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2421 # If it's HP/UX ar, this should be harmless.
2422 RANLIB="ar ts"
2423 ;;
2424 m68k-apollo-sysv*)
2425 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2426 ;;
2427 m68k-apollo-bsd*)
2428 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2429 # chokes on bfd, the compiler won't let you assign integers to enums, and
2430 # other problems. Defining CC to gcc is a questionable way to say "don't use
2431 # the apollo compiler" (the preferred version of GCC could be called cc,
2432 # or whatever), but I'm not sure leaving CC as cc is any better...
2433 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2434 # Used to have BISON=yacc.
2435 tentative_cc=gcc
2436 ;;
2437 m88k-dg-dgux*)
2438 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2439 ;;
2440 m88k-harris-cxux*)
2441 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2442 tentative_cc="cc -Xa"
2443 host_makefile_frag="config/mh-cxux"
2444 ;;
2445 m88k-motorola-sysv*)
2446 ;;
2447 mips*-dec-ultrix*)
2448 tentative_cc="cc -Wf,-XNg1000"
2449 host_makefile_frag="config/mh-decstation"
2450 ;;
2451 mips*-nec-sysv4*)
2452 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2453 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2454 host_makefile_frag="config/mh-necv4"
2455 ;;
2456 mips*-sgi-irix4*)
2457 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2458 # environment. Also bump switch table size so that cp-parse will
2459 # compile. Bump string length limit so linker builds.
2460 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2461 ;;
2462 mips*-*-sysv4*)
2463 host_makefile_frag="config/mh-sysv4"
2464 ;;
2465 mips*-*-sysv*)
2466 # This is for a MIPS running RISC/os 4.52C.
2467
2468 # This is needed for GDB, but needs to be in the top-level make because
2469 # if a library is compiled with the bsd headers and gets linked with the
2470 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2471 # a different size).
2472 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2473 # known except to select the sysv environment. Could we use /proc instead?
2474 # These "sysv environments" and "bsd environments" often end up being a pain.
2475 #
2476 # This is not part of CFLAGS because perhaps not all C compilers have this
2477 # option.
2478 tentative_cc="cc -systype sysv"
2479 ;;
2480 i370-ibm-opened*)
2481 tentative_cc="c89"
2482 ;;
ec11bdc6 2483 i[3456789]86-*-sysv5*)
a0da8069
NN
2484 host_makefile_frag="config/mh-sysv5"
2485 ;;
ec11bdc6 2486 i[3456789]86-*-dgux*)
a0da8069
NN
2487 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2488 host_makefile_frag="config/mh-dgux386"
2489 ;;
ec11bdc6 2490 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2491 # The MetaWare compiler will generate a copyright message unless you
2492 # turn it off by adding the -Hnocopyr flag.
2493 tentative_cc="cc -Hnocopyr"
2494 ;;
ec11bdc6 2495 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2496 # for an NCR 3000 (i486/SVR4) system.
2497 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2498 # This compiler not only emits obnoxious copyright messages every time
2499 # you run it, but it chokes and dies on a whole bunch of GNU source
2500 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2501 tentative_cc="/usr/ccs/ATT/cc"
2502 host_makefile_frag="config/mh-ncr3000"
2503 ;;
ec11bdc6 2504 i[3456789]86-*-sco3.2v5*)
a0da8069 2505 ;;
ec11bdc6 2506 i[3456789]86-*-sco*)
a0da8069
NN
2507 # The native C compiler botches some simple uses of const. Unfortunately,
2508 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2509 tentative_cc="cc -Dconst="
2510 host_makefile_frag="config/mh-sco"
2511 ;;
ec11bdc6 2512 i[3456789]86-*-udk*)
a0da8069
NN
2513 host_makefile_frag="config/mh-sysv5"
2514 ;;
ec11bdc6 2515 i[3456789]86-*-solaris2*)
a0da8069
NN
2516 host_makefile_frag="config/mh-sysv4"
2517 ;;
ec11bdc6 2518 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2519 host_makefile_frag="config/mh-djgpp"
2520 ;;
2521 *-cygwin*)
2522 host_makefile_frag="config/mh-cygwin"
2523 ;;
2524 *-mingw32*)
a0da8069 2525 ;;
2d1e8239
NC
2526 *-mingw64*)
2527 ;;
a0da8069
NN
2528 *-interix*)
2529 host_makefile_frag="config/mh-interix"
2530 ;;
2531 vax-*-ultrix2*)
2532 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2533 tentative_cc=gcc
2534 ;;
2535 *-*-solaris2*)
2536 host_makefile_frag="config/mh-solaris"
2537 ;;
2538 m68k-sun-sunos*)
2539 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2540 # without overflowing the jump tables (-J says to use a 32 bit table)
2541 tentative_cc="cc -J"
2542 ;;
2543 *-hp-hpux*)
2544 tentative_cc="cc -Wp,-H256000"
2545 ;;
2546 *-*-hiux*)
2547 tentative_cc="cc -Wp,-H256000"
2548 ;;
2549 rs6000-*-lynxos*)
2550 # /bin/cc is less than useful for our purposes. Always use GCC
2551 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2552 host_makefile_frag="config/mh-lynxrs6k"
2553 ;;
0df3d27f
PB
2554 powerpc-*-darwin*)
2555 host_makefile_frag="config/mh-ppc-darwin"
2556 ;;
f6d183c0
PB
2557 powerpc-*-aix*)
2558 host_makefile_frag="config/mh-ppc-aix"
2559 ;;
2560 rs6000-*-aix*)
2561 host_makefile_frag="config/mh-ppc-aix"
2562 ;;
a0da8069
NN
2563 *-*-lynxos*)
2564 # /bin/cc is less than useful for our purposes. Always use GCC
2565 tentative_cc="/bin/gcc"
2566 ;;
2567 *-*-sysv4*)
2568 host_makefile_frag="config/mh-sysv4"
2569 ;;
fe69863c
DD
2570 # This is placed last to prevent interfering with the cases above.
2571 i[3456789]86-*-*)
2572 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2573 host_makefile_frag="config/mh-x86omitfp"
2574 ;;
a0da8069
NN
2575esac
2576fi
2577
9e07f89d
NN
2578# If we aren't going to be using gcc, see if we can extract a definition
2579# of CC from the fragment.
2580# Actually, use the 'pre-extracted' version above.
2581if test -z "${CC}" && test "${build}" = "${host}" ; then
2582 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2583 found=
2584 for dir in $PATH; do
2585 test -z "$dir" && dir=.
2586 if test -f $dir/gcc; then
2587 found=yes
2588 break
2589 fi
2590 done
2591 IFS="$save_ifs"
2592 if test -z "${found}" && test -n "${tentative_cc}" ; then
2593 CC=$tentative_cc
2594 fi
2595fi
2596
2597if test "${build}" != "${host}" ; then
9e07f89d 2598 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d 2599else
512b7dfb 2600 CC_FOR_BUILD="\$(CC)"
18f6b6ee
PB
2601fi
2602
2603ac_ext=c
c6b750e1
DJ
2604ac_cpp='$CPP $CPPFLAGS'
2605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608if test -n "$ac_tool_prefix"; then
2609 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2610set dummy ${ac_tool_prefix}gcc; ac_word=$2
2611echo "$as_me:$LINENO: checking for $ac_word" >&5
2612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2613if test "${ac_cv_prog_CC+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615else
2616 if test -n "$CC"; then
2617 ac_cv_prog_CC="$CC" # Let the user override the test.
2618else
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630done
2631done
2632
2633fi
2634fi
2635CC=$ac_cv_prog_CC
2636if test -n "$CC"; then
2637 echo "$as_me:$LINENO: result: $CC" >&5
2638echo "${ECHO_T}$CC" >&6
2639else
2640 echo "$as_me:$LINENO: result: no" >&5
2641echo "${ECHO_T}no" >&6
2642fi
2643
2644fi
2645if test -z "$ac_cv_prog_CC"; then
2646 ac_ct_CC=$CC
6a9cf61e 2647 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2648set dummy gcc; ac_word=$2
c6b750e1
DJ
2649echo "$as_me:$LINENO: checking for $ac_word" >&5
2650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2651if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653else
2654 if test -n "$ac_ct_CC"; then
2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656else
2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH
2659do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664 ac_cv_prog_ac_ct_CC="gcc"
2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2667 fi
2668done
2669done
2670
2671fi
2672fi
2673ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674if test -n "$ac_ct_CC"; then
2675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2676echo "${ECHO_T}$ac_ct_CC" >&6
2677else
2678 echo "$as_me:$LINENO: result: no" >&5
2679echo "${ECHO_T}no" >&6
2680fi
2681
2682 CC=$ac_ct_CC
2683else
2684 CC="$ac_cv_prog_CC"
2685fi
2686
2687if test -z "$CC"; then
2688 if test -n "$ac_tool_prefix"; then
2689 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2690set dummy ${ac_tool_prefix}cc; ac_word=$2
2691echo "$as_me:$LINENO: checking for $ac_word" >&5
2692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2693if test "${ac_cv_prog_CC+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2695else
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2698else
c6b750e1
DJ
2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2706 ac_cv_prog_CC="${ac_tool_prefix}cc"
2707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710done
2711done
2712
9e07f89d
NN
2713fi
2714fi
c6b750e1 2715CC=$ac_cv_prog_CC
9e07f89d 2716if test -n "$CC"; then
c6b750e1
DJ
2717 echo "$as_me:$LINENO: result: $CC" >&5
2718echo "${ECHO_T}$CC" >&6
9e07f89d 2719else
c6b750e1
DJ
2720 echo "$as_me:$LINENO: result: no" >&5
2721echo "${ECHO_T}no" >&6
9e07f89d
NN
2722fi
2723
c6b750e1
DJ
2724fi
2725if test -z "$ac_cv_prog_CC"; then
2726 ac_ct_CC=$CC
2727 # Extract the first word of "cc", so it can be a program name with args.
2728set dummy cc; ac_word=$2
2729echo "$as_me:$LINENO: checking for $ac_word" >&5
2730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2731if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2733else
2734 if test -n "$ac_ct_CC"; then
2735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2736else
2737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738for as_dir in $PATH
2739do
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744 ac_cv_prog_ac_ct_CC="cc"
2745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 break 2
2747 fi
2748done
2749done
2750
2751fi
2752fi
2753ac_ct_CC=$ac_cv_prog_ac_ct_CC
2754if test -n "$ac_ct_CC"; then
2755 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2756echo "${ECHO_T}$ac_ct_CC" >&6
2757else
2758 echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6
2760fi
2761
2762 CC=$ac_ct_CC
2763else
2764 CC="$ac_cv_prog_CC"
2765fi
2766
2767fi
9e07f89d
NN
2768if test -z "$CC"; then
2769 # Extract the first word of "cc", so it can be a program name with args.
2770set dummy cc; ac_word=$2
c6b750e1
DJ
2771echo "$as_me:$LINENO: checking for $ac_word" >&5
2772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2773if test "${ac_cv_prog_CC+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2775else
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2778else
9e07f89d 2779 ac_prog_rejected=no
c6b750e1
DJ
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2788 ac_prog_rejected=yes
2789 continue
2790 fi
2791 ac_cv_prog_CC="cc"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795done
2796done
2797
9e07f89d
NN
2798if test $ac_prog_rejected = yes; then
2799 # We found a bogon in the path, so make sure we never use it.
2800 set dummy $ac_cv_prog_CC
2801 shift
c6b750e1 2802 if test $# != 0; then
9e07f89d
NN
2803 # We chose a different compiler from the bogus one.
2804 # However, it has the same basename, so the bogon will be chosen
2805 # first if we set CC to just the basename; use the full file name.
2806 shift
c6b750e1 2807 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
2808 fi
2809fi
2810fi
2811fi
c6b750e1 2812CC=$ac_cv_prog_CC
9e07f89d 2813if test -n "$CC"; then
c6b750e1
DJ
2814 echo "$as_me:$LINENO: result: $CC" >&5
2815echo "${ECHO_T}$CC" >&6
9e07f89d 2816else
c6b750e1
DJ
2817 echo "$as_me:$LINENO: result: no" >&5
2818echo "${ECHO_T}no" >&6
9e07f89d
NN
2819fi
2820
c6b750e1
DJ
2821fi
2822if test -z "$CC"; then
2823 if test -n "$ac_tool_prefix"; then
2824 for ac_prog in cl
2825 do
2826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2827set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2828echo "$as_me:$LINENO: checking for $ac_word" >&5
2829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2830if test "${ac_cv_prog_CC+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2832else
2833 if test -n "$CC"; then
2834 ac_cv_prog_CC="$CC" # Let the user override the test.
2835else
c6b750e1
DJ
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
376a0e54 2846 fi
c6b750e1
DJ
2847done
2848done
cac3d6c4 2849
c6b750e1
DJ
2850fi
2851fi
2852CC=$ac_cv_prog_CC
2853if test -n "$CC"; then
2854 echo "$as_me:$LINENO: result: $CC" >&5
2855echo "${ECHO_T}$CC" >&6
cac3d6c4 2856else
c6b750e1
DJ
2857 echo "$as_me:$LINENO: result: no" >&5
2858echo "${ECHO_T}no" >&6
9e07f89d 2859fi
cac3d6c4 2860
c6b750e1
DJ
2861 test -n "$CC" && break
2862 done
cac3d6c4 2863fi
c6b750e1
DJ
2864if test -z "$CC"; then
2865 ac_ct_CC=$CC
2866 for ac_prog in cl
2867do
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869set dummy $ac_prog; ac_word=$2
2870echo "$as_me:$LINENO: checking for $ac_word" >&5
2871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 2874else
c6b750e1
DJ
2875 if test -n "$ac_ct_CC"; then
2876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 2877else
c6b750e1
DJ
2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879for as_dir in $PATH
2880do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_ac_ct_CC="$ac_prog"
2886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2888 fi
2889done
2890done
2891
cac3d6c4
CM
2892fi
2893fi
c6b750e1
DJ
2894ac_ct_CC=$ac_cv_prog_ac_ct_CC
2895if test -n "$ac_ct_CC"; then
2896 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2897echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 2898else
c6b750e1
DJ
2899 echo "$as_me:$LINENO: result: no" >&5
2900echo "${ECHO_T}no" >&6
cac3d6c4 2901fi
376a0e54 2902
c6b750e1
DJ
2903 test -n "$ac_ct_CC" && break
2904done
2905
2906 CC=$ac_ct_CC
2907fi
2908
2909fi
2910
2911
2912test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2913See \`config.log' for more details." >&5
2914echo "$as_me: error: no acceptable C compiler found in \$PATH
2915See \`config.log' for more details." >&2;}
2916 { (exit 1); exit 1; }; }
2917
2918# Provide some information about the compiler.
2919echo "$as_me:$LINENO:" \
2920 "checking for C compiler version" >&5
2921ac_compiler=`set X $ac_compile; echo $2`
2922{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2923 (eval $ac_compiler --version </dev/null >&5) 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }
2927{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2928 (eval $ac_compiler -v </dev/null >&5) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }
2932{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2933 (eval $ac_compiler -V </dev/null >&5) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937
2938cat >conftest.$ac_ext <<_ACEOF
2939/* confdefs.h. */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h. */
2944
2945int
2946main ()
2947{
2948
2949 ;
2950 return 0;
2951}
2952_ACEOF
2953ac_clean_files_save=$ac_clean_files
2954ac_clean_files="$ac_clean_files a.out a.exe b.out"
2955# Try to create an executable without -o first, disregard a.out.
2956# It will help us diagnose broken compilers, and finding out an intuition
2957# of exeext.
2958echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2959echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2960ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2961if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2962 (eval $ac_link_default) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; then
2966 # Find the output, starting from the most likely. This scheme is
2967# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2968# resort.
2969
2970# Be careful to initialize this variable, since it used to be cached.
2971# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2972ac_cv_exeext=
2973# b.out is created by i960 compilers.
2974for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2975do
2976 test -f "$ac_file" || continue
2977 case $ac_file in
2978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2979 ;;
2980 conftest.$ac_ext )
2981 # This is the source file.
2982 ;;
2983 [ab].out )
2984 # We found the default executable, but exeext='' is most
2985 # certainly right.
2986 break;;
2987 *.* )
2988 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2989 # FIXME: I believe we export ac_cv_exeext for Libtool,
2990 # but it would be cool to find out if it's true. Does anybody
2991 # maintain Libtool? --akim.
2992 export ac_cv_exeext
2993 break;;
2994 * )
2995 break;;
2996 esac
2997done
2998else
2999 echo "$as_me: failed program was:" >&5
3000sed 's/^/| /' conftest.$ac_ext >&5
3001
3002{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3003See \`config.log' for more details." >&5
3004echo "$as_me: error: C compiler cannot create executables
3005See \`config.log' for more details." >&2;}
3006 { (exit 77); exit 77; }; }
3007fi
3008
3009ac_exeext=$ac_cv_exeext
3010echo "$as_me:$LINENO: result: $ac_file" >&5
3011echo "${ECHO_T}$ac_file" >&6
3012
3013# Check the compiler produces executables we can run. If not, either
3014# the compiler is broken, or we cross compile.
3015echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3016echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3017# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3018# If not cross compiling, check that we can run a simple program.
3019if test "$cross_compiling" != yes; then
3020 if { ac_try='./$ac_file'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 (eval $ac_try) 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3026 cross_compiling=no
3027 else
3028 if test "$cross_compiling" = maybe; then
3029 cross_compiling=yes
3030 else
3031 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3032If you meant to cross compile, use \`--host'.
3033See \`config.log' for more details." >&5
3034echo "$as_me: error: cannot run C compiled programs.
3035If you meant to cross compile, use \`--host'.
3036See \`config.log' for more details." >&2;}
3037 { (exit 1); exit 1; }; }
3038 fi
3039 fi
3040fi
3041echo "$as_me:$LINENO: result: yes" >&5
3042echo "${ECHO_T}yes" >&6
3043
3044rm -f a.out a.exe conftest$ac_cv_exeext b.out
3045ac_clean_files=$ac_clean_files_save
3046# Check the compiler produces executables we can run. If not, either
3047# the compiler is broken, or we cross compile.
3048echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3049echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3050echo "$as_me:$LINENO: result: $cross_compiling" >&5
3051echo "${ECHO_T}$cross_compiling" >&6
3052
3053echo "$as_me:$LINENO: checking for suffix of executables" >&5
3054echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3056 (eval $ac_link) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; then
3060 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3061# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3062# work properly (i.e., refer to `conftest.exe'), while it won't with
3063# `rm'.
3064for ac_file in conftest.exe conftest conftest.*; do
3065 test -f "$ac_file" || continue
3066 case $ac_file in
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3068 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3069 export ac_cv_exeext
3070 break;;
3071 * ) break;;
3072 esac
3073done
3074else
3075 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3076See \`config.log' for more details." >&5
3077echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3078See \`config.log' for more details." >&2;}
3079 { (exit 1); exit 1; }; }
3080fi
3081
3082rm -f conftest$ac_cv_exeext
3083echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3084echo "${ECHO_T}$ac_cv_exeext" >&6
3085
3086rm -f conftest.$ac_ext
3087EXEEXT=$ac_cv_exeext
3088ac_exeext=$EXEEXT
3089echo "$as_me:$LINENO: checking for suffix of object files" >&5
3090echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3091if test "${ac_cv_objext+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094 cat >conftest.$ac_ext <<_ACEOF
3095/* confdefs.h. */
3096_ACEOF
3097cat confdefs.h >>conftest.$ac_ext
3098cat >>conftest.$ac_ext <<_ACEOF
3099/* end confdefs.h. */
3100
3101int
3102main ()
3103{
3104
3105 ;
3106 return 0;
3107}
3108_ACEOF
3109rm -f conftest.o conftest.obj
3110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111 (eval $ac_compile) 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; then
3115 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3116 case $ac_file in
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3118 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3119 break;;
3120 esac
3121done
cac3d6c4 3122else
c6b750e1
DJ
3123 echo "$as_me: failed program was:" >&5
3124sed 's/^/| /' conftest.$ac_ext >&5
3125
3126{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3127See \`config.log' for more details." >&5
3128echo "$as_me: error: cannot compute suffix of object files: cannot compile
3129See \`config.log' for more details." >&2;}
3130 { (exit 1); exit 1; }; }
3131fi
3132
3133rm -f conftest.$ac_cv_objext conftest.$ac_ext
3134fi
3135echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3136echo "${ECHO_T}$ac_cv_objext" >&6
3137OBJEXT=$ac_cv_objext
3138ac_objext=$OBJEXT
3139echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3140echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3141if test "${ac_cv_c_compiler_gnu+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3143else
3144 cat >conftest.$ac_ext <<_ACEOF
3145/* confdefs.h. */
3146_ACEOF
3147cat confdefs.h >>conftest.$ac_ext
3148cat >>conftest.$ac_ext <<_ACEOF
3149/* end confdefs.h. */
3150
3151int
3152main ()
3153{
3154#ifndef __GNUC__
3155 choke me
3156#endif
3157
3158 ;
3159 return 0;
3160}
3161_ACEOF
3162rm -f conftest.$ac_objext
3163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_c_werror_flag"
3172 || test ! -s conftest.err'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174 (eval $ac_try) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 ac_compiler_gnu=yes
3185else
3186 echo "$as_me: failed program was:" >&5
3187sed 's/^/| /' conftest.$ac_ext >&5
3188
3189ac_compiler_gnu=no
3190fi
3191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192ac_cv_c_compiler_gnu=$ac_compiler_gnu
3193
3194fi
3195echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3196echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3197GCC=`test $ac_compiler_gnu = yes && echo yes`
3198ac_test_CFLAGS=${CFLAGS+set}
3199ac_save_CFLAGS=$CFLAGS
3200CFLAGS="-g"
3201echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3202echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3203if test "${ac_cv_prog_cc_g+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205else
3206 cat >conftest.$ac_ext <<_ACEOF
3207/* confdefs.h. */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h. */
3212
3213int
3214main ()
3215{
3216
3217 ;
3218 return 0;
3219}
3220_ACEOF
3221rm -f conftest.$ac_objext
3222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223 (eval $ac_compile) 2>conftest.er1
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -z "$ac_c_werror_flag"
3231 || test ! -s conftest.err'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; } &&
3237 { ac_try='test -s conftest.$ac_objext'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
9e07f89d
NN
3243 ac_cv_prog_cc_g=yes
3244else
c6b750e1
DJ
3245 echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3247
c6b750e1 3248ac_cv_prog_cc_g=no
376a0e54 3249fi
c6b750e1
DJ
3250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3251fi
3252echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3253echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3254if test "$ac_test_CFLAGS" = set; then
c6b750e1 3255 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3256elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3258 CFLAGS="-g -O2"
3259 else
3260 CFLAGS="-g"
3261 fi
3262else
3263 if test "$GCC" = yes; then
3264 CFLAGS="-O2"
3265 else
3266 CFLAGS=
3267 fi
3268fi
c6b750e1
DJ
3269echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3270echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3271if test "${ac_cv_prog_cc_stdc+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
3274 ac_cv_prog_cc_stdc=no
3275ac_save_CC=$CC
3276cat >conftest.$ac_ext <<_ACEOF
3277/* confdefs.h. */
3278_ACEOF
3279cat confdefs.h >>conftest.$ac_ext
3280cat >>conftest.$ac_ext <<_ACEOF
3281/* end confdefs.h. */
3282#include <stdarg.h>
3283#include <stdio.h>
3284#include <sys/types.h>
3285#include <sys/stat.h>
3286/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3287struct buf { int x; };
3288FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289static char *e (p, i)
3290 char **p;
3291 int i;
3292{
3293 return p[i];
3294}
3295static char *f (char * (*g) (char **, int), char **p, ...)
3296{
3297 char *s;
3298 va_list v;
3299 va_start (v,p);
3300 s = g (p, va_arg (v,int));
3301 va_end (v);
3302 return s;
3303}
3304
3305/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3306 function prototypes and stuff, but not '\xHH' hex character constants.
3307 These don't provoke an error unfortunately, instead are silently treated
3308 as 'x'. The following induces an error, until -std1 is added to get
3309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3310 array size at least. It's necessary to write '\x00'==0 to get something
3311 that's true only with -std1. */
3312int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3313
3314int test (int i, double x);
3315struct s1 {int (*f) (int a);};
3316struct s2 {int (*f) (double a);};
3317int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3318int argc;
3319char **argv;
3320int
3321main ()
3322{
3323return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3324 ;
3325 return 0;
3326}
3327_ACEOF
3328# Don't try gcc -ansi; that turns off useful extensions and
3329# breaks some systems' header files.
3330# AIX -qlanglvl=ansi
3331# Ultrix and OSF/1 -std1
3332# HP-UX 10.20 and later -Ae
3333# HP-UX older versions -Aa -D_HPUX_SOURCE
3334# SVR4 -Xc -D__EXTENSIONS__
3335for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3336do
3337 CC="$ac_save_CC $ac_arg"
3338 rm -f conftest.$ac_objext
3339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340 (eval $ac_compile) 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag"
3348 || test ! -s conftest.err'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try='test -s conftest.$ac_objext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 ac_cv_prog_cc_stdc=$ac_arg
3361break
3362else
3363 echo "$as_me: failed program was:" >&5
3364sed 's/^/| /' conftest.$ac_ext >&5
3365
3366fi
3367rm -f conftest.err conftest.$ac_objext
3368done
3369rm -f conftest.$ac_ext conftest.$ac_objext
3370CC=$ac_save_CC
3371
3372fi
3373
3374case "x$ac_cv_prog_cc_stdc" in
3375 x|xno)
3376 echo "$as_me:$LINENO: result: none needed" >&5
3377echo "${ECHO_T}none needed" >&6 ;;
3378 *)
3379 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3380echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3381 CC="$CC $ac_cv_prog_cc_stdc" ;;
3382esac
3383
3384# Some people use a C++ compiler to compile C. Since we use `exit',
3385# in C++ we need to declare it. In case someone uses the same compiler
3386# for both compiling C and C++ we need to have the C++ compiler decide
3387# the declaration of exit, since it's the most demanding environment.
3388cat >conftest.$ac_ext <<_ACEOF
3389#ifndef __cplusplus
3390 choke me
3391#endif
3392_ACEOF
3393rm -f conftest.$ac_objext
3394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3395 (eval $ac_compile) 2>conftest.er1
3396 ac_status=$?
3397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } &&
3402 { ac_try='test -z "$ac_c_werror_flag"
3403 || test ! -s conftest.err'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 (eval $ac_try) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; } &&
3409 { ac_try='test -s conftest.$ac_objext'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 for ac_declaration in \
3416 '' \
3417 'extern "C" void std::exit (int) throw (); using std::exit;' \
3418 'extern "C" void std::exit (int); using std::exit;' \
3419 'extern "C" void exit (int) throw ();' \
3420 'extern "C" void exit (int);' \
3421 'void exit (int);'
3422do
3423 cat >conftest.$ac_ext <<_ACEOF
3424/* confdefs.h. */
3425_ACEOF
3426cat confdefs.h >>conftest.$ac_ext
3427cat >>conftest.$ac_ext <<_ACEOF
3428/* end confdefs.h. */
3429$ac_declaration
3430#include <stdlib.h>
3431int
3432main ()
3433{
3434exit (42);
3435 ;
3436 return 0;
3437}
3438_ACEOF
3439rm -f conftest.$ac_objext
3440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>conftest.er1
3442 ac_status=$?
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 { ac_try='test -z "$ac_c_werror_flag"
3449 || test ! -s conftest.err'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 (eval $ac_try) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; } &&
3455 { ac_try='test -s conftest.$ac_objext'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 (eval $ac_try) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; }; then
3461 :
3462else
3463 echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466continue
3467fi
3468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3469 cat >conftest.$ac_ext <<_ACEOF
3470/* confdefs.h. */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h. */
3475$ac_declaration
3476int
3477main ()
3478{
3479exit (42);
3480 ;
3481 return 0;
3482}
3483_ACEOF
3484rm -f conftest.$ac_objext
3485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try='test -z "$ac_c_werror_flag"
3494 || test ! -s conftest.err'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 (eval $ac_try) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try='test -s conftest.$ac_objext'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 break
3507else
3508 echo "$as_me: failed program was:" >&5
3509sed 's/^/| /' conftest.$ac_ext >&5
3510
3511fi
3512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513done
3514rm -f conftest*
3515if test -n "$ac_declaration"; then
3516 echo '#ifdef __cplusplus' >>confdefs.h
3517 echo $ac_declaration >>confdefs.h
3518 echo '#endif' >>confdefs.h
3519fi
3520
3521else
3522 echo "$as_me: failed program was:" >&5
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525fi
3526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527ac_ext=c
3528ac_cpp='$CPP $CPPFLAGS'
3529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3532
18f6b6ee
PB
3533ac_ext=cc
3534ac_cpp='$CXXCPP $CPPFLAGS'
3535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3538if test -n "$ac_tool_prefix"; then
3539 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3540 do
3541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3542set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3543echo "$as_me:$LINENO: checking for $ac_word" >&5
3544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3545if test "${ac_cv_prog_CXX+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547else
3548 if test -n "$CXX"; then
3549 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3550else
3551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552for as_dir in $PATH
3553do
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 break 2
3561 fi
3562done
3563done
512b7dfb 3564
18f6b6ee
PB
3565fi
3566fi
3567CXX=$ac_cv_prog_CXX
3568if test -n "$CXX"; then
3569 echo "$as_me:$LINENO: result: $CXX" >&5
3570echo "${ECHO_T}$CXX" >&6
3571else
3572 echo "$as_me:$LINENO: result: no" >&5
3573echo "${ECHO_T}no" >&6
3574fi
3575
3576 test -n "$CXX" && break
3577 done
3578fi
3579if test -z "$CXX"; then
3580 ac_ct_CXX=$CXX
3581 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3582do
3583 # Extract the first word of "$ac_prog", so it can be a program name with args.
3584set dummy $ac_prog; ac_word=$2
3585echo "$as_me:$LINENO: checking for $ac_word" >&5
3586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3589else
3590 if test -n "$ac_ct_CXX"; then
3591 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3592else
3593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594for as_dir in $PATH
3595do
3596 IFS=$as_save_IFS
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600 ac_cv_prog_ac_ct_CXX="$ac_prog"
3601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 break 2
512b7dfb 3603 fi
18f6b6ee
PB
3604done
3605done
512b7dfb 3606
18f6b6ee
PB
3607fi
3608fi
3609ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3610if test -n "$ac_ct_CXX"; then
3611 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3612echo "${ECHO_T}$ac_ct_CXX" >&6
3613else
3614 echo "$as_me:$LINENO: result: no" >&5
3615echo "${ECHO_T}no" >&6
3616fi
3617
3618 test -n "$ac_ct_CXX" && break
3619done
3620test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3621
3622 CXX=$ac_ct_CXX
3623fi
3624
3625
3626# Provide some information about the compiler.
3627echo "$as_me:$LINENO:" \
3628 "checking for C++ compiler version" >&5
3629ac_compiler=`set X $ac_compile; echo $2`
3630{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3631 (eval $ac_compiler --version </dev/null >&5) 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }
3635{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3636 (eval $ac_compiler -v </dev/null >&5) 2>&5
3637 ac_status=$?
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }
3640{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3641 (eval $ac_compiler -V </dev/null >&5) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }
3645
3646echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3647echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3648if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650else
3651 cat >conftest.$ac_ext <<_ACEOF
3652/* confdefs.h. */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h. */
3657
3658int
3659main ()
3660{
3661#ifndef __GNUC__
3662 choke me
3663#endif
3664
3665 ;
3666 return 0;
3667}
3668_ACEOF
3669rm -f conftest.$ac_objext
3670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671 (eval $ac_compile) 2>conftest.er1
3672 ac_status=$?
3673 grep -v '^ *+' conftest.er1 >conftest.err
3674 rm -f conftest.er1
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try='test -z "$ac_cxx_werror_flag"
3679 || test ! -s conftest.err'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; } &&
3685 { ac_try='test -s conftest.$ac_objext'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 (eval $ac_try) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3691 ac_compiler_gnu=yes
3692else
3693 echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
3695
3696ac_compiler_gnu=no
3697fi
3698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3699ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3700
3701fi
3702echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3703echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3704GXX=`test $ac_compiler_gnu = yes && echo yes`
3705ac_test_CXXFLAGS=${CXXFLAGS+set}
3706ac_save_CXXFLAGS=$CXXFLAGS
3707CXXFLAGS="-g"
3708echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3709echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3710if test "${ac_cv_prog_cxx_g+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712else
3713 cat >conftest.$ac_ext <<_ACEOF
3714/* confdefs.h. */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h. */
3719
3720int
3721main ()
3722{
3723
3724 ;
3725 return 0;
3726}
3727_ACEOF
3728rm -f conftest.$ac_objext
3729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3730 (eval $ac_compile) 2>conftest.er1
3731 ac_status=$?
3732 grep -v '^ *+' conftest.er1 >conftest.err
3733 rm -f conftest.er1
3734 cat conftest.err >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } &&
3737 { ac_try='test -z "$ac_cxx_werror_flag"
3738 || test ! -s conftest.err'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 (eval $ac_try) 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; } &&
3744 { ac_try='test -s conftest.$ac_objext'
3745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 (eval $ac_try) 2>&5
3747 ac_status=$?
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }; }; then
3750 ac_cv_prog_cxx_g=yes
3751else
3752 echo "$as_me: failed program was:" >&5
3753sed 's/^/| /' conftest.$ac_ext >&5
3754
3755ac_cv_prog_cxx_g=no
3756fi
3757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3758fi
3759echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3760echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3761if test "$ac_test_CXXFLAGS" = set; then
3762 CXXFLAGS=$ac_save_CXXFLAGS
3763elif test $ac_cv_prog_cxx_g = yes; then
3764 if test "$GXX" = yes; then
3765 CXXFLAGS="-g -O2"
3766 else
3767 CXXFLAGS="-g"
3768 fi
3769else
3770 if test "$GXX" = yes; then
3771 CXXFLAGS="-O2"
3772 else
3773 CXXFLAGS=
3774 fi
3775fi
3776for ac_declaration in \
3777 '' \
3778 'extern "C" void std::exit (int) throw (); using std::exit;' \
3779 'extern "C" void std::exit (int); using std::exit;' \
3780 'extern "C" void exit (int) throw ();' \
3781 'extern "C" void exit (int);' \
3782 'void exit (int);'
3783do
3784 cat >conftest.$ac_ext <<_ACEOF
3785/* confdefs.h. */
3786_ACEOF
3787cat confdefs.h >>conftest.$ac_ext
3788cat >>conftest.$ac_ext <<_ACEOF
3789/* end confdefs.h. */
3790$ac_declaration
3791#include <stdlib.h>
3792int
3793main ()
3794{
3795exit (42);
3796 ;
3797 return 0;
3798}
3799_ACEOF
3800rm -f conftest.$ac_objext
3801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802 (eval $ac_compile) 2>conftest.er1
3803 ac_status=$?
3804 grep -v '^ *+' conftest.er1 >conftest.err
3805 rm -f conftest.er1
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try='test -z "$ac_cxx_werror_flag"
3810 || test ! -s conftest.err'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; } &&
3816 { ac_try='test -s conftest.$ac_objext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 :
3823else
3824 echo "$as_me: failed program was:" >&5
3825sed 's/^/| /' conftest.$ac_ext >&5
3826
3827continue
3828fi
3829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830 cat >conftest.$ac_ext <<_ACEOF
3831/* confdefs.h. */
3832_ACEOF
3833cat confdefs.h >>conftest.$ac_ext
3834cat >>conftest.$ac_ext <<_ACEOF
3835/* end confdefs.h. */
3836$ac_declaration
3837int
3838main ()
3839{
3840exit (42);
3841 ;
3842 return 0;
3843}
3844_ACEOF
3845rm -f conftest.$ac_objext
3846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_cxx_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 break
3868else
3869 echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872fi
3873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874done
3875rm -f conftest*
3876if test -n "$ac_declaration"; then
3877 echo '#ifdef __cplusplus' >>confdefs.h
3878 echo $ac_declaration >>confdefs.h
3879 echo '#endif' >>confdefs.h
3880fi
3881
3882ac_ext=c
3883ac_cpp='$CPP $CPPFLAGS'
3884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887
3888
3889# We must set the default linker to the linker used by gcc for the correct
3890# operation of libtool. If LD is not defined and we are using gcc, try to
3891# set the LD default to the ld used by gcc.
3892if test -z "$LD"; then
3893 if test "$GCC" = yes; then
3894 case $build in
3895 *-*-mingw*)
3896 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3897 *)
3898 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
3899 esac
3900 case $gcc_prog_ld in
3901 # Accept absolute paths.
3902 [\\/]* | [A-Za-z]:[\\/]*)
3903 LD="$gcc_prog_ld" ;;
3904 esac
3905 fi
512b7dfb
PB
3906fi
3907
3908
3909
3910
c6b750e1 3911if test -n "$ac_tool_prefix"; then
512b7dfb
PB
3912 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3913set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
3914echo "$as_me:$LINENO: checking for $ac_word" >&5
3915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 3916if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 3917 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 3918else
512b7dfb
PB
3919 if test -n "$GNATBIND"; then
3920 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 3921else
c6b750e1
DJ
3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH
3924do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 3929 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3932 fi
3933done
3934done
3935
9e07f89d
NN
3936fi
3937fi
512b7dfb
PB
3938GNATBIND=$ac_cv_prog_GNATBIND
3939if test -n "$GNATBIND"; then
3940 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3941echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 3942else
c6b750e1
DJ
3943 echo "$as_me:$LINENO: result: no" >&5
3944echo "${ECHO_T}no" >&6
9e07f89d
NN
3945fi
3946
c6b750e1 3947fi
512b7dfb
PB
3948if test -z "$ac_cv_prog_GNATBIND"; then
3949 ac_ct_GNATBIND=$GNATBIND
3950 # Extract the first word of "gnatbind", so it can be a program name with args.
3951set dummy gnatbind; ac_word=$2
c6b750e1
DJ
3952echo "$as_me:$LINENO: checking for $ac_word" >&5
3953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 3954if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 3955 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 3956else
512b7dfb
PB
3957 if test -n "$ac_ct_GNATBIND"; then
3958 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 3959else
c6b750e1
DJ
3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 3967 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
3968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 break 2
3970 fi
3971done
3972done
3973
512b7dfb 3974 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
3975fi
3976fi
512b7dfb
PB
3977ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3978if test -n "$ac_ct_GNATBIND"; then
3979 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3980echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 3981else
c6b750e1
DJ
3982 echo "$as_me:$LINENO: result: no" >&5
3983echo "${ECHO_T}no" >&6
9e07f89d
NN
3984fi
3985
512b7dfb 3986 GNATBIND=$ac_ct_GNATBIND
24ff9987 3987else
512b7dfb 3988 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
3989fi
3990
7df2cd5d 3991if test -n "$ac_tool_prefix"; then
512b7dfb
PB
3992 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3993set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
3994echo "$as_me:$LINENO: checking for $ac_word" >&5
3995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 3996if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998else
512b7dfb
PB
3999 if test -n "$GNATMAKE"; then
4000 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4001else
4002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003for as_dir in $PATH
4004do
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4009 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 break 2
4012 fi
4013done
4014done
4015
4016fi
4017fi
512b7dfb
PB
4018GNATMAKE=$ac_cv_prog_GNATMAKE
4019if test -n "$GNATMAKE"; then
4020 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4021echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4022else
4023 echo "$as_me:$LINENO: result: no" >&5
4024echo "${ECHO_T}no" >&6
4025fi
4026
4027fi
512b7dfb
PB
4028if test -z "$ac_cv_prog_GNATMAKE"; then
4029 ac_ct_GNATMAKE=$GNATMAKE
4030 # Extract the first word of "gnatmake", so it can be a program name with args.
4031set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4032echo "$as_me:$LINENO: checking for $ac_word" >&5
4033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4034if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036else
512b7dfb
PB
4037 if test -n "$ac_ct_GNATMAKE"; then
4038 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4039else
4040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041for as_dir in $PATH
4042do
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4047 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 break 2
4050 fi
4051done
4052done
4053
512b7dfb 4054 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4055fi
4056fi
512b7dfb
PB
4057ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4058if test -n "$ac_ct_GNATMAKE"; then
4059 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4060echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4061else
4062 echo "$as_me:$LINENO: result: no" >&5
4063echo "${ECHO_T}no" >&6
4064fi
4065
512b7dfb 4066 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4067else
512b7dfb 4068 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4069fi
4070
c6b750e1
DJ
4071echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4072echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4073if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4075else
4076 cat >conftest.adb <<EOF
4077procedure conftest is begin null; end conftest;
4078EOF
4079acx_cv_cc_gcc_supports_ada=no
4080# There is a bug in old released versions of GCC which causes the
4081# driver to exit successfully when the appropriate language module
4082# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4083# Therefore we must check for the error message as well as an
4084# unsuccessful exit.
b8908782
DD
4085# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4086# given a .adb file, but produce no object file. So we must check
4087# if an object file was really produced to guard against this.
9e07f89d 4088errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4089if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4090 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4091fi
4092rm -f conftest.*
4093fi
c6b750e1
DJ
4094echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4095echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4096
512b7dfb 4097if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4098 have_gnat=yes
4099else
4100 have_gnat=no
4101fi
4102
c6b750e1
DJ
4103echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4104echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4105if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4107else
4108 echo abfoo >t1
4109 echo cdfoo >t2
4110 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4111 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4112 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4113 :
4114 else
4115 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4116 fi
4117 fi
b8908782
DD
4118 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4119 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4120 :
b8908782
DD
4121 else
4122 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4123 fi
4124 fi
4125 rm t1 t2
4126
4127fi
c6b750e1
DJ
4128echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4129echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4130do_compare="$gcc_cv_prog_cmp_skip"
4131
4132
9e07f89d 4133
11b04d1f 4134# Check for GMP and MPFR
4b900473 4135gmplibs="-lmpfr -lgmp"
4b1cb4fe 4136gmpinc=
4b900473
PB
4137have_gmp=no
4138
11b04d1f
DD
4139# Specify a location for mpfr
4140# check for this first so it ends up on the link line before gmp.
c6b750e1 4141
11b04d1f
DD
4142# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4143if test "${with_mpfr_dir+set}" = set; then
4144 withval="$with_mpfr_dir"
c6b750e1
DJ
4145 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4146Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4147echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4148Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4149 { (exit 1); exit 1; }; }
4150fi;
11b04d1f
DD
4151
4152
11b04d1f
DD
4153# Check whether --with-mpfr or --without-mpfr was given.
4154if test "${with_mpfr+set}" = set; then
4155 withval="$with_mpfr"
c6b750e1
DJ
4156
4157fi;
11b04d1f 4158
8a0d8a5c
PB
4159# Check whether --with-mpfr_include or --without-mpfr_include was given.
4160if test "${with_mpfr_include+set}" = set; then
4161 withval="$with_mpfr_include"
c6b750e1
DJ
4162
4163fi;
8a0d8a5c
PB
4164
4165# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4166if test "${with_mpfr_lib+set}" = set; then
4167 withval="$with_mpfr_lib"
8a0d8a5c 4168
c6b750e1 4169fi;
11b04d1f
DD
4170
4171if test "x$with_mpfr" != x; then
4172 gmplibs="-L$with_mpfr/lib $gmplibs"
4173 gmpinc="-I$with_mpfr/include"
4174fi
8a0d8a5c
PB
4175if test "x$with_mpfr_include" != x; then
4176 gmpinc="-I$with_mpfr_include"
4177fi
4178if test "x$with_mpfr_lib" != x; then
4179 gmplibs="-L$with_mpfr_lib $gmplibs"
4180fi
4b900473
PB
4181if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4182 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4183 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4184 # Do not test the mpfr version. Assume that it is sufficient, since
4185 # it is in the source tree, and the library has not been built yet
4186 # but it would be included on the link line in the version check below
4187 # hence making the test fail.
4188 have_gmp=yes
4189fi
11b04d1f 4190
4b1cb4fe 4191# Specify a location for gmp
c6b750e1 4192
4b1cb4fe
DD
4193# Check whether --with-gmp-dir or --without-gmp-dir was given.
4194if test "${with_gmp_dir+set}" = set; then
4195 withval="$with_gmp_dir"
c6b750e1
DJ
4196 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4197Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4198echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4199Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4200 { (exit 1); exit 1; }; }
4201fi;
4b1cb4fe
DD
4202
4203
4b1cb4fe
DD
4204# Check whether --with-gmp or --without-gmp was given.
4205if test "${with_gmp+set}" = set; then
4206 withval="$with_gmp"
c6b750e1
DJ
4207
4208fi;
4b1cb4fe 4209
8a0d8a5c
PB
4210# Check whether --with-gmp_include or --without-gmp_include was given.
4211if test "${with_gmp_include+set}" = set; then
4212 withval="$with_gmp_include"
c6b750e1
DJ
4213
4214fi;
8a0d8a5c
PB
4215
4216# Check whether --with-gmp_lib or --without-gmp_lib was given.
4217if test "${with_gmp_lib+set}" = set; then
4218 withval="$with_gmp_lib"
8a0d8a5c 4219
c6b750e1 4220fi;
8a0d8a5c 4221
4b1cb4fe 4222
11b04d1f
DD
4223if test "x$with_gmp" != x; then
4224 gmplibs="-L$with_gmp/lib $gmplibs"
4225 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4226fi
8a0d8a5c
PB
4227if test "x$with_gmp_include" != x; then
4228 gmpinc="-I$with_gmp_include $gmpinc"
4229fi
4230if test "x$with_gmp_lib" != x; then
4231 gmplibs="-L$with_gmp_lib $gmplibs"
4232fi
4b900473
PB
4233if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4234 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4235 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4236 # Do not test the gmp version. Assume that it is sufficient, since
4237 # it is in the source tree, and the library has not been built yet
4238 # but it would be included on the link line in the version check below
4239 # hence making the test fail.
4240 have_gmp=yes
4241fi
4b1cb4fe 4242
ceb92e78 4243if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4244 have_gmp=yes
4245 saved_CFLAGS="$CFLAGS"
4246 CFLAGS="$CFLAGS $gmpinc"
4247 # Check GMP actually works
c6b750e1
DJ
4248 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4249echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4250
4251cat >conftest.$ac_ext <<_ACEOF
4252/* confdefs.h. */
4253_ACEOF
4254cat confdefs.h >>conftest.$ac_ext
4255cat >>conftest.$ac_ext <<_ACEOF
4256/* end confdefs.h. */
4b1cb4fe 4257#include "gmp.h"
c6b750e1
DJ
4258int
4259main ()
4260{
4b1cb4fe 4261
4b900473
PB
4262 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4263 choke me
4264 #endif
c6b750e1
DJ
4265
4266 ;
4267 return 0;
4268}
4269_ACEOF
4270rm -f conftest.$ac_objext
4271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272 (eval $ac_compile) 2>conftest.er1
4273 ac_status=$?
4274 grep -v '^ *+' conftest.er1 >conftest.err
4275 rm -f conftest.er1
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try='test -z "$ac_c_werror_flag"
4280 || test ! -s conftest.err'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 (eval $ac_try) 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; } &&
4286 { ac_try='test -s conftest.$ac_objext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 (eval $ac_try) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 echo "$as_me:$LINENO: result: yes" >&5
4293echo "${ECHO_T}yes" >&6
4294else
4295 echo "$as_me: failed program was:" >&5
4296sed 's/^/| /' conftest.$ac_ext >&5
4297
4298echo "$as_me:$LINENO: result: no" >&5
4299echo "${ECHO_T}no" >&6; have_gmp=no
4300fi
4301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4302
4b900473
PB
4303 if test x"$have_gmp" = xyes; then
4304 saved_LIBS="$LIBS"
4305 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4306 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4307echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4308 cat >conftest.$ac_ext <<_ACEOF
4309/* confdefs.h. */
4310_ACEOF
4311cat confdefs.h >>conftest.$ac_ext
4312cat >>conftest.$ac_ext <<_ACEOF
4313/* end confdefs.h. */
9b134994 4314#include <gmp.h>
4b900473 4315 #include <mpfr.h>
c6b750e1
DJ
4316int
4317main ()
4318{
9b134994 4319
4b900473
PB
4320 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4321 choke me
4322 #endif
4323 mpfr_t n; mpfr_init(n);
4324 mpfr_t x; mpfr_init(x);
4325 int t;
4326 mpfr_atan2 (n, n, x, GMP_RNDN);
4327 mpfr_erfc (n, x, GMP_RNDN);
4328 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4329
4330 ;
4331 return 0;
4332}
4333_ACEOF
4334rm -f conftest.$ac_objext conftest$ac_exeext
4335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336 (eval $ac_link) 2>conftest.er1
4337 ac_status=$?
4338 grep -v '^ *+' conftest.er1 >conftest.err
4339 rm -f conftest.er1
4340 cat conftest.err >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } &&
4343 { ac_try='test -z "$ac_c_werror_flag"
4344 || test ! -s conftest.err'
4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 (eval $ac_try) 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; } &&
4350 { ac_try='test -s conftest$ac_exeext'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 (eval $ac_try) 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 cat >conftest.$ac_ext <<_ACEOF
4357/* confdefs.h. */
4358_ACEOF
4359cat confdefs.h >>conftest.$ac_ext
4360cat >>conftest.$ac_ext <<_ACEOF
4361/* end confdefs.h. */
4b1cb4fe 4362#include <gmp.h>
4b900473 4363 #include <mpfr.h>
c6b750e1
DJ
4364int
4365main ()
4366{
9dbaa842 4367
4b900473
PB
4368 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4369 choke me
4370 #endif
4371 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4372
4373 ;
4374 return 0;
4375}
4376_ACEOF
4377rm -f conftest.$ac_objext conftest$ac_exeext
4378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4379 (eval $ac_link) 2>conftest.er1
4380 ac_status=$?
4381 grep -v '^ *+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try='test -z "$ac_c_werror_flag"
4387 || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try='test -s conftest$ac_exeext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 echo "$as_me:$LINENO: result: yes" >&5
4400echo "${ECHO_T}yes" >&6
4401else
4402 echo "$as_me: failed program was:" >&5
4403sed 's/^/| /' conftest.$ac_ext >&5
4404
4405echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4406echo "${ECHO_T}buggy but acceptable" >&6
4407fi
4408rm -f conftest.err conftest.$ac_objext \
4409 conftest$ac_exeext conftest.$ac_ext
4410else
4411 echo "$as_me: failed program was:" >&5
4412sed 's/^/| /' conftest.$ac_ext >&5
4413
4414echo "$as_me:$LINENO: result: no" >&5
4415echo "${ECHO_T}no" >&6; have_gmp=no
4416fi
4417rm -f conftest.err conftest.$ac_objext \
4418 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4419 LIBS="$saved_LIBS"
4420 fi
4421 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4422
4b900473 4423 if test x$have_gmp != xyes; then
c6b750e1
DJ
4424 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4425Try the --with-gmp and/or --with-mpfr options to specify their locations.
4426Copies of these libraries' source code can be found at their respective
4427hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4428See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4429If you obtained GMP and/or MPFR from a vendor distribution package, make
4430sure that you have installed both the libraries and the header files.
4431They may be located in separate packages." >&5
4432echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
4433Try the --with-gmp and/or --with-mpfr options to specify their locations.
4434Copies of these libraries' source code can be found at their respective
4435hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4436See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4437If you obtained GMP and/or MPFR from a vendor distribution package, make
4438sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4439They may be located in separate packages." >&2;}
4440 { (exit 1); exit 1; }; }
4b900473 4441 fi
9dbaa842
DD
4442fi
4443
11b04d1f 4444# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4445
4446
4447
947f426e 4448# By default, C is the only stage 1 language.
9b134994 4449stage1_languages=,c,
1d39f329 4450
9e07f89d
NN
4451# Figure out what language subdirectories are present.
4452# Look if the user specified --enable-languages="..."; if not, use
4453# the environment variable $LANGUAGES if defined. $LANGUAGES might
4454# go away some day.
4455# NB: embedded tabs in this IF block -- do not untabify
4456if test -d ${srcdir}/gcc; then
4457 if test x"${enable_languages+set}" != xset; then
4458 if test x"${LANGUAGES+set}" = xset; then
4459 enable_languages="${LANGUAGES}"
4460 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4461 else
4462 enable_languages=all
4463 fi
4464 else
4465 if test x"${enable_languages}" = x ||
4466 test x"${enable_languages}" = xyes;
4467 then
4468 echo configure.in: --enable-languages needs at least one language argument 1>&2
4469 exit 1
4470 fi
4471 fi
4472 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4473
096f7d00
DE
4474 # 'f95' is the old name for the 'fortran' language. We issue a warning
4475 # and make the substitution.
4476 case ,${enable_languages}, in
4477 *,f95,*)
4478 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4479 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4480 ;;
4481 esac
4482
9e07f89d
NN
4483 # First scan to see if an enabled language requires some other language.
4484 # We assume that a given config-lang.in will list all the language
4485 # front ends it requires, even if some are required indirectly.
4486 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4487 case ${lang_frag} in
4488 ..) ;;
4489 # The odd quoting in the next line works around
4490 # an apparent bug in bash 1.12 on linux.
4491 ${srcdir}/gcc/[*]/config-lang.in) ;;
4492 *)
4493 # From the config-lang.in, get $language, $lang_requires
4494 language=
4495 lang_requires=
4496 . ${lang_frag}
4497 for other in ${lang_requires} ; do
4498 case ,${enable_languages}, in
4499 *,$other,*) ;;
4500 *,all,*) ;;
4501 *,$language,*)
4502 echo " \`$other' language required by \`$language'; enabling" 1>&2
4503 enable_languages="${enable_languages},${other}"
4504 ;;
4505 esac
4506 done
4507 ;;
4508 esac
4509 done
4510
9b134994 4511 new_enable_languages=,c,
9e07f89d 4512 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4513 potential_languages=,c,
9e07f89d
NN
4514
4515 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4516 case ${lang_frag} in
4517 ..) ;;
4518 # The odd quoting in the next line works around
4519 # an apparent bug in bash 1.12 on linux.
4520 ${srcdir}/gcc/[*]/config-lang.in) ;;
4521 *)
c6b750e1 4522 # From the config-lang.in, get $language, $target_libs,
1d39f329 4523 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4524 language=
4525 target_libs=
4526 lang_dirs=
64ce424c 4527 subdir_requires=
9b134994
PB
4528 boot_language=no
4529 build_by_default=yes
9e07f89d 4530 . ${lang_frag}
9b134994
PB
4531 if test x${language} = x; then
4532 echo "${lang_frag} doesn't set \$language." 1>&2
4533 exit 1
4534 fi
4535
4536 case ,${enable_languages}, in
4537 *,${language},*)
9e07f89d
NN
4538 # Language was explicitly selected; include it.
4539 add_this_lang=yes
4540 ;;
9b134994
PB
4541 *,all,*)
4542 # 'all' was selected, select it if it is a default language
4543 add_this_lang=${build_by_default}
9e07f89d
NN
4544 ;;
4545 *)
4546 add_this_lang=no
4547 ;;
4548 esac
4b1cb4fe 4549
64ce424c 4550 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4551 for i in $subdir_requires; do
3d3adb43 4552 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4553 case ,${enable_languages}, in
4554 *,${language},*)
4555 # Specifically requested language; tell them.
c6b750e1
DJ
4556 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4557echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4558 { (exit 1); exit 1; }; }
64ce424c
PB
4559 ;;
4560 *)
4561 # Silently disable.
9b134994 4562 add_this_lang=unsupported
64ce424c
PB
4563 ;;
4564 esac
4565 done
4566
9b134994
PB
4567 # Disable Ada if no preexisting GNAT is available.
4568 case ,${enable_languages},:${language}:${have_gnat} in
4569 *,${language},*:ada:no)
4570 # Specifically requested language; tell them.
c6b750e1
DJ
4571 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4572echo "$as_me: error: GNAT is required to build $language" >&2;}
4573 { (exit 1); exit 1; }; }
9b134994
PB
4574 ;;
4575 *:ada:no)
4576 # Silently disable.
4577 add_this_lang=unsupported
4578 ;;
4579 esac
4580
59f7ec45
HPN
4581 # Disable a language that is unsupported by the target.
4582 case " $unsupported_languages " in
4583 *" $language "*)
9b134994 4584 add_this_lang=unsupported
59f7ec45
HPN
4585 ;;
4586 esac
4587
4b1cb4fe 4588 case $add_this_lang in
9b134994 4589 unsupported)
9e07f89d 4590 # Remove language-dependent dirs.
1d39f329
NN
4591 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4592 ;;
9b134994
PB
4593 no)
4594 # Remove language-dependent dirs; still show language as supported.
4595 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4596 potential_languages="${potential_languages}${language},"
4597 ;;
4598 yes)
4599 new_enable_languages="${new_enable_languages}${language},"
4600 potential_languages="${potential_languages}${language},"
1d39f329
NN
4601 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4602 case ${boot_language} in
4603 yes)
4fa63067 4604 # Add to (comma-separated) list of stage 1 languages.
9b134994 4605 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4606 ;;
4607 esac
4608 ;;
9e07f89d
NN
4609 esac
4610 ;;
4611 esac
4612 done
4613
9b134994
PB
4614 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4615if test "${enable_stage1_languages+set}" = set; then
4616 enableval="$enable_stage1_languages"
4617 case ,${enable_stage1_languages}, in
4618 ,no,|,,)
4619 # Set it to something that will have no effect in the loop below
4620 enable_stage1_languages=c ;;
4621 ,yes,)
4622 enable_stage1_languages=`echo $new_enable_languages | \
4623 sed -e "s/^,//" -e "s/,$//" ` ;;
4624 *,all,*)
4625 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4626 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4627 esac
4628
4629 # Add "good" languages from enable_stage1_languages to stage1_languages,
4630 # while "bad" languages go in missing_languages. Leave no duplicates.
4631 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4632 case $potential_languages in
4633 *,$i,*)
4634 case $stage1_languages in
4635 *,$i,*) ;;
4636 *) stage1_languages="$stage1_languages$i," ;;
4637 esac ;;
4638 *)
4639 case $missing_languages in
4640 *,$i,*) ;;
4641 *) missing_languages="$missing_languages$i," ;;
4642 esac ;;
4643 esac
4644 done
c6b750e1 4645fi;
9b134994
PB
4646
4647 # Remove leading/trailing commas that were added for simplicity
4648 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4649 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4650 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4651 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4652
9e07f89d 4653 if test "x$missing_languages" != x; then
c6b750e1 4654 { { echo "$as_me:$LINENO: error:
27258dd4 4655The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4656Supported languages are: ${potential_languages}" >&5
4657echo "$as_me: error:
4658The following requested languages could not be built: ${missing_languages}
4659Supported languages are: ${potential_languages}" >&2;}
4660 { (exit 1); exit 1; }; }
9e07f89d 4661 fi
9e07f89d
NN
4662 if test "x$new_enable_languages" != "x$enable_languages"; then
4663 echo The following languages will be built: ${new_enable_languages}
9b134994 4664 enable_languages="$new_enable_languages"
9e07f89d 4665 fi
9b134994 4666
c6b750e1 4667
2e70b094 4668 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
9e07f89d
NN
4669fi
4670
a6df5a19
PB
4671# Handle --disable-<component> generically.
4672for dir in $configdirs $build_configdirs $target_configdirs ; do
4673 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4674 if eval test x\${enable_${dirname}} "=" xno ; then
4675 noconfigdirs="$noconfigdirs $dir"
4676 fi
4677done
4678
4f0ef2d8
CD
4679# Check for Boehm's garbage collector
4680# Check whether --enable-objc-gc or --disable-objc-gc was given.
4681if test "${enable_objc_gc+set}" = set; then
4682 enableval="$enable_objc_gc"
4683 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4684 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4685 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4686echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4687 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4688 ;;
4689esac
c6b750e1 4690fi;
4f0ef2d8
CD
4691
4692# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4693case ,${enable_languages},:${enable_objc_gc} in
4694 *,objc,*:yes)
4f0ef2d8
CD
4695 # Keep target-boehm-gc if requested for Objective-C.
4696 ;;
4f0ef2d8 4697 *)
d42c4017
DA
4698 # Otherwise remove target-boehm-gc depending on target-libjava.
4699 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4700 noconfigdirs="$noconfigdirs target-boehm-gc"
4701 fi
4f0ef2d8
CD
4702 ;;
4703esac
4704
caeba88f
AL
4705# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4706# $build_configdirs and $target_configdirs.
9e07f89d
NN
4707# If we have the source for $noconfigdirs entries, add them to $notsupp.
4708
4709notsupp=""
4710for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4711 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4712 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4713 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4714 if test -r $srcdir/$dirname/configure ; then
4715 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4716 true
4717 else
4718 notsupp="$notsupp $dir"
4719 fi
4720 fi
4721 fi
caeba88f
AL
4722 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4723 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4724 if test -r $srcdir/$dirname/configure ; then
4725 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4726 true
4727 else
4728 notsupp="$notsupp $dir"
4729 fi
4730 fi
4731 fi
9e07f89d
NN
4732 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4733 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4734 if test -r $srcdir/$dirname/configure ; then
4735 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4736 true
4737 else
4738 notsupp="$notsupp $dir"
4739 fi
4740 fi
4741 fi
4742done
4743
4744# Sometimes the tools are distributed with libiberty but with no other
4745# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4746# Don't let libgcc imply libiberty either.
9e07f89d 4747if test -n "${target_configdirs}" ; then
f86e35b8 4748 libgcc=
9e07f89d
NN
4749 others=
4750 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4751 if test "$i" = "libgcc"; then
4752 libgcc=target-libgcc
4753 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4754 if test -r $srcdir/$i/configure ; then
4755 others=yes;
4756 break;
4757 fi
4758 fi
4759 done
4760 if test -z "${others}" ; then
f86e35b8 4761 target_configdirs=$libgcc
9e07f89d
NN
4762 fi
4763fi
4764
4765# Quietly strip out all directories which aren't configurable in this tree.
4766# This relies on all configurable subdirectories being autoconfiscated, which
4767# is now the case.
6a9cf61e
PB
4768build_configdirs_all="$build_configdirs"
4769build_configdirs=
4770for i in ${build_configdirs_all} ; do
c6b750e1 4771 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
4772 if test -f ${srcdir}/$j/configure ; then
4773 build_configdirs="${build_configdirs} $i"
4774 fi
4775done
4776
9e07f89d
NN
4777configdirs_all="$configdirs"
4778configdirs=
4779for i in ${configdirs_all} ; do
4780 if test -f ${srcdir}/$i/configure ; then
4781 configdirs="${configdirs} $i"
4782 fi
4783done
6a9cf61e 4784
9e07f89d
NN
4785target_configdirs_all="$target_configdirs"
4786target_configdirs=
4787for i in ${target_configdirs_all} ; do
c6b750e1 4788 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
4789 if test -f ${srcdir}/$j/configure ; then
4790 target_configdirs="${target_configdirs} $i"
4791 fi
4792done
4793
4794# Produce a warning message for the subdirs we can't configure.
4795# This isn't especially interesting in the Cygnus tree, but in the individual
4796# FSF releases, it's important to let people know when their machine isn't
4797# supported by the one or two programs in a package.
4798
4799if test -n "${notsupp}" && test -z "${norecursion}" ; then
4800 # If $appdirs is non-empty, at least one of those directories must still
4801 # be configured, or we error out. (E.g., if the gas release supports a
4802 # specified target in some subdirs but not the gas subdir, we shouldn't
4803 # pretend that all is well.)
4804 if test -n "$appdirs" ; then
4805 for dir in $appdirs ; do
4806 if test -r $dir/Makefile.in ; then
4807 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4808 appdirs=""
4809 break
4810 fi
6a9cf61e 4811 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
4812 appdirs=""
4813 break
4814 fi
4815 fi
4816 done
4817 if test -n "$appdirs" ; then
4818 echo "*** This configuration is not supported by this package." 1>&2
4819 exit 1
4820 fi
4821 fi
4822 # Okay, some application will build, or we don't care to check. Still
4823 # notify of subdirs not getting built.
4824 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4825 echo " ${notsupp}" 1>&2
4826 echo " (Any other directories should still work fine.)" 1>&2
4827fi
4828
4829case "$host" in
4830 *msdosdjgpp*)
4831 enable_gdbtk=no ;;
4832esac
4833
18f6b6ee
PB
4834# To find our prefix, in gcc_cv_tool_prefix.
4835
4836# The user is always right.
4837if test "${PATH_SEPARATOR+set}" != set; then
4838 echo "#! /bin/sh" >conf$$.sh
4839 echo "exit 0" >>conf$$.sh
4840 chmod +x conf$$.sh
4841 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4842 PATH_SEPARATOR=';'
4843 else
4844 PATH_SEPARATOR=:
4845 fi
4846 rm -f conf$$.sh
4847fi
4848
4849
4850
4851if test "x$exec_prefix" = xNONE; then
4852 if test "x$prefix" = xNONE; then
4853 gcc_cv_tool_prefix=$ac_default_prefix
4854 else
4855 gcc_cv_tool_prefix=$prefix
4856 fi
4857else
4858 gcc_cv_tool_prefix=$exec_prefix
4859fi
4860
4861# If there is no compiler in the tree, use the PATH only. In any
4862# case, if there is no compiler in the tree nobody should use
4863# AS_FOR_TARGET and LD_FOR_TARGET.
4864if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
4865 gcc_version=`cat $srcdir/gcc/BASE-VER`
4866 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4867 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
4868 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4869 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
4870 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4871 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
4872else
4873 gcc_cv_tool_dirs=
4874fi
4875
4876if test x$build = x$target && test -n "$md_exec_prefix"; then
4877 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
4878fi
4879
4880
4881
9e07f89d
NN
4882copy_dirs=
4883
c6b750e1 4884
a19b6204
MM
4885# Check whether --with-build-sysroot or --without-build-sysroot was given.
4886if test "${with_build_sysroot+set}" = set; then
4887 withval="$with_build_sysroot"
4888 if test x"$withval" != x ; then
4889 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
4890 fi
4891else
4892 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 4893fi;
a19b6204
MM
4894
4895
9e07f89d
NN
4896# Handle --with-headers=XXX. If the value is not "yes", the contents of
4897# the named directory are copied to $(tooldir)/sys-include.
4898if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
4899 if test x${is_cross_compiler} = xno ; then
4900 echo 1>&2 '***' --with-headers is only supported when cross compiling
4901 exit 1
4902 fi
4903 if test x"${with_headers}" != xyes ; then
18f6b6ee 4904 x=${gcc_cv_tool_prefix}
c6b750e1 4905 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
4906 fi
4907fi
4908
4909# Handle --with-libs=XXX. If the value is not "yes", the contents of
4910# the name directories are copied to $(tooldir)/lib. Multiple directories
4911# are permitted.
4912if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
4913 if test x${is_cross_compiler} = xno ; then
4914 echo 1>&2 '***' --with-libs is only supported when cross compiling
4915 exit 1
4916 fi
4917 if test x"${with_libs}" != xyes ; then
4918 # Copy the libraries in reverse order, so that files in the first named
4919 # library override files in subsequent libraries.
18f6b6ee 4920 x=${gcc_cv_tool_prefix}
9e07f89d 4921 for l in ${with_libs}; do
c6b750e1 4922 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
4923 done
4924 fi
4925fi
4926
2429c060
PB
4927# Set with_gnu_as and with_gnu_ld as appropriate.
4928#
4929# This is done by determining whether or not the appropriate directory
4930# is available, and by checking whether or not specific configurations
4931# have requested that this magic not happen.
c6b750e1
DJ
4932#
4933# The command line options always override the explicit settings in
2429c060
PB
4934# configure.in, and the settings in configure.in override this magic.
4935#
c6b750e1 4936# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
4937# want to do that, then you should use the --without-gnu-as and
4938# --without-gnu-ld options for the configure script.
4939
4940if test x${use_gnu_as} = x &&
4941 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
4942 with_gnu_as=yes
4943 extra_host_args="$extra_host_args --with-gnu-as"
4944fi
4945
4946if test x${use_gnu_ld} = x &&
4947 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
4948 with_gnu_ld=yes
4949 extra_host_args="$extra_host_args --with-gnu-ld"
4950fi
4951
4952# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4953# can detect this case.
4954
4955if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
4956 with_newlib=yes
4957 extra_host_args="$extra_host_args --with-newlib"
4958fi
4959
9e07f89d
NN
4960# Handle ${copy_dirs}
4961set fnord ${copy_dirs}
4962shift
4963while test $# != 0 ; do
4964 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
4965 :
4966 else
4967 echo Copying $1 to $2
4968
4969 # Use the install script to create the directory and all required
4970 # parent directories.
4971 if test -d $2 ; then
4972 :
4973 else
4974 echo >config.temp
4975 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
4976 fi
4977
4978 # Copy the directory, assuming we have tar.
4979 # FIXME: Should we use B in the second tar? Not all systems support it.
4980 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
4981
4982 # It is the responsibility of the user to correctly adjust all
4983 # symlinks. If somebody can figure out how to handle them correctly
4984 # here, feel free to add the code.
4985
4986 echo $1 > $2/COPIED
4987 fi
4988 shift; shift
4989done
4990
2429c060
PB
4991# Determine a target-dependent exec_prefix that the installed
4992# gcc will search in. Keep this list sorted by triplet, with
4993# the *-*-osname triplets last.
4994md_exec_prefix=
4995case "${target}" in
4996 alpha*-*-*vms*)
4997 md_exec_prefix=/gnu/lib/gcc-lib
4998 ;;
4999 i3456786-pc-msdosdjgpp*)
5000 md_exec_prefix=/dev/env/DJDIR/bin
5001 ;;
5002 i3456786-*-sco3.2v5*)
5003 if test $with_gnu_as = yes; then
5004 md_exec_prefix=/usr/gnu/bin
5005 else
5006 md_exec_prefix=/usr/ccs/bin/elf
5007 fi
5008 ;;
5009
5010 mn10300-*-* | \
5011 powerpc-*-chorusos* | \
5012 powerpc*-*-eabi* | \
5013 powerpc*-*-sysv* | \
5014 powerpc*-*-kaos* | \
5015 s390x-ibm-tpf*)
5016 md_exec_prefix=/usr/ccs/bin
5017 ;;
5018 sparc64-*-elf*)
5019 ;;
5020 v850*-*-*)
5021 md_exec_prefix=/usr/ccs/bin
5022 ;;
5023 xtensa-*-elf*)
5024 ;;
5025
5026 *-*-beos* | \
5027 *-*-elf* | \
5028 *-*-hpux* | \
5029 *-*-netware* | \
5030 *-*-nto-qnx* | \
5031 *-*-rtems* | \
5032 *-*-solaris2* | \
5033 *-*-sysv45* | \
5034 *-*-vxworks* | \
5035 *-wrs-windiss)
5036 md_exec_prefix=/usr/ccs/bin
5037 ;;
5038esac
5039
a0da8069
NN
5040extra_arflags_for_target=
5041extra_nmflags_for_target=
5042extra_ranlibflags_for_target=
5043target_makefile_frag=/dev/null
5044case "${target}" in
4e206d7e
DB
5045 mep*-*-*)
5046 target_makefile_frag="config/mt-mep"
5047 ;;
77d7106f
AM
5048 spu-*-*)
5049 target_makefile_frag="config/mt-spu"
5050 ;;
2a3124ca 5051 *-*-netware*)
a0da8069
NN
5052 target_makefile_frag="config/mt-netware"
5053 ;;
3d6dfe0f
NN
5054 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5055 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5056 ;;
5057 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5058 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5059 # commands to handle both 32-bit and 64-bit objects. These flags are
5060 # harmless if we're using GNU nm or ar.
5061 extra_arflags_for_target=" -X32_64"
5062 extra_nmflags_for_target=" -B -X32_64"
5063 ;;
5064 *-*-darwin*)
5065 # ranlib from Darwin requires the -c flag to look at common symbols.
5066 extra_ranlibflags_for_target=" -c"
5067 ;;
5068 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5069 target_makefile_frag="config/mt-wince"
5070 ;;
5071esac
5072
5073alphaieee_frag=/dev/null
5074case $target in
5075 alpha*-*-*)
5076 # This just makes sure to use the -mieee option to build target libs.
5077 # This should probably be set individually by each library.
5078 alphaieee_frag="config/mt-alphaieee"
5079 ;;
5080esac
5081
5082# If --enable-target-optspace always use -Os instead of -O2 to build
5083# the target libraries, similarly if it is not specified, use -Os
5084# on selected platforms.
5085ospace_frag=/dev/null
5086case "${enable_target_optspace}:${target}" in
5087 yes:*)
5088 ospace_frag="config/mt-ospace"
5089 ;;
5090 :d30v-*)
5091 ospace_frag="config/mt-d30v"
5092 ;;
5093 :m32r-* | :d10v-* | :fr30-*)
5094 ospace_frag="config/mt-ospace"
5095 ;;
5096 no:* | :*)
5097 ;;
5098 *)
5099 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5100 ;;
5101esac
5102
a0da8069
NN
5103# Default to using --with-stabs for certain targets.
5104if test x${with_stabs} = x ; then
5105 case "${target}" in
e31d1ea3 5106 mips*-*-irix[56]*)
a0da8069
NN
5107 ;;
5108 mips*-*-* | alpha*-*-osf*)
5109 with_stabs=yes;
5110 extra_host_args="${extra_host_args} --with-stabs"
5111 ;;
5112 esac
5113fi
5114
5115# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5116# them automatically.
5117case "${host}" in
c6b750e1 5118 hppa*64*-*-hpux11*)
a0da8069
NN
5119 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5120 ;;
5121esac
5122
a0da8069
NN
5123# Some systems (e.g., one of the i386-aix systems the gas testers are
5124# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5125tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5126build_tooldir=${tooldir}
5127
a0da8069
NN
5128# Create a .gdbinit file which runs the one in srcdir
5129# and tells GDB to look there for source files.
5130
5131if test -r ${srcdir}/.gdbinit ; then
5132 case ${srcdir} in
5133 .) ;;
5134 *) cat > ./.gdbinit <<EOF
5135# ${NO_EDIT}
5136dir ${srcdir}
5137dir .
5138source ${srcdir}/.gdbinit
5139EOF
5140 ;;
5141 esac
5142fi
5143
a0da8069
NN
5144# Make sure that the compiler is able to generate an executable. If it
5145# can't, we are probably in trouble. We don't care whether we can run the
5146# executable--we might be using a cross compiler--we only care whether it
5147# can be created. At this point the main configure script has set CC.
5148we_are_ok=no
5149echo "int main () { return 0; }" > conftest.c
5150${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5151if test $? = 0 ; then
5152 if test -s conftest || test -s conftest.exe ; then
5153 we_are_ok=yes
5154 fi
c6b750e1 5155fi
a0da8069
NN
5156case $we_are_ok in
5157 no)
5158 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5159 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5160 rm -f conftest*
5161 exit 1
5162 ;;
5163esac
5164rm -f conftest*
5165
5166# The Solaris /usr/ucb/cc compiler does not appear to work.
5167case "${host}" in
5168 sparc-sun-solaris2*)
5169 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5170 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5171 could_use=
5172 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5173 if test -d /opt/cygnus/bin ; then
5174 if test "$could_use" = "" ; then
5175 could_use="/opt/cygnus/bin"
5176 else
5177 could_use="$could_use or /opt/cygnus/bin"
5178 fi
5179 fi
5180 if test "$could_use" = "" ; then
5181 echo "Warning: compilation may fail because you're using"
5182 echo "/usr/ucb/cc. You should change your PATH or CC "
5183 echo "variable and rerun configure."
5184 else
5185 echo "Warning: compilation may fail because you're using"
5186 echo "/usr/ucb/cc, when you should use the C compiler from"
5187 echo "$could_use. You should change your"
5188 echo "PATH or CC variable and rerun configure."
5189 fi
5190 fi
5191 ;;
5192esac
5193
a0da8069
NN
5194case "${host}" in
5195 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5196 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5197 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5198esac
5199
5200# Record target_configdirs and the configure arguments for target and
5201# build configuration in Makefile.
5202target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5203build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5204
a0da8069
NN
5205# Determine whether gdb needs tk/tcl or not.
5206# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5207# and in that case we want gdb to be built without tk. Ugh!
5208# In fact I believe gdb is the *only* package directly dependent on tk,
5209# so we should be able to put the 'maybe's in unconditionally and
5210# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5211# 100% sure that that's safe though.
c180f501 5212
675c6968 5213gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5214case "$enable_gdbtk" in
5215 no)
5216 GDB_TK="" ;;
c180f501
AC
5217 yes)
5218 GDB_TK="${gdb_tk}" ;;
a0da8069 5219 *)
c180f501
AC
5220 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5221 # distro. Eventually someone will fix this and move Insight, nee
5222 # gdbtk to a separate directory.
5223 if test -d ${srcdir}/gdb/gdbtk ; then
5224 GDB_TK="${gdb_tk}"
5225 else
5226 GDB_TK=""
5227 fi
5228 ;;
a0da8069 5229esac
907be67c
DJ
5230CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5231INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5232
6bd3dfaa 5233# Strip out unwanted targets.
dd12c3a8
NN
5234
5235# While at that, we remove Makefiles if we were started for recursive
5236# configuration, so that the top-level Makefile reconfigures them,
5237# like we used to do when configure itself was recursive.
dd12c3a8 5238
6bd3dfaa
PB
5239# Loop over modules. $extrasub must be used with care, limiting as
5240# much as possible the usage of range addresses. That's because autoconf
5241# splits the sed script to overcome limits in the number of commands,
5242# and relying on carefully-timed sed passes may turn out to be very hard
5243# to maintain later. In this particular case, you just have to be careful
5244# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5245
319cab08
PB
5246# Check whether --enable-bootstrap or --disable-bootstrap was given.
5247if test "${enable_bootstrap+set}" = set; then
5248 enableval="$enable_bootstrap"
c6b750e1 5249
319cab08 5250else
9cb3fa6f 5251 enable_bootstrap=default
c6b750e1 5252fi;
319cab08 5253
9cb3fa6f
PB
5254# Issue errors and warnings for invalid/strange bootstrap combinations.
5255case "$configdirs" in
5256 *gcc*) have_compiler=yes ;;
5257 *) have_compiler=no ;;
5258esac
5259
5260case "$have_compiler:$host:$target:$enable_bootstrap" in
5261 *:*:*:no) ;;
5262
0aed8855 5263 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5264 # and we are in a native configuration.
5265 yes:$build:$build:default)
0aed8855 5266 enable_bootstrap=yes ;;
9cb3fa6f
PB
5267
5268 *:*:*:default)
5269 enable_bootstrap=no ;;
5270
5271 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5272 yes:$build:$build:yes)
9cb3fa6f
PB
5273 ;;
5274
5275 # Other configurations, but we have a compiler. Assume the user knows
5276 # what he's doing.
80911fe1 5277 yes:*:*:yes)
c6b750e1
DJ
5278 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5279echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5280 ;;
5281
5282 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5283 no:*:*:yes)
c6b750e1
DJ
5284 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5285echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5286 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5287
5288 # Fail if wrong command line
5289 *)
c6b750e1
DJ
5290 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5291echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5292 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5293 ;;
5294esac
5295
5296# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5297case "$enable_bootstrap" in
5298 yes)
498d4a71 5299 bootstrap_suffix=bootstrap ;;
319cab08 5300 no)
498d4a71 5301 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5302esac
5303
6a9cf61e 5304for module in ${build_configdirs} ; do
498d4a71
CF
5305 if test -z "${no_recursion}" \
5306 && test -f ${build_subdir}/${module}/Makefile; then
5307 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5308 rm -f ${build_subdir}/${module}/Makefile
5309 fi
5310 extrasub="$extrasub
5311/^@if build-$module\$/d
5312/^@endif build-$module\$/d
5313/^@if build-$module-$bootstrap_suffix\$/d
5314/^@endif build-$module-$bootstrap_suffix\$/d"
5315done
5316for module in ${configdirs} ; do
80911fe1 5317 if test -z "${no_recursion}"; then
8cf39b1b 5318 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5319 if test -f ${file}; then
5320 echo 1>&2 "*** removing ${file} to force reconfigure"
5321 rm -f ${file}
5322 fi
5323 done
498d4a71
CF
5324 fi
5325 extrasub="$extrasub
5326/^@if $module\$/d
5327/^@endif $module\$/d
5328/^@if $module-$bootstrap_suffix\$/d
5329/^@endif $module-$bootstrap_suffix\$/d"
5330done
5331for module in ${target_configdirs} ; do
5332 if test -z "${no_recursion}" \
5333 && test -f ${target_subdir}/${module}/Makefile; then
5334 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5335 rm -f ${target_subdir}/${module}/Makefile
5336 fi
5337 extrasub="$extrasub
5338/^@if target-$module\$/d
5339/^@endif target-$module\$/d
5340/^@if target-$module-$bootstrap_suffix\$/d
5341/^@endif target-$module-$bootstrap_suffix\$/d"
5342done
5343
6bd3dfaa
PB
5344extrasub="$extrasub
5345/^@if /,/^@endif /d"
a0da8069
NN
5346
5347# Create the serialization dependencies. This uses a temporary file.
5348
e6bfb94a
AO
5349# Check whether --enable-serial-configure or --disable-serial-configure was given.
5350if test "${enable_serial_configure+set}" = set; then
5351 enableval="$enable_serial_configure"
e6bfb94a 5352
c6b750e1 5353fi;
e6bfb94a 5354
1047cb91
DD
5355case ${enable_serial_configure} in
5356 yes)
5357 enable_serial_build_configure=yes
5358 enable_serial_host_configure=yes
5359 enable_serial_target_configure=yes
5360 ;;
5361esac
5362
a0da8069
NN
5363# These force 'configure's to be done one at a time, to avoid problems
5364# with contention over a shared config.cache.
5365rm -f serdep.tmp
e6bfb94a 5366echo '# serdep.tmp' > serdep.tmp
a0da8069 5367olditem=
1047cb91 5368test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5369for item in ${build_configdirs} ; do
5370 case ${olditem} in
5371 "") ;;
e6bfb94a 5372 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5373 esac
5374 olditem=${item}
5375done
5376olditem=
1047cb91 5377test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5378for item in ${configdirs} ; do
5379 case ${olditem} in
5380 "") ;;
e6bfb94a 5381 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5382 esac
5383 olditem=${item}
5384done
5385olditem=
1047cb91 5386test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5387for item in ${target_configdirs} ; do
5388 case ${olditem} in
5389 "") ;;
e6bfb94a 5390 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5391 esac
5392 olditem=${item}
5393done
5394serialization_dependencies=serdep.tmp
5395
5396
e6bfb94a 5397# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5398# target, nonopt, and variable assignments. These are the ones we
5399# might not want to pass down to subconfigures. Also strip
5400# program-prefix, program-suffix, and program-transform-name, so that
5401# we can pass down a consistent program-transform-name.
5402baseargs=
5403keep_next=no
5404skip_next=no
5405eval "set -- $ac_configure_args"
18f6b6ee
PB
5406for ac_arg
5407do
c6b750e1
DJ
5408 if test X"$skip_next" = X"yes"; then
5409 skip_next=no
5410 continue
5411 fi
5412 if test X"$keep_next" = X"yes"; then
5413 case $ac_arg in
5414 *\'*)
5415 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5416 esac
5417 baseargs="$baseargs '$ac_arg'"
5418 keep_next=no
5419 continue
5420 fi
5421
5422 # Handle separated arguments. Based on the logic generated by
5423 # autoconf 2.59.
5424 case $ac_arg in
5425 *=* | --config-cache | -C | -disable-* | --disable-* \
5426 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5427 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5428 | -with-* | --with-* | -without-* | --without-* | --x)
5429 separate_arg=no
5430 ;;
5431 -*)
5432 separate_arg=yes
5433 ;;
5434 *)
5435 separate_arg=no
5436 ;;
5437 esac
5438
5439 case "$ac_arg" in
5440 --no*)
5441 continue
5442 ;;
5443 --c* | \
5444 --sr* | \
5445 --ho* | \
5446 --bu* | \
5447 --t* | \
5448 --program-* | \
5449 -cache_file* | \
5450 -srcdir* | \
5451 -host* | \
5452 -build* | \
5453 -target* | \
5454 -program-prefix* | \
5455 -program-suffix* | \
5456 -program-transform-name* )
5457 skip_next=$separate_arg
5458 continue
5459 ;;
5460 -*)
5461 # An option. Add it.
5462 case $ac_arg in
5463 *\'*)
5464 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5465 esac
5466 baseargs="$baseargs '$ac_arg'"
5467 keep_next=$separate_arg
5468 ;;
5469 *)
5470 # Either a variable assignment, or a nonopt (triplet). Don't
5471 # pass it down; let the Makefile handle this.
5472 continue
5473 ;;
5474 esac
5475done
5476# Remove the initial space we just introduced and, as these will be
5477# expanded by make, quote '$'.
5478baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5479
f27d4f92
DJ
5480# Add in --program-transform-name, after --program-prefix and
5481# --program-suffix have been applied to it. Autoconf has already
5482# doubled dollar signs and backslashes in program_transform_name; we want
5483# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5484# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5485# Also, because we want to override the logic in subdir configure scripts to
5486# choose program_transform_name, replace any s,x,x, with s,y,y,.
5487sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5488${program_transform_name}
5489EOF_SED
5490gcc_transform_name=`cat conftestsed.out`
5491rm -f conftestsed.out
5492baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5493
a0da8069
NN
5494# For the build-side libraries, we just need to pretend we're native,
5495# and not use the same cache file. Multilibs are neither needed nor
5496# desired.
4b900473 5497build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5498
5499# For host modules, accept cache file option, or specification as blank.
5500case "${cache_file}" in
5501"") # empty
5502 cache_file_option="" ;;
5503/* | [A-Za-z]:[\\/]* ) # absolute path
5504 cache_file_option="--cache-file=${cache_file}" ;;
5505*) # relative path
5506 cache_file_option="--cache-file=../${cache_file}" ;;
5507esac
5508
82252c06
NN
5509# Host dirs don't like to share a cache file either, horribly enough.
5510# This seems to be due to autoconf 2.5x stupidity.
4b900473 5511host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5512
5513target_configargs=${baseargs}
5514
5515# Passing a --with-cross-host argument lets the target libraries know
5516# whether they are being built with a cross-compiler or being built
5517# native. However, it would be better to use other mechanisms to make the
5518# sorts of decisions they want to make on this basis. Please consider
5519# this option to be deprecated. FIXME.
5520if test x${is_cross_compiler} = xyes ; then
c6b750e1 5521 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5522fi
5523
5524# Default to --enable-multilib.
5525if test x${enable_multilib} = x ; then
5526 target_configargs="--enable-multilib ${target_configargs}"
5527fi
5528
5529# Pass --with-newlib if appropriate. Note that target_configdirs has
5530# changed from the earlier setting of with_newlib.
5531if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5532 target_configargs="--with-newlib ${target_configargs}"
5533fi
5534
95036d20
NN
5535# Different target subdirs use different values of certain variables
5536# (notably CXX). Worse, multilibs use *lots* of different values.
5537# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5538# it doesn't automatically accept command-line overrides of them.
5539# This means it's not safe for target subdirs to share a cache file,
5540# which is disgusting, but there you have it. Hopefully this can be
5541# fixed in future. It's still worthwhile to use a cache file for each
5542# directory. I think.
5543
ae380b45
MS
5544# Pass the appropriate --build, --host, --target and --cache-file arguments.
5545# We need to pass --target, as newer autoconf's requires consistency
5546# for target_alias and gcc doesn't manage it consistently.
4b900473 5547target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5548
a0da8069
NN
5549FLAGS_FOR_TARGET=
5550case " $target_configdirs " in
5551 *" newlib "*)
5552 case " $target_configargs " in
5553 *" --with-newlib "*)
5554 case "$target" in
5555 *-cygwin*)
564b43e5 5556 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' ;;
a0da8069
NN
5557 esac
5558
5559 # If we're not building GCC, don't discard standard headers.
5560 if test -d ${srcdir}/gcc; then
5561 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5562
5563 if test "${build}" != "${host}"; then
5564 # On Canadian crosses, CC_FOR_TARGET will have already been set
5565 # by `configure', so we won't have an opportunity to add -Bgcc/
5566 # to it. This is right: we don't want to search that directory
5567 # for binaries, but we want the header files in there, so add
5568 # them explicitly.
b00612cc 5569 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5570
5571 # Someone might think of using the pre-installed headers on
5572 # Canadian crosses, in case the installed compiler is not fully
5573 # compatible with the compiler being built. In this case, it
5574 # would be better to flag an error than risking having
5575 # incompatible object files being constructed. We can't
5576 # guarantee that an error will be flagged, but let's hope the
5577 # compiler will do it, when presented with incompatible header
5578 # files.
5579 fi
5580 fi
5581
5582 case "${target}-${is_cross_compiler}" in
ec11bdc6 5583 i[3456789]86-*-linux*-no)
a0da8069
NN
5584 # Here host == target, so we don't need to build gcc,
5585 # so we don't want to discard standard headers.
5586 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5587 ;;
5588 *)
5589 # If we're building newlib, use its generic headers last, but search
5590 # for any libc-related directories first (so make it the last -B
5591 # switch).
5592 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5593 ;;
5594 esac
5595 ;;
5596 esac
5597 ;;
5598esac
45055374
CV
5599case "$target" in
5600*-mingw*)
5601 # Can't be handled as Cygwin above since Mingw does not use newlib.
5602 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' ;;
5603esac
a0da8069 5604
5fbad20a
DD
5605# Allow the user to override the flags for
5606# our build compiler if desired.
5607CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5608
a0da8069
NN
5609# On Canadian crosses, we'll be searching the right directories for
5610# the previously-installed cross compiler, so don't bother to add
5611# flags for directories within the install tree of the compiler
5612# being built; programs in there won't even run.
5613if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5614 # Search for pre-installed headers if nothing else fits.
bba45b8b 5615 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
5616fi
5617
5618if test "x${use_gnu_ld}" = x &&
5619 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5620 # Arrange for us to find uninstalled linker scripts.
b00612cc 5621 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5622fi
5623
a481dbb7
DD
5624# Search for other target-specific linker scripts and such.
5625case "${target}" in
5626 m32c-*-* )
5627 if test -d ${srcdir}/libgloss/m32c; then
5628 # This is for crt0.o
5629 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5630 # This is for r8c.ld
5631 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5632 # This is for libnosys.a
5633 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5634 fi
5635 ;;
4e206d7e
DB
5636 mep*)
5637 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5638 ;;
5639esac
5640
a0da8069 5641# Makefile fragments.
3e707e94
PB
5642for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5643do
5644 eval fragval=\$$frag
5645 if test $fragval != /dev/null; then
5646 eval $frag=${srcdir}/$fragval
5647 fi
5648done
a0da8069
NN
5649
5650
5651
5652
5653
5654# Miscellanea: directories, flags, etc.
5655
5656
5657
5658
5659
5660
5661
6a9cf61e 5662# Build module lists & subconfigure args.
a0da8069
NN
5663
5664
5665
be01d343
PB
5666# Host module lists & subconfigure args.
5667
5668
5669
5670# Target module lists & subconfigure args.
5671
5672
5673
5674# Build tools.
5675
5676
5677
5678# Generate default definitions for YACC, M4, LEX and other programs that run
5679# on the build machine. These are used if the Makefile can't locate these
5680# programs in objdir.
5681MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5682
5683for ac_prog in 'bison -y' byacc yacc
5684do
c6b750e1 5685 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5686set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5687echo "$as_me:$LINENO: checking for $ac_word" >&5
5688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689if test "${ac_cv_prog_YACC+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5691else
5692 if test -n "$YACC"; then
5693 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5694else
c6b750e1
DJ
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_YACC="$ac_prog"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706done
5707done
5708
be01d343
PB
5709fi
5710fi
c6b750e1 5711YACC=$ac_cv_prog_YACC
be01d343 5712if test -n "$YACC"; then
c6b750e1
DJ
5713 echo "$as_me:$LINENO: result: $YACC" >&5
5714echo "${ECHO_T}$YACC" >&6
be01d343 5715else
c6b750e1
DJ
5716 echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6
be01d343
PB
5718fi
5719
c6b750e1 5720 test -n "$YACC" && break
be01d343
PB
5721done
5722test -n "$YACC" || YACC="$MISSING bison -y"
5723
5724case " $build_configdirs " in
5725 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5726 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5727esac
5728
5729for ac_prog in bison
5730do
c6b750e1 5731 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5732set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5733echo "$as_me:$LINENO: checking for $ac_word" >&5
5734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5735if test "${ac_cv_prog_BISON+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5737else
5738 if test -n "$BISON"; then
5739 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5740else
c6b750e1
DJ
5741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742for as_dir in $PATH
5743do
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748 ac_cv_prog_BISON="$ac_prog"
5749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 break 2
5751 fi
5752done
5753done
5754
be01d343
PB
5755fi
5756fi
c6b750e1 5757BISON=$ac_cv_prog_BISON
be01d343 5758if test -n "$BISON"; then
c6b750e1
DJ
5759 echo "$as_me:$LINENO: result: $BISON" >&5
5760echo "${ECHO_T}$BISON" >&6
be01d343 5761else
c6b750e1
DJ
5762 echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6
be01d343
PB
5764fi
5765
c6b750e1 5766 test -n "$BISON" && break
be01d343
PB
5767done
5768test -n "$BISON" || BISON="$MISSING bison"
5769
5770case " $build_configdirs " in
5771 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5772esac
5773
5774for ac_prog in gm4 gnum4 m4
5775do
c6b750e1 5776 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5777set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5778echo "$as_me:$LINENO: checking for $ac_word" >&5
5779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5780if test "${ac_cv_prog_M4+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5782else
5783 if test -n "$M4"; then
5784 ac_cv_prog_M4="$M4" # Let the user override the test.
5785else
c6b750e1
DJ
5786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787for as_dir in $PATH
5788do
5789 IFS=$as_save_IFS
5790 test -z "$as_dir" && as_dir=.
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793 ac_cv_prog_M4="$ac_prog"
5794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 2
5796 fi
5797done
5798done
5799
be01d343
PB
5800fi
5801fi
c6b750e1 5802M4=$ac_cv_prog_M4
be01d343 5803if test -n "$M4"; then
c6b750e1
DJ
5804 echo "$as_me:$LINENO: result: $M4" >&5
5805echo "${ECHO_T}$M4" >&6
be01d343 5806else
c6b750e1
DJ
5807 echo "$as_me:$LINENO: result: no" >&5
5808echo "${ECHO_T}no" >&6
be01d343
PB
5809fi
5810
c6b750e1 5811 test -n "$M4" && break
be01d343
PB
5812done
5813test -n "$M4" || M4="$MISSING m4"
5814
5815case " $build_configdirs " in
5816 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5817esac
5818
5819for ac_prog in flex lex
5820do
c6b750e1 5821 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5822set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5823echo "$as_me:$LINENO: checking for $ac_word" >&5
5824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5825if test "${ac_cv_prog_LEX+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5827else
5828 if test -n "$LEX"; then
5829 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5830else
c6b750e1
DJ
5831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832for as_dir in $PATH
5833do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5838 ac_cv_prog_LEX="$ac_prog"
5839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 break 2
5841 fi
5842done
5843done
5844
be01d343
PB
5845fi
5846fi
c6b750e1 5847LEX=$ac_cv_prog_LEX
be01d343 5848if test -n "$LEX"; then
c6b750e1
DJ
5849 echo "$as_me:$LINENO: result: $LEX" >&5
5850echo "${ECHO_T}$LEX" >&6
be01d343 5851else
c6b750e1
DJ
5852 echo "$as_me:$LINENO: result: no" >&5
5853echo "${ECHO_T}no" >&6
be01d343
PB
5854fi
5855
c6b750e1 5856 test -n "$LEX" && break
be01d343
PB
5857done
5858test -n "$LEX" || LEX="$MISSING flex"
5859
5860case " $build_configdirs " in
5861 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5862 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5863esac
5864
5865for ac_prog in flex
5866do
c6b750e1 5867 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5868set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5869echo "$as_me:$LINENO: checking for $ac_word" >&5
5870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5871if test "${ac_cv_prog_FLEX+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5873else
5874 if test -n "$FLEX"; then
5875 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5876else
c6b750e1
DJ
5877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878for as_dir in $PATH
5879do
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884 ac_cv_prog_FLEX="$ac_prog"
5885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 2
5887 fi
5888done
5889done
5890
be01d343
PB
5891fi
5892fi
c6b750e1 5893FLEX=$ac_cv_prog_FLEX
be01d343 5894if test -n "$FLEX"; then
c6b750e1
DJ
5895 echo "$as_me:$LINENO: result: $FLEX" >&5
5896echo "${ECHO_T}$FLEX" >&6
be01d343 5897else
c6b750e1
DJ
5898 echo "$as_me:$LINENO: result: no" >&5
5899echo "${ECHO_T}no" >&6
be01d343
PB
5900fi
5901
c6b750e1 5902 test -n "$FLEX" && break
be01d343
PB
5903done
5904test -n "$FLEX" || FLEX="$MISSING flex"
5905
5906case " $build_configdirs " in
5907 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5908esac
5909
5910for ac_prog in makeinfo
5911do
c6b750e1 5912 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5913set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5914echo "$as_me:$LINENO: checking for $ac_word" >&5
5915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5918else
5919 if test -n "$MAKEINFO"; then
5920 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5921else
c6b750e1
DJ
5922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_MAKEINFO="$ac_prog"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933done
5934done
5935
be01d343
PB
5936fi
5937fi
c6b750e1 5938MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 5939if test -n "$MAKEINFO"; then
c6b750e1
DJ
5940 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5941echo "${ECHO_T}$MAKEINFO" >&6
be01d343 5942else
c6b750e1
DJ
5943 echo "$as_me:$LINENO: result: no" >&5
5944echo "${ECHO_T}no" >&6
be01d343
PB
5945fi
5946
c6b750e1 5947 test -n "$MAKEINFO" && break
be01d343
PB
5948done
5949test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
5950
5951case " $build_configdirs " in
5952 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5953 *)
5954
a4ef73e9 5955 # For an installed makeinfo, we require it to be from texinfo 4.4 or
be01d343
PB
5956 # higher, else we use the "missing" dummy.
5957 if ${MAKEINFO} --version \
a4ef73e9 5958 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
be01d343
PB
5959 :
5960 else
5961 MAKEINFO="$MISSING makeinfo"
5962 fi
5963 ;;
5964
5965esac
a0da8069 5966
be01d343 5967# FIXME: expect and dejagnu may become build tools?
a0da8069 5968
be01d343
PB
5969for ac_prog in expect
5970do
c6b750e1 5971 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5972set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5973echo "$as_me:$LINENO: checking for $ac_word" >&5
5974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5975if test "${ac_cv_prog_EXPECT+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5977else
5978 if test -n "$EXPECT"; then
5979 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5980else
c6b750e1
DJ
5981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982for as_dir in $PATH
5983do
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988 ac_cv_prog_EXPECT="$ac_prog"
5989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5991 fi
5992done
5993done
5994
be01d343
PB
5995fi
5996fi
c6b750e1 5997EXPECT=$ac_cv_prog_EXPECT
be01d343 5998if test -n "$EXPECT"; then
c6b750e1
DJ
5999 echo "$as_me:$LINENO: result: $EXPECT" >&5
6000echo "${ECHO_T}$EXPECT" >&6
be01d343 6001else
c6b750e1
DJ
6002 echo "$as_me:$LINENO: result: no" >&5
6003echo "${ECHO_T}no" >&6
be01d343 6004fi
a0da8069 6005
c6b750e1 6006 test -n "$EXPECT" && break
be01d343
PB
6007done
6008test -n "$EXPECT" || EXPECT="expect"
a0da8069 6009
be01d343
PB
6010case " $configdirs " in
6011 *" expect "*)
6012 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6013 ;;
6014esac
a0da8069 6015
be01d343
PB
6016for ac_prog in runtest
6017do
c6b750e1 6018 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6019set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6020echo "$as_me:$LINENO: checking for $ac_word" >&5
6021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6022if test "${ac_cv_prog_RUNTEST+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6024else
6025 if test -n "$RUNTEST"; then
6026 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6027else
c6b750e1
DJ
6028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029for as_dir in $PATH
6030do
6031 IFS=$as_save_IFS
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6035 ac_cv_prog_RUNTEST="$ac_prog"
6036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 break 2
6038 fi
6039done
6040done
6041
be01d343
PB
6042fi
6043fi
c6b750e1 6044RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6045if test -n "$RUNTEST"; then
c6b750e1
DJ
6046 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6047echo "${ECHO_T}$RUNTEST" >&6
be01d343 6048else
c6b750e1
DJ
6049 echo "$as_me:$LINENO: result: no" >&5
6050echo "${ECHO_T}no" >&6
be01d343 6051fi
a0da8069 6052
c6b750e1 6053 test -n "$RUNTEST" && break
be01d343
PB
6054done
6055test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6056
be01d343
PB
6057case " $configdirs " in
6058 *" dejagnu "*)
6b89cc21 6059 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6060 ;;
6061esac
a0da8069
NN
6062
6063
a0da8069 6064# Host tools.
859789af
AC
6065ncn_tool_prefix=
6066test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6067ncn_target_tool_prefix=
6068test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6069
05cbd757
PB
6070 for ncn_progname in ar; do
6071 if test -n "$ncn_tool_prefix"; then
6072 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6073set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6074echo "$as_me:$LINENO: checking for $ac_word" >&5
6075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6076if test "${ac_cv_prog_AR+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6078else
6079 if test -n "$AR"; then
6080 ac_cv_prog_AR="$AR" # Let the user override the test.
6081else
c6b750e1
DJ
6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH
6084do
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6092 fi
6093done
6094done
6095
859789af
AC
6096fi
6097fi
c6b750e1 6098AR=$ac_cv_prog_AR
859789af 6099if test -n "$AR"; then
c6b750e1
DJ
6100 echo "$as_me:$LINENO: result: $AR" >&5
6101echo "${ECHO_T}$AR" >&6
859789af 6102else
c6b750e1
DJ
6103 echo "$as_me:$LINENO: result: no" >&5
6104echo "${ECHO_T}no" >&6
859789af
AC
6105fi
6106
05cbd757
PB
6107 fi
6108 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6110set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6111echo "$as_me:$LINENO: checking for $ac_word" >&5
6112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6113if test "${ac_cv_prog_AR+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6115else
05cbd757
PB
6116 if test -n "$AR"; then
6117 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6118else
c6b750e1
DJ
6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126 ac_cv_prog_AR="${ncn_progname}"
6127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6129 fi
6130done
6131done
6132
859789af
AC
6133fi
6134fi
c6b750e1 6135AR=$ac_cv_prog_AR
05cbd757 6136if test -n "$AR"; then
c6b750e1
DJ
6137 echo "$as_me:$LINENO: result: $AR" >&5
6138echo "${ECHO_T}$AR" >&6
859789af 6139else
c6b750e1
DJ
6140 echo "$as_me:$LINENO: result: no" >&5
6141echo "${ECHO_T}no" >&6
859789af 6142fi
c6b750e1 6143
05cbd757
PB
6144 fi
6145 test -n "$ac_cv_prog_AR" && break
6146done
6147
6148if test -z "$ac_cv_prog_AR" ; then
6149 set dummy ar
6150 if test $build = $host ; then
6151 AR="$2"
859789af 6152 else
05cbd757 6153 AR="${ncn_tool_prefix}$2"
859789af 6154 fi
859789af
AC
6155fi
6156
05cbd757
PB
6157 for ncn_progname in as; do
6158 if test -n "$ncn_tool_prefix"; then
6159 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6160set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6161echo "$as_me:$LINENO: checking for $ac_word" >&5
6162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6163if test "${ac_cv_prog_AS+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6165else
6166 if test -n "$AS"; then
6167 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6168else
6169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170for as_dir in $PATH
6171do
6172 IFS=$as_save_IFS
6173 test -z "$as_dir" && as_dir=.
6174 for ac_exec_ext in '' $ac_executable_extensions; do
6175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6176 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 break 2
6179 fi
6180done
6181done
6182
859789af
AC
6183fi
6184fi
c6b750e1 6185AS=$ac_cv_prog_AS
859789af 6186if test -n "$AS"; then
c6b750e1
DJ
6187 echo "$as_me:$LINENO: result: $AS" >&5
6188echo "${ECHO_T}$AS" >&6
859789af 6189else
c6b750e1
DJ
6190 echo "$as_me:$LINENO: result: no" >&5
6191echo "${ECHO_T}no" >&6
859789af
AC
6192fi
6193
05cbd757
PB
6194 fi
6195 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6197set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6198echo "$as_me:$LINENO: checking for $ac_word" >&5
6199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6200if test "${ac_cv_prog_AS+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6202else
05cbd757
PB
6203 if test -n "$AS"; then
6204 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6205else
c6b750e1
DJ
6206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207for as_dir in $PATH
6208do
6209 IFS=$as_save_IFS
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6213 ac_cv_prog_AS="${ncn_progname}"
6214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 break 2
6216 fi
6217done
6218done
6219
859789af
AC
6220fi
6221fi
c6b750e1 6222AS=$ac_cv_prog_AS
05cbd757 6223if test -n "$AS"; then
c6b750e1
DJ
6224 echo "$as_me:$LINENO: result: $AS" >&5
6225echo "${ECHO_T}$AS" >&6
859789af 6226else
c6b750e1
DJ
6227 echo "$as_me:$LINENO: result: no" >&5
6228echo "${ECHO_T}no" >&6
859789af 6229fi
c6b750e1 6230
05cbd757
PB
6231 fi
6232 test -n "$ac_cv_prog_AS" && break
6233done
6234
6235if test -z "$ac_cv_prog_AS" ; then
6236 set dummy as
6237 if test $build = $host ; then
6238 AS="$2"
859789af 6239 else
05cbd757 6240 AS="${ncn_tool_prefix}$2"
859789af 6241 fi
859789af
AC
6242fi
6243
05cbd757
PB
6244 for ncn_progname in dlltool; do
6245 if test -n "$ncn_tool_prefix"; then
6246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6247set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6248echo "$as_me:$LINENO: checking for $ac_word" >&5
6249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6250if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6252else
6253 if test -n "$DLLTOOL"; then
6254 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6255else
c6b750e1
DJ
6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257for as_dir in $PATH
6258do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6266 fi
6267done
6268done
6269
859789af
AC
6270fi
6271fi
c6b750e1 6272DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6273if test -n "$DLLTOOL"; then
c6b750e1
DJ
6274 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6275echo "${ECHO_T}$DLLTOOL" >&6
859789af 6276else
c6b750e1
DJ
6277 echo "$as_me:$LINENO: result: no" >&5
6278echo "${ECHO_T}no" >&6
859789af
AC
6279fi
6280
05cbd757
PB
6281 fi
6282 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6284set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6285echo "$as_me:$LINENO: checking for $ac_word" >&5
6286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6287if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6289else
05cbd757
PB
6290 if test -n "$DLLTOOL"; then
6291 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6292else
c6b750e1
DJ
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_DLLTOOL="${ncn_progname}"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6303 fi
6304done
6305done
6306
859789af
AC
6307fi
6308fi
c6b750e1 6309DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6310if test -n "$DLLTOOL"; then
c6b750e1
DJ
6311 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6312echo "${ECHO_T}$DLLTOOL" >&6
859789af 6313else
c6b750e1
DJ
6314 echo "$as_me:$LINENO: result: no" >&5
6315echo "${ECHO_T}no" >&6
859789af 6316fi
c6b750e1 6317
05cbd757
PB
6318 fi
6319 test -n "$ac_cv_prog_DLLTOOL" && break
6320done
6321
6322if test -z "$ac_cv_prog_DLLTOOL" ; then
6323 set dummy dlltool
6324 if test $build = $host ; then
6325 DLLTOOL="$2"
859789af 6326 else
05cbd757 6327 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6328 fi
859789af
AC
6329fi
6330
05cbd757
PB
6331 for ncn_progname in ld; do
6332 if test -n "$ncn_tool_prefix"; then
6333 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6334set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6335echo "$as_me:$LINENO: checking for $ac_word" >&5
6336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6337if test "${ac_cv_prog_LD+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6339else
6340 if test -n "$LD"; then
6341 ac_cv_prog_LD="$LD" # Let the user override the test.
6342else
c6b750e1
DJ
6343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6353 fi
6354done
6355done
6356
859789af
AC
6357fi
6358fi
c6b750e1 6359LD=$ac_cv_prog_LD
859789af 6360if test -n "$LD"; then
c6b750e1
DJ
6361 echo "$as_me:$LINENO: result: $LD" >&5
6362echo "${ECHO_T}$LD" >&6
859789af 6363else
c6b750e1
DJ
6364 echo "$as_me:$LINENO: result: no" >&5
6365echo "${ECHO_T}no" >&6
859789af
AC
6366fi
6367
05cbd757
PB
6368 fi
6369 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6371set dummy ${ncn_progname}; ac_word=$2
c6b750e1
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_LD+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6376else
05cbd757
PB
6377 if test -n "$LD"; then
6378 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6379else
c6b750e1
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_LD="${ncn_progname}"
6388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6390 fi
6391done
6392done
6393
859789af
AC
6394fi
6395fi
c6b750e1 6396LD=$ac_cv_prog_LD
05cbd757 6397if test -n "$LD"; then
c6b750e1
DJ
6398 echo "$as_me:$LINENO: result: $LD" >&5
6399echo "${ECHO_T}$LD" >&6
859789af 6400else
c6b750e1
DJ
6401 echo "$as_me:$LINENO: result: no" >&5
6402echo "${ECHO_T}no" >&6
859789af 6403fi
c6b750e1 6404
05cbd757
PB
6405 fi
6406 test -n "$ac_cv_prog_LD" && break
6407done
6408
6409if test -z "$ac_cv_prog_LD" ; then
6410 set dummy ld
6411 if test $build = $host ; then
6412 LD="$2"
859789af 6413 else
05cbd757 6414 LD="${ncn_tool_prefix}$2"
859789af 6415 fi
859789af
AC
6416fi
6417
be01d343
PB
6418 for ncn_progname in lipo; do
6419 if test -n "$ncn_tool_prefix"; then
6420 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6421set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6422echo "$as_me:$LINENO: checking for $ac_word" >&5
6423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6424if test "${ac_cv_prog_LIPO+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6426else
6427 if test -n "$LIPO"; then
6428 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6429else
c6b750e1
DJ
6430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431for as_dir in $PATH
6432do
6433 IFS=$as_save_IFS
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 break 2
6440 fi
6441done
6442done
6443
be01d343
PB
6444fi
6445fi
c6b750e1 6446LIPO=$ac_cv_prog_LIPO
be01d343 6447if test -n "$LIPO"; then
c6b750e1
DJ
6448 echo "$as_me:$LINENO: result: $LIPO" >&5
6449echo "${ECHO_T}$LIPO" >&6
be01d343 6450else
c6b750e1
DJ
6451 echo "$as_me:$LINENO: result: no" >&5
6452echo "${ECHO_T}no" >&6
be01d343
PB
6453fi
6454
6455 fi
6456 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6458set dummy ${ncn_progname}; ac_word=$2
c6b750e1
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_LIPO+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6463else
6464 if test -n "$LIPO"; then
6465 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6466else
c6b750e1
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_LIPO="${ncn_progname}"
6475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478done
6479done
6480
be01d343
PB
6481fi
6482fi
c6b750e1 6483LIPO=$ac_cv_prog_LIPO
be01d343 6484if test -n "$LIPO"; then
c6b750e1
DJ
6485 echo "$as_me:$LINENO: result: $LIPO" >&5
6486echo "${ECHO_T}$LIPO" >&6
be01d343 6487else
c6b750e1
DJ
6488 echo "$as_me:$LINENO: result: no" >&5
6489echo "${ECHO_T}no" >&6
be01d343 6490fi
c6b750e1 6491
be01d343
PB
6492 fi
6493 test -n "$ac_cv_prog_LIPO" && break
6494done
6495
6496if test -z "$ac_cv_prog_LIPO" ; then
6497 set dummy lipo
6498 if test $build = $host ; then
6499 LIPO="$2"
6500 else
6501 LIPO="${ncn_tool_prefix}$2"
6502 fi
6503fi
6504
05cbd757
PB
6505 for ncn_progname in nm; do
6506 if test -n "$ncn_tool_prefix"; then
6507 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6508set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6509echo "$as_me:$LINENO: checking for $ac_word" >&5
6510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6511if test "${ac_cv_prog_NM+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6513else
6514 if test -n "$NM"; then
6515 ac_cv_prog_NM="$NM" # Let the user override the test.
6516else
c6b750e1
DJ
6517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
6525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6527 fi
6528done
6529done
6530
859789af
AC
6531fi
6532fi
c6b750e1 6533NM=$ac_cv_prog_NM
859789af 6534if test -n "$NM"; then
c6b750e1
DJ
6535 echo "$as_me:$LINENO: result: $NM" >&5
6536echo "${ECHO_T}$NM" >&6
859789af 6537else
c6b750e1
DJ
6538 echo "$as_me:$LINENO: result: no" >&5
6539echo "${ECHO_T}no" >&6
859789af
AC
6540fi
6541
05cbd757
PB
6542 fi
6543 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6545set dummy ${ncn_progname}; ac_word=$2
c6b750e1
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_NM+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6550else
05cbd757
PB
6551 if test -n "$NM"; then
6552 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 6553else
c6b750e1
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_NM="${ncn_progname}"
6562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6564 fi
6565done
6566done
6567
859789af
AC
6568fi
6569fi
c6b750e1 6570NM=$ac_cv_prog_NM
05cbd757 6571if test -n "$NM"; then
c6b750e1
DJ
6572 echo "$as_me:$LINENO: result: $NM" >&5
6573echo "${ECHO_T}$NM" >&6
859789af 6574else
c6b750e1
DJ
6575 echo "$as_me:$LINENO: result: no" >&5
6576echo "${ECHO_T}no" >&6
859789af 6577fi
c6b750e1 6578
05cbd757
PB
6579 fi
6580 test -n "$ac_cv_prog_NM" && break
6581done
6582
6583if test -z "$ac_cv_prog_NM" ; then
6584 set dummy nm
6585 if test $build = $host ; then
6586 NM="$2"
859789af 6587 else
05cbd757 6588 NM="${ncn_tool_prefix}$2"
859789af 6589 fi
859789af
AC
6590fi
6591
05cbd757
PB
6592 for ncn_progname in ranlib; do
6593 if test -n "$ncn_tool_prefix"; then
6594 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6595set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6596echo "$as_me:$LINENO: checking for $ac_word" >&5
6597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6598if test "${ac_cv_prog_RANLIB+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6600else
6601 if test -n "$RANLIB"; then
6602 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6603else
c6b750e1
DJ
6604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605for as_dir in $PATH
6606do
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6611 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
6612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6614 fi
6615done
6616done
6617
859789af
AC
6618fi
6619fi
c6b750e1 6620RANLIB=$ac_cv_prog_RANLIB
859789af 6621if test -n "$RANLIB"; then
c6b750e1
DJ
6622 echo "$as_me:$LINENO: result: $RANLIB" >&5
6623echo "${ECHO_T}$RANLIB" >&6
859789af 6624else
c6b750e1
DJ
6625 echo "$as_me:$LINENO: result: no" >&5
6626echo "${ECHO_T}no" >&6
859789af
AC
6627fi
6628
05cbd757
PB
6629 fi
6630 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
6631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6632set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6633echo "$as_me:$LINENO: checking for $ac_word" >&5
6634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6635if test "${ac_cv_prog_RANLIB+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6637else
05cbd757
PB
6638 if test -n "$RANLIB"; then
6639 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 6640else
c6b750e1
DJ
6641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6648 ac_cv_prog_RANLIB="${ncn_progname}"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6651 fi
6652done
6653done
6654
859789af
AC
6655fi
6656fi
c6b750e1 6657RANLIB=$ac_cv_prog_RANLIB
05cbd757 6658if test -n "$RANLIB"; then
c6b750e1
DJ
6659 echo "$as_me:$LINENO: result: $RANLIB" >&5
6660echo "${ECHO_T}$RANLIB" >&6
859789af 6661else
c6b750e1
DJ
6662 echo "$as_me:$LINENO: result: no" >&5
6663echo "${ECHO_T}no" >&6
859789af 6664fi
c6b750e1 6665
859789af 6666 fi
05cbd757
PB
6667 test -n "$ac_cv_prog_RANLIB" && break
6668done
6669
6670if test -z "$ac_cv_prog_RANLIB" ; then
6671 RANLIB=":"
859789af
AC
6672fi
6673
be01d343
PB
6674 for ncn_progname in strip; do
6675 if test -n "$ncn_tool_prefix"; then
6676 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6677set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6678echo "$as_me:$LINENO: checking for $ac_word" >&5
6679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6680if test "${ac_cv_prog_STRIP+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6682else
6683 if test -n "$STRIP"; then
6684 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6685else
c6b750e1
DJ
6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in $PATH
6688do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
6694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6696 fi
6697done
6698done
6699
be01d343
PB
6700fi
6701fi
c6b750e1 6702STRIP=$ac_cv_prog_STRIP
be01d343 6703if test -n "$STRIP"; then
c6b750e1
DJ
6704 echo "$as_me:$LINENO: result: $STRIP" >&5
6705echo "${ECHO_T}$STRIP" >&6
be01d343 6706else
c6b750e1
DJ
6707 echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
be01d343
PB
6709fi
6710
6711 fi
6712 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
6713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6714set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6715echo "$as_me:$LINENO: checking for $ac_word" >&5
6716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6717if test "${ac_cv_prog_STRIP+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6719else
6720 if test -n "$STRIP"; then
6721 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6722else
c6b750e1
DJ
6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724for as_dir in $PATH
6725do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730 ac_cv_prog_STRIP="${ncn_progname}"
6731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734done
6735done
6736
be01d343
PB
6737fi
6738fi
c6b750e1 6739STRIP=$ac_cv_prog_STRIP
be01d343 6740if test -n "$STRIP"; then
c6b750e1
DJ
6741 echo "$as_me:$LINENO: result: $STRIP" >&5
6742echo "${ECHO_T}$STRIP" >&6
be01d343 6743else
c6b750e1
DJ
6744 echo "$as_me:$LINENO: result: no" >&5
6745echo "${ECHO_T}no" >&6
be01d343 6746fi
c6b750e1 6747
be01d343
PB
6748 fi
6749 test -n "$ac_cv_prog_STRIP" && break
6750done
6751
6752if test -z "$ac_cv_prog_STRIP" ; then
6753 STRIP=":"
6754fi
6755
05cbd757
PB
6756 for ncn_progname in windres; do
6757 if test -n "$ncn_tool_prefix"; then
6758 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6759set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6760echo "$as_me:$LINENO: checking for $ac_word" >&5
6761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6762if test "${ac_cv_prog_WINDRES+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6764else
6765 if test -n "$WINDRES"; then
6766 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6767else
c6b750e1
DJ
6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769for as_dir in $PATH
6770do
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6778 fi
6779done
6780done
6781
859789af
AC
6782fi
6783fi
c6b750e1 6784WINDRES=$ac_cv_prog_WINDRES
859789af 6785if test -n "$WINDRES"; then
c6b750e1
DJ
6786 echo "$as_me:$LINENO: result: $WINDRES" >&5
6787echo "${ECHO_T}$WINDRES" >&6
859789af 6788else
c6b750e1
DJ
6789 echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6
859789af
AC
6791fi
6792
05cbd757
PB
6793 fi
6794 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6796set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6797echo "$as_me:$LINENO: checking for $ac_word" >&5
6798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6799if test "${ac_cv_prog_WINDRES+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6801else
05cbd757
PB
6802 if test -n "$WINDRES"; then
6803 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 6804else
c6b750e1
DJ
6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6812 ac_cv_prog_WINDRES="${ncn_progname}"
6813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6815 fi
6816done
6817done
6818
859789af
AC
6819fi
6820fi
c6b750e1 6821WINDRES=$ac_cv_prog_WINDRES
05cbd757 6822if test -n "$WINDRES"; then
c6b750e1
DJ
6823 echo "$as_me:$LINENO: result: $WINDRES" >&5
6824echo "${ECHO_T}$WINDRES" >&6
859789af 6825else
c6b750e1
DJ
6826 echo "$as_me:$LINENO: result: no" >&5
6827echo "${ECHO_T}no" >&6
859789af 6828fi
c6b750e1 6829
05cbd757
PB
6830 fi
6831 test -n "$ac_cv_prog_WINDRES" && break
6832done
6833
6834if test -z "$ac_cv_prog_WINDRES" ; then
6835 set dummy windres
6836 if test $build = $host ; then
6837 WINDRES="$2"
859789af 6838 else
05cbd757 6839 WINDRES="${ncn_tool_prefix}$2"
859789af 6840 fi
859789af
AC
6841fi
6842
05cbd757
PB
6843 for ncn_progname in objcopy; do
6844 if test -n "$ncn_tool_prefix"; then
6845 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6846set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6847echo "$as_me:$LINENO: checking for $ac_word" >&5
6848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6849if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6851else
6852 if test -n "$OBJCOPY"; then
6853 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6854else
c6b750e1
DJ
6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856for as_dir in $PATH
6857do
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6862 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 break 2
6865 fi
6866done
6867done
6868
859789af
AC
6869fi
6870fi
c6b750e1 6871OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 6872if test -n "$OBJCOPY"; then
c6b750e1
DJ
6873 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6874echo "${ECHO_T}$OBJCOPY" >&6
859789af 6875else
c6b750e1
DJ
6876 echo "$as_me:$LINENO: result: no" >&5
6877echo "${ECHO_T}no" >&6
859789af
AC
6878fi
6879
05cbd757
PB
6880 fi
6881 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6883set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6884echo "$as_me:$LINENO: checking for $ac_word" >&5
6885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6886if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6888else
05cbd757
PB
6889 if test -n "$OBJCOPY"; then
6890 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 6891else
c6b750e1
DJ
6892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893for as_dir in $PATH
6894do
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6899 ac_cv_prog_OBJCOPY="${ncn_progname}"
6900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6902 fi
6903done
6904done
6905
859789af
AC
6906fi
6907fi
c6b750e1 6908OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 6909if test -n "$OBJCOPY"; then
c6b750e1
DJ
6910 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6911echo "${ECHO_T}$OBJCOPY" >&6
859789af 6912else
c6b750e1
DJ
6913 echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6
859789af 6915fi
c6b750e1 6916
05cbd757
PB
6917 fi
6918 test -n "$ac_cv_prog_OBJCOPY" && break
6919done
6920
6921if test -z "$ac_cv_prog_OBJCOPY" ; then
6922 set dummy objcopy
6923 if test $build = $host ; then
6924 OBJCOPY="$2"
859789af 6925 else
05cbd757 6926 OBJCOPY="${ncn_tool_prefix}$2"
859789af 6927 fi
859789af
AC
6928fi
6929
05cbd757
PB
6930 for ncn_progname in objdump; do
6931 if test -n "$ncn_tool_prefix"; then
6932 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6933set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6934echo "$as_me:$LINENO: checking for $ac_word" >&5
6935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6936if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6938else
6939 if test -n "$OBJDUMP"; then
6940 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6941else
c6b750e1
DJ
6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953done
6954done
6955
859789af
AC
6956fi
6957fi
c6b750e1 6958OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 6959if test -n "$OBJDUMP"; then
c6b750e1
DJ
6960 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6961echo "${ECHO_T}$OBJDUMP" >&6
859789af 6962else
c6b750e1
DJ
6963 echo "$as_me:$LINENO: result: no" >&5
6964echo "${ECHO_T}no" >&6
859789af
AC
6965fi
6966
05cbd757
PB
6967 fi
6968 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6970set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6971echo "$as_me:$LINENO: checking for $ac_word" >&5
6972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6973if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6975else
05cbd757
PB
6976 if test -n "$OBJDUMP"; then
6977 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 6978else
c6b750e1
DJ
6979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980for as_dir in $PATH
6981do
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986 ac_cv_prog_OBJDUMP="${ncn_progname}"
6987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 break 2
6989 fi
6990done
6991done
6992
859789af
AC
6993fi
6994fi
c6b750e1 6995OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 6996if test -n "$OBJDUMP"; then
c6b750e1
DJ
6997 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6998echo "${ECHO_T}$OBJDUMP" >&6
859789af 6999else
c6b750e1
DJ
7000 echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6
859789af 7002fi
c6b750e1 7003
05cbd757
PB
7004 fi
7005 test -n "$ac_cv_prog_OBJDUMP" && break
7006done
7007
7008if test -z "$ac_cv_prog_OBJDUMP" ; then
7009 set dummy objdump
7010 if test $build = $host ; then
7011 OBJDUMP="$2"
859789af 7012 else
05cbd757 7013 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7014 fi
859789af
AC
7015fi
7016
a0da8069
NN
7017
7018
7019
7020
7021
7022
be01d343 7023# Target tools.
c6b750e1 7024
2429c060
PB
7025# Check whether --with-build-time-tools or --without-build-time-tools was given.
7026if test "${with_build_time_tools+set}" = set; then
7027 withval="$with_build_time_tools"
7028 case x"$withval" in
7029 x/*) ;;
7030 *)
7031 with_build_time_tools=
c6b750e1
DJ
7032 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7033echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7034 ;;
7035 esac
859789af 7036else
2429c060 7037 with_build_time_tools=
c6b750e1 7038fi;
859789af 7039
2429c060
PB
7040 if test -n "$with_build_time_tools"; then
7041 for ncn_progname in cc gcc; do
c6b750e1
DJ
7042 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7043echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7044 if test -x $with_build_time_tools/${ncn_progname}; then
7045 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7046 echo "$as_me:$LINENO: result: yes" >&5
7047echo "${ECHO_T}yes" >&6
cac3d6c4 7048 break
2429c060 7049 else
c6b750e1
DJ
7050 echo "$as_me:$LINENO: result: no" >&5
7051echo "${ECHO_T}no" >&6
cac3d6c4
CM
7052 fi
7053 done
55db4b87
PB
7054fi
7055
2429c060
PB
7056if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7057 for ncn_progname in cc gcc; do
7058 if test -n "$ncn_target_tool_prefix"; then
7059 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7060set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7061echo "$as_me:$LINENO: checking for $ac_word" >&5
7062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7063if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7065else
7066 if test -n "$CC_FOR_TARGET"; then
7067 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7068else
c6b750e1
DJ
7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080done
7081done
7082
55db4b87
PB
7083fi
7084fi
c6b750e1 7085CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 7086if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
7087 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7088echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 7089else
c6b750e1
DJ
7090 echo "$as_me:$LINENO: result: no" >&5
7091echo "${ECHO_T}no" >&6
55db4b87
PB
7092fi
7093
2429c060
PB
7094 fi
7095 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7097set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7098echo "$as_me:$LINENO: checking for $ac_word" >&5
7099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7100if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7102else
05cbd757
PB
7103 if test -n "$CC_FOR_TARGET"; then
7104 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 7105else
c6b750e1
DJ
7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7113 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7116 fi
7117done
7118done
7119
55db4b87
PB
7120fi
7121fi
c6b750e1 7122CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 7123if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
7124 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7125echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 7126else
c6b750e1
DJ
7127 echo "$as_me:$LINENO: result: no" >&5
7128echo "${ECHO_T}no" >&6
55db4b87 7129fi
c6b750e1 7130
2429c060
PB
7131 fi
7132 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
7133 done
7134fi
c6b750e1 7135
05cbd757
PB
7136if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
7137 set dummy cc gcc
7138 if test $build = $target ; then
7139 CC_FOR_TARGET="$2"
55db4b87 7140 else
05cbd757 7141 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 7142 fi
55db4b87
PB
7143fi
7144
2429c060
PB
7145 if test -n "$with_build_time_tools"; then
7146 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
7147 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7148echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7149 if test -x $with_build_time_tools/${ncn_progname}; then
7150 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7151 echo "$as_me:$LINENO: result: yes" >&5
7152echo "${ECHO_T}yes" >&6
2429c060
PB
7153 break
7154 else
c6b750e1
DJ
7155 echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6
2429c060
PB
7157 fi
7158 done
7159fi
7160
7161if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
7162 for ncn_progname in c++ g++ cxx gxx; do
7163 if test -n "$ncn_target_tool_prefix"; then
7164 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7165set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7166echo "$as_me:$LINENO: checking for $ac_word" >&5
7167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7168if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7170else
7171 if test -n "$CXX_FOR_TARGET"; then
7172 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7173else
c6b750e1
DJ
7174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7184 fi
7185done
7186done
7187
55db4b87
PB
7188fi
7189fi
c6b750e1 7190CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 7191if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
7192 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7193echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 7194else
c6b750e1
DJ
7195 echo "$as_me:$LINENO: result: no" >&5
7196echo "${ECHO_T}no" >&6
55db4b87
PB
7197fi
7198
2429c060
PB
7199 fi
7200 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
7201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7202set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7203echo "$as_me:$LINENO: checking for $ac_word" >&5
7204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7205if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7207else
05cbd757
PB
7208 if test -n "$CXX_FOR_TARGET"; then
7209 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 7210else
c6b750e1
DJ
7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212for as_dir in $PATH
7213do
7214 IFS=$as_save_IFS
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 break 2
7221 fi
7222done
7223done
7224
55db4b87
PB
7225fi
7226fi
c6b750e1 7227CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 7228if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
7229 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7230echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 7231else
c6b750e1
DJ
7232 echo "$as_me:$LINENO: result: no" >&5
7233echo "${ECHO_T}no" >&6
55db4b87 7234fi
c6b750e1 7235
2429c060
PB
7236 fi
7237 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
7238 done
7239fi
c6b750e1 7240
05cbd757
PB
7241if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
7242 set dummy c++ g++ cxx gxx
7243 if test $build = $target ; then
7244 CXX_FOR_TARGET="$2"
55db4b87 7245 else
05cbd757 7246 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 7247 fi
859789af
AC
7248fi
7249
2429c060
PB
7250 if test -n "$with_build_time_tools"; then
7251 for ncn_progname in gcc; do
c6b750e1
DJ
7252 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7253echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7254 if test -x $with_build_time_tools/${ncn_progname}; then
7255 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7256 echo "$as_me:$LINENO: result: yes" >&5
7257echo "${ECHO_T}yes" >&6
2429c060
PB
7258 break
7259 else
c6b750e1
DJ
7260 echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6
2429c060
PB
7262 fi
7263 done
7264fi
7265
7266if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
7267 for ncn_progname in gcc; do
7268 if test -n "$ncn_target_tool_prefix"; then
7269 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7270set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7271echo "$as_me:$LINENO: checking for $ac_word" >&5
7272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7273if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7275else
2429c060
PB
7276 if test -n "$GCC_FOR_TARGET"; then
7277 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 7278else
c6b750e1
DJ
7279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280for as_dir in $PATH
7281do
7282 IFS=$as_save_IFS
7283 test -z "$as_dir" && as_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 break 2
7289 fi
7290done
7291done
7292
55db4b87
PB
7293fi
7294fi
c6b750e1 7295GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 7296if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
7297 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
7298echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 7299else
c6b750e1
DJ
7300 echo "$as_me:$LINENO: result: no" >&5
7301echo "${ECHO_T}no" >&6
55db4b87
PB
7302fi
7303
2429c060
PB
7304 fi
7305 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
7306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7307set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7308echo "$as_me:$LINENO: checking for $ac_word" >&5
7309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7310if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7312else
05cbd757
PB
7313 if test -n "$GCC_FOR_TARGET"; then
7314 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 7315else
c6b750e1
DJ
7316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 break 2
7326 fi
7327done
7328done
7329
55db4b87
PB
7330fi
7331fi
c6b750e1 7332GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 7333if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
7334 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
7335echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 7336else
c6b750e1
DJ
7337 echo "$as_me:$LINENO: result: no" >&5
7338echo "${ECHO_T}no" >&6
55db4b87 7339fi
c6b750e1 7340
2429c060
PB
7341 fi
7342 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
7343 done
7344fi
c6b750e1 7345
05cbd757
PB
7346if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
7347 GCC_FOR_TARGET="${CC_FOR_TARGET}"
55db4b87
PB
7348fi
7349
2429c060
PB
7350 if test -n "$with_build_time_tools"; then
7351 for ncn_progname in gcj; do
c6b750e1
DJ
7352 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7353echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7354 if test -x $with_build_time_tools/${ncn_progname}; then
7355 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7356 echo "$as_me:$LINENO: result: yes" >&5
7357echo "${ECHO_T}yes" >&6
2429c060
PB
7358 break
7359 else
c6b750e1
DJ
7360 echo "$as_me:$LINENO: result: no" >&5
7361echo "${ECHO_T}no" >&6
2429c060
PB
7362 fi
7363 done
7364fi
7365
7366if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
7367 for ncn_progname in gcj; do
7368 if test -n "$ncn_target_tool_prefix"; then
7369 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7370set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7371echo "$as_me:$LINENO: checking for $ac_word" >&5
7372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7373if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7375else
7376 if test -n "$GCJ_FOR_TARGET"; then
7377 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
7378else
c6b750e1
DJ
7379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380for as_dir in $PATH
7381do
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 break 2
7389 fi
7390done
7391done
7392
55db4b87
PB
7393fi
7394fi
c6b750e1 7395GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
55db4b87 7396if test -n "$GCJ_FOR_TARGET"; then
c6b750e1
DJ
7397 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7398echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
55db4b87 7399else
c6b750e1
DJ
7400 echo "$as_me:$LINENO: result: no" >&5
7401echo "${ECHO_T}no" >&6
55db4b87
PB
7402fi
7403
2429c060
PB
7404 fi
7405 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
7406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7407set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7408echo "$as_me:$LINENO: checking for $ac_word" >&5
7409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7410if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7412else
05cbd757
PB
7413 if test -n "$GCJ_FOR_TARGET"; then
7414 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
55db4b87 7415else
c6b750e1
DJ
7416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417for as_dir in $PATH
7418do
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
7424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7426 fi
7427done
7428done
7429
55db4b87
PB
7430fi
7431fi
c6b750e1 7432GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
05cbd757 7433if test -n "$GCJ_FOR_TARGET"; then
c6b750e1
DJ
7434 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7435echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
55db4b87 7436else
c6b750e1
DJ
7437 echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6
55db4b87 7439fi
c6b750e1 7440
2429c060
PB
7441 fi
7442 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
7443 done
7444fi
c6b750e1 7445
05cbd757
PB
7446if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
7447 set dummy gcj
7448 if test $build = $target ; then
7449 GCJ_FOR_TARGET="$2"
55db4b87 7450 else
05cbd757 7451 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 7452 fi
55db4b87
PB
7453fi
7454
2429c060
PB
7455 if test -n "$with_build_time_tools"; then
7456 for ncn_progname in gfortran; do
c6b750e1
DJ
7457 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7458echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7459 if test -x $with_build_time_tools/${ncn_progname}; then
7460 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7461 echo "$as_me:$LINENO: result: yes" >&5
7462echo "${ECHO_T}yes" >&6
2429c060
PB
7463 break
7464 else
c6b750e1
DJ
7465 echo "$as_me:$LINENO: result: no" >&5
7466echo "${ECHO_T}no" >&6
2429c060
PB
7467 fi
7468 done
7469fi
7470
7471if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
7472 for ncn_progname in gfortran; do
7473 if test -n "$ncn_target_tool_prefix"; then
7474 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7475set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7476echo "$as_me:$LINENO: checking for $ac_word" >&5
7477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7478if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7480else
7481 if test -n "$GFORTRAN_FOR_TARGET"; then
7482 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7483else
c6b750e1
DJ
7484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485for as_dir in $PATH
7486do
7487 IFS=$as_save_IFS
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 break 2
7494 fi
7495done
7496done
7497
55db4b87
PB
7498fi
7499fi
c6b750e1 7500GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 7501if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
7502 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7503echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 7504else
c6b750e1
DJ
7505 echo "$as_me:$LINENO: result: no" >&5
7506echo "${ECHO_T}no" >&6
55db4b87
PB
7507fi
7508
2429c060
PB
7509 fi
7510 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
7511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7512set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7513echo "$as_me:$LINENO: checking for $ac_word" >&5
7514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7515if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7517else
05cbd757 7518 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
7519 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7520else
7521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522for as_dir in $PATH
7523do
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7528 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
7529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 break 2
7531 fi
7532done
7533done
7534
55db4b87
PB
7535fi
7536fi
c6b750e1 7537GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 7538if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
7539 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7540echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 7541else
c6b750e1
DJ
7542 echo "$as_me:$LINENO: result: no" >&5
7543echo "${ECHO_T}no" >&6
55db4b87 7544fi
c6b750e1 7545
2429c060
PB
7546 fi
7547 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
7548 done
7549fi
c6b750e1 7550
05cbd757
PB
7551if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
7552 set dummy gfortran
7553 if test $build = $target ; then
7554 GFORTRAN_FOR_TARGET="$2"
55db4b87 7555 else
05cbd757 7556 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 7557 fi
859789af
AC
7558fi
7559
2429c060
PB
7560
7561
2429c060
PB
7562cat > conftest.c << \EOF
7563#ifdef __GNUC__
7564 gcc_yay;
7565#endif
7566EOF
7567if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
7568 have_gcc_for_target=yes
859789af 7569else
2429c060
PB
7570 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
7571 have_gcc_for_target=no
859789af 7572fi
2429c060
PB
7573rm conftest.c
7574
7575
7576
859789af 7577
2429c060
PB
7578if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7579 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
7580 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
7581echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7582 if test -x $with_build_time_tools/ar; then
7583 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
7584 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
7585 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
7586echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 7587 else
c6b750e1
DJ
7588 echo "$as_me:$LINENO: result: no" >&5
7589echo "${ECHO_T}no" >&6
3a35eeb3 7590 fi
2429c060
PB
7591 elif test $build != $host && test $have_gcc_for_target = yes; then
7592 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
7593 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
7594 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 7595 fi
2429c060 7596fi
c6b750e1 7597if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
7598 # Extract the first word of "ar", so it can be a program name with args.
7599set dummy ar; ac_word=$2
c6b750e1
DJ
7600echo "$as_me:$LINENO: checking for $ac_word" >&5
7601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7602if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7604else
c6b750e1
DJ
7605 case $AR_FOR_TARGET in
7606 [\\/]* | ?:[\\/]*)
2429c060
PB
7607 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
7608 ;;
2429c060 7609 *)
c6b750e1
DJ
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611for as_dir in $gcc_cv_tool_dirs
7612do
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 break 2
7620 fi
7621done
7622done
7623
2429c060
PB
7624 ;;
7625esac
859789af 7626fi
c6b750e1
DJ
7627AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7628
2429c060 7629if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
7630 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7631echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 7632else
c6b750e1
DJ
7633 echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6
859789af 7635fi
05cbd757 7636
2429c060
PB
7637fi
7638if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7639 if test -n "$with_build_time_tools"; then
7640 for ncn_progname in ar; do
c6b750e1
DJ
7641 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7642echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7643 if test -x $with_build_time_tools/${ncn_progname}; then
7644 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7645 echo "$as_me:$LINENO: result: yes" >&5
7646echo "${ECHO_T}yes" >&6
2429c060
PB
7647 break
7648 else
c6b750e1
DJ
7649 echo "$as_me:$LINENO: result: no" >&5
7650echo "${ECHO_T}no" >&6
2429c060
PB
7651 fi
7652 done
859789af
AC
7653fi
7654
2429c060
PB
7655if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
7656 for ncn_progname in ar; do
7657 if test -n "$ncn_target_tool_prefix"; then
7658 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7659set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7660echo "$as_me:$LINENO: checking for $ac_word" >&5
7661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7662if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 7664else
2429c060
PB
7665 if test -n "$AR_FOR_TARGET"; then
7666 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 7667else
c6b750e1
DJ
7668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669for as_dir in $PATH
7670do
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7675 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7678 fi
7679done
7680done
7681
7e0f7140
GK
7682fi
7683fi
c6b750e1 7684AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 7685if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
7686 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7687echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 7688else
c6b750e1
DJ
7689 echo "$as_me:$LINENO: result: no" >&5
7690echo "${ECHO_T}no" >&6
7e0f7140
GK
7691fi
7692
2429c060
PB
7693 fi
7694 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
7695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 7696set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7697echo "$as_me:$LINENO: checking for $ac_word" >&5
7698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7699if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 7701else
2429c060
PB
7702 if test -n "$AR_FOR_TARGET"; then
7703 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 7704else
c6b750e1
DJ
7705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706for as_dir in $PATH
7707do
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
7713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 break 2
7715 fi
7716done
7717done
7718
7e0f7140
GK
7719fi
7720fi
c6b750e1 7721AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 7722if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
7723 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7724echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 7725else
c6b750e1
DJ
7726 echo "$as_me:$LINENO: result: no" >&5
7727echo "${ECHO_T}no" >&6
7e0f7140 7728fi
c6b750e1 7729
2429c060
PB
7730 fi
7731 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
7732 done
7733fi
c6b750e1 7734
2429c060
PB
7735if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7736 set dummy ar
7e0f7140 7737 if test $build = $target ; then
2429c060 7738 AR_FOR_TARGET="$2"
7e0f7140 7739 else
2429c060 7740 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140
GK
7741 fi
7742fi
7743
3a35eeb3
PB
7744else
7745 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
7746fi
7747
7748
7749
7750
7751if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7752 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
7753 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
7754echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7755 if test -x $with_build_time_tools/as; then
7756 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7757 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
7758 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
7759echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 7760 else
c6b750e1
DJ
7761 echo "$as_me:$LINENO: result: no" >&5
7762echo "${ECHO_T}no" >&6
3a35eeb3 7763 fi
2429c060
PB
7764 elif test $build != $host && test $have_gcc_for_target = yes; then
7765 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7766 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7767 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7768 fi
7769fi
c6b750e1 7770if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
7771 # Extract the first word of "as", so it can be a program name with args.
7772set dummy as; ac_word=$2
c6b750e1
DJ
7773echo "$as_me:$LINENO: checking for $ac_word" >&5
7774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7775if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 7777else
c6b750e1
DJ
7778 case $AS_FOR_TARGET in
7779 [\\/]* | ?:[\\/]*)
2429c060
PB
7780 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7781 ;;
2429c060 7782 *)
c6b750e1
DJ
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784for as_dir in $gcc_cv_tool_dirs
7785do
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 break 2
7793 fi
7794done
7795done
7796
2429c060
PB
7797 ;;
7798esac
7799fi
c6b750e1
DJ
7800AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7801
2429c060 7802if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
7803 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7804echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 7805else
c6b750e1
DJ
7806 echo "$as_me:$LINENO: result: no" >&5
7807echo "${ECHO_T}no" >&6
2429c060
PB
7808fi
7809
7810fi
7811if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7812 if test -n "$with_build_time_tools"; then
7813 for ncn_progname in as; do
c6b750e1
DJ
7814 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7815echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7816 if test -x $with_build_time_tools/${ncn_progname}; then
7817 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7818 echo "$as_me:$LINENO: result: yes" >&5
7819echo "${ECHO_T}yes" >&6
2429c060
PB
7820 break
7821 else
c6b750e1
DJ
7822 echo "$as_me:$LINENO: result: no" >&5
7823echo "${ECHO_T}no" >&6
2429c060
PB
7824 fi
7825 done
7826fi
7827
7828if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7829 for ncn_progname in as; do
7830 if test -n "$ncn_target_tool_prefix"; then
7831 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7832set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7833echo "$as_me:$LINENO: checking for $ac_word" >&5
7834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7835if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7837else
7838 if test -n "$AS_FOR_TARGET"; then
7839 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7840else
c6b750e1
DJ
7841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7851 fi
7852done
7853done
7854
2429c060
PB
7855fi
7856fi
c6b750e1 7857AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 7858if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
7859 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7860echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 7861else
c6b750e1
DJ
7862 echo "$as_me:$LINENO: result: no" >&5
7863echo "${ECHO_T}no" >&6
2429c060
PB
7864fi
7865
7866 fi
7867 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7869set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7870echo "$as_me:$LINENO: checking for $ac_word" >&5
7871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7872if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7874else
7875 if test -n "$AS_FOR_TARGET"; then
7876 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7877else
c6b750e1
DJ
7878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879for as_dir in $PATH
7880do
7881 IFS=$as_save_IFS
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7885 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
7886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 break 2
7888 fi
7889done
7890done
7891
2429c060
PB
7892fi
7893fi
c6b750e1 7894AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 7895if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
7896 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7897echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 7898else
c6b750e1
DJ
7899 echo "$as_me:$LINENO: result: no" >&5
7900echo "${ECHO_T}no" >&6
2429c060 7901fi
c6b750e1 7902
2429c060
PB
7903 fi
7904 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7905 done
7906fi
c6b750e1 7907
2429c060
PB
7908if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7909 set dummy as
7910 if test $build = $target ; then
7911 AS_FOR_TARGET="$2"
7912 else
7913 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
7914 fi
7915fi
7916
3a35eeb3
PB
7917else
7918 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
7919fi
7920
7921
7922
7923
7924if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7925 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
7926 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
7927echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7928 if test -x $with_build_time_tools/dlltool; then
7929 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7930 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
7931 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7932echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 7933 else
c6b750e1
DJ
7934 echo "$as_me:$LINENO: result: no" >&5
7935echo "${ECHO_T}no" >&6
3a35eeb3 7936 fi
2429c060
PB
7937 elif test $build != $host && test $have_gcc_for_target = yes; then
7938 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7939 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7940 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7941 fi
7942fi
c6b750e1 7943if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
7944 # Extract the first word of "dlltool", so it can be a program name with args.
7945set dummy dlltool; ac_word=$2
c6b750e1
DJ
7946echo "$as_me:$LINENO: checking for $ac_word" >&5
7947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7948if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 7950else
c6b750e1
DJ
7951 case $DLLTOOL_FOR_TARGET in
7952 [\\/]* | ?:[\\/]*)
2429c060
PB
7953 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7954 ;;
2429c060 7955 *)
c6b750e1
DJ
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $gcc_cv_tool_dirs
7958do
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7966 fi
7967done
7968done
7969
2429c060
PB
7970 ;;
7971esac
7972fi
c6b750e1
DJ
7973DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7974
2429c060 7975if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
7976 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7977echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 7978else
c6b750e1
DJ
7979 echo "$as_me:$LINENO: result: no" >&5
7980echo "${ECHO_T}no" >&6
2429c060
PB
7981fi
7982
7983fi
7984if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7985 if test -n "$with_build_time_tools"; then
7986 for ncn_progname in dlltool; do
c6b750e1
DJ
7987 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7988echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7989 if test -x $with_build_time_tools/${ncn_progname}; then
7990 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7991 echo "$as_me:$LINENO: result: yes" >&5
7992echo "${ECHO_T}yes" >&6
2429c060
PB
7993 break
7994 else
c6b750e1
DJ
7995 echo "$as_me:$LINENO: result: no" >&5
7996echo "${ECHO_T}no" >&6
2429c060
PB
7997 fi
7998 done
7999fi
8000
8001if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
8002 for ncn_progname in dlltool; do
8003 if test -n "$ncn_target_tool_prefix"; then
8004 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8005set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8006echo "$as_me:$LINENO: checking for $ac_word" >&5
8007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8008if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8010else
8011 if test -n "$DLLTOOL_FOR_TARGET"; then
8012 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
8013else
c6b750e1
DJ
8014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015for as_dir in $PATH
8016do
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8021 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8024 fi
8025done
8026done
8027
2429c060
PB
8028fi
8029fi
c6b750e1 8030DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 8031if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
8032 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
8033echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 8034else
c6b750e1
DJ
8035 echo "$as_me:$LINENO: result: no" >&5
8036echo "${ECHO_T}no" >&6
2429c060
PB
8037fi
8038
8039 fi
8040 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
8041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8042set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8043echo "$as_me:$LINENO: checking for $ac_word" >&5
8044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8045if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8047else
8048 if test -n "$DLLTOOL_FOR_TARGET"; then
8049 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
8050else
c6b750e1
DJ
8051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052for as_dir in $PATH
8053do
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
8059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 break 2
8061 fi
8062done
8063done
8064
2429c060
PB
8065fi
8066fi
c6b750e1 8067DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 8068if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
8069 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
8070echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 8071else
c6b750e1
DJ
8072 echo "$as_me:$LINENO: result: no" >&5
8073echo "${ECHO_T}no" >&6
2429c060 8074fi
c6b750e1 8075
2429c060
PB
8076 fi
8077 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
8078 done
8079fi
c6b750e1 8080
2429c060
PB
8081if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
8082 set dummy dlltool
8083 if test $build = $target ; then
8084 DLLTOOL_FOR_TARGET="$2"
8085 else
8086 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
8087 fi
8088fi
8089
3a35eeb3
PB
8090else
8091 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
8092fi
8093
8094
8095
8096
8097if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
8098 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8099 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
8100echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8101 if test -x $with_build_time_tools/ld; then
8102 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
8103 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
8104 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
8105echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 8106 else
c6b750e1
DJ
8107 echo "$as_me:$LINENO: result: no" >&5
8108echo "${ECHO_T}no" >&6
3a35eeb3 8109 fi
2429c060
PB
8110 elif test $build != $host && test $have_gcc_for_target = yes; then
8111 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
8112 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
8113 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
8114 fi
8115fi
c6b750e1 8116if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8117 # Extract the first word of "ld", so it can be a program name with args.
8118set dummy ld; ac_word=$2
c6b750e1
DJ
8119echo "$as_me:$LINENO: checking for $ac_word" >&5
8120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8121if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8123else
c6b750e1
DJ
8124 case $LD_FOR_TARGET in
8125 [\\/]* | ?:[\\/]*)
2429c060
PB
8126 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
8127 ;;
2429c060 8128 *)
c6b750e1
DJ
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130for as_dir in $gcc_cv_tool_dirs
8131do
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8136 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 break 2
8139 fi
8140done
8141done
8142
2429c060
PB
8143 ;;
8144esac
8145fi
c6b750e1
DJ
8146LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
8147
2429c060 8148if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
8149 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8150echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 8151else
c6b750e1
DJ
8152 echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
2429c060
PB
8154fi
8155
8156fi
8157if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
8158 if test -n "$with_build_time_tools"; then
8159 for ncn_progname in ld; do
c6b750e1
DJ
8160 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8161echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8162 if test -x $with_build_time_tools/${ncn_progname}; then
8163 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8164 echo "$as_me:$LINENO: result: yes" >&5
8165echo "${ECHO_T}yes" >&6
2429c060
PB
8166 break
8167 else
c6b750e1
DJ
8168 echo "$as_me:$LINENO: result: no" >&5
8169echo "${ECHO_T}no" >&6
2429c060
PB
8170 fi
8171 done
8172fi
8173
8174if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
8175 for ncn_progname in ld; do
8176 if test -n "$ncn_target_tool_prefix"; then
8177 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8178set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8179echo "$as_me:$LINENO: checking for $ac_word" >&5
8180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8181if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8183else
8184 if test -n "$LD_FOR_TARGET"; then
8185 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
8186else
c6b750e1
DJ
8187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188for as_dir in $PATH
8189do
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8194 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 break 2
8197 fi
8198done
8199done
8200
2429c060
PB
8201fi
8202fi
c6b750e1 8203LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 8204if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
8205 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8206echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 8207else
c6b750e1
DJ
8208 echo "$as_me:$LINENO: result: no" >&5
8209echo "${ECHO_T}no" >&6
2429c060
PB
8210fi
8211
8212 fi
8213 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
8214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8215set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8216echo "$as_me:$LINENO: checking for $ac_word" >&5
8217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8218if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8220else
8221 if test -n "$LD_FOR_TARGET"; then
8222 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
8223else
c6b750e1
DJ
8224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225for as_dir in $PATH
8226do
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8231 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
8232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8233 break 2
8234 fi
8235done
8236done
8237
2429c060
PB
8238fi
8239fi
c6b750e1 8240LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 8241if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
8242 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8243echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 8244else
c6b750e1
DJ
8245 echo "$as_me:$LINENO: result: no" >&5
8246echo "${ECHO_T}no" >&6
2429c060 8247fi
c6b750e1 8248
2429c060
PB
8249 fi
8250 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
8251 done
8252fi
c6b750e1 8253
2429c060
PB
8254if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
8255 set dummy ld
8256 if test $build = $target ; then
8257 LD_FOR_TARGET="$2"
8258 else
8259 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
8260 fi
8261fi
8262
3a35eeb3
PB
8263else
8264 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
8265fi
8266
8267
8268
8269
8270if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
8271 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8272 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
8273echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8274 if test -x $with_build_time_tools/lipo; then
8275 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
8276 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
8277 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
8278echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 8279 else
c6b750e1
DJ
8280 echo "$as_me:$LINENO: result: no" >&5
8281echo "${ECHO_T}no" >&6
3a35eeb3 8282 fi
2429c060
PB
8283 elif test $build != $host && test $have_gcc_for_target = yes; then
8284 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
8285 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
8286 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
8287 fi
8288fi
c6b750e1 8289if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8290 # Extract the first word of "lipo", so it can be a program name with args.
8291set dummy lipo; ac_word=$2
c6b750e1
DJ
8292echo "$as_me:$LINENO: checking for $ac_word" >&5
8293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8294if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8296else
c6b750e1
DJ
8297 case $LIPO_FOR_TARGET in
8298 [\\/]* | ?:[\\/]*)
2429c060
PB
8299 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
8300 ;;
2429c060 8301 *)
c6b750e1
DJ
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303for as_dir in $gcc_cv_tool_dirs
8304do
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8309 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8311 break 2
8312 fi
8313done
8314done
8315
2429c060
PB
8316 ;;
8317esac
8318fi
c6b750e1
DJ
8319LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
8320
2429c060 8321if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
8322 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8323echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 8324else
c6b750e1
DJ
8325 echo "$as_me:$LINENO: result: no" >&5
8326echo "${ECHO_T}no" >&6
2429c060
PB
8327fi
8328
8329fi
8330if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
8331 if test -n "$with_build_time_tools"; then
8332 for ncn_progname in lipo; do
c6b750e1
DJ
8333 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8334echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8335 if test -x $with_build_time_tools/${ncn_progname}; then
8336 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8337 echo "$as_me:$LINENO: result: yes" >&5
8338echo "${ECHO_T}yes" >&6
2429c060
PB
8339 break
8340 else
c6b750e1
DJ
8341 echo "$as_me:$LINENO: result: no" >&5
8342echo "${ECHO_T}no" >&6
2429c060
PB
8343 fi
8344 done
8345fi
8346
8347if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
8348 for ncn_progname in lipo; do
8349 if test -n "$ncn_target_tool_prefix"; then
8350 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8351set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8352echo "$as_me:$LINENO: checking for $ac_word" >&5
8353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8354if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8356else
8357 if test -n "$LIPO_FOR_TARGET"; then
8358 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8359else
c6b750e1
DJ
8360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361for as_dir in $PATH
8362do
8363 IFS=$as_save_IFS
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8367 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8369 break 2
8370 fi
8371done
8372done
8373
2429c060
PB
8374fi
8375fi
c6b750e1 8376LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 8377if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
8378 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8379echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 8380else
c6b750e1
DJ
8381 echo "$as_me:$LINENO: result: no" >&5
8382echo "${ECHO_T}no" >&6
2429c060
PB
8383fi
8384
8385 fi
8386 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
8387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8388set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8389echo "$as_me:$LINENO: checking for $ac_word" >&5
8390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8391if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8393else
8394 if test -n "$LIPO_FOR_TARGET"; then
8395 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8396else
c6b750e1
DJ
8397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398for as_dir in $PATH
8399do
8400 IFS=$as_save_IFS
8401 test -z "$as_dir" && as_dir=.
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8404 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
8405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 break 2
8407 fi
8408done
8409done
8410
2429c060
PB
8411fi
8412fi
c6b750e1 8413LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 8414if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
8415 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8416echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 8417else
c6b750e1
DJ
8418 echo "$as_me:$LINENO: result: no" >&5
8419echo "${ECHO_T}no" >&6
2429c060 8420fi
c6b750e1 8421
2429c060
PB
8422 fi
8423 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
8424 done
8425fi
c6b750e1 8426
2429c060
PB
8427if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
8428 set dummy lipo
8429 if test $build = $target ; then
8430 LIPO_FOR_TARGET="$2"
8431 else
8432 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
8433 fi
8434fi
8435
3a35eeb3
PB
8436else
8437 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
8438fi
8439
8440
8441
8442
8443if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8444 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8445 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
8446echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8447 if test -x $with_build_time_tools/nm; then
8448 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
8449 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
8450 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
8451echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 8452 else
c6b750e1
DJ
8453 echo "$as_me:$LINENO: result: no" >&5
8454echo "${ECHO_T}no" >&6
3a35eeb3 8455 fi
2429c060
PB
8456 elif test $build != $host && test $have_gcc_for_target = yes; then
8457 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
8458 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
8459 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8460 fi
8461fi
c6b750e1 8462if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8463 # Extract the first word of "nm", so it can be a program name with args.
8464set dummy nm; ac_word=$2
c6b750e1
DJ
8465echo "$as_me:$LINENO: checking for $ac_word" >&5
8466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8467if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8469else
c6b750e1
DJ
8470 case $NM_FOR_TARGET in
8471 [\\/]* | ?:[\\/]*)
2429c060
PB
8472 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
8473 ;;
2429c060 8474 *)
c6b750e1
DJ
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476for as_dir in $gcc_cv_tool_dirs
8477do
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8482 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 break 2
8485 fi
8486done
8487done
8488
2429c060
PB
8489 ;;
8490esac
8491fi
c6b750e1
DJ
8492NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8493
2429c060 8494if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
8495 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8496echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 8497else
c6b750e1
DJ
8498 echo "$as_me:$LINENO: result: no" >&5
8499echo "${ECHO_T}no" >&6
2429c060
PB
8500fi
8501
8502fi
8503if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8504 if test -n "$with_build_time_tools"; then
8505 for ncn_progname in nm; do
c6b750e1
DJ
8506 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8507echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8508 if test -x $with_build_time_tools/${ncn_progname}; then
8509 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8510 echo "$as_me:$LINENO: result: yes" >&5
8511echo "${ECHO_T}yes" >&6
2429c060
PB
8512 break
8513 else
c6b750e1
DJ
8514 echo "$as_me:$LINENO: result: no" >&5
8515echo "${ECHO_T}no" >&6
2429c060
PB
8516 fi
8517 done
8518fi
8519
8520if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
8521 for ncn_progname in nm; do
8522 if test -n "$ncn_target_tool_prefix"; then
8523 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 8524set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8525echo "$as_me:$LINENO: checking for $ac_word" >&5
8526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8527if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8529else
55db4b87
PB
8530 if test -n "$NM_FOR_TARGET"; then
8531 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 8532else
c6b750e1
DJ
8533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534for as_dir in $PATH
8535do
8536 IFS=$as_save_IFS
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 break 2
8543 fi
8544done
8545done
8546
859789af
AC
8547fi
8548fi
c6b750e1 8549NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 8550if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
8551 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8552echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 8553else
c6b750e1
DJ
8554 echo "$as_me:$LINENO: result: no" >&5
8555echo "${ECHO_T}no" >&6
859789af
AC
8556fi
8557
2429c060
PB
8558 fi
8559 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
8560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8561set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8562echo "$as_me:$LINENO: checking for $ac_word" >&5
8563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8564if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8566else
05cbd757
PB
8567 if test -n "$NM_FOR_TARGET"; then
8568 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 8569else
c6b750e1
DJ
8570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571for as_dir in $PATH
8572do
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8577 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
8578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 break 2
8580 fi
8581done
8582done
8583
859789af
AC
8584fi
8585fi
c6b750e1 8586NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 8587if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
8588 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8589echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 8590else
c6b750e1
DJ
8591 echo "$as_me:$LINENO: result: no" >&5
8592echo "${ECHO_T}no" >&6
859789af 8593fi
c6b750e1 8594
2429c060
PB
8595 fi
8596 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
8597 done
8598fi
c6b750e1 8599
05cbd757
PB
8600if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
8601 set dummy nm
8602 if test $build = $target ; then
8603 NM_FOR_TARGET="$2"
859789af 8604 else
05cbd757 8605 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 8606 fi
859789af
AC
8607fi
8608
3a35eeb3
PB
8609else
8610 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
8611fi
8612
8613
8614
8615
8616if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8617 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8618 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
8619echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8620 if test -x $with_build_time_tools/objdump; then
8621 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
8622 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
8623 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
8624echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 8625 else
c6b750e1
DJ
8626 echo "$as_me:$LINENO: result: no" >&5
8627echo "${ECHO_T}no" >&6
3a35eeb3 8628 fi
2429c060
PB
8629 elif test $build != $host && test $have_gcc_for_target = yes; then
8630 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
8631 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
8632 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8633 fi
8634fi
c6b750e1 8635if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8636 # Extract the first word of "objdump", so it can be a program name with args.
8637set dummy objdump; ac_word=$2
c6b750e1
DJ
8638echo "$as_me:$LINENO: checking for $ac_word" >&5
8639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8640if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8642else
c6b750e1
DJ
8643 case $OBJDUMP_FOR_TARGET in
8644 [\\/]* | ?:[\\/]*)
2429c060
PB
8645 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
8646 ;;
2429c060 8647 *)
c6b750e1
DJ
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649for as_dir in $gcc_cv_tool_dirs
8650do
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8655 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 break 2
8658 fi
8659done
8660done
8661
2429c060
PB
8662 ;;
8663esac
8664fi
c6b750e1
DJ
8665OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8666
2429c060 8667if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
8668 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8669echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 8670else
c6b750e1
DJ
8671 echo "$as_me:$LINENO: result: no" >&5
8672echo "${ECHO_T}no" >&6
2429c060
PB
8673fi
8674
8675fi
8676if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8677 if test -n "$with_build_time_tools"; then
8678 for ncn_progname in objdump; do
c6b750e1
DJ
8679 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8680echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8681 if test -x $with_build_time_tools/${ncn_progname}; then
8682 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8683 echo "$as_me:$LINENO: result: yes" >&5
8684echo "${ECHO_T}yes" >&6
2429c060
PB
8685 break
8686 else
c6b750e1
DJ
8687 echo "$as_me:$LINENO: result: no" >&5
8688echo "${ECHO_T}no" >&6
2429c060
PB
8689 fi
8690 done
8691fi
8692
8693if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
8694 for ncn_progname in objdump; do
8695 if test -n "$ncn_target_tool_prefix"; then
8696 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8697set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8698echo "$as_me:$LINENO: checking for $ac_word" >&5
8699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8700if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
8702else
8703 if test -n "$OBJDUMP_FOR_TARGET"; then
8704 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8705else
c6b750e1
DJ
8706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707for as_dir in $PATH
8708do
8709 IFS=$as_save_IFS
8710 test -z "$as_dir" && as_dir=.
8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8713 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 break 2
8716 fi
8717done
8718done
8719
5ae72758
DJ
8720fi
8721fi
c6b750e1 8722OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 8723if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
8724 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8725echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 8726else
c6b750e1
DJ
8727 echo "$as_me:$LINENO: result: no" >&5
8728echo "${ECHO_T}no" >&6
5ae72758
DJ
8729fi
8730
2429c060
PB
8731 fi
8732 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
8733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 8734set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8735echo "$as_me:$LINENO: checking for $ac_word" >&5
8736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8737if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
8739else
8740 if test -n "$OBJDUMP_FOR_TARGET"; then
8741 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8742else
c6b750e1
DJ
8743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744for as_dir in $PATH
8745do
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8750 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 break 2
8753 fi
8754done
8755done
8756
5ae72758
DJ
8757fi
8758fi
c6b750e1 8759OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 8760if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
8761 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8762echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 8763else
c6b750e1
DJ
8764 echo "$as_me:$LINENO: result: no" >&5
8765echo "${ECHO_T}no" >&6
5ae72758 8766fi
c6b750e1 8767
2429c060
PB
8768 fi
8769 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8770 done
8771fi
c6b750e1 8772
5ae72758
DJ
8773if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8774 set dummy objdump
8775 if test $build = $target ; then
8776 OBJDUMP_FOR_TARGET="$2"
8777 else
8778 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8779 fi
8780fi
8781
3a35eeb3
PB
8782else
8783 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
8784fi
8785
8786
8787
8788
8789if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8790 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8791 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
8792echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8793 if test -x $with_build_time_tools/ranlib; then
8794 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8795 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
8796 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8797echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 8798 else
c6b750e1
DJ
8799 echo "$as_me:$LINENO: result: no" >&5
8800echo "${ECHO_T}no" >&6
3a35eeb3 8801 fi
2429c060
PB
8802 elif test $build != $host && test $have_gcc_for_target = yes; then
8803 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8804 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8805 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8806 fi
8807fi
c6b750e1 8808if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8809 # Extract the first word of "ranlib", so it can be a program name with args.
8810set dummy ranlib; ac_word=$2
c6b750e1
DJ
8811echo "$as_me:$LINENO: checking for $ac_word" >&5
8812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8813if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8815else
c6b750e1
DJ
8816 case $RANLIB_FOR_TARGET in
8817 [\\/]* | ?:[\\/]*)
2429c060
PB
8818 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8819 ;;
2429c060 8820 *)
c6b750e1
DJ
8821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822for as_dir in $gcc_cv_tool_dirs
8823do
8824 IFS=$as_save_IFS
8825 test -z "$as_dir" && as_dir=.
8826 for ac_exec_ext in '' $ac_executable_extensions; do
8827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8828 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8830 break 2
8831 fi
8832done
8833done
8834
2429c060
PB
8835 ;;
8836esac
8837fi
c6b750e1
DJ
8838RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8839
2429c060 8840if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
8841 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8842echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 8843else
c6b750e1
DJ
8844 echo "$as_me:$LINENO: result: no" >&5
8845echo "${ECHO_T}no" >&6
2429c060
PB
8846fi
8847
8848fi
8849if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8850 if test -n "$with_build_time_tools"; then
8851 for ncn_progname in ranlib; do
c6b750e1
DJ
8852 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8853echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8854 if test -x $with_build_time_tools/${ncn_progname}; then
8855 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8856 echo "$as_me:$LINENO: result: yes" >&5
8857echo "${ECHO_T}yes" >&6
2429c060
PB
8858 break
8859 else
c6b750e1
DJ
8860 echo "$as_me:$LINENO: result: no" >&5
8861echo "${ECHO_T}no" >&6
2429c060
PB
8862 fi
8863 done
8864fi
8865
8866if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8867 for ncn_progname in ranlib; do
8868 if test -n "$ncn_target_tool_prefix"; then
8869 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 8870set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8871echo "$as_me:$LINENO: checking for $ac_word" >&5
8872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8873if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8875else
55db4b87
PB
8876 if test -n "$RANLIB_FOR_TARGET"; then
8877 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 8878else
c6b750e1
DJ
8879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880for as_dir in $PATH
8881do
8882 IFS=$as_save_IFS
8883 test -z "$as_dir" && as_dir=.
8884 for ac_exec_ext in '' $ac_executable_extensions; do
8885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8886 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8888 break 2
8889 fi
8890done
8891done
8892
859789af
AC
8893fi
8894fi
c6b750e1 8895RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 8896if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
8897 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8898echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 8899else
c6b750e1
DJ
8900 echo "$as_me:$LINENO: result: no" >&5
8901echo "${ECHO_T}no" >&6
859789af
AC
8902fi
8903
2429c060
PB
8904 fi
8905 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8907set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8908echo "$as_me:$LINENO: checking for $ac_word" >&5
8909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8910if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8912else
05cbd757
PB
8913 if test -n "$RANLIB_FOR_TARGET"; then
8914 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 8915else
c6b750e1
DJ
8916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917for as_dir in $PATH
8918do
8919 IFS=$as_save_IFS
8920 test -z "$as_dir" && as_dir=.
8921 for ac_exec_ext in '' $ac_executable_extensions; do
8922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8923 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8925 break 2
8926 fi
8927done
8928done
8929
859789af
AC
8930fi
8931fi
c6b750e1 8932RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 8933if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
8934 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8935echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 8936else
c6b750e1
DJ
8937 echo "$as_me:$LINENO: result: no" >&5
8938echo "${ECHO_T}no" >&6
859789af 8939fi
c6b750e1 8940
2429c060
PB
8941 fi
8942 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8943 done
8944fi
c6b750e1 8945
2429c060
PB
8946if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8947 set dummy ranlib
8948 if test $build = $target ; then
8949 RANLIB_FOR_TARGET="$2"
8950 else
8951 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 8952 fi
2429c060 8953fi
05cbd757 8954
3a35eeb3
PB
8955else
8956 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
8957fi
8958
2429c060
PB
8959
8960
8961
8962if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8963 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8964 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
8965echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8966 if test -x $with_build_time_tools/strip; then
8967 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8968 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
8969 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
8970echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 8971 else
c6b750e1
DJ
8972 echo "$as_me:$LINENO: result: no" >&5
8973echo "${ECHO_T}no" >&6
3a35eeb3 8974 fi
2429c060
PB
8975 elif test $build != $host && test $have_gcc_for_target = yes; then
8976 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8977 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8978 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8979 fi
8980fi
c6b750e1 8981if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8982 # Extract the first word of "strip", so it can be a program name with args.
8983set dummy strip; ac_word=$2
c6b750e1
DJ
8984echo "$as_me:$LINENO: checking for $ac_word" >&5
8985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8986if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8988else
c6b750e1
DJ
8989 case $STRIP_FOR_TARGET in
8990 [\\/]* | ?:[\\/]*)
2429c060
PB
8991 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
8992 ;;
2429c060 8993 *)
c6b750e1
DJ
8994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8995for as_dir in $gcc_cv_tool_dirs
8996do
8997 IFS=$as_save_IFS
8998 test -z "$as_dir" && as_dir=.
8999 for ac_exec_ext in '' $ac_executable_extensions; do
9000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9001 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9003 break 2
9004 fi
9005done
9006done
9007
2429c060
PB
9008 ;;
9009esac
9010fi
c6b750e1
DJ
9011STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
9012
2429c060 9013if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
9014 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
9015echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 9016else
c6b750e1
DJ
9017 echo "$as_me:$LINENO: result: no" >&5
9018echo "${ECHO_T}no" >&6
2429c060
PB
9019fi
9020
9021fi
9022if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9023 if test -n "$with_build_time_tools"; then
9024 for ncn_progname in strip; do
c6b750e1
DJ
9025 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9026echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9027 if test -x $with_build_time_tools/${ncn_progname}; then
9028 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9029 echo "$as_me:$LINENO: result: yes" >&5
9030echo "${ECHO_T}yes" >&6
2429c060
PB
9031 break
9032 else
c6b750e1
DJ
9033 echo "$as_me:$LINENO: result: no" >&5
9034echo "${ECHO_T}no" >&6
2429c060
PB
9035 fi
9036 done
9037fi
9038
9039if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
9040 for ncn_progname in strip; do
9041 if test -n "$ncn_target_tool_prefix"; then
9042 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 9043set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9044echo "$as_me:$LINENO: checking for $ac_word" >&5
9045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9046if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
9048else
9049 if test -n "$STRIP_FOR_TARGET"; then
9050 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
9051else
9052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053for as_dir in $PATH
9054do
9055 IFS=$as_save_IFS
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9059 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9061 break 2
9062 fi
9063done
9064done
9065
7e0f7140
GK
9066fi
9067fi
c6b750e1 9068STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 9069if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
9070 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
9071echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 9072else
c6b750e1
DJ
9073 echo "$as_me:$LINENO: result: no" >&5
9074echo "${ECHO_T}no" >&6
7e0f7140
GK
9075fi
9076
2429c060
PB
9077 fi
9078 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
9079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9080set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9081echo "$as_me:$LINENO: checking for $ac_word" >&5
9082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9083if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
9085else
9086 if test -n "$STRIP_FOR_TARGET"; then
9087 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
9088else
c6b750e1
DJ
9089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090for as_dir in $PATH
9091do
9092 IFS=$as_save_IFS
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
9095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9096 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
9097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 break 2
9099 fi
9100done
9101done
9102
7e0f7140
GK
9103fi
9104fi
c6b750e1 9105STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 9106if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
9107 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
9108echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 9109else
c6b750e1
DJ
9110 echo "$as_me:$LINENO: result: no" >&5
9111echo "${ECHO_T}no" >&6
7e0f7140 9112fi
c6b750e1 9113
2429c060
PB
9114 fi
9115 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
9116 done
9117fi
c6b750e1 9118
7e0f7140
GK
9119if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
9120 set dummy strip
9121 if test $build = $target ; then
9122 STRIP_FOR_TARGET="$2"
9123 else
9124 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
9125 fi
9126fi
9127
3a35eeb3
PB
9128else
9129 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
9130fi
9131
9132
9133
9134
9135if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9136 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9137 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
9138echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9139 if test -x $with_build_time_tools/windres; then
9140 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
9141 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
9142 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
9143echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 9144 else
c6b750e1
DJ
9145 echo "$as_me:$LINENO: result: no" >&5
9146echo "${ECHO_T}no" >&6
3a35eeb3 9147 fi
2429c060
PB
9148 elif test $build != $host && test $have_gcc_for_target = yes; then
9149 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
9150 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
9151 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
9152 fi
9153fi
c6b750e1 9154if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9155 # Extract the first word of "windres", so it can be a program name with args.
9156set dummy windres; ac_word=$2
c6b750e1
DJ
9157echo "$as_me:$LINENO: checking for $ac_word" >&5
9158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9159if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9161else
c6b750e1
DJ
9162 case $WINDRES_FOR_TARGET in
9163 [\\/]* | ?:[\\/]*)
2429c060
PB
9164 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
9165 ;;
2429c060 9166 *)
c6b750e1
DJ
9167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168for as_dir in $gcc_cv_tool_dirs
9169do
9170 IFS=$as_save_IFS
9171 test -z "$as_dir" && as_dir=.
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9174 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9176 break 2
9177 fi
9178done
9179done
9180
2429c060
PB
9181 ;;
9182esac
9183fi
c6b750e1
DJ
9184WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
9185
2429c060 9186if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
9187 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9188echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 9189else
c6b750e1
DJ
9190 echo "$as_me:$LINENO: result: no" >&5
9191echo "${ECHO_T}no" >&6
2429c060
PB
9192fi
9193
9194fi
9195if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9196 if test -n "$with_build_time_tools"; then
9197 for ncn_progname in windres; do
c6b750e1
DJ
9198 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9199echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9200 if test -x $with_build_time_tools/${ncn_progname}; then
9201 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9202 echo "$as_me:$LINENO: result: yes" >&5
9203echo "${ECHO_T}yes" >&6
2429c060
PB
9204 break
9205 else
c6b750e1
DJ
9206 echo "$as_me:$LINENO: result: no" >&5
9207echo "${ECHO_T}no" >&6
2429c060
PB
9208 fi
9209 done
9210fi
9211
9212if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
9213 for ncn_progname in windres; do
9214 if test -n "$ncn_target_tool_prefix"; then
9215 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9216set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9217echo "$as_me:$LINENO: checking for $ac_word" >&5
9218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9219if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9221else
55db4b87
PB
9222 if test -n "$WINDRES_FOR_TARGET"; then
9223 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 9224else
c6b750e1
DJ
9225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226for as_dir in $PATH
9227do
9228 IFS=$as_save_IFS
9229 test -z "$as_dir" && as_dir=.
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9232 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9234 break 2
9235 fi
9236done
9237done
9238
859789af
AC
9239fi
9240fi
c6b750e1 9241WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 9242if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
9243 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9244echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 9245else
c6b750e1
DJ
9246 echo "$as_me:$LINENO: result: no" >&5
9247echo "${ECHO_T}no" >&6
859789af
AC
9248fi
9249
2429c060
PB
9250 fi
9251 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
9252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9253set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9254echo "$as_me:$LINENO: checking for $ac_word" >&5
9255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9256if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9258else
05cbd757
PB
9259 if test -n "$WINDRES_FOR_TARGET"; then
9260 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 9261else
c6b750e1
DJ
9262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263for as_dir in $PATH
9264do
9265 IFS=$as_save_IFS
9266 test -z "$as_dir" && as_dir=.
9267 for ac_exec_ext in '' $ac_executable_extensions; do
9268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9269 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
9270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9271 break 2
9272 fi
9273done
9274done
9275
859789af
AC
9276fi
9277fi
c6b750e1 9278WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 9279if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
9280 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9281echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 9282else
c6b750e1
DJ
9283 echo "$as_me:$LINENO: result: no" >&5
9284echo "${ECHO_T}no" >&6
859789af 9285fi
c6b750e1 9286
2429c060
PB
9287 fi
9288 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
9289 done
9290fi
c6b750e1 9291
05cbd757
PB
9292if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
9293 set dummy windres
9294 if test $build = $target ; then
9295 WINDRES_FOR_TARGET="$2"
859789af 9296 else
05cbd757 9297 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 9298 fi
859789af
AC
9299fi
9300
3a35eeb3
PB
9301else
9302 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
9303fi
9304
852e5f18 9305
be01d343
PB
9306RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
9307
c6b750e1
DJ
9308echo "$as_me:$LINENO: checking where to find the target ar" >&5
9309echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 9310if test "x${build}" != "x${host}" ; then
2429c060
PB
9311 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
9312 # We already found the complete path
c6b750e1
DJ
9313 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
9314echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
2429c060
PB
9315 else
9316 # Canadian cross, just use what we found
c6b750e1
DJ
9317 echo "$as_me:$LINENO: result: pre-installed" >&5
9318echo "${ECHO_T}pre-installed" >&6
2429c060 9319 fi
be01d343
PB
9320else
9321 ok=yes
9322 case " ${configdirs} " in
9323 *" binutils "*) ;;
9324 *) ok=no ;;
9325 esac
c6b750e1 9326
be01d343
PB
9327 if test $ok = yes; then
9328 # An in-tree tool is available and we can use it
9329 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
9330 echo "$as_me:$LINENO: result: just compiled" >&5
9331echo "${ECHO_T}just compiled" >&6
2429c060
PB
9332 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
9333 # We already found the complete path
c6b750e1
DJ
9334 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
9335echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
be01d343
PB
9336 elif test "x$target" = "x$host"; then
9337 # We can use an host tool
9338 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
9339 echo "$as_me:$LINENO: result: host tool" >&5
9340echo "${ECHO_T}host tool" >&6
be01d343
PB
9341 else
9342 # We need a cross tool
c6b750e1
DJ
9343 echo "$as_me:$LINENO: result: pre-installed" >&5
9344echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9345 fi
9346fi
4b900473 9347
c6b750e1
DJ
9348echo "$as_me:$LINENO: checking where to find the target as" >&5
9349echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 9350if test "x${build}" != "x${host}" ; then
2429c060
PB
9351 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9352 # We already found the complete path
c6b750e1
DJ
9353 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9354echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
2429c060
PB
9355 else
9356 # Canadian cross, just use what we found
c6b750e1
DJ
9357 echo "$as_me:$LINENO: result: pre-installed" >&5
9358echo "${ECHO_T}pre-installed" >&6
2429c060 9359 fi
be01d343
PB
9360else
9361 ok=yes
9362 case " ${configdirs} " in
9363 *" gas "*) ;;
9364 *) ok=no ;;
9365 esac
c6b750e1 9366
be01d343
PB
9367 if test $ok = yes; then
9368 # An in-tree tool is available and we can use it
9369 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
9370 echo "$as_me:$LINENO: result: just compiled" >&5
9371echo "${ECHO_T}just compiled" >&6
2429c060
PB
9372 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9373 # We already found the complete path
c6b750e1
DJ
9374 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9375echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
be01d343
PB
9376 elif test "x$target" = "x$host"; then
9377 # We can use an host tool
9378 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
9379 echo "$as_me:$LINENO: result: host tool" >&5
9380echo "${ECHO_T}host tool" >&6
be01d343
PB
9381 else
9382 # We need a cross tool
c6b750e1
DJ
9383 echo "$as_me:$LINENO: result: pre-installed" >&5
9384echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9385 fi
9386fi
4b900473 9387
c6b750e1
DJ
9388echo "$as_me:$LINENO: checking where to find the target cc" >&5
9389echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 9390if test "x${build}" != "x${host}" ; then
2429c060
PB
9391 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9392 # We already found the complete path
c6b750e1
DJ
9393 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9394echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
2429c060
PB
9395 else
9396 # Canadian cross, just use what we found
c6b750e1
DJ
9397 echo "$as_me:$LINENO: result: pre-installed" >&5
9398echo "${ECHO_T}pre-installed" >&6
2429c060 9399 fi
be01d343
PB
9400else
9401 ok=yes
9402 case " ${configdirs} " in
9403 *" gcc "*) ;;
9404 *) ok=no ;;
9405 esac
c6b750e1 9406
be01d343
PB
9407 if test $ok = yes; then
9408 # An in-tree tool is available and we can use it
9409 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
9410 echo "$as_me:$LINENO: result: just compiled" >&5
9411echo "${ECHO_T}just compiled" >&6
2429c060
PB
9412 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9413 # We already found the complete path
c6b750e1
DJ
9414 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9415echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
be01d343
PB
9416 elif test "x$target" = "x$host"; then
9417 # We can use an host tool
9418 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
9419 echo "$as_me:$LINENO: result: host tool" >&5
9420echo "${ECHO_T}host tool" >&6
be01d343
PB
9421 else
9422 # We need a cross tool
c6b750e1
DJ
9423 echo "$as_me:$LINENO: result: pre-installed" >&5
9424echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9425 fi
9426fi
4b900473 9427
c6b750e1
DJ
9428echo "$as_me:$LINENO: checking where to find the target c++" >&5
9429echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 9430if test "x${build}" != "x${host}" ; then
2429c060
PB
9431 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9432 # We already found the complete path
c6b750e1
DJ
9433 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9434echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
2429c060
PB
9435 else
9436 # Canadian cross, just use what we found
c6b750e1
DJ
9437 echo "$as_me:$LINENO: result: pre-installed" >&5
9438echo "${ECHO_T}pre-installed" >&6
2429c060 9439 fi
be01d343
PB
9440else
9441 ok=yes
9442 case " ${configdirs} " in
9443 *" gcc "*) ;;
9444 *) ok=no ;;
9445 esac
9446 case ,${enable_languages}, in
9447 *,c++,*) ;;
9448 *) ok=no ;;
9449 esac
9450 if test $ok = yes; then
9451 # An in-tree tool is available and we can use it
9452 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'
c6b750e1
DJ
9453 echo "$as_me:$LINENO: result: just compiled" >&5
9454echo "${ECHO_T}just compiled" >&6
2429c060
PB
9455 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9456 # We already found the complete path
c6b750e1
DJ
9457 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9458echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
be01d343
PB
9459 elif test "x$target" = "x$host"; then
9460 # We can use an host tool
9461 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
9462 echo "$as_me:$LINENO: result: host tool" >&5
9463echo "${ECHO_T}host tool" >&6
be01d343
PB
9464 else
9465 # We need a cross tool
c6b750e1
DJ
9466 echo "$as_me:$LINENO: result: pre-installed" >&5
9467echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9468 fi
9469fi
4b900473 9470
c6b750e1
DJ
9471echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
9472echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 9473if test "x${build}" != "x${host}" ; then
2429c060
PB
9474 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9475 # We already found the complete path
c6b750e1
DJ
9476 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9477echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
2429c060
PB
9478 else
9479 # Canadian cross, just use what we found
c6b750e1
DJ
9480 echo "$as_me:$LINENO: result: pre-installed" >&5
9481echo "${ECHO_T}pre-installed" >&6
2429c060 9482 fi
be01d343
PB
9483else
9484 ok=yes
9485 case " ${configdirs} " in
9486 *" gcc "*) ;;
9487 *) ok=no ;;
9488 esac
9489 case ,${enable_languages}, in
9490 *,c++,*) ;;
9491 *) ok=no ;;
9492 esac
9493 if test $ok = yes; then
9494 # An in-tree tool is available and we can use it
9495 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'
c6b750e1
DJ
9496 echo "$as_me:$LINENO: result: just compiled" >&5
9497echo "${ECHO_T}just compiled" >&6
2429c060
PB
9498 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9499 # We already found the complete path
c6b750e1
DJ
9500 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9501echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
be01d343
PB
9502 elif test "x$target" = "x$host"; then
9503 # We can use an host tool
9504 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
9505 echo "$as_me:$LINENO: result: host tool" >&5
9506echo "${ECHO_T}host tool" >&6
be01d343
PB
9507 else
9508 # We need a cross tool
c6b750e1
DJ
9509 echo "$as_me:$LINENO: result: pre-installed" >&5
9510echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9511 fi
9512fi
4b900473 9513
c6b750e1
DJ
9514echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
9515echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 9516if test "x${build}" != "x${host}" ; then
2429c060
PB
9517 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9518 # We already found the complete path
c6b750e1
DJ
9519 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9520echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
2429c060
PB
9521 else
9522 # Canadian cross, just use what we found
c6b750e1
DJ
9523 echo "$as_me:$LINENO: result: pre-installed" >&5
9524echo "${ECHO_T}pre-installed" >&6
2429c060 9525 fi
be01d343
PB
9526else
9527 ok=yes
9528 case " ${configdirs} " in
9529 *" binutils "*) ;;
9530 *) ok=no ;;
9531 esac
c6b750e1 9532
be01d343
PB
9533 if test $ok = yes; then
9534 # An in-tree tool is available and we can use it
9535 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
9536 echo "$as_me:$LINENO: result: just compiled" >&5
9537echo "${ECHO_T}just compiled" >&6
2429c060
PB
9538 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9539 # We already found the complete path
c6b750e1
DJ
9540 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9541echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
be01d343
PB
9542 elif test "x$target" = "x$host"; then
9543 # We can use an host tool
9544 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
9545 echo "$as_me:$LINENO: result: host tool" >&5
9546echo "${ECHO_T}host tool" >&6
be01d343
PB
9547 else
9548 # We need a cross tool
c6b750e1
DJ
9549 echo "$as_me:$LINENO: result: pre-installed" >&5
9550echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9551 fi
9552fi
4b900473 9553
c6b750e1
DJ
9554echo "$as_me:$LINENO: checking where to find the target gcc" >&5
9555echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 9556if test "x${build}" != "x${host}" ; then
2429c060
PB
9557 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9558 # We already found the complete path
c6b750e1
DJ
9559 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9560echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
2429c060
PB
9561 else
9562 # Canadian cross, just use what we found
c6b750e1
DJ
9563 echo "$as_me:$LINENO: result: pre-installed" >&5
9564echo "${ECHO_T}pre-installed" >&6
2429c060 9565 fi
be01d343
PB
9566else
9567 ok=yes
9568 case " ${configdirs} " in
9569 *" gcc "*) ;;
9570 *) ok=no ;;
9571 esac
c6b750e1 9572
be01d343
PB
9573 if test $ok = yes; then
9574 # An in-tree tool is available and we can use it
9575 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
9576 echo "$as_me:$LINENO: result: just compiled" >&5
9577echo "${ECHO_T}just compiled" >&6
2429c060
PB
9578 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9579 # We already found the complete path
c6b750e1
DJ
9580 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9581echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
be01d343
PB
9582 elif test "x$target" = "x$host"; then
9583 # We can use an host tool
9584 GCC_FOR_TARGET='$()'
c6b750e1
DJ
9585 echo "$as_me:$LINENO: result: host tool" >&5
9586echo "${ECHO_T}host tool" >&6
be01d343
PB
9587 else
9588 # We need a cross tool
c6b750e1
DJ
9589 echo "$as_me:$LINENO: result: pre-installed" >&5
9590echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9591 fi
9592fi
4b900473 9593
c6b750e1
DJ
9594echo "$as_me:$LINENO: checking where to find the target gcj" >&5
9595echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 9596if test "x${build}" != "x${host}" ; then
2429c060
PB
9597 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9598 # We already found the complete path
c6b750e1
DJ
9599 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9600echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
2429c060
PB
9601 else
9602 # Canadian cross, just use what we found
c6b750e1
DJ
9603 echo "$as_me:$LINENO: result: pre-installed" >&5
9604echo "${ECHO_T}pre-installed" >&6
2429c060 9605 fi
be01d343
PB
9606else
9607 ok=yes
9608 case " ${configdirs} " in
9609 *" gcc "*) ;;
9610 *) ok=no ;;
9611 esac
9612 case ,${enable_languages}, in
9613 *,java,*) ;;
9614 *) ok=no ;;
9615 esac
9616 if test $ok = yes; then
9617 # An in-tree tool is available and we can use it
9618 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
9619 echo "$as_me:$LINENO: result: just compiled" >&5
9620echo "${ECHO_T}just compiled" >&6
2429c060
PB
9621 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9622 # We already found the complete path
c6b750e1
DJ
9623 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9624echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
be01d343
PB
9625 elif test "x$target" = "x$host"; then
9626 # We can use an host tool
9627 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
9628 echo "$as_me:$LINENO: result: host tool" >&5
9629echo "${ECHO_T}host tool" >&6
be01d343
PB
9630 else
9631 # We need a cross tool
c6b750e1
DJ
9632 echo "$as_me:$LINENO: result: pre-installed" >&5
9633echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9634 fi
9635fi
4b900473 9636
c6b750e1
DJ
9637echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
9638echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 9639if test "x${build}" != "x${host}" ; then
2429c060
PB
9640 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9641 # We already found the complete path
c6b750e1
DJ
9642 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9643echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
2429c060
PB
9644 else
9645 # Canadian cross, just use what we found
c6b750e1
DJ
9646 echo "$as_me:$LINENO: result: pre-installed" >&5
9647echo "${ECHO_T}pre-installed" >&6
2429c060 9648 fi
be01d343
PB
9649else
9650 ok=yes
9651 case " ${configdirs} " in
9652 *" gcc "*) ;;
9653 *) ok=no ;;
9654 esac
9655 case ,${enable_languages}, in
9656 *,fortran,*) ;;
9657 *) ok=no ;;
9658 esac
9659 if test $ok = yes; then
9660 # An in-tree tool is available and we can use it
9661 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
9662 echo "$as_me:$LINENO: result: just compiled" >&5
9663echo "${ECHO_T}just compiled" >&6
2429c060
PB
9664 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9665 # We already found the complete path
c6b750e1
DJ
9666 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9667echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
be01d343
PB
9668 elif test "x$target" = "x$host"; then
9669 # We can use an host tool
9670 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
9671 echo "$as_me:$LINENO: result: host tool" >&5
9672echo "${ECHO_T}host tool" >&6
be01d343
PB
9673 else
9674 # We need a cross tool
c6b750e1
DJ
9675 echo "$as_me:$LINENO: result: pre-installed" >&5
9676echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9677 fi
9678fi
4b900473 9679
c6b750e1
DJ
9680echo "$as_me:$LINENO: checking where to find the target ld" >&5
9681echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 9682if test "x${build}" != "x${host}" ; then
2429c060
PB
9683 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9684 # We already found the complete path
c6b750e1
DJ
9685 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9686echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
2429c060
PB
9687 else
9688 # Canadian cross, just use what we found
c6b750e1
DJ
9689 echo "$as_me:$LINENO: result: pre-installed" >&5
9690echo "${ECHO_T}pre-installed" >&6
2429c060 9691 fi
be01d343
PB
9692else
9693 ok=yes
9694 case " ${configdirs} " in
9695 *" ld "*) ;;
9696 *) ok=no ;;
9697 esac
c6b750e1 9698
be01d343
PB
9699 if test $ok = yes; then
9700 # An in-tree tool is available and we can use it
9701 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
9702 echo "$as_me:$LINENO: result: just compiled" >&5
9703echo "${ECHO_T}just compiled" >&6
2429c060
PB
9704 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9705 # We already found the complete path
c6b750e1
DJ
9706 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9707echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
be01d343
PB
9708 elif test "x$target" = "x$host"; then
9709 # We can use an host tool
9710 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
9711 echo "$as_me:$LINENO: result: host tool" >&5
9712echo "${ECHO_T}host tool" >&6
be01d343
PB
9713 else
9714 # We need a cross tool
c6b750e1
DJ
9715 echo "$as_me:$LINENO: result: pre-installed" >&5
9716echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9717 fi
9718fi
4b900473 9719
c6b750e1
DJ
9720echo "$as_me:$LINENO: checking where to find the target lipo" >&5
9721echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 9722if test "x${build}" != "x${host}" ; then
2429c060
PB
9723 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9724 # We already found the complete path
c6b750e1
DJ
9725 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9726echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
2429c060
PB
9727 else
9728 # Canadian cross, just use what we found
c6b750e1
DJ
9729 echo "$as_me:$LINENO: result: pre-installed" >&5
9730echo "${ECHO_T}pre-installed" >&6
2429c060 9731 fi
be01d343 9732else
2429c060
PB
9733 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9734 # We already found the complete path
c6b750e1
DJ
9735 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9736echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
2429c060 9737 elif test "x$target" = "x$host"; then
be01d343
PB
9738 # We can use an host tool
9739 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
9740 echo "$as_me:$LINENO: result: host tool" >&5
9741echo "${ECHO_T}host tool" >&6
be01d343
PB
9742 else
9743 # We need a cross tool
c6b750e1
DJ
9744 echo "$as_me:$LINENO: result: pre-installed" >&5
9745echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9746 fi
9747fi
4b900473 9748
c6b750e1
DJ
9749echo "$as_me:$LINENO: checking where to find the target nm" >&5
9750echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 9751if test "x${build}" != "x${host}" ; then
2429c060
PB
9752 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9753 # We already found the complete path
c6b750e1
DJ
9754 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9755echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
2429c060
PB
9756 else
9757 # Canadian cross, just use what we found
c6b750e1
DJ
9758 echo "$as_me:$LINENO: result: pre-installed" >&5
9759echo "${ECHO_T}pre-installed" >&6
2429c060 9760 fi
be01d343
PB
9761else
9762 ok=yes
9763 case " ${configdirs} " in
9764 *" binutils "*) ;;
9765 *) ok=no ;;
9766 esac
c6b750e1 9767
be01d343
PB
9768 if test $ok = yes; then
9769 # An in-tree tool is available and we can use it
9770 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
9771 echo "$as_me:$LINENO: result: just compiled" >&5
9772echo "${ECHO_T}just compiled" >&6
2429c060
PB
9773 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9774 # We already found the complete path
c6b750e1
DJ
9775 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9776echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
be01d343
PB
9777 elif test "x$target" = "x$host"; then
9778 # We can use an host tool
9779 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
9780 echo "$as_me:$LINENO: result: host tool" >&5
9781echo "${ECHO_T}host tool" >&6
be01d343
PB
9782 else
9783 # We need a cross tool
c6b750e1
DJ
9784 echo "$as_me:$LINENO: result: pre-installed" >&5
9785echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9786 fi
9787fi
4b900473 9788
c6b750e1
DJ
9789echo "$as_me:$LINENO: checking where to find the target objdump" >&5
9790echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 9791if test "x${build}" != "x${host}" ; then
2429c060
PB
9792 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9793 # We already found the complete path
c6b750e1
DJ
9794 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9795echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
2429c060
PB
9796 else
9797 # Canadian cross, just use what we found
c6b750e1
DJ
9798 echo "$as_me:$LINENO: result: pre-installed" >&5
9799echo "${ECHO_T}pre-installed" >&6
2429c060 9800 fi
be01d343
PB
9801else
9802 ok=yes
9803 case " ${configdirs} " in
9804 *" binutils "*) ;;
9805 *) ok=no ;;
9806 esac
c6b750e1 9807
be01d343
PB
9808 if test $ok = yes; then
9809 # An in-tree tool is available and we can use it
9810 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
9811 echo "$as_me:$LINENO: result: just compiled" >&5
9812echo "${ECHO_T}just compiled" >&6
2429c060
PB
9813 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9814 # We already found the complete path
c6b750e1
DJ
9815 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9816echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
be01d343
PB
9817 elif test "x$target" = "x$host"; then
9818 # We can use an host tool
9819 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
9820 echo "$as_me:$LINENO: result: host tool" >&5
9821echo "${ECHO_T}host tool" >&6
be01d343
PB
9822 else
9823 # We need a cross tool
c6b750e1
DJ
9824 echo "$as_me:$LINENO: result: pre-installed" >&5
9825echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9826 fi
9827fi
4b900473 9828
c6b750e1
DJ
9829echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
9830echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 9831if test "x${build}" != "x${host}" ; then
2429c060
PB
9832 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9833 # We already found the complete path
c6b750e1
DJ
9834 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9835echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
2429c060
PB
9836 else
9837 # Canadian cross, just use what we found
c6b750e1
DJ
9838 echo "$as_me:$LINENO: result: pre-installed" >&5
9839echo "${ECHO_T}pre-installed" >&6
2429c060 9840 fi
be01d343
PB
9841else
9842 ok=yes
9843 case " ${configdirs} " in
9844 *" binutils "*) ;;
9845 *) ok=no ;;
9846 esac
c6b750e1 9847
be01d343
PB
9848 if test $ok = yes; then
9849 # An in-tree tool is available and we can use it
9850 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
9851 echo "$as_me:$LINENO: result: just compiled" >&5
9852echo "${ECHO_T}just compiled" >&6
2429c060
PB
9853 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9854 # We already found the complete path
c6b750e1
DJ
9855 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9856echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
be01d343
PB
9857 elif test "x$target" = "x$host"; then
9858 # We can use an host tool
9859 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
9860 echo "$as_me:$LINENO: result: host tool" >&5
9861echo "${ECHO_T}host tool" >&6
be01d343
PB
9862 else
9863 # We need a cross tool
c6b750e1
DJ
9864 echo "$as_me:$LINENO: result: pre-installed" >&5
9865echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9866 fi
9867fi
4b900473 9868
c6b750e1
DJ
9869echo "$as_me:$LINENO: checking where to find the target strip" >&5
9870echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 9871if test "x${build}" != "x${host}" ; then
2429c060
PB
9872 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9873 # We already found the complete path
c6b750e1
DJ
9874 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9875echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
2429c060
PB
9876 else
9877 # Canadian cross, just use what we found
c6b750e1
DJ
9878 echo "$as_me:$LINENO: result: pre-installed" >&5
9879echo "${ECHO_T}pre-installed" >&6
2429c060 9880 fi
be01d343
PB
9881else
9882 ok=yes
9883 case " ${configdirs} " in
9884 *" binutils "*) ;;
9885 *) ok=no ;;
9886 esac
c6b750e1 9887
be01d343
PB
9888 if test $ok = yes; then
9889 # An in-tree tool is available and we can use it
9890 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
9891 echo "$as_me:$LINENO: result: just compiled" >&5
9892echo "${ECHO_T}just compiled" >&6
2429c060
PB
9893 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9894 # We already found the complete path
c6b750e1
DJ
9895 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9896echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
be01d343
PB
9897 elif test "x$target" = "x$host"; then
9898 # We can use an host tool
9899 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
9900 echo "$as_me:$LINENO: result: host tool" >&5
9901echo "${ECHO_T}host tool" >&6
be01d343
PB
9902 else
9903 # We need a cross tool
c6b750e1
DJ
9904 echo "$as_me:$LINENO: result: pre-installed" >&5
9905echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9906 fi
9907fi
4b900473 9908
c6b750e1
DJ
9909echo "$as_me:$LINENO: checking where to find the target windres" >&5
9910echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 9911if test "x${build}" != "x${host}" ; then
2429c060
PB
9912 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9913 # We already found the complete path
c6b750e1
DJ
9914 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9915echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
2429c060
PB
9916 else
9917 # Canadian cross, just use what we found
c6b750e1
DJ
9918 echo "$as_me:$LINENO: result: pre-installed" >&5
9919echo "${ECHO_T}pre-installed" >&6
2429c060 9920 fi
be01d343
PB
9921else
9922 ok=yes
9923 case " ${configdirs} " in
9924 *" binutils "*) ;;
9925 *) ok=no ;;
9926 esac
c6b750e1 9927
be01d343
PB
9928 if test $ok = yes; then
9929 # An in-tree tool is available and we can use it
9930 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
9931 echo "$as_me:$LINENO: result: just compiled" >&5
9932echo "${ECHO_T}just compiled" >&6
2429c060
PB
9933 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9934 # We already found the complete path
c6b750e1
DJ
9935 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9936echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
be01d343
PB
9937 elif test "x$target" = "x$host"; then
9938 # We can use an host tool
9939 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
9940 echo "$as_me:$LINENO: result: host tool" >&5
9941echo "${ECHO_T}host tool" >&6
be01d343
PB
9942 else
9943 # We need a cross tool
c6b750e1
DJ
9944 echo "$as_me:$LINENO: result: pre-installed" >&5
9945echo "${ECHO_T}pre-installed" >&6
be01d343 9946 fi
a0da8069 9947fi
54752a6b
NN
9948
9949
9950
be01d343 9951
4b900473 9952
a0da8069
NN
9953# Certain tools may need extra flags.
9954AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9955RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9956NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9957
be01d343
PB
9958# When building target libraries, except in a Canadian cross, we use
9959# the same toolchain as the compiler we just built.
9960COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9961COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9962COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9963if test $host = $build; then
9964 case " $configdirs " in
9965 *" gcc "*)
9966 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9967 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9968 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9969 ;;
9970 esac
9971fi
9972
9973
9974
9975
9976
c6b750e1
DJ
9977echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9978echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
9979# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9980if test "${enable_maintainer_mode+set}" = set; then
9981 enableval="$enable_maintainer_mode"
9982 USE_MAINTAINER_MODE=$enableval
9983else
9984 USE_MAINTAINER_MODE=no
c6b750e1
DJ
9985fi;
9986echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9987echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
9988
9989
9990if test "$USE_MAINTAINER_MODE" = yes; then
9991 MAINTAINER_MODE_TRUE=
9992 MAINTAINER_MODE_FALSE='#'
9993else
9994 MAINTAINER_MODE_TRUE='#'
9995 MAINTAINER_MODE_FALSE=
c6b750e1 9996fi
3d5e36ae
AO
9997MAINT=$MAINTAINER_MODE_TRUE
9998
1d39f329
NN
9999# ---------------------
10000# GCC bootstrap support
10001# ---------------------
10002
10003# Stage specific cflags for build.
10004stage1_cflags="-g"
10005case $build in
10006 vax-*-*)
10007 case ${GCC} in
10008 yes) stage1_cflags="-g -Wa,-J" ;;
10009 *) stage1_cflags="-g -J" ;;
10010 esac ;;
1d39f329
NN
10011esac
10012
1d89b610
PB
10013# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
10014if test "$GCC" = yes; then
10015 saved_CFLAGS="$CFLAGS"
10016
10017 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
10018 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
10019 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
10020echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
10021 cat >conftest.$ac_ext <<_ACEOF
10022/* confdefs.h. */
10023_ACEOF
10024cat confdefs.h >>conftest.$ac_ext
10025cat >>conftest.$ac_ext <<_ACEOF
10026/* end confdefs.h. */
10027
10028int
10029main ()
10030{
10031
10032 ;
10033 return 0;
10034}
10035_ACEOF
10036rm -f conftest.$ac_objext
10037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10038 (eval $ac_compile) 2>conftest.er1
10039 ac_status=$?
10040 grep -v '^ *+' conftest.er1 >conftest.err
10041 rm -f conftest.er1
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -z "$ac_c_werror_flag"
10046 || test ! -s conftest.err'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; } &&
10052 { ac_try='test -s conftest.$ac_objext'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; }; then
10058 echo "$as_me:$LINENO: result: yes" >&5
10059echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
10060else
10061 echo "$as_me: failed program was:" >&5
10062sed 's/^/| /' conftest.$ac_ext >&5
10063
10064echo "$as_me:$LINENO: result: no" >&5
10065echo "${ECHO_T}no" >&6
10066fi
10067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
10068
10069 CFLAGS="$saved_CFLAGS"
10070fi
10071
10072
1d39f329 10073
8a0d8a5c
PB
10074# Enable --enable-checking in stage1 of the compiler.
10075# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
10076if test "${enable_stage1_checking+set}" = set; then
10077 enableval="$enable_stage1_checking"
10078 stage1_checking=--enable-checking=${enable_stage1_checking}
10079else
10080 if test "x$enable_checking" = xno; then
10081 stage1_checking=--enable-checking
10082else
10083 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
10084fi
c6b750e1 10085fi;
8a0d8a5c
PB
10086
10087
1d39f329 10088# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
10089# Check whether --enable-werror or --disable-werror was given.
10090if test "${enable_werror+set}" = set; then
10091 enableval="$enable_werror"
c6b750e1 10092
1d39f329 10093else
a0323144 10094 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 10095 enable_werror=yes
79fcd0ec
PB
10096else
10097 enable_werror=no
10098fi
c6b750e1 10099fi;
1a6f2dc7
NN
10100case ${enable_werror} in
10101 yes) stage2_werror_flag="--enable-werror-always" ;;
10102 *) stage2_werror_flag="" ;;
1d39f329
NN
10103esac
10104
10105
108a6f8e 10106# Flags needed to enable html installing and building
c6b750e1 10107
108a6f8e
CD
10108# Check whether --with-datarootdir or --without-datarootdir was given.
10109if test "${with_datarootdir+set}" = set; then
10110 withval="$with_datarootdir"
10111 datarootdir="\${prefix}/${withval}"
10112else
10113 datarootdir="\${prefix}/share"
c6b750e1 10114fi;
108a6f8e
CD
10115
10116
10117# Check whether --with-docdir or --without-docdir was given.
10118if test "${with_docdir+set}" = set; then
10119 withval="$with_docdir"
10120 docdir="\${prefix}/${withval}"
10121else
10122 docdir="\${datarootdir}/doc"
c6b750e1 10123fi;
108a6f8e
CD
10124
10125
10126# Check whether --with-htmldir or --without-htmldir was given.
10127if test "${with_htmldir+set}" = set; then
10128 withval="$with_htmldir"
10129 htmldir="\${prefix}/${withval}"
10130else
10131 htmldir="\${docdir}"
c6b750e1 10132fi;
108a6f8e
CD
10133
10134
10135
10136
10137
c6b750e1
DJ
10138 ac_config_files="$ac_config_files Makefile"
10139cat >confcache <<\_ACEOF
a0da8069
NN
10140# This file is a shell script that caches the results of configure
10141# tests run on this system so they can be shared between configure
c6b750e1
DJ
10142# scripts and configure runs, see configure's option --config-cache.
10143# It is not useful on other systems. If it contains results you don't
10144# want to keep, you may remove or edit it.
a0da8069 10145#
c6b750e1
DJ
10146# config.status only pays attention to the cache file if you give it
10147# the --recheck option to rerun configure.
a0da8069 10148#
c6b750e1
DJ
10149# `ac_cv_env_foo' variables (set or unset) will be overridden when
10150# loading this file, other *unset* `ac_cv_foo' will be assigned the
10151# following values.
10152
10153_ACEOF
10154
a0da8069
NN
10155# The following way of writing the cache mishandles newlines in values,
10156# but we know of no workaround that is simple, portable, and efficient.
10157# So, don't put newlines in cache variables' values.
10158# Ultrix sh set writes to stderr and can't be redirected directly,
10159# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
10160{
10161 (set) 2>&1 |
10162 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10163 *ac_space=\ *)
10164 # `set' does not quote correctly, so add quotes (double-quote
10165 # substitution turns \\\\ into \\, and sed turns \\ into \).
10166 sed -n \
10167 "s/'/'\\\\''/g;
10168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10169 ;;
10170 *)
10171 # `set' quotes correctly as required by POSIX, so do not add quotes.
10172 sed -n \
10173 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10174 ;;
10175 esac;
10176} |
10177 sed '
10178 t clear
10179 : clear
10180 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10181 t end
10182 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10183 : end' >>confcache
10184if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 10185 if test -w $cache_file; then
c6b750e1
DJ
10186 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10187 cat confcache >$cache_file
a0da8069
NN
10188 else
10189 echo "not updating unwritable cache $cache_file"
10190 fi
852e5f18 10191fi
a0da8069 10192rm -f confcache
852e5f18 10193
a0da8069
NN
10194test "x$prefix" = xNONE && prefix=$ac_default_prefix
10195# Let make expand exec_prefix.
10196test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 10197
c6b750e1
DJ
10198# VPATH may cause trouble with some makes, so we remove $(srcdir),
10199# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10200# trailing colons and then remove the whole line if VPATH becomes empty
10201# (actually we leave an empty line to preserve line numbers).
a0da8069 10202if test "x$srcdir" = x.; then
c6b750e1
DJ
10203 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10204s/:*\$(srcdir):*/:/;
10205s/:*\${srcdir}:*/:/;
10206s/:*@srcdir@:*/:/;
10207s/^\([^=]*=[ ]*\):*/\1/;
10208s/:*$//;
10209s/^[^=]*=[ ]*$//;
10210}'
a0da8069 10211fi
252b5132 10212
a0da8069
NN
10213# Transform confdefs.h into DEFS.
10214# Protect against shell expansion while executing Makefile rules.
10215# Protect against Makefile macro expansion.
c6b750e1
DJ
10216#
10217# If the first sed substitution is executed (which looks for macros that
10218# take arguments), then we branch to the quote section. Otherwise,
10219# look for a macro that doesn't take arguments.
10220cat >confdef2opt.sed <<\_ACEOF
10221t clear
10222: clear
10223s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
10224t quote
10225s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
10226t quote
10227d
10228: quote
10229s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
10230s,\[,\\&,g
10231s,\],\\&,g
10232s,\$,$$,g
10233p
10234_ACEOF
10235# We use echo to avoid assuming a particular line-breaking character.
10236# The extra dot is to prevent the shell from consuming trailing
10237# line-breaks from the sub-command output. A line-break within
10238# single-quotes doesn't work because, if this script is created in a
10239# platform that uses two characters for line-breaks (e.g., DOS), tr
10240# would break.
10241ac_LF_and_DOT=`echo; echo .`
10242DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10243rm -f confdef2opt.sed
10244
10245
10246ac_libobjs=
10247ac_ltlibobjs=
10248for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10249 # 1. Remove the extension, and $U if already installed.
10250 ac_i=`echo "$ac_i" |
10251 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10252 # 2. Add them.
10253 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10254 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10255done
10256LIBOBJS=$ac_libobjs
852e5f18 10257
c6b750e1 10258LTLIBOBJS=$ac_ltlibobjs
376a0e54 10259
cac3d6c4 10260
c6b750e1
DJ
10261
10262: ${CONFIG_STATUS=./config.status}
10263ac_clean_files_save=$ac_clean_files
10264ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10265{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10266echo "$as_me: creating $CONFIG_STATUS" >&6;}
10267cat >$CONFIG_STATUS <<_ACEOF
10268#! $SHELL
10269# Generated by $as_me.
a0da8069 10270# Run this file to recreate the current configuration.
a0da8069 10271# Compiler output produced by configure, useful for debugging
c6b750e1 10272# configure, is in config.log if it exists.
376a0e54 10273
c6b750e1
DJ
10274debug=false
10275ac_cs_recheck=false
10276ac_cs_silent=false
10277SHELL=\${CONFIG_SHELL-$SHELL}
10278_ACEOF
10279
10280cat >>$CONFIG_STATUS <<\_ACEOF
10281## --------------------- ##
10282## M4sh Initialization. ##
10283## --------------------- ##
10284
10285# Be Bourne compatible
10286if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10287 emulate sh
10288 NULLCMD=:
10289 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10290 # is contrary to our usage. Disable this feature.
10291 alias -g '${1+"$@"}'='"$@"'
10292elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10293 set -o posix
10294fi
10295DUALCASE=1; export DUALCASE # for MKS sh
10296
10297# Support unset when possible.
10298if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10299 as_unset=unset
10300else
10301 as_unset=false
10302fi
10303
10304
10305# Work around bugs in pre-3.0 UWIN ksh.
10306$as_unset ENV MAIL MAILPATH
10307PS1='$ '
10308PS2='> '
10309PS4='+ '
10310
10311# NLS nuisances.
10312for as_var in \
10313 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10314 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10315 LC_TELEPHONE LC_TIME
10316do
10317 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10318 eval $as_var=C; export $as_var
10319 else
10320 $as_unset $as_var
10321 fi
10322done
10323
10324# Required to use basename.
10325if expr a : '\(a\)' >/dev/null 2>&1; then
10326 as_expr=expr
10327else
10328 as_expr=false
10329fi
10330
10331if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10332 as_basename=basename
10333else
10334 as_basename=false
10335fi
10336
10337
10338# Name of the executable.
10339as_me=`$as_basename "$0" ||
10340$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10341 X"$0" : 'X\(//\)$' \| \
10342 X"$0" : 'X\(/\)$' \| \
10343 . : '\(.\)' 2>/dev/null ||
10344echo X/"$0" |
10345 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10346 /^X\/\(\/\/\)$/{ s//\1/; q; }
10347 /^X\/\(\/\).*/{ s//\1/; q; }
10348 s/.*/./; q'`
10349
10350
10351# PATH needs CR, and LINENO needs CR and PATH.
10352# Avoid depending upon Character Ranges.
10353as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10354as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10355as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10356as_cr_digits='0123456789'
10357as_cr_alnum=$as_cr_Letters$as_cr_digits
10358
10359# The user is always right.
10360if test "${PATH_SEPARATOR+set}" != set; then
10361 echo "#! /bin/sh" >conf$$.sh
10362 echo "exit 0" >>conf$$.sh
10363 chmod +x conf$$.sh
10364 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10365 PATH_SEPARATOR=';'
10366 else
10367 PATH_SEPARATOR=:
10368 fi
10369 rm -f conf$$.sh
10370fi
10371
10372
10373 as_lineno_1=$LINENO
10374 as_lineno_2=$LINENO
10375 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10376 test "x$as_lineno_1" != "x$as_lineno_2" &&
10377 test "x$as_lineno_3" = "x$as_lineno_2" || {
10378 # Find who we are. Look in the path if we contain no path at all
10379 # relative or not.
10380 case $0 in
10381 *[\\/]* ) as_myself=$0 ;;
10382 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10383for as_dir in $PATH
10384do
10385 IFS=$as_save_IFS
10386 test -z "$as_dir" && as_dir=.
10387 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10388done
10389
10390 ;;
10391 esac
10392 # We did not find ourselves, most probably we were run as `sh COMMAND'
10393 # in which case we are not to be found in the path.
10394 if test "x$as_myself" = x; then
10395 as_myself=$0
10396 fi
10397 if test ! -f "$as_myself"; then
10398 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10399echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10400 { (exit 1); exit 1; }; }
10401 fi
10402 case $CONFIG_SHELL in
10403 '')
10404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10406do
10407 IFS=$as_save_IFS
10408 test -z "$as_dir" && as_dir=.
10409 for as_base in sh bash ksh sh5; do
10410 case $as_dir in
10411 /*)
10412 if ("$as_dir/$as_base" -c '
10413 as_lineno_1=$LINENO
10414 as_lineno_2=$LINENO
10415 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10416 test "x$as_lineno_1" != "x$as_lineno_2" &&
10417 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10418 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10419 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10420 CONFIG_SHELL=$as_dir/$as_base
10421 export CONFIG_SHELL
10422 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10423 fi;;
10424 esac
10425 done
10426done
10427;;
10428 esac
10429
10430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10431 # uniformly replaced by the line number. The first 'sed' inserts a
10432 # line-number line before each line; the second 'sed' does the real
10433 # work. The second script uses 'N' to pair each line-number line
10434 # with the numbered line, and appends trailing '-' during
10435 # substitution so that $LINENO is not a special case at line end.
10436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10437 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10438 sed '=' <$as_myself |
10439 sed '
10440 N
10441 s,$,-,
10442 : loop
10443 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10444 t loop
10445 s,-$,,
10446 s,^['$as_cr_digits']*\n,,
10447 ' >$as_me.lineno &&
10448 chmod +x $as_me.lineno ||
10449 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10450echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10451 { (exit 1); exit 1; }; }
10452
10453 # Don't try to exec as it changes $[0], causing all sort of problems
10454 # (the dirname of $[0] is not the place where we might find the
10455 # original and so on. Autoconf is especially sensible to this).
10456 . ./$as_me.lineno
10457 # Exit status is that of the last command.
10458 exit
10459}
10460
10461
10462case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10463 *c*,-n*) ECHO_N= ECHO_C='
10464' ECHO_T=' ' ;;
10465 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10466 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10467esac
10468
10469if expr a : '\(a\)' >/dev/null 2>&1; then
10470 as_expr=expr
10471else
10472 as_expr=false
10473fi
10474
10475rm -f conf$$ conf$$.exe conf$$.file
10476echo >conf$$.file
10477if ln -s conf$$.file conf$$ 2>/dev/null; then
10478 # We could just check for DJGPP; but this test a) works b) is more generic
10479 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10480 if test -f conf$$.exe; then
10481 # Don't use ln at all; we don't have any links
10482 as_ln_s='cp -p'
10483 else
10484 as_ln_s='ln -s'
10485 fi
10486elif ln conf$$.file conf$$ 2>/dev/null; then
10487 as_ln_s=ln
10488else
10489 as_ln_s='cp -p'
10490fi
10491rm -f conf$$ conf$$.exe conf$$.file
10492
10493if mkdir -p . 2>/dev/null; then
10494 as_mkdir_p=:
10495else
10496 test -d ./-p && rmdir ./-p
10497 as_mkdir_p=false
10498fi
10499
10500as_executable_p="test -f"
10501
10502# Sed expression to map a string onto a valid CPP name.
10503as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10504
10505# Sed expression to map a string onto a valid variable name.
10506as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10507
10508
10509# IFS
10510# We need space, tab and new line, in precisely that order.
10511as_nl='
10512'
10513IFS=" $as_nl"
10514
10515# CDPATH.
10516$as_unset CDPATH
10517
10518exec 6>&1
10519
10520# Open the log real soon, to keep \$[0] and so on meaningful, and to
10521# report actual input values of CONFIG_FILES etc. instead of their
10522# values after options handling. Logging --version etc. is OK.
10523exec 5>>config.log
10524{
10525 echo
10526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10527## Running $as_me. ##
10528_ASBOX
10529} >&5
10530cat >&5 <<_CSEOF
10531
10532This file was extended by $as_me, which was
10533generated by GNU Autoconf 2.59. Invocation command line was
10534
10535 CONFIG_FILES = $CONFIG_FILES
10536 CONFIG_HEADERS = $CONFIG_HEADERS
10537 CONFIG_LINKS = $CONFIG_LINKS
10538 CONFIG_COMMANDS = $CONFIG_COMMANDS
10539 $ $0 $@
10540
10541_CSEOF
10542echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10543echo >&5
10544_ACEOF
10545
10546# Files that config.status was made for.
10547if test -n "$ac_config_files"; then
10548 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10549fi
10550
10551if test -n "$ac_config_headers"; then
10552 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10553fi
10554
10555if test -n "$ac_config_links"; then
10556 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10557fi
10558
10559if test -n "$ac_config_commands"; then
10560 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10561fi
10562
10563cat >>$CONFIG_STATUS <<\_ACEOF
10564
10565ac_cs_usage="\
10566\`$as_me' instantiates files from templates according to the
10567current configuration.
10568
10569Usage: $0 [OPTIONS] [FILE]...
10570
10571 -h, --help print this help, then exit
10572 -V, --version print version number, then exit
10573 -q, --quiet do not print progress messages
10574 -d, --debug don't remove temporary files
10575 --recheck update $as_me by reconfiguring in the same conditions
10576 --file=FILE[:TEMPLATE]
10577 instantiate the configuration file FILE
10578
10579Configuration files:
10580$config_files
10581
10582Report bugs to <bug-autoconf@gnu.org>."
10583_ACEOF
10584
10585cat >>$CONFIG_STATUS <<_ACEOF
10586ac_cs_version="\\
10587config.status
10588configured by $0, generated by GNU Autoconf 2.59,
10589 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10590
10591Copyright (C) 2003 Free Software Foundation, Inc.
10592This config.status script is free software; the Free Software Foundation
10593gives unlimited permission to copy, distribute and modify it."
10594srcdir=$srcdir
10595INSTALL="$INSTALL"
10596_ACEOF
10597
10598cat >>$CONFIG_STATUS <<\_ACEOF
10599# If no file are specified by the user, then we need to provide default
10600# value. By we need to know if files were specified by the user.
10601ac_need_defaults=:
10602while test $# != 0
a0da8069 10603do
c6b750e1
DJ
10604 case $1 in
10605 --*=*)
10606 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10607 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10608 ac_shift=:
10609 ;;
10610 -*)
10611 ac_option=$1
10612 ac_optarg=$2
10613 ac_shift=shift
10614 ;;
10615 *) # This is not an option, so the user has probably given explicit
10616 # arguments.
10617 ac_option=$1
10618 ac_need_defaults=false;;
10619 esac
10620
10621 case $ac_option in
10622 # Handling of the options.
10623_ACEOF
10624cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 10625 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
10626 ac_cs_recheck=: ;;
10627 --version | --vers* | -V )
10628 echo "$ac_cs_version"; exit 0 ;;
10629 --he | --h)
10630 # Conflict between --help and --header
10631 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10632Try \`$0 --help' for more information." >&5
10633echo "$as_me: error: ambiguous option: $1
10634Try \`$0 --help' for more information." >&2;}
10635 { (exit 1); exit 1; }; };;
10636 --help | --hel | -h )
10637 echo "$ac_cs_usage"; exit 0 ;;
10638 --debug | --d* | -d )
10639 debug=: ;;
10640 --file | --fil | --fi | --f )
10641 $ac_shift
10642 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10643 ac_need_defaults=false;;
10644 --header | --heade | --head | --hea )
10645 $ac_shift
10646 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10647 ac_need_defaults=false;;
10648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10649 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10650 ac_cs_silent=: ;;
10651
10652 # This is an error.
10653 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10654Try \`$0 --help' for more information." >&5
10655echo "$as_me: error: unrecognized option: $1
10656Try \`$0 --help' for more information." >&2;}
10657 { (exit 1); exit 1; }; } ;;
10658
10659 *) ac_config_targets="$ac_config_targets $1" ;;
10660
376a0e54 10661 esac
c6b750e1 10662 shift
376a0e54
CM
10663done
10664
c6b750e1 10665ac_configure_extra_args=
376a0e54 10666
c6b750e1
DJ
10667if $ac_cs_silent; then
10668 exec 6>/dev/null
10669 ac_configure_extra_args="$ac_configure_extra_args --silent"
10670fi
376a0e54 10671
c6b750e1
DJ
10672_ACEOF
10673cat >>$CONFIG_STATUS <<_ACEOF
10674if \$ac_cs_recheck; then
10675 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10676 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10677fi
10678
10679_ACEOF
10680
10681
10682
10683
10684
10685cat >>$CONFIG_STATUS <<\_ACEOF
10686for ac_config_target in $ac_config_targets
10687do
10688 case "$ac_config_target" in
10689 # Handling of arguments.
10690 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10691 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10692echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10693 { (exit 1); exit 1; }; };;
10694 esac
10695done
10696
10697# If the user did not use the arguments to specify the items to instantiate,
10698# then the envvar interface is used. Set only those that are not.
10699# We use the long form for the default assignment because of an extremely
10700# bizarre bug on SunOS 4.1.3.
10701if $ac_need_defaults; then
10702 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10703fi
10704
10705# Have a temporary directory for convenience. Make it in the build tree
10706# simply because there is no reason to put it here, and in addition,
10707# creating and moving files from /tmp can sometimes cause problems.
10708# Create a temporary directory, and hook for its removal unless debugging.
10709$debug ||
10710{
10711 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10712 trap '{ (exit 1); exit 1; }' 1 2 13 15
10713}
10714
10715# Create a (secure) tmp directory for tmp files.
10716
10717{
10718 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10719 test -n "$tmp" && test -d "$tmp"
10720} ||
10721{
10722 tmp=./confstat$$-$RANDOM
10723 (umask 077 && mkdir $tmp)
10724} ||
10725{
10726 echo "$me: cannot create a temporary directory in ." >&2
10727 { (exit 1); exit 1; }
10728}
10729
10730_ACEOF
10731
10732cat >>$CONFIG_STATUS <<_ACEOF
10733
10734#
10735# CONFIG_FILES section.
10736#
10737
10738# No need to generate the scripts if there are no CONFIG_FILES.
10739# This happens for instance when ./config.status config.h
10740if test -n "\$CONFIG_FILES"; then
10741 # Protect against being on the right side of a sed subst in config.status.
10742 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10743 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10744s,@SHELL@,$SHELL,;t t
10745s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10746s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10747s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10748s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10749s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10750s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10751s,@exec_prefix@,$exec_prefix,;t t
10752s,@prefix@,$prefix,;t t
10753s,@program_transform_name@,$program_transform_name,;t t
10754s,@bindir@,$bindir,;t t
10755s,@sbindir@,$sbindir,;t t
10756s,@libexecdir@,$libexecdir,;t t
10757s,@datadir@,$datadir,;t t
10758s,@sysconfdir@,$sysconfdir,;t t
10759s,@sharedstatedir@,$sharedstatedir,;t t
10760s,@localstatedir@,$localstatedir,;t t
10761s,@libdir@,$libdir,;t t
10762s,@includedir@,$includedir,;t t
10763s,@oldincludedir@,$oldincludedir,;t t
10764s,@infodir@,$infodir,;t t
10765s,@mandir@,$mandir,;t t
10766s,@build_alias@,$build_alias,;t t
10767s,@host_alias@,$host_alias,;t t
10768s,@target_alias@,$target_alias,;t t
10769s,@DEFS@,$DEFS,;t t
10770s,@ECHO_C@,$ECHO_C,;t t
10771s,@ECHO_N@,$ECHO_N,;t t
10772s,@ECHO_T@,$ECHO_T,;t t
10773s,@LIBS@,$LIBS,;t t
10774s,@build@,$build,;t t
10775s,@build_cpu@,$build_cpu,;t t
10776s,@build_vendor@,$build_vendor,;t t
10777s,@build_os@,$build_os,;t t
10778s,@build_noncanonical@,$build_noncanonical,;t t
10779s,@host_noncanonical@,$host_noncanonical,;t t
10780s,@target_noncanonical@,$target_noncanonical,;t t
10781s,@host@,$host,;t t
10782s,@host_cpu@,$host_cpu,;t t
10783s,@host_vendor@,$host_vendor,;t t
10784s,@host_os@,$host_os,;t t
10785s,@target@,$target,;t t
10786s,@target_cpu@,$target_cpu,;t t
10787s,@target_vendor@,$target_vendor,;t t
10788s,@target_os@,$target_os,;t t
10789s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10790s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10791s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10792s,@LN@,$LN,;t t
10793s,@LN_S@,$LN_S,;t t
10794s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
10795s,@build_libsubdir@,$build_libsubdir,;t t
10796s,@build_subdir@,$build_subdir,;t t
10797s,@host_subdir@,$host_subdir,;t t
10798s,@target_subdir@,$target_subdir,;t t
10799s,@CC@,$CC,;t t
10800s,@CFLAGS@,$CFLAGS,;t t
10801s,@LDFLAGS@,$LDFLAGS,;t t
10802s,@CPPFLAGS@,$CPPFLAGS,;t t
10803s,@ac_ct_CC@,$ac_ct_CC,;t t
10804s,@EXEEXT@,$EXEEXT,;t t
10805s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
10806s,@CXX@,$CXX,;t t
10807s,@CXXFLAGS@,$CXXFLAGS,;t t
10808s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
10809s,@GNATBIND@,$GNATBIND,;t t
10810s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
10811s,@GNATMAKE@,$GNATMAKE,;t t
10812s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
10813s,@do_compare@,$do_compare,;t t
10814s,@gmplibs@,$gmplibs,;t t
10815s,@gmpinc@,$gmpinc,;t t
10816s,@stage1_languages@,$stage1_languages,;t t
10817s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
10818s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
10819s,@tooldir@,$tooldir,;t t
10820s,@build_tooldir@,$build_tooldir,;t t
10821s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
10822s,@GDB_TK@,$GDB_TK,;t t
10823s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
10824s,@build_configargs@,$build_configargs,;t t
10825s,@build_configdirs@,$build_configdirs,;t t
10826s,@host_configargs@,$host_configargs,;t t
10827s,@configdirs@,$configdirs,;t t
10828s,@target_configargs@,$target_configargs,;t t
10829s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10830s,@config_shell@,$config_shell,;t t
10831s,@YACC@,$YACC,;t t
10832s,@BISON@,$BISON,;t t
10833s,@M4@,$M4,;t t
10834s,@LEX@,$LEX,;t t
10835s,@FLEX@,$FLEX,;t t
10836s,@MAKEINFO@,$MAKEINFO,;t t
10837s,@EXPECT@,$EXPECT,;t t
10838s,@RUNTEST@,$RUNTEST,;t t
10839s,@AR@,$AR,;t t
10840s,@AS@,$AS,;t t
10841s,@DLLTOOL@,$DLLTOOL,;t t
10842s,@LD@,$LD,;t t
10843s,@LIPO@,$LIPO,;t t
10844s,@NM@,$NM,;t t
10845s,@RANLIB@,$RANLIB,;t t
10846s,@STRIP@,$STRIP,;t t
10847s,@WINDRES@,$WINDRES,;t t
10848s,@OBJCOPY@,$OBJCOPY,;t t
10849s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1 10850s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
c6b750e1
DJ
10851s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
10852s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
10853s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
10854s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
10855s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
10856s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
10857s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
10858s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10859s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10860s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10861s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10862s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10863s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10864s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10865s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10866s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10867s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10868s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10869s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10870s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10871s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10872s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10873s,@MAINT@,$MAINT,;t t
10874s,@stage1_cflags@,$stage1_cflags,;t t
10875s,@stage1_checking@,$stage1_checking,;t t
10876s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10877s,@datarootdir@,$datarootdir,;t t
10878s,@docdir@,$docdir,;t t
10879s,@htmldir@,$htmldir,;t t
10880s,@LIBOBJS@,$LIBOBJS,;t t
10881s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 10882/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 10883s,@serialization_dependencies@,,;t t
a0da8069 10884/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 10885s,@host_makefile_frag@,,;t t
a0da8069 10886/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 10887s,@target_makefile_frag@,,;t t
a0da8069 10888/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 10889s,@alphaieee_frag@,,;t t
a0da8069 10890/@ospace_frag@/r $ospace_frag
c6b750e1 10891s,@ospace_frag@,,;t t
a0da8069 10892CEOF
252b5132 10893
c6b750e1
DJ
10894_ACEOF
10895
10896 cat >>$CONFIG_STATUS <<\_ACEOF
10897 # Split the substitutions into bite-sized pieces for seds with
10898 # small command number limits, like on Digital OSF/1 and HP-UX.
10899 ac_max_sed_lines=48
10900 ac_sed_frag=1 # Number of current file.
10901 ac_beg=1 # First line for current file.
10902 ac_end=$ac_max_sed_lines # Line after last line for current file.
10903 ac_more_lines=:
10904 ac_sed_cmds=
10905 while $ac_more_lines; do
10906 if test $ac_beg -gt 1; then
10907 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10908 else
10909 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10910 fi
10911 if test ! -s $tmp/subs.frag; then
10912 ac_more_lines=false
a0da8069 10913 else
c6b750e1
DJ
10914 # The purpose of the label and of the branching condition is to
10915 # speed up the sed processing (if there are no `@' at all, there
10916 # is no need to browse any of the substitutions).
10917 # These are the two extra sed commands mentioned above.
10918 (echo ':t
10919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10920 if test -z "$ac_sed_cmds"; then
10921 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10922 else
10923 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10924 fi
10925 ac_sed_frag=`expr $ac_sed_frag + 1`
10926 ac_beg=$ac_end
10927 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 10928 fi
c6b750e1
DJ
10929 done
10930 if test -z "$ac_sed_cmds"; then
10931 ac_sed_cmds=cat
852e5f18 10932 fi
c6b750e1 10933fi # test -n "$CONFIG_FILES"
cac3d6c4 10934
c6b750e1
DJ
10935_ACEOF
10936cat >>$CONFIG_STATUS <<\_ACEOF
10937for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 10938 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
10939 case $ac_file in
10940 - | *:- | *:-:* ) # input from stdin
10941 cat >$tmp/stdin
10942 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10943 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10944 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10946 * ) ac_file_in=$ac_file.in ;;
a0da8069 10947 esac
252b5132 10948
c6b750e1
DJ
10949 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10950 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10951$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10952 X"$ac_file" : 'X\(//\)[^/]' \| \
10953 X"$ac_file" : 'X\(//\)$' \| \
10954 X"$ac_file" : 'X\(/\)' \| \
10955 . : '\(.\)' 2>/dev/null ||
10956echo X"$ac_file" |
10957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10959 /^X\(\/\/\)$/{ s//\1/; q; }
10960 /^X\(\/\).*/{ s//\1/; q; }
10961 s/.*/./; q'`
10962 { if $as_mkdir_p; then
10963 mkdir -p "$ac_dir"
cac3d6c4 10964 else
c6b750e1
DJ
10965 as_dir="$ac_dir"
10966 as_dirs=
10967 while test ! -d "$as_dir"; do
10968 as_dirs="$as_dir $as_dirs"
10969 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10970$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10971 X"$as_dir" : 'X\(//\)[^/]' \| \
10972 X"$as_dir" : 'X\(//\)$' \| \
10973 X"$as_dir" : 'X\(/\)' \| \
10974 . : '\(.\)' 2>/dev/null ||
10975echo X"$as_dir" |
10976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10978 /^X\(\/\/\)$/{ s//\1/; q; }
10979 /^X\(\/\).*/{ s//\1/; q; }
10980 s/.*/./; q'`
10981 done
10982 test ! -n "$as_dirs" || mkdir $as_dirs
10983 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10984echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10985 { (exit 1); exit 1; }; }; }
10986
10987 ac_builddir=.
252b5132 10988
c6b750e1
DJ
10989if test "$ac_dir" != .; then
10990 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10991 # A "../" for each directory in $ac_dir_suffix.
10992 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10993else
10994 ac_dir_suffix= ac_top_builddir=
10995fi
10996
10997case $srcdir in
10998 .) # No --srcdir option. We are building in place.
10999 ac_srcdir=.
11000 if test -z "$ac_top_builddir"; then
11001 ac_top_srcdir=.
11002 else
11003 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11004 fi ;;
11005 [\\/]* | ?:[\\/]* ) # Absolute path.
11006 ac_srcdir=$srcdir$ac_dir_suffix;
11007 ac_top_srcdir=$srcdir ;;
a0da8069 11008 *) # Relative path.
c6b750e1
DJ
11009 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11010 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11011esac
252b5132 11012
c6b750e1
DJ
11013# Do not use `cd foo && pwd` to compute absolute paths, because
11014# the directories may not exist.
11015case `pwd` in
11016.) ac_abs_builddir="$ac_dir";;
11017*)
11018 case "$ac_dir" in
11019 .) ac_abs_builddir=`pwd`;;
11020 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11021 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11022 esac;;
11023esac
11024case $ac_abs_builddir in
11025.) ac_abs_top_builddir=${ac_top_builddir}.;;
11026*)
11027 case ${ac_top_builddir}. in
11028 .) ac_abs_top_builddir=$ac_abs_builddir;;
11029 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11030 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11031 esac;;
11032esac
11033case $ac_abs_builddir in
11034.) ac_abs_srcdir=$ac_srcdir;;
11035*)
11036 case $ac_srcdir in
11037 .) ac_abs_srcdir=$ac_abs_builddir;;
11038 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11039 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11040 esac;;
11041esac
11042case $ac_abs_builddir in
11043.) ac_abs_top_srcdir=$ac_top_srcdir;;
11044*)
11045 case $ac_top_srcdir in
11046 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11047 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11048 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11049 esac;;
11050esac
252b5132 11051
c6b750e1
DJ
11052
11053 case $INSTALL in
11054 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11055 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 11056 esac
252b5132 11057
c6b750e1
DJ
11058 if test x"$ac_file" != x-; then
11059 { echo "$as_me:$LINENO: creating $ac_file" >&5
11060echo "$as_me: creating $ac_file" >&6;}
11061 rm -f "$ac_file"
11062 fi
11063 # Let's still pretend it is `configure' which instantiates (i.e., don't
11064 # use $as_me), people would be surprised to read:
11065 # /* config.h. Generated by config.status. */
11066 if test x"$ac_file" = x-; then
11067 configure_input=
11068 else
11069 configure_input="$ac_file. "
11070 fi
11071 configure_input=$configure_input"Generated from `echo $ac_file_in |
11072 sed 's,.*/,,'` by configure."
11073
11074 # First look for the input files in the build tree, otherwise in the
11075 # src tree.
11076 ac_file_inputs=`IFS=:
11077 for f in $ac_file_in; do
11078 case $f in
11079 -) echo $tmp/stdin ;;
11080 [\\/$]*)
11081 # Absolute (can't be DOS-style, as IFS=:)
11082 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11083echo "$as_me: error: cannot find input file: $f" >&2;}
11084 { (exit 1); exit 1; }; }
11085 echo "$f";;
11086 *) # Relative
11087 if test -f "$f"; then
11088 # Build tree
11089 echo "$f"
11090 elif test -f "$srcdir/$f"; then
11091 # Source tree
11092 echo "$srcdir/$f"
11093 else
11094 # /dev/null tree
11095 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11096echo "$as_me: error: cannot find input file: $f" >&2;}
11097 { (exit 1); exit 1; }; }
11098 fi;;
11099 esac
11100 done` || { (exit 1); exit 1; }
11101_ACEOF
11102cat >>$CONFIG_STATUS <<_ACEOF
11103 sed "$ac_vpsub
11104$extrasub
11105_ACEOF
11106cat >>$CONFIG_STATUS <<\_ACEOF
11107:t
11108/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11109s,@configure_input@,$configure_input,;t t
11110s,@srcdir@,$ac_srcdir,;t t
11111s,@abs_srcdir@,$ac_abs_srcdir,;t t
11112s,@top_srcdir@,$ac_top_srcdir,;t t
11113s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11114s,@builddir@,$ac_builddir,;t t
11115s,@abs_builddir@,$ac_abs_builddir,;t t
11116s,@top_builddir@,$ac_top_builddir,;t t
11117s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11118s,@INSTALL@,$ac_INSTALL,;t t
11119" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11120 rm -f $tmp/stdin
11121 if test x"$ac_file" != x-; then
11122 mv $tmp/out $ac_file
11123 else
11124 cat $tmp/out
11125 rm -f $tmp/out
11126 fi
c148b4cb 11127
c6b750e1
DJ
11128done
11129_ACEOF
c148b4cb 11130
c6b750e1 11131cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 11132
c6b750e1
DJ
11133{ (exit 0); exit 0; }
11134_ACEOF
c148b4cb 11135chmod +x $CONFIG_STATUS
c6b750e1
DJ
11136ac_clean_files=$ac_clean_files_save
11137
11138
11139# configure is writing to config.log, and then calls config.status.
11140# config.status does its own redirection, appending to config.log.
11141# Unfortunately, on DOS this fails, as config.log is still kept open
11142# by configure, so config.status won't be able to write to it; its
11143# output is simply discarded. So we exec the FD to /dev/null,
11144# effectively closing config.log, so it can be properly (re)opened and
11145# appended to by config.status. When coming back to configure, we
11146# need to make the FD available again.
11147if test "$no_create" != yes; then
11148 ac_cs_success=:
11149 ac_config_status_args=
11150 test "$silent" = yes &&
11151 ac_config_status_args="$ac_config_status_args --quiet"
11152 exec 5>/dev/null
11153 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11154 exec 5>>config.log
11155 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11156 # would make configure fail if this is the last instruction.
11157 $ac_cs_success || { (exit 1); exit 1; }
11158fi
c148b4cb 11159
This page took 0.950433 seconds and 4 git commands to generate.