*** empty log message ***
[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"
1576798e 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 DEBUG_PREFIX_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 AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP 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 WINDMC_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 pdfdir 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
9cc8ae67
PB
716ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
717
c6b750e1
DJ
718ac_env_CC_set=${CC+set}
719ac_env_CC_value=$CC
720ac_cv_env_CC_set=${CC+set}
721ac_cv_env_CC_value=$CC
722ac_env_CFLAGS_set=${CFLAGS+set}
723ac_env_CFLAGS_value=$CFLAGS
724ac_cv_env_CFLAGS_set=${CFLAGS+set}
725ac_cv_env_CFLAGS_value=$CFLAGS
726ac_env_LDFLAGS_set=${LDFLAGS+set}
727ac_env_LDFLAGS_value=$LDFLAGS
728ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
729ac_cv_env_LDFLAGS_value=$LDFLAGS
730ac_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_env_CPPFLAGS_value=$CPPFLAGS
732ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
733ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
734ac_env_CXX_set=${CXX+set}
735ac_env_CXX_value=$CXX
736ac_cv_env_CXX_set=${CXX+set}
737ac_cv_env_CXX_value=$CXX
738ac_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_env_CXXFLAGS_value=$CXXFLAGS
740ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
741ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
742ac_env_AR_set=${AR+set}
743ac_env_AR_value=$AR
744ac_cv_env_AR_set=${AR+set}
745ac_cv_env_AR_value=$AR
746ac_env_AS_set=${AS+set}
747ac_env_AS_value=$AS
748ac_cv_env_AS_set=${AS+set}
749ac_cv_env_AS_value=$AS
750ac_env_DLLTOOL_set=${DLLTOOL+set}
751ac_env_DLLTOOL_value=$DLLTOOL
752ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
753ac_cv_env_DLLTOOL_value=$DLLTOOL
754ac_env_LD_set=${LD+set}
755ac_env_LD_value=$LD
756ac_cv_env_LD_set=${LD+set}
757ac_cv_env_LD_value=$LD
758ac_env_LIPO_set=${LIPO+set}
759ac_env_LIPO_value=$LIPO
760ac_cv_env_LIPO_set=${LIPO+set}
761ac_cv_env_LIPO_value=$LIPO
762ac_env_NM_set=${NM+set}
763ac_env_NM_value=$NM
764ac_cv_env_NM_set=${NM+set}
765ac_cv_env_NM_value=$NM
766ac_env_RANLIB_set=${RANLIB+set}
767ac_env_RANLIB_value=$RANLIB
768ac_cv_env_RANLIB_set=${RANLIB+set}
769ac_cv_env_RANLIB_value=$RANLIB
770ac_env_STRIP_set=${STRIP+set}
771ac_env_STRIP_value=$STRIP
772ac_cv_env_STRIP_set=${STRIP+set}
773ac_cv_env_STRIP_value=$STRIP
774ac_env_WINDRES_set=${WINDRES+set}
775ac_env_WINDRES_value=$WINDRES
776ac_cv_env_WINDRES_set=${WINDRES+set}
777ac_cv_env_WINDRES_value=$WINDRES
0c24b341
NC
778ac_env_WINDMC_set=${WINDMC+set}
779ac_env_WINDMC_value=$WINDMC
780ac_cv_env_WINDMC_set=${WINDMC+set}
781ac_cv_env_WINDMC_value=$WINDMC
9a819804
AO
782ac_env_OBJCOPY_set=${OBJCOPY+set}
783ac_env_OBJCOPY_value=$OBJCOPY
784ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
785ac_cv_env_OBJCOPY_value=$OBJCOPY
786ac_env_OBJDUMP_set=${OBJDUMP+set}
787ac_env_OBJDUMP_value=$OBJDUMP
788ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
789ac_cv_env_OBJDUMP_value=$OBJDUMP
790ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
793ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
794ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
797ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
798ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
801ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
802ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
805ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
806ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
809ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
810ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
813ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
814ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
817ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
818ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
821ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
822ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
825ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
826ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
829ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
830ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
833ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
834ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
837ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
838ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
841ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
842ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
845ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
846ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
848ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
849ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
0c24b341
NC
850ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
852ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
853ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
c6b750e1
DJ
854
855#
856# Report the --help message.
857#
858if test "$ac_init_help" = "long"; then
859 # Omit some internal or obsolete options to make the list less imposing.
860 # This message is too long to be a string in the A/UX 3.1 sh.
861 cat <<_ACEOF
862\`configure' configures this package to adapt to many kinds of systems.
863
864Usage: $0 [OPTION]... [VAR=VALUE]...
865
866To assign environment variables (e.g., CC, CFLAGS...), specify them as
867VAR=VALUE. See below for descriptions of some of the useful variables.
868
869Defaults for the options are specified in brackets.
870
871Configuration:
872 -h, --help display this help and exit
873 --help=short display options specific to this package
874 --help=recursive display the short help of all the included packages
875 -V, --version display version information and exit
876 -q, --quiet, --silent do not print \`checking...' messages
877 --cache-file=FILE cache test results in FILE [disabled]
878 -C, --config-cache alias for \`--cache-file=config.cache'
879 -n, --no-create do not create output files
880 --srcdir=DIR find the sources in DIR [configure dir or \`..']
881
882_ACEOF
883
884 cat <<_ACEOF
885Installation directories:
886 --prefix=PREFIX install architecture-independent files in PREFIX
887 [$ac_default_prefix]
888 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
889 [PREFIX]
890
891By default, \`make install' will install all the files in
892\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
893an installation prefix other than \`$ac_default_prefix' using \`--prefix',
894for instance \`--prefix=\$HOME'.
895
896For better control, use the options below.
897
898Fine tuning of the installation directories:
899 --bindir=DIR user executables [EPREFIX/bin]
900 --sbindir=DIR system admin executables [EPREFIX/sbin]
901 --libexecdir=DIR program executables [EPREFIX/libexec]
902 --datadir=DIR read-only architecture-independent data [PREFIX/share]
903 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
904 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
905 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
906 --libdir=DIR object code libraries [EPREFIX/lib]
907 --includedir=DIR C header files [PREFIX/include]
908 --oldincludedir=DIR C header files for non-gcc [/usr/include]
909 --infodir=DIR info documentation [PREFIX/info]
910 --mandir=DIR man documentation [PREFIX/man]
911_ACEOF
912
913 cat <<\_ACEOF
914
915Program names:
916 --program-prefix=PREFIX prepend PREFIX to installed program names
917 --program-suffix=SUFFIX append SUFFIX to installed program names
918 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
919
920System types:
921 --build=BUILD configure for building on BUILD [guessed]
922 --host=HOST cross-compile to build programs to run on HOST [BUILD]
923 --target=TARGET configure for building compilers for TARGET [HOST]
924_ACEOF
a0da8069 925fi
a0da8069 926
c6b750e1
DJ
927if test -n "$ac_init_help"; then
928
929 cat <<\_ACEOF
930
931Optional Features:
932 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
933 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
521ec477
DD
934 --enable-libada build libada directory
935 --enable-libssp build libssp directory
936 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 937 stage1. Mostly useful for compiler development.
521ec477
DD
938 --enable-objc-gc enable use of Boehm's garbage collector with the
939 GNU Objective-C runtime
940 --enable-bootstrap enable bootstrapping [yes if native build]
941 --enable-serial-[{host,target,build}-]configure
942 force sequential configuration of
c6b750e1 943 sub-packages for the host, target or build
521ec477 944 machine, or all sub-packages
c6b750e1
DJ
945 --enable-maintainer-mode enable make rules and dependencies not useful
946 (and sometimes confusing) to the casual installer
521ec477
DD
947 --enable-stage1-checking[=all] choose additional checking for stage1
948 of the compiler
c6b750e1
DJ
949 --enable-werror enable -Werror in bootstrap stage2 and later
950
951Optional Packages:
952 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
953 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
954 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
955 --with-mpfr-dir=PATH this option has been REMOVED
956 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
957 Equivalent to --with-mpfr-include=PATH/include
958 plus --with-mpfr-lib=PATH/lib
959 --with-mpfr-include=PATH
521ec477
DD
960 specify directory for installed MPFR include files
961 --with-mpfr-lib=PATH specify directory for the installed MPFR library
962 --with-gmp-dir=PATH this option has been REMOVED
963 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
964 Equivalent to --with-gmp-include=PATH/include
965 plus --with-gmp-lib=PATH/lib
521ec477
DD
966 --with-gmp-include=PATH specify directory for installed GMP include files
967 --with-gmp-lib=PATH specify directory for the installed GMP library
968 --with-build-sysroot=SYSROOT
c6b750e1 969 use sysroot as the system root during the build
8a6ee3ab
JM
970 --with-debug-prefix-map='A=B C=D ...'
971 map A to B, C to D ... in debug information
521ec477 972 --with-build-time-tools=PATH
c6b750e1 973 use given path to find target tools during the build
521ec477
DD
974 --with-datarootdir use datarootdir as the data root directory.
975 --with-docdir install documentation in this directory.
976 --with-pdfdir install pdf in this directory.
977 --with-htmldir install html in this directory.
c6b750e1
DJ
978
979Some influential environment variables:
980 CC C compiler command
981 CFLAGS C compiler flags
982 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
983 nonstandard directory <lib dir>
984 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
985 headers in a nonstandard directory <include dir>
18f6b6ee
PB
986 CXX C++ compiler command
987 CXXFLAGS C++ compiler flags
9a819804
AO
988 AR AR for the host
989 AS AS for the host
990 DLLTOOL DLLTOOL for the host
991 LD LD for the host
992 LIPO LIPO for the host
993 NM NM for the host
994 RANLIB RANLIB for the host
995 STRIP STRIP for the host
996 WINDRES WINDRES for the host
0c24b341 997 WINDMC WINDMC for the host
9a819804
AO
998 OBJCOPY OBJCOPY for the host
999 OBJDUMP OBJDUMP for the host
1000 CC_FOR_TARGET
1001 CC for the target
1002 CXX_FOR_TARGET
1003 CXX for the target
1004 GCC_FOR_TARGET
1005 GCC for the target
1006 GCJ_FOR_TARGET
1007 GCJ for the target
1008 GFORTRAN_FOR_TARGET
1009 GFORTRAN for the target
1010 AR_FOR_TARGET
1011 AR for the target
1012 AS_FOR_TARGET
1013 AS for the target
1014 DLLTOOL_FOR_TARGET
1015 DLLTOOL for the target
1016 LD_FOR_TARGET
1017 LD for the target
1018 LIPO_FOR_TARGET
1019 LIPO for the target
1020 NM_FOR_TARGET
1021 NM for the target
1022 OBJDUMP_FOR_TARGET
1023 OBJDUMP for the target
1024 RANLIB_FOR_TARGET
1025 RANLIB for the target
1026 STRIP_FOR_TARGET
1027 STRIP for the target
1028 WINDRES_FOR_TARGET
1029 WINDRES for the target
0c24b341
NC
1030 WINDMC_FOR_TARGET
1031 WINDMC for the target
c6b750e1
DJ
1032
1033Use these variables to override the choices made by `configure' or to help
1034it to find libraries and programs with nonstandard names/locations.
1035
1036_ACEOF
1037fi
1038
1039if test "$ac_init_help" = "recursive"; then
1040 # If there are subdirs, report their specific --help.
1041 ac_popdir=`pwd`
1042 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1043 test -d $ac_dir || continue
1044 ac_builddir=.
1045
1046if test "$ac_dir" != .; then
1047 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1048 # A "../" for each directory in $ac_dir_suffix.
1049 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1050else
1051 ac_dir_suffix= ac_top_builddir=
1052fi
1053
1054case $srcdir in
1055 .) # No --srcdir option. We are building in place.
1056 ac_srcdir=.
1057 if test -z "$ac_top_builddir"; then
1058 ac_top_srcdir=.
1059 else
1060 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1061 fi ;;
1062 [\\/]* | ?:[\\/]* ) # Absolute path.
1063 ac_srcdir=$srcdir$ac_dir_suffix;
1064 ac_top_srcdir=$srcdir ;;
1065 *) # Relative path.
1066 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1067 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1068esac
1069
1070# Do not use `cd foo && pwd` to compute absolute paths, because
1071# the directories may not exist.
1072case `pwd` in
1073.) ac_abs_builddir="$ac_dir";;
1074*)
1075 case "$ac_dir" in
1076 .) ac_abs_builddir=`pwd`;;
1077 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1078 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1079 esac;;
1080esac
1081case $ac_abs_builddir in
1082.) ac_abs_top_builddir=${ac_top_builddir}.;;
1083*)
1084 case ${ac_top_builddir}. in
1085 .) ac_abs_top_builddir=$ac_abs_builddir;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1087 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1088 esac;;
1089esac
1090case $ac_abs_builddir in
1091.) ac_abs_srcdir=$ac_srcdir;;
1092*)
1093 case $ac_srcdir in
1094 .) ac_abs_srcdir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1096 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1097 esac;;
1098esac
1099case $ac_abs_builddir in
1100.) ac_abs_top_srcdir=$ac_top_srcdir;;
1101*)
1102 case $ac_top_srcdir in
1103 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1105 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1106 esac;;
1107esac
1108
1109 cd $ac_dir
1110 # Check for guested configure; otherwise get Cygnus style configure.
1111 if test -f $ac_srcdir/configure.gnu; then
1112 echo
1113 $SHELL $ac_srcdir/configure.gnu --help=recursive
1114 elif test -f $ac_srcdir/configure; then
1115 echo
1116 $SHELL $ac_srcdir/configure --help=recursive
1117 elif test -f $ac_srcdir/configure.ac ||
1118 test -f $ac_srcdir/configure.in; then
1119 echo
1120 $ac_configure --help
1121 else
1122 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1123 fi
1124 cd $ac_popdir
1125 done
1126fi
1127
1128test -n "$ac_init_help" && exit 0
1129if $ac_init_version; then
1130 cat <<\_ACEOF
1131
1132Copyright (C) 2003 Free Software Foundation, Inc.
1133This configure script is free software; the Free Software Foundation
1134gives unlimited permission to copy, distribute and modify it.
1135_ACEOF
1136 exit 0
1137fi
1138exec 5>config.log
1139cat >&5 <<_ACEOF
1140This file contains any messages produced by compilers while
1141running configure, to aid debugging if configure makes a mistake.
1142
1143It was created by $as_me, which was
1144generated by GNU Autoconf 2.59. Invocation command line was
1145
1146 $ $0 $@
1147
1148_ACEOF
1149{
1150cat <<_ASUNAME
1151## --------- ##
1152## Platform. ##
1153## --------- ##
1154
1155hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1156uname -m = `(uname -m) 2>/dev/null || echo unknown`
1157uname -r = `(uname -r) 2>/dev/null || echo unknown`
1158uname -s = `(uname -s) 2>/dev/null || echo unknown`
1159uname -v = `(uname -v) 2>/dev/null || echo unknown`
1160
1161/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1162/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1163
1164/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1165/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1166/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1167hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1168/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1169/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1170/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1171
1172_ASUNAME
1173
1174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1175for as_dir in $PATH
1176do
1177 IFS=$as_save_IFS
1178 test -z "$as_dir" && as_dir=.
1179 echo "PATH: $as_dir"
1180done
1181
1182} >&5
1183
1184cat >&5 <<_ACEOF
1185
1186
1187## ----------- ##
1188## Core tests. ##
1189## ----------- ##
1190
1191_ACEOF
1192
1193
1194# Keep a trace of the command line.
1195# Strip out --no-create and --no-recursion so they do not pile up.
1196# Strip out --silent because we don't want to record it for future runs.
1197# Also quote any args containing shell meta-characters.
1198# Make two passes to allow for proper duplicate-argument suppression.
1199ac_configure_args=
1200ac_configure_args0=
1201ac_configure_args1=
1202ac_sep=
1203ac_must_keep_next=false
1204for ac_pass in 1 2
1205do
1206 for ac_arg
1207 do
1208 case $ac_arg in
1209 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211 | -silent | --silent | --silen | --sile | --sil)
1212 continue ;;
1213 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1214 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1215 esac
1216 case $ac_pass in
1217 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1218 2)
1219 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1220 if test $ac_must_keep_next = true; then
1221 ac_must_keep_next=false # Got value, back to normal.
1222 else
1223 case $ac_arg in
1224 *=* | --config-cache | -C | -disable-* | --disable-* \
1225 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1226 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1227 | -with-* | --with-* | -without-* | --without-* | --x)
1228 case "$ac_configure_args0 " in
1229 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1230 esac
1231 ;;
1232 -* ) ac_must_keep_next=true ;;
1233 esac
1234 fi
1235 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1236 # Get rid of the leading space.
1237 ac_sep=" "
1238 ;;
1239 esac
1240 done
1241done
1242$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1243$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1244
1245# When interrupted or exit'd, cleanup temporary files, and complete
1246# config.log. We remove comments because anyway the quotes in there
1247# would cause problems or look ugly.
1248# WARNING: Be sure not to use single quotes in there, as some shells,
1249# such as our DU 5.0 friend, will then `close' the trap.
1250trap 'exit_status=$?
1251 # Save into config.log some information that might help in debugging.
1252 {
1253 echo
1254
1255 cat <<\_ASBOX
1256## ---------------- ##
1257## Cache variables. ##
1258## ---------------- ##
1259_ASBOX
1260 echo
1261 # The following way of writing the cache mishandles newlines in values,
1262{
1263 (set) 2>&1 |
1264 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1265 *ac_space=\ *)
1266 sed -n \
1267 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1269 ;;
1270 *)
1271 sed -n \
1272 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1273 ;;
1274 esac;
1275}
1276 echo
1277
1278 cat <<\_ASBOX
1279## ----------------- ##
1280## Output variables. ##
1281## ----------------- ##
1282_ASBOX
1283 echo
1284 for ac_var in $ac_subst_vars
1285 do
1286 eval ac_val=$`echo $ac_var`
1287 echo "$ac_var='"'"'$ac_val'"'"'"
1288 done | sort
1289 echo
1290
1291 if test -n "$ac_subst_files"; then
1292 cat <<\_ASBOX
1293## ------------- ##
1294## Output files. ##
1295## ------------- ##
1296_ASBOX
1297 echo
1298 for ac_var in $ac_subst_files
1299 do
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1302 done | sort
1303 echo
1304 fi
1305
1306 if test -s confdefs.h; then
1307 cat <<\_ASBOX
1308## ----------- ##
1309## confdefs.h. ##
1310## ----------- ##
1311_ASBOX
1312 echo
1313 sed "/^$/d" confdefs.h | sort
1314 echo
1315 fi
1316 test "$ac_signal" != 0 &&
1317 echo "$as_me: caught signal $ac_signal"
1318 echo "$as_me: exit $exit_status"
1319 } >&5
1320 rm -f core *.core &&
1321 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1322 exit $exit_status
1323 ' 0
1324for ac_signal in 1 2 13 15; do
1325 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1326done
1327ac_signal=0
1328
1329# confdefs.h avoids OS command line length limits that DEFS can exceed.
1330rm -rf conftest* confdefs.h
1331# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1332echo >confdefs.h
1333
1334# Predefined preprocessor variables.
1335
1336cat >>confdefs.h <<_ACEOF
1337#define PACKAGE_NAME "$PACKAGE_NAME"
1338_ACEOF
1339
1340
1341cat >>confdefs.h <<_ACEOF
1342#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1343_ACEOF
1344
1345
1346cat >>confdefs.h <<_ACEOF
1347#define PACKAGE_VERSION "$PACKAGE_VERSION"
1348_ACEOF
1349
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_STRING "$PACKAGE_STRING"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1358_ACEOF
1359
1360
1361# Let the site file select an alternate cache file if it wants to.
a0da8069 1362# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1363if test -z "$CONFIG_SITE"; then
1364 if test "x$prefix" != xNONE; then
1365 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1366 else
1367 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1368 fi
1369fi
1370for ac_site_file in $CONFIG_SITE; do
1371 if test -r "$ac_site_file"; then
c6b750e1
DJ
1372 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1373echo "$as_me: loading site script $ac_site_file" >&6;}
1374 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1375 . "$ac_site_file"
1376 fi
1377done
1378
1379if test -r "$cache_file"; then
c6b750e1
DJ
1380 # Some versions of bash will fail to source /dev/null (special
1381 # files actually), so we avoid doing that.
1382 if test -f "$cache_file"; then
1383 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1384echo "$as_me: loading cache $cache_file" >&6;}
1385 case $cache_file in
1386 [\\/]* | ?:[\\/]* ) . $cache_file;;
1387 *) . ./$cache_file;;
1388 esac
1389 fi
a0da8069 1390else
c6b750e1
DJ
1391 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1392echo "$as_me: creating cache $cache_file" >&6;}
1393 >$cache_file
1394fi
1395
1396# Check that the precious variables saved in the cache have kept the same
1397# value.
1398ac_cache_corrupted=false
1399for ac_var in `(set) 2>&1 |
1400 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1401 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1402 eval ac_new_set=\$ac_env_${ac_var}_set
1403 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1404 eval ac_new_val="\$ac_env_${ac_var}_value"
1405 case $ac_old_set,$ac_new_set in
1406 set,)
1407 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1408echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1409 ac_cache_corrupted=: ;;
1410 ,set)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1412echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,);;
1415 *)
1416 if test "x$ac_old_val" != "x$ac_new_val"; then
1417 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1418echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1419 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1420echo "$as_me: former value: $ac_old_val" >&2;}
1421 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1422echo "$as_me: current value: $ac_new_val" >&2;}
1423 ac_cache_corrupted=:
1424 fi;;
1425 esac
1426 # Pass precious variables to config.status.
1427 if test "$ac_new_set" = set; then
1428 case $ac_new_val in
1429 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1431 *) ac_arg=$ac_var=$ac_new_val ;;
1432 esac
1433 case " $ac_configure_args " in
1434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1435 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1436 esac
1437 fi
1438done
1439if $ac_cache_corrupted; then
1440 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1441echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1442 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1443echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1444 { (exit 1); exit 1; }; }
a0da8069
NN
1445fi
1446
1447ac_ext=c
a0da8069 1448ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451ac_compiler_gnu=$ac_cv_c_compiler_gnu
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
a0da8069
NN
1465
1466
75778ec4 1467
c6b750e1
DJ
1468
1469
1470
1471
1472
1473# Find the build, host, and target systems.
a0da8069 1474ac_aux_dir=
315b3b02 1475for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1476 if test -f $ac_dir/install-sh; then
1477 ac_aux_dir=$ac_dir
1478 ac_install_sh="$ac_aux_dir/install-sh -c"
1479 break
1480 elif test -f $ac_dir/install.sh; then
1481 ac_aux_dir=$ac_dir
1482 ac_install_sh="$ac_aux_dir/install.sh -c"
1483 break
c6b750e1
DJ
1484 elif test -f $ac_dir/shtool; then
1485 ac_aux_dir=$ac_dir
1486 ac_install_sh="$ac_aux_dir/shtool install -c"
1487 break
a0da8069
NN
1488 fi
1489done
1490if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1491 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1492echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1493 { (exit 1); exit 1; }; }
a0da8069 1494fi
c6b750e1
DJ
1495ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1496ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1497ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1498
c6b750e1
DJ
1499# Make sure we can run config.sub.
1500$ac_config_sub sun4 >/dev/null 2>&1 ||
1501 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1502echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1503 { (exit 1); exit 1; }; }
1504
1505echo "$as_me:$LINENO: checking build system type" >&5
1506echo $ECHO_N "checking build system type... $ECHO_C" >&6
1507if test "${ac_cv_build+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509else
1510 ac_cv_build_alias=$build_alias
1511test -z "$ac_cv_build_alias" &&
1512 ac_cv_build_alias=`$ac_config_guess`
1513test -z "$ac_cv_build_alias" &&
1514 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1515echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1516 { (exit 1); exit 1; }; }
1517ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1518 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1519echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1520 { (exit 1); exit 1; }; }
1521
1522fi
1523echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1524echo "${ECHO_T}$ac_cv_build" >&6
1525build=$ac_cv_build
1526build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1527build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1528build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1529
a0da8069 1530
c6b750e1
DJ
1531 case ${build_alias} in
1532 "") build_noncanonical=${build} ;;
1533 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1534esac
1535
1536
cac3d6c4 1537
c6b750e1
DJ
1538 case ${host_alias} in
1539 "") host_noncanonical=${build_noncanonical} ;;
1540 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1541esac
1542
cac3d6c4 1543
c6b750e1
DJ
1544
1545 case ${target_alias} in
1546 "") target_noncanonical=${host_noncanonical} ;;
1547 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1548esac
1549
cac3d6c4 1550
c6b750e1
DJ
1551
1552
1553test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1554 test "$program_prefix$program_suffix$program_transform_name" = \
1555 NONENONEs,x,x, &&
c6b750e1 1556 program_transform_name=s,y,y,
cac3d6c4 1557
c6b750e1
DJ
1558echo "$as_me:$LINENO: checking host system type" >&5
1559echo $ECHO_N "checking host system type... $ECHO_C" >&6
1560if test "${ac_cv_host+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1562else
c6b750e1
DJ
1563 ac_cv_host_alias=$host_alias
1564test -z "$ac_cv_host_alias" &&
1565 ac_cv_host_alias=$ac_cv_build_alias
1566ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1567 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1568echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571fi
1572echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1573echo "${ECHO_T}$ac_cv_host" >&6
1574host=$ac_cv_host
1575host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578
1579
1580echo "$as_me:$LINENO: checking target system type" >&5
1581echo $ECHO_N "checking target system type... $ECHO_C" >&6
1582if test "${ac_cv_target+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585 ac_cv_target_alias=$target_alias
1586test "x$ac_cv_target_alias" = "x" &&
1587 ac_cv_target_alias=$ac_cv_host_alias
1588ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1589 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1590echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1591 { (exit 1); exit 1; }; }
1592
cac3d6c4 1593fi
c6b750e1
DJ
1594echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1595echo "${ECHO_T}$ac_cv_target" >&6
1596target=$ac_cv_target
1597target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600
1601
1602# The aliases save the names the user supplied, while $host etc.
1603# will get canonicalized.
1604test -n "$target_alias" &&
1605 test "$program_prefix$program_suffix$program_transform_name" = \
1606 NONENONEs,x,x, &&
1607 program_prefix=${target_alias}-
a0da8069 1608test "$program_prefix" != NONE &&
c6b750e1 1609 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1610# Use a double $ so make ignores it.
1611test "$program_suffix" != NONE &&
c6b750e1
DJ
1612 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1613# Double any \ or $. echo might interpret backslashes.
1614# By default was `s,x,x', remove it if useless.
1615cat <<\_ACEOF >conftest.sed
1616s/[\\$]/&&/g;s/;s,x,x,$//
1617_ACEOF
1618program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1619rm conftest.sed
cac3d6c4 1620
a0da8069
NN
1621
1622
e5c3f801
NN
1623# Get 'install' or 'install-sh' and its variants.
1624# Find a good install program. We prefer a C program (faster),
1625# so one script is as good as another. But avoid the broken or
1626# incompatible versions:
1627# SysV /etc/install, /usr/sbin/install
1628# SunOS /usr/etc/install
1629# IRIX /sbin/install
1630# AIX /bin/install
c6b750e1 1631# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1632# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1633# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1634# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1635# OS/2's system install, which has a completely different semantic
e5c3f801 1636# ./install, which can be erroneously created by make from ./install.sh.
c6b750e1
DJ
1637echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1638echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1639if test -z "$INSTALL"; then
c6b750e1
DJ
1640if test "${ac_cv_path_install+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 # Account for people who put trailing slashes in PATH elements.
1649case $as_dir/ in
1650 ./ | .// | /cC/* | \
1651 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1652 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1653 /usr/ucb/* ) ;;
1654 *)
1655 # OSF1 and SCO ODT 3.0 have their own names for install.
1656 # Don't use installbsd from OSF since it installs stuff as root
1657 # by default.
1658 for ac_prog in ginstall scoinst install; do
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1661 if test $ac_prog = install &&
c6b750e1 1662 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1663 # AIX install. It has an incompatible calling convention.
1664 :
c6b750e1
DJ
1665 elif test $ac_prog = install &&
1666 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1667 # program-specific install script used by HP pwplus--don't use.
1668 :
e5c3f801 1669 else
c6b750e1
DJ
1670 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1671 break 3
e5c3f801
NN
1672 fi
1673 fi
1674 done
c6b750e1
DJ
1675 done
1676 ;;
1677esac
1678done
1679
e5c3f801
NN
1680
1681fi
1682 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1683 INSTALL=$ac_cv_path_install
e5c3f801
NN
1684 else
1685 # As a last resort, use the slow shell script. We don't cache a
1686 # path for INSTALL within a source directory, because that will
1687 # break other packages using the cache if that directory is
1688 # removed, or if the path is relative.
c6b750e1 1689 INSTALL=$ac_install_sh
e5c3f801
NN
1690 fi
1691fi
c6b750e1
DJ
1692echo "$as_me:$LINENO: result: $INSTALL" >&5
1693echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1694
1695# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1696# It thinks the first close brace ends the variable substitution.
1697test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1698
c6b750e1 1699test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1700
1701test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1702
c6b750e1
DJ
1703echo "$as_me:$LINENO: checking whether ln works" >&5
1704echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1705if test "${acx_cv_prog_LN+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1707else
1708 rm -f conftestdata_t
1709echo >conftestdata_f
1710if ln conftestdata_f conftestdata_t 2>/dev/null
1711then
1712 acx_cv_prog_LN=ln
1713else
1714 acx_cv_prog_LN=no
1715fi
1716rm -f conftestdata_f conftestdata_t
1717
1718fi
1719if test $acx_cv_prog_LN = no; then
1720 LN="cp"
c6b750e1
DJ
1721 echo "$as_me:$LINENO: result: no, using $LN" >&5
1722echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1723else
1724 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1725 echo "$as_me:$LINENO: result: yes" >&5
1726echo "${ECHO_T}yes" >&6
656fdd47
PB
1727fi
1728
c6b750e1
DJ
1729echo "$as_me:$LINENO: checking whether ln -s works" >&5
1730echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1731LN_S=$as_ln_s
1732if test "$LN_S" = "ln -s"; then
1733 echo "$as_me:$LINENO: result: yes" >&5
1734echo "${ECHO_T}yes" >&6
cac3d6c4 1735else
c6b750e1
DJ
1736 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1737echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1738fi
1739
e5c3f801 1740
252b5132 1741### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1742### If we are on Windows, search for the shell. This will permit people
1743### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1744### without also having to set CONFIG_SHELL. This code will work when
1745### using bash, which sets OSTYPE.
1746case "${OSTYPE}" in
1747*win32*)
a0da8069
NN
1748 if test x${CONFIG_SHELL} = x ; then
1749 if test ! -f /bin/sh ; then
1750 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1751 CONFIG_SHELL=${SHELL}
1752 export CONFIG_SHELL
1753 else
1754 for prog in sh sh.exe bash bash.exe; do
1755 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1756 for dir in $PATH; do
1757 test -z "$dir" && dir=.
1758 if test -f $dir/$prog; then
1759 CONFIG_SHELL=$dir/$prog
1760 export CONFIG_SHELL
1761 break
1762 fi
1763 done
1764 IFS="$save_ifs"
1765 test -n "${CONFIG_SHELL}" && break
1766 done
1767 fi
1768 fi
1769 fi
1770 ;;
1771esac
1772
1773config_shell=${CONFIG_SHELL-/bin/sh}
1774
252b5132
RH
1775progname=$0
1776# if PWD already has a value, it is probably wrong.
a0da8069 1777if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1778
92f01d61
JM
1779# Export original configure arguments for use by sub-configures.
1780# Quote arguments with shell meta charatcers.
1781TOPLEVEL_CONFIGURE_ARGUMENTS=
1782set -- "$progname" "$@"
a4708fba
JM
1783for ac_arg
1784do
92f01d61 1785 case "$ac_arg" in
ffa8bd48 1786 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
92f01d61
JM
1787 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1788 # if the argument is of the form -foo=baz, quote the baz part only
1789 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1790 *) ;;
1791 esac
1792 # Add the quoted argument to the list.
1793 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1794done
2444379b
BE
1795if test "$silent" = yes; then
1796 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1797fi
92f01d61
JM
1798# Remove the initial space we just introduced and, as these will be
1799# expanded by make, quote '$'.
1800TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1801
75205f78 1802
a0da8069 1803moveifchange=${srcdir}/move-if-change
252b5132 1804
0fdbe983
DJ
1805srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1806
1807# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1808# a relative path.
1809if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1810 INSTALL="${srcpwd}/install-sh -c"
1811fi
1812
a0da8069
NN
1813# Set srcdir to "." if that's what it is.
1814# This is important for multilib support.
1815pwd=`${PWDCMD-pwd}`
a0da8069
NN
1816if test "${pwd}" = "${srcpwd}" ; then
1817 srcdir=.
252b5132
RH
1818fi
1819
a0da8069 1820topsrcdir=$srcpwd
252b5132 1821
a0da8069 1822extra_host_args=
afefada0 1823
a0da8069
NN
1824### To add a new directory to the tree, first choose whether it is a target
1825### or a host dependent tool. Then put it into the appropriate list
1826### (library or tools, host or target), doing a dependency sort.
252b5132 1827
c6b750e1 1828# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1829# configdirs, or target_configdirs; see the serialization section below.
252b5132 1830
c6b750e1
DJ
1831# Dependency sorting is only needed when *configuration* must be done in
1832# a particular order. In all cases a dependency should be specified in
a0da8069 1833# the Makefile, whether or not it's implicitly specified here.
252b5132 1834
a0da8069
NN
1835# Double entries in build_configdirs, configdirs, or target_configdirs may
1836# cause circular dependencies and break everything horribly.
252b5132 1837
6a9cf61e
PB
1838# these library is used by various programs built for the build
1839# environment
1840#
1841build_libs="build-libiberty"
1842
1843# these tools are built for the build environment
ee025550 1844build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1845
a0da8069
NN
1846# these libraries are used by various programs built for the host environment
1847#
4b900473 1848host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1849
a0da8069
NN
1850# these tools are built for the host environment
1851# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1852# know that we are building the simulator.
1853# binutils, gas and ld appear in that order because it makes sense to run
1854# "make check" in that particular order.
b00612cc 1855host_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
1856
1857# libgcj represents the runtime libraries only used by gcj.
1858libgcj="target-libffi \
a0da8069
NN
1859 target-zlib \
1860 target-qthreads \
1861 target-libjava"
1862
1863# these libraries are built for the target environment, and are built after
1864# the host libraries and the host tools (which may be a cross compiler)
1865#
b1299c4e
DJ
1866target_libraries="target-libgcc \
1867 target-libiberty \
a0da8069
NN
1868 target-libgloss \
1869 target-newlib \
cff87f51 1870 target-libgomp \
b9459e83 1871 target-libstdc++-v3 \
4b1cb4fe 1872 target-libmudflap \
bb780410 1873 target-libssp \
4b1cb4fe 1874 target-libgfortran \
4f0ef2d8 1875 target-boehm-gc \
83326456 1876 ${libgcj} \
a2592b1b 1877 target-libobjc \
cff87f51 1878 target-libada"
a0da8069 1879
9c14acb8
NN
1880# these tools are built using the target libraries, and are intended to
1881# run only in the target environment
a0da8069 1882#
9c14acb8 1883# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1884# list belongs in this list. those programs are also very likely
1885# candidates for the "native_only" list which follows
1886#
a3dd767d 1887target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1888
a0da8069 1889################################################################################
252b5132 1890
a0da8069
NN
1891## All tools belong in one of the four categories, and are assigned above
1892## We assign ${configdirs} this way to remove all embedded newlines. This
1893## is important because configure will choke if they ever get through.
1894## ${configdirs} is directories we build using the host tools.
1895## ${target_configdirs} is directories we build using the target tools.
a0da8069 1896configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1897target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1898build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1899
9cc8ae67
PB
1900
1901
a0da8069 1902################################################################################
252b5132 1903
a0da8069 1904srcname="gnu development package"
252b5132 1905
a0da8069
NN
1906# This gets set non-empty for some net releases of packages.
1907appdirs=""
252b5132 1908
a0da8069
NN
1909# Define is_cross_compiler to save on calls to 'test'.
1910is_cross_compiler=
1911if test x"${host}" = x"${target}" ; then
1912 is_cross_compiler=no
252b5132 1913else
a0da8069 1914 is_cross_compiler=yes
c6b750e1 1915fi
252b5132 1916
9175bfc0 1917# Find the build and target subdir names.
dd12c3a8 1918
66a79c16
DJ
1919# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1920# have matching libraries, they should use host libraries: Makefile.tpl
1921# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1922# However, they still use the build modules, because the corresponding
1923# host modules (e.g. bison) are only built for the host when bootstrap
1924# finishes. So:
1925# - build_subdir is where we find build modules, and never changes.
1926# - build_libsubdir is where we find build libraries, and can be overridden.
1927
1928# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1929build_subdir="build-${build_noncanonical}"
c6b750e1 1930
66a79c16
DJ
1931# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1932if test "${with_build_libsubdir+set}" = set; then
1933 withval="$with_build_libsubdir"
1934 build_libsubdir="$withval"
1935else
1936 build_libsubdir="$build_subdir"
c6b750e1 1937fi;
b00612cc
PB
1938# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1939if ( test $srcdir = . && test -d gcc ) \
1940 || test -d $srcdir/../host-${host_noncanonical}; then
1941 host_subdir="host-${host_noncanonical}"
1942else
1943 host_subdir=.
1944fi
dd12c3a8
NN
1945# No prefix.
1946target_subdir=${target_noncanonical}
c6b750e1 1947
252b5132 1948
a0da8069
NN
1949# Skipdirs are removed silently.
1950skipdirs=
1951# Noconfigdirs are removed loudly.
1952noconfigdirs=""
252b5132 1953
a0da8069
NN
1954use_gnu_ld=
1955# Make sure we don't let GNU ld be added if we didn't want it.
1956if test x$with_gnu_ld = xno ; then
1957 use_gnu_ld=no
1958 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1959fi
1960
a0da8069
NN
1961use_gnu_as=
1962# Make sure we don't let GNU as be added if we didn't want it.
1963if test x$with_gnu_as = xno ; then
1964 use_gnu_as=no
1965 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1966fi
1967
c6b750e1 1968# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1969# it's not even worth trying to configure, much less build, that tool.
252b5132 1970
a0da8069
NN
1971case ${with_x} in
1972 yes | "") ;; # the default value for this tree is that X11 is available
1973 no)
675c6968 1974 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1975 # We won't be able to build gdbtk without X.
c6b750e1 1976 enable_gdbtk=no
a0da8069
NN
1977 ;;
1978 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1979esac
252b5132 1980
a0da8069 1981# Some tools are only suitable for building in a "native" situation.
c6b750e1 1982# Remove these if host!=target.
701628f5 1983native_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 1984
a0da8069
NN
1985# Similarly, some are only suitable for cross toolchains.
1986# Remove these if host=target.
1987cross_only="target-libgloss target-newlib target-opcodes"
1988
1989case $is_cross_compiler in
1990 no) skipdirs="${skipdirs} ${cross_only}" ;;
1991 yes) skipdirs="${skipdirs} ${native_only}" ;;
1992esac
252b5132 1993
a0da8069
NN
1994# If both --with-headers and --with-libs are specified, default to
1995# --without-newlib.
32be62b5
RS
1996if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1997 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1998 if test x"${with_newlib}" = x ; then
1999 with_newlib=no
2000 fi
252b5132
RH
2001fi
2002
a0da8069
NN
2003# Recognize --with-newlib/--without-newlib.
2004case ${with_newlib} in
2005 no) skipdirs="${skipdirs} target-newlib" ;;
2006 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2007esac
252b5132 2008
a0da8069 2009# Configure extra directories which are host specific
252b5132 2010
a0da8069
NN
2011case "${host}" in
2012 *-cygwin*)
2013 configdirs="$configdirs libtermcap" ;;
2014esac
252b5132 2015
59f7ec45
HPN
2016# A target can indicate whether a language isn't supported for some reason.
2017# Only spaces may be used in this macro; not newlines or tabs.
2018unsupported_languages=
2019
c6b750e1 2020# Remove more programs from consideration, based on the host or
a0da8069
NN
2021# target this usually means that a port of the program doesn't
2022# exist yet.
252b5132 2023
a0da8069
NN
2024case "${host}" in
2025 hppa*64*-*-*)
2026 noconfigdirs="$noconfigdirs byacc"
2027 ;;
ec11bdc6 2028 i[3456789]86-*-vsta)
675c6968 2029 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2030 ;;
ec11bdc6 2031 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2032 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2033 ;;
2d1e8239
NC
2034 x86_64-*-mingw*)
2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2036 ;;
ec11bdc6 2037 i[3456789]86-*-mingw32*)
675c6968 2038 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2039 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2040 ;;
ec11bdc6 2041 i[3456789]86-*-beos*)
675c6968 2042 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2043 ;;
a0da8069 2044 *-*-cygwin*)
a92834c8 2045 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2046 ;;
2047 *-*-netbsd*)
a92834c8 2048 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2049 ;;
2050 ppc*-*-pe)
675c6968 2051 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2052 ;;
2053 powerpc-*-beos*)
675c6968 2054 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2055 ;;
a0da8069 2056esac
252b5132 2057
4b1cb4fe 2058
a2592b1b
DD
2059# Check whether --enable-libada or --disable-libada was given.
2060if test "${enable_libada+set}" = set; then
2061 enableval="$enable_libada"
2062 ENABLE_LIBADA=$enableval
2063else
2064 ENABLE_LIBADA=yes
c6b750e1 2065fi;
a2592b1b 2066if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2067 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2068fi
2069
5f128533
KH
2070# Check whether --enable-libssp or --disable-libssp was given.
2071if test "${enable_libssp+set}" = set; then
2072 enableval="$enable_libssp"
2073 ENABLE_LIBSSP=$enableval
2074else
2075 ENABLE_LIBSSP=yes
c6b750e1 2076fi;
5f128533 2077
a0da8069
NN
2078# Save it here so that, even in case of --enable-libgcj, if the Java
2079# front-end isn't enabled, we still get libgcj disabled.
2080libgcj_saved=$libgcj
2081case $enable_libgcj in
2082yes)
2083 # If we reset it here, it won't get added to noconfigdirs in the
2084 # target-specific build rules, so it will be forcibly enabled
2085 # (unless the Java language itself isn't enabled).
2086 libgcj=
2087 ;;
2088no)
2089 # Make sure we get it printed in the list of not supported target libs.
2090 noconfigdirs="$noconfigdirs ${libgcj}"
2091 ;;
2092esac
252b5132 2093
4b1cb4fe 2094
a6df5a19
PB
2095# Disable libmudflap on some systems.
2096if test x$enable_libmudflap = x ; then
3e707e94 2097 case "${target}" in
0ebe98fb 2098 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2099 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2100 ;;
2101 *-*-freebsd*)
2102 # Enable libmudflap by default in FreeBSD.
2103 ;;
2104 *)
2105 # Disable it by default everywhere else.
2106 noconfigdirs="$noconfigdirs target-libmudflap"
2107 ;;
2108 esac
a6df5a19 2109fi
4b1cb4fe 2110
a6df5a19
PB
2111# Disable libgomp on non POSIX hosted systems.
2112if test x$enable_libgomp = x ; then
b3ded179
PB
2113 # Enable libgomp by default on hosted POSIX systems.
2114 case "${target}" in
2115 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2116 ;;
2117 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2118 ;;
64ce424c 2119 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2120 ;;
2121 *-*-darwin* | *-*-aix*)
2122 ;;
2123 *)
2124 noconfigdirs="$noconfigdirs target-libgomp"
2125 ;;
2126 esac
a6df5a19 2127fi
b3ded179 2128
691bb5a1
DD
2129# Default libgloss CPU subdirectory.
2130libgloss_dir="$target_cpu"
4b1cb4fe 2131
a0da8069
NN
2132case "${target}" in
2133 *-*-chorusos)
54d1c879 2134 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2135 ;;
c9b68031 2136 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
b3f16a9b 2137 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2138 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2139 ;;
04d1ab34 2140 *-*-darwin*)
d320aacb 2141 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2142 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2143 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2144 ;;
a0da8069 2145 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2146 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2147 ;;
de0b4a87 2148 *-*-freebsd*)
4b1cb4fe
DD
2149 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2150 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2151 && test -f /usr/local/include/gmp.h; then
2152 with_gmp=/usr/local
2153 fi
2154
2155 # Skip some stuff that's unsupported on some FreeBSD configurations.
2156 case "${target}" in
2157 i*86-*-*) ;;
2158 alpha*-*-*) ;;
2159 *)
54d1c879 2160 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2161 ;;
2162 esac
2163 ;;
f8a495c8
NC
2164 *-*-kaos*)
2165 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2166 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2167 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2168 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2169 noconfigdirs="$noconfigdirs target-libgloss"
2170 ;;
a0da8069
NN
2171 *-*-netbsd*)
2172 # Skip some stuff on all NetBSD configurations.
2173 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2174
2175 # Skip some stuff that's unsupported on some NetBSD configurations.
2176 case "${target}" in
2177 i*86-*-netbsdelf*) ;;
5b474aa8 2178 arm*-*-netbsdelf*) ;;
a0da8069 2179 *)
54d1c879 2180 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2181 ;;
2182 esac
2183 ;;
2a3124ca 2184 *-*-netware*)
54d1c879 2185 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2186 ;;
2187 *-*-rtems*)
54d1c879 2188 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2189 ;;
1587117a
EC
2190 # The tpf target doesn't support gdb yet.
2191 *-*-tpf*)
54d1c879 2192 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2193 ;;
c1968181 2194 *-*-uclinux*)
54d1c879 2195 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2196 ;;
a0da8069 2197 *-*-vxworks*)
54d1c879 2198 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2199 ;;
2200 alpha*-dec-osf*)
2201 # ld works, but does not support shared libraries.
2202 # newlib is not 64 bit ready. I'm not sure about fileutils.
2203 # gas doesn't generate exception information.
2204 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2205 ;;
2206 alpha*-*-*vms*)
54d1c879 2207 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2208 ;;
2209 alpha*-*-linux*)
2210 # newlib is not 64 bit ready
2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2212 ;;
a0da8069
NN
2213 alpha*-*-*)
2214 # newlib is not 64 bit ready
54d1c879 2215 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2216 ;;
4a18bd6b 2217 am33_2.0-*-linux*)
54d1c879 2218 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2219 ;;
a0da8069 2220 sh-*-linux*)
54d1c879 2221 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2222 ;;
a0da8069 2223 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2224 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2225 noconfigdirs="$noconfigdirs target-examples"
2226 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2227 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2228 noconfigdirs="$noconfigdirs expect dejagnu"
2229 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2230 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2231 noconfigdirs="$noconfigdirs target-newlib"
2232 case "${host}" in
2233 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2234 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2235 ;;
2236 esac
691bb5a1 2237 libgloss_dir=wince
a0da8069
NN
2238 ;;
2239 arc-*-*)
54d1c879 2240 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2241 ;;
caeba88f 2242 arm-semi-aof )
caeba88f 2243 ;;
a0da8069 2244 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2245 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2246 libgloss_dir=arm
a0da8069 2247 ;;
11b04d1f 2248 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2249 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2250 libgloss_dir=arm
a0da8069 2251 ;;
bd70a46f 2252 arm*-*-linux-gnueabi)
6d18b86b
AH
2253 noconfigdirs="$noconfigdirs target-qthreads"
2254 noconfigdirs="$noconfigdirs target-libobjc"
a5b3b4dd
DD
2255 case ${with_newlib} in
2256 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2257 esac
691bb5a1 2258 libgloss_dir=arm
bd70a46f 2259 ;;
df4a6958 2260 arm*-*-symbianelf*)
54d1c879 2261 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2262 libgloss_dir=arm
df4a6958 2263 ;;
a0da8069 2264 arm-*-pe*)
54d1c879 2265 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2266 ;;
a0da8069 2267 thumb-*-coff)
54d1c879 2268 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2269 ;;
2270 thumb-*-elf)
54d1c879 2271 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2272 ;;
a0da8069 2273 thumb-*-pe)
54d1c879 2274 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2275 ;;
2276 arm-*-riscix*)
54d1c879 2277 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2278 ;;
2279 avr-*-*)
54d1c879 2280 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2281 ;;
376a0e54 2282 bfin-*-*)
00d89675 2283 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2284 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2285 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2286 fi
2287 ;;
a0da8069 2288 c4x-*-* | tic4x-*-*)
54d1c879 2289 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2290 ;;
2291 c54x*-*-* | tic54x-*-*)
54d1c879 2292 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2293 ;;
c7e66c6d 2294 cris-*-* | crisv32-*-*)
59f7ec45 2295 unsupported_languages="$unsupported_languages java"
c7e66c6d 2296 case "${target}" in
2faa2958 2297 *-*-aout)
096f7d00 2298 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2299 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2300 *-*-elf)
5e818318 2301 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2302 *-*-linux*)
5e818318 2303 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2304 *)
096f7d00 2305 unsupported_languages="$unsupported_languages fortran"
54d1c879 2306 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2307 esac
691bb5a1 2308 libgloss_dir=cris
a0da8069 2309 ;;
3e707e94 2310 crx-*-*)
54d1c879 2311 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2312 ;;
a0da8069 2313 d10v-*-*)
54d1c879 2314 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2315 ;;
2316 d30v-*-*)
54d1c879 2317 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2318 ;;
691bb5a1
DD
2319 ep9312-*-elf | ep9312-*-coff)
2320 libgloss_dir=arm
2321 ;;
a0da8069 2322 fr30-*-elf*)
54d1c879 2323 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2324 ;;
2325 frv-*-*)
54d1c879 2326 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2327 ;;
2328 h8300*-*-*)
54d1c879 2329 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2330 ;;
2331 h8500-*-*)
54d1c879 2332 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2333 ;;
caeba88f 2334 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2335 ;;
a0da8069
NN
2336 hppa*64*-*-linux* | parisc*64*-*-linux*)
2337 # In this case, it's because the hppa64-linux target is for
2338 # the kernel only at this point and has no libc, and thus no
2339 # headers, crt*.o, etc., all of which are needed by these.
2340 noconfigdirs="$noconfigdirs target-zlib"
2341 ;;
5dcac624
DA
2342 parisc*-*-linux* | hppa*-*-linux*)
2343 ;;
a0da8069 2344 hppa*-*-*elf* | \
a0da8069
NN
2345 hppa*-*-lites* | \
2346 hppa*-*-openbsd* | \
2347 hppa*64*-*-*)
54d1c879 2348 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2349 ;;
2350 hppa*-hp-hpux11*)
2351 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2352 ;;
691bb5a1
DD
2353 hppa*-*-pro*)
2354 libgloss_dir=pa
2355 ;;
a0da8069
NN
2356 hppa*-*-*)
2357 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2358 # build on HP-UX 10.20.
54d1c879 2359 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2360 ;;
b07c2aad 2361 i960-*-*)
54d1c879 2362 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2363 ;;
a0da8069
NN
2364 ia64*-*-elf*)
2365 # No gdb support yet.
675c6968 2366 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2367 ;;
2368 ia64*-**-hpux*)
2369 # No gdb or ld support yet.
54d1c879 2370 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2371 ;;
caeba88f 2372 i370-*-opened*)
caeba88f 2373 ;;
ec11bdc6 2374 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2375 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2376 libgloss_dir=i386
a0da8069 2377 ;;
ec11bdc6 2378 i[3456789]86-*-linux*)
a0da8069
NN
2379 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2380 # not build java stuff by default.
2381 case "${target}" in
2382 *-*-*libc1*)
54d1c879 2383 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2384 esac
2385
2386 # This section makes it possible to build newlib natively on linux.
2387 # If we are using a cross compiler then don't configure newlib.
2388 if test x${is_cross_compiler} != xno ; then
bba45b8b 2389 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2390 fi
2391 noconfigdirs="$noconfigdirs target-libgloss"
2392 # If we are not using a cross compiler, do configure newlib.
2393 # Note however, that newlib will only be configured in this situation
2394 # if the --with-newlib option has been given, because otherwise
2395 # 'target-newlib' will appear in skipdirs.
2396 ;;
ec11bdc6 2397 i[3456789]86-*-mingw32*)
45055374
CV
2398 target_configdirs="$target_configdirs target-winsup"
2399 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2400 ;;
2d1e8239
NC
2401 x86_64-*-mingw*)
2402 target_configdirs="$target_configdirs target-winsup"
2403 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2404 ;;
a0da8069
NN
2405 *-*-cygwin*)
2406 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2407 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2408 # always build newlib if winsup directory is present.
45055374 2409 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2410 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2411 elif test -d "$srcdir/newlib"; then
45055374 2412 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2413 fi
c6b750e1 2414 ;;
caeba88f
AL
2415 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2416 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2417 ;;
ec11bdc6 2418 i[3456789]86-*-pe)
54d1c879 2419 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2420 ;;
ec11bdc6 2421 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2422 # The linker does not yet know about weak symbols in COFF,
2423 # and is not configured to handle mixed ELF and COFF.
54d1c879 2424 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2425 ;;
ec11bdc6 2426 i[3456789]86-*-sco*)
54d1c879 2427 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2428 ;;
ec11bdc6 2429 i[3456789]86-*-solaris2*)
a0da8069
NN
2430 noconfigdirs="$noconfigdirs target-libgloss"
2431 ;;
ec11bdc6 2432 i[3456789]86-*-sysv4*)
54d1c879 2433 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2434 ;;
ec11bdc6 2435 i[3456789]86-*-beos*)
54d1c879 2436 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2437 ;;
b59bea8a 2438 i[3456789]86-*-rdos*)
2429c060
PB
2439 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2440 ;;
b07c2aad 2441 m32r-*-*)
54d1c879 2442 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2443 ;;
a0da8069 2444 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2445 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2446 libgloss_dir=m68hc11
a0da8069
NN
2447 ;;
2448 m68k-*-elf*)
54d1c879 2449 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2450 ;;
2451 m68k-*-coff*)
54d1c879 2452 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2453 ;;
691bb5a1
DD
2454 m68*-*-* | fido-*-*)
2455 libgloss_dir=m68k
2456 ;;
a0da8069
NN
2457 mcore-*-pe*)
2458 # The EPOC C++ environment does not support exceptions or rtti,
2459 # and so building libstdc++-v3 tends not to always work.
2460 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2461 ;;
2462 mmix-*-*)
59f7ec45 2463 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2464 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2465 ;;
2466 mn10200-*-*)
54d1c879 2467 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2468 ;;
2469 mn10300-*-*)
54d1c879 2470 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2471 ;;
4970f871 2472 mt-*-*)
cdb9b172
AH
2473 noconfigdirs="$noconfigdirs sim"
2474 ;;
a0da8069
NN
2475 powerpc-*-aix*)
2476 # copied from rs6000-*-* entry
54d1c879 2477 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2478 ;;
2479 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2480 target_configdirs="$target_configdirs target-winsup"
54d1c879 2481 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2482 # always build newlib.
2483 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2484 ;;
2485 # This is temporary until we can link against shared libraries
2486 powerpcle-*-solaris*)
54d1c879 2487 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2488 libgloss_dir=rs6000
a0da8069
NN
2489 ;;
2490 powerpc-*-beos*)
54d1c879 2491 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2492 ;;
a0da8069 2493 powerpc-*-eabi)
54d1c879 2494 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2495 libgloss_dir=rs6000
caeba88f
AL
2496 ;;
2497 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2498 libgloss_dir=rs6000
a0da8069 2499 ;;
a0da8069 2500 rs6000-*-lynxos*)
54d1c879 2501 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2502 ;;
2503 rs6000-*-aix*)
54d1c879 2504 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2505 ;;
2506 rs6000-*-*)
54d1c879 2507 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2508 ;;
2509 m68k-apollo-*)
54d1c879 2510 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2511 ;;
5bd8be13
RS
2512 mips*-sde-elf*)
2513 skipdirs="$skipdirs target-libiberty"
2514 noconfigdirs="$noconfigdirs ${libgcj}"
2515 if test x$with_newlib = xyes; then
2516 noconfigdirs="$noconfigdirs gprof"
2517 fi
2518 libgloss_dir=mips
2519 ;;
a0da8069 2520 mips*-*-irix5*)
54d1c879 2521 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2522 ;;
2523 mips*-*-irix6*)
a0da8069
NN
2524 # Linking libjava exceeds command-line length limits on at least
2525 # IRIX 6.2, but not on IRIX 6.5.
2526 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2527 # <oldham@codesourcery.com>
54d1c879 2528 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2529 ;;
a0da8069 2530 mips*-*-bsd*)
54d1c879 2531 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2532 ;;
a0da8069
NN
2533 mips*-*-linux*)
2534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2535 ;;
2536 mips*-*-*)
54d1c879 2537 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2538 libgloss_dir=mips
a0da8069
NN
2539 ;;
2540 romp-*-*)
54d1c879 2541 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2542 ;;
dbf85af7 2543 sh-*-* | sh64-*-*)
a0da8069 2544 case "${host}" in
ec11bdc6
DD
2545 i[3456789]86-*-vsta) ;; # don't add gprof back in
2546 i[3456789]86-*-go32*) ;; # don't add gprof back in
2547 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2548 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2549 esac
54d1c879 2550 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2551 ;;
691bb5a1
DD
2552 sparclet-*-aout* | sparc86x-*-*)
2553 libgloss_dir=sparc
2554 ;;
a0da8069 2555 sparc-*-elf*)
54d1c879 2556 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2557 ;;
2558 sparc64-*-elf*)
54d1c879 2559 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2560 libgloss_dir=sparc
a0da8069
NN
2561 ;;
2562 sparclite-*-*)
54d1c879 2563 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2564 libgloss_dir=sparc
a0da8069
NN
2565 ;;
2566 sparc-*-sunos4*)
54d1c879 2567 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2568 if test x${is_cross_compiler} != xno ; then
2569 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2570 else
2571 use_gnu_ld=no
2572 fi
2573 ;;
e3c770b1 2574 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2575 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2576 ;;
a0da8069
NN
2577 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2578 ;;
2839fe5d
BE
2579 spu-*-*)
2580 skipdirs="target-libssp"
2581 ;;
a0da8069 2582 v810-*-*)
54d1c879 2583 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2584 ;;
2585 v850-*-*)
54d1c879 2586 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2587 ;;
2588 v850e-*-*)
54d1c879 2589 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2590 ;;
2591 v850ea-*-*)
54d1c879 2592 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2593 ;;
2594 vax-*-vms)
54d1c879 2595 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2596 ;;
2597 vax-*-*)
54d1c879 2598 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2599 ;;
8b66833e 2600 xtensa*-*-*)
54d1c879 2601 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2602 ;;
a0da8069 2603 ip2k-*-*)
54d1c879 2604 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2605 ;;
de0b4a87 2606 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2608 ;;
2609 *-*-lynxos*)
54d1c879 2610 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2611 ;;
a0da8069 2612 *-*-*)
54d1c879 2613 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2614 ;;
2615esac
252b5132 2616
a0da8069
NN
2617# If we aren't building newlib, then don't build libgloss, since libgloss
2618# depends upon some newlib header files.
2619case "${noconfigdirs}" in
2620 *target-libgloss*) ;;
2621 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2622esac
2623
a0da8069
NN
2624# Work in distributions that contain no compiler tools, like Autoconf.
2625tentative_cc=""
2626host_makefile_frag=/dev/null
2627if test -d ${srcdir}/config ; then
2628case "${host}" in
2629 m68k-hp-hpux*)
2630 # Avoid "too much defining" errors from HPUX compiler.
2631 tentative_cc="cc -Wp,-H256000"
2632 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2633 # If it's HP/UX ar, this should be harmless.
2634 RANLIB="ar ts"
2635 ;;
2636 m68k-apollo-sysv*)
2637 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2638 ;;
2639 m68k-apollo-bsd*)
2640 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2641 # chokes on bfd, the compiler won't let you assign integers to enums, and
2642 # other problems. Defining CC to gcc is a questionable way to say "don't use
2643 # the apollo compiler" (the preferred version of GCC could be called cc,
2644 # or whatever), but I'm not sure leaving CC as cc is any better...
2645 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2646 # Used to have BISON=yacc.
2647 tentative_cc=gcc
2648 ;;
2649 m88k-dg-dgux*)
2650 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2651 ;;
2652 m88k-harris-cxux*)
2653 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2654 tentative_cc="cc -Xa"
2655 host_makefile_frag="config/mh-cxux"
2656 ;;
2657 m88k-motorola-sysv*)
2658 ;;
2659 mips*-dec-ultrix*)
2660 tentative_cc="cc -Wf,-XNg1000"
2661 host_makefile_frag="config/mh-decstation"
2662 ;;
2663 mips*-nec-sysv4*)
2664 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2665 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2666 host_makefile_frag="config/mh-necv4"
2667 ;;
2668 mips*-sgi-irix4*)
2669 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2670 # environment. Also bump switch table size so that cp-parse will
2671 # compile. Bump string length limit so linker builds.
2672 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2673 ;;
2674 mips*-*-sysv4*)
2675 host_makefile_frag="config/mh-sysv4"
2676 ;;
2677 mips*-*-sysv*)
2678 # This is for a MIPS running RISC/os 4.52C.
2679
2680 # This is needed for GDB, but needs to be in the top-level make because
2681 # if a library is compiled with the bsd headers and gets linked with the
2682 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2683 # a different size).
2684 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2685 # known except to select the sysv environment. Could we use /proc instead?
2686 # These "sysv environments" and "bsd environments" often end up being a pain.
2687 #
2688 # This is not part of CFLAGS because perhaps not all C compilers have this
2689 # option.
2690 tentative_cc="cc -systype sysv"
2691 ;;
2692 i370-ibm-opened*)
2693 tentative_cc="c89"
2694 ;;
ec11bdc6 2695 i[3456789]86-*-sysv5*)
a0da8069
NN
2696 host_makefile_frag="config/mh-sysv5"
2697 ;;
ec11bdc6 2698 i[3456789]86-*-dgux*)
a0da8069
NN
2699 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2700 host_makefile_frag="config/mh-dgux386"
2701 ;;
ec11bdc6 2702 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2703 # The MetaWare compiler will generate a copyright message unless you
2704 # turn it off by adding the -Hnocopyr flag.
2705 tentative_cc="cc -Hnocopyr"
2706 ;;
ec11bdc6 2707 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2708 # for an NCR 3000 (i486/SVR4) system.
2709 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2710 # This compiler not only emits obnoxious copyright messages every time
2711 # you run it, but it chokes and dies on a whole bunch of GNU source
2712 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2713 tentative_cc="/usr/ccs/ATT/cc"
2714 host_makefile_frag="config/mh-ncr3000"
2715 ;;
ec11bdc6 2716 i[3456789]86-*-sco3.2v5*)
a0da8069 2717 ;;
ec11bdc6 2718 i[3456789]86-*-sco*)
a0da8069
NN
2719 # The native C compiler botches some simple uses of const. Unfortunately,
2720 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2721 tentative_cc="cc -Dconst="
2722 host_makefile_frag="config/mh-sco"
2723 ;;
ec11bdc6 2724 i[3456789]86-*-udk*)
a0da8069
NN
2725 host_makefile_frag="config/mh-sysv5"
2726 ;;
ec11bdc6 2727 i[3456789]86-*-solaris2*)
a0da8069
NN
2728 host_makefile_frag="config/mh-sysv4"
2729 ;;
ec11bdc6 2730 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2731 host_makefile_frag="config/mh-djgpp"
2732 ;;
2733 *-cygwin*)
2734 host_makefile_frag="config/mh-cygwin"
2735 ;;
2736 *-mingw32*)
84e7906e 2737 host_makefile_frag="config/mh-mingw"
a0da8069 2738 ;;
2d1e8239 2739 *-mingw64*)
84e7906e 2740 host_makefile_frag="config/mh-mingw"
2d1e8239 2741 ;;
a0da8069
NN
2742 *-interix*)
2743 host_makefile_frag="config/mh-interix"
2744 ;;
2745 vax-*-ultrix2*)
2746 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2747 tentative_cc=gcc
2748 ;;
2749 *-*-solaris2*)
2750 host_makefile_frag="config/mh-solaris"
2751 ;;
2752 m68k-sun-sunos*)
2753 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2754 # without overflowing the jump tables (-J says to use a 32 bit table)
2755 tentative_cc="cc -J"
2756 ;;
2757 *-hp-hpux*)
2758 tentative_cc="cc -Wp,-H256000"
2759 ;;
2760 *-*-hiux*)
2761 tentative_cc="cc -Wp,-H256000"
2762 ;;
2763 rs6000-*-lynxos*)
2764 # /bin/cc is less than useful for our purposes. Always use GCC
2765 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2766 host_makefile_frag="config/mh-lynxrs6k"
2767 ;;
0df3d27f
PB
2768 powerpc-*-darwin*)
2769 host_makefile_frag="config/mh-ppc-darwin"
2770 ;;
f6d183c0
PB
2771 powerpc-*-aix*)
2772 host_makefile_frag="config/mh-ppc-aix"
2773 ;;
2774 rs6000-*-aix*)
2775 host_makefile_frag="config/mh-ppc-aix"
2776 ;;
a0da8069
NN
2777 *-*-lynxos*)
2778 # /bin/cc is less than useful for our purposes. Always use GCC
2779 tentative_cc="/bin/gcc"
2780 ;;
2781 *-*-sysv4*)
2782 host_makefile_frag="config/mh-sysv4"
2783 ;;
fe69863c
DD
2784 # This is placed last to prevent interfering with the cases above.
2785 i[3456789]86-*-*)
2786 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2787 host_makefile_frag="config/mh-x86omitfp"
2788 ;;
a0da8069
NN
2789esac
2790fi
2791
9e07f89d
NN
2792# If we aren't going to be using gcc, see if we can extract a definition
2793# of CC from the fragment.
2794# Actually, use the 'pre-extracted' version above.
2795if test -z "${CC}" && test "${build}" = "${host}" ; then
2796 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2797 found=
2798 for dir in $PATH; do
2799 test -z "$dir" && dir=.
2800 if test -f $dir/gcc; then
2801 found=yes
2802 break
2803 fi
2804 done
2805 IFS="$save_ifs"
2806 if test -z "${found}" && test -n "${tentative_cc}" ; then
2807 CC=$tentative_cc
2808 fi
2809fi
2810
2811if test "${build}" != "${host}" ; then
1576798e
PB
2812 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2813 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2814 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2815 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2816 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2817 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2818 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2819 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2820 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2821 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2822 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2823 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2824else
2825 AR_FOR_BUILD="\$(AR)"
2826 AS_FOR_BUILD="\$(AS)"
512b7dfb 2827 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2828 CXX_FOR_BUILD="\$(CXX)"
2829 GCJ_FOR_BUILD="\$(GCJ)"
2830 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2831 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2832 LD_FOR_BUILD="\$(LD)"
2833 NM_FOR_BUILD="\$(NM)"
2834 RANLIB_FOR_BUILD="\$(RANLIB)"
2835 WINDRES_FOR_BUILD="\$(WINDRES)"
2836 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2837fi
2838
2839ac_ext=c
c6b750e1
DJ
2840ac_cpp='$CPP $CPPFLAGS'
2841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844if test -n "$ac_tool_prefix"; then
2845 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2846set dummy ${ac_tool_prefix}gcc; ac_word=$2
2847echo "$as_me:$LINENO: checking for $ac_word" >&5
2848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2849if test "${ac_cv_prog_CC+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2851else
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854else
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866done
2867done
2868
2869fi
2870fi
2871CC=$ac_cv_prog_CC
2872if test -n "$CC"; then
2873 echo "$as_me:$LINENO: result: $CC" >&5
2874echo "${ECHO_T}$CC" >&6
2875else
2876 echo "$as_me:$LINENO: result: no" >&5
2877echo "${ECHO_T}no" >&6
2878fi
2879
2880fi
2881if test -z "$ac_cv_prog_CC"; then
2882 ac_ct_CC=$CC
6a9cf61e 2883 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2884set dummy gcc; ac_word=$2
c6b750e1
DJ
2885echo "$as_me:$LINENO: checking for $ac_word" >&5
2886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2887if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889else
2890 if test -n "$ac_ct_CC"; then
2891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2892else
2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH
2895do
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900 ac_cv_prog_ac_ct_CC="gcc"
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2903 fi
2904done
2905done
2906
2907fi
2908fi
2909ac_ct_CC=$ac_cv_prog_ac_ct_CC
2910if test -n "$ac_ct_CC"; then
2911 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2912echo "${ECHO_T}$ac_ct_CC" >&6
2913else
2914 echo "$as_me:$LINENO: result: no" >&5
2915echo "${ECHO_T}no" >&6
2916fi
2917
2918 CC=$ac_ct_CC
2919else
2920 CC="$ac_cv_prog_CC"
2921fi
2922
2923if test -z "$CC"; then
2924 if test -n "$ac_tool_prefix"; then
2925 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2926set dummy ${ac_tool_prefix}cc; ac_word=$2
2927echo "$as_me:$LINENO: checking for $ac_word" >&5
2928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2929if test "${ac_cv_prog_CC+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2931else
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2934else
c6b750e1
DJ
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942 ac_cv_prog_CC="${ac_tool_prefix}cc"
2943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946done
2947done
2948
9e07f89d
NN
2949fi
2950fi
c6b750e1 2951CC=$ac_cv_prog_CC
9e07f89d 2952if test -n "$CC"; then
c6b750e1
DJ
2953 echo "$as_me:$LINENO: result: $CC" >&5
2954echo "${ECHO_T}$CC" >&6
9e07f89d 2955else
c6b750e1
DJ
2956 echo "$as_me:$LINENO: result: no" >&5
2957echo "${ECHO_T}no" >&6
9e07f89d
NN
2958fi
2959
c6b750e1
DJ
2960fi
2961if test -z "$ac_cv_prog_CC"; then
2962 ac_ct_CC=$CC
2963 # Extract the first word of "cc", so it can be a program name with args.
2964set dummy cc; ac_word=$2
2965echo "$as_me:$LINENO: checking for $ac_word" >&5
2966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969else
2970 if test -n "$ac_ct_CC"; then
2971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_ac_ct_CC="cc"
2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2983 fi
2984done
2985done
2986
2987fi
2988fi
2989ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990if test -n "$ac_ct_CC"; then
2991 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2992echo "${ECHO_T}$ac_ct_CC" >&6
2993else
2994 echo "$as_me:$LINENO: result: no" >&5
2995echo "${ECHO_T}no" >&6
2996fi
2997
2998 CC=$ac_ct_CC
2999else
3000 CC="$ac_cv_prog_CC"
3001fi
3002
3003fi
9e07f89d
NN
3004if test -z "$CC"; then
3005 # Extract the first word of "cc", so it can be a program name with args.
3006set dummy cc; ac_word=$2
c6b750e1
DJ
3007echo "$as_me:$LINENO: checking for $ac_word" >&5
3008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3009if test "${ac_cv_prog_CC+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3011else
3012 if test -n "$CC"; then
3013 ac_cv_prog_CC="$CC" # Let the user override the test.
3014else
9e07f89d 3015 ac_prog_rejected=no
c6b750e1
DJ
3016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017for as_dir in $PATH
3018do
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3024 ac_prog_rejected=yes
3025 continue
3026 fi
3027 ac_cv_prog_CC="cc"
3028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031done
3032done
3033
9e07f89d
NN
3034if test $ac_prog_rejected = yes; then
3035 # We found a bogon in the path, so make sure we never use it.
3036 set dummy $ac_cv_prog_CC
3037 shift
c6b750e1 3038 if test $# != 0; then
9e07f89d
NN
3039 # We chose a different compiler from the bogus one.
3040 # However, it has the same basename, so the bogon will be chosen
3041 # first if we set CC to just the basename; use the full file name.
3042 shift
c6b750e1 3043 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3044 fi
3045fi
3046fi
3047fi
c6b750e1 3048CC=$ac_cv_prog_CC
9e07f89d 3049if test -n "$CC"; then
c6b750e1
DJ
3050 echo "$as_me:$LINENO: result: $CC" >&5
3051echo "${ECHO_T}$CC" >&6
9e07f89d 3052else
c6b750e1
DJ
3053 echo "$as_me:$LINENO: result: no" >&5
3054echo "${ECHO_T}no" >&6
9e07f89d
NN
3055fi
3056
c6b750e1
DJ
3057fi
3058if test -z "$CC"; then
3059 if test -n "$ac_tool_prefix"; then
3060 for ac_prog in cl
3061 do
3062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3063set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3064echo "$as_me:$LINENO: checking for $ac_word" >&5
3065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3066if test "${ac_cv_prog_CC+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3068else
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3071else
c6b750e1
DJ
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
376a0e54 3082 fi
c6b750e1
DJ
3083done
3084done
cac3d6c4 3085
c6b750e1
DJ
3086fi
3087fi
3088CC=$ac_cv_prog_CC
3089if test -n "$CC"; then
3090 echo "$as_me:$LINENO: result: $CC" >&5
3091echo "${ECHO_T}$CC" >&6
cac3d6c4 3092else
c6b750e1
DJ
3093 echo "$as_me:$LINENO: result: no" >&5
3094echo "${ECHO_T}no" >&6
9e07f89d 3095fi
cac3d6c4 3096
c6b750e1
DJ
3097 test -n "$CC" && break
3098 done
cac3d6c4 3099fi
c6b750e1
DJ
3100if test -z "$CC"; then
3101 ac_ct_CC=$CC
3102 for ac_prog in cl
3103do
3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105set dummy $ac_prog; ac_word=$2
3106echo "$as_me:$LINENO: checking for $ac_word" >&5
3107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3110else
c6b750e1
DJ
3111 if test -n "$ac_ct_CC"; then
3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3113else
c6b750e1
DJ
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_ac_ct_CC="$ac_prog"
3122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125done
3126done
3127
cac3d6c4
CM
3128fi
3129fi
c6b750e1
DJ
3130ac_ct_CC=$ac_cv_prog_ac_ct_CC
3131if test -n "$ac_ct_CC"; then
3132 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3133echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3134else
c6b750e1
DJ
3135 echo "$as_me:$LINENO: result: no" >&5
3136echo "${ECHO_T}no" >&6
cac3d6c4 3137fi
376a0e54 3138
c6b750e1
DJ
3139 test -n "$ac_ct_CC" && break
3140done
3141
3142 CC=$ac_ct_CC
3143fi
3144
3145fi
3146
3147
3148test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3149See \`config.log' for more details." >&5
3150echo "$as_me: error: no acceptable C compiler found in \$PATH
3151See \`config.log' for more details." >&2;}
3152 { (exit 1); exit 1; }; }
3153
3154# Provide some information about the compiler.
3155echo "$as_me:$LINENO:" \
3156 "checking for C compiler version" >&5
3157ac_compiler=`set X $ac_compile; echo $2`
3158{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3159 (eval $ac_compiler --version </dev/null >&5) 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }
3163{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3164 (eval $ac_compiler -v </dev/null >&5) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }
3168{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3169 (eval $ac_compiler -V </dev/null >&5) 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }
3173
3174cat >conftest.$ac_ext <<_ACEOF
3175/* confdefs.h. */
3176_ACEOF
3177cat confdefs.h >>conftest.$ac_ext
3178cat >>conftest.$ac_ext <<_ACEOF
3179/* end confdefs.h. */
3180
3181int
3182main ()
3183{
3184
3185 ;
3186 return 0;
3187}
3188_ACEOF
3189ac_clean_files_save=$ac_clean_files
3190ac_clean_files="$ac_clean_files a.out a.exe b.out"
3191# Try to create an executable without -o first, disregard a.out.
3192# It will help us diagnose broken compilers, and finding out an intuition
3193# of exeext.
3194echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3195echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3196ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3197if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3198 (eval $ac_link_default) 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; then
3202 # Find the output, starting from the most likely. This scheme is
3203# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3204# resort.
3205
3206# Be careful to initialize this variable, since it used to be cached.
3207# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3208ac_cv_exeext=
3209# b.out is created by i960 compilers.
3210for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3211do
3212 test -f "$ac_file" || continue
3213 case $ac_file in
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3215 ;;
3216 conftest.$ac_ext )
3217 # This is the source file.
3218 ;;
3219 [ab].out )
3220 # We found the default executable, but exeext='' is most
3221 # certainly right.
3222 break;;
3223 *.* )
3224 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3225 # FIXME: I believe we export ac_cv_exeext for Libtool,
3226 # but it would be cool to find out if it's true. Does anybody
3227 # maintain Libtool? --akim.
3228 export ac_cv_exeext
3229 break;;
3230 * )
3231 break;;
3232 esac
3233done
3234else
3235 echo "$as_me: failed program was:" >&5
3236sed 's/^/| /' conftest.$ac_ext >&5
3237
3238{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3239See \`config.log' for more details." >&5
3240echo "$as_me: error: C compiler cannot create executables
3241See \`config.log' for more details." >&2;}
3242 { (exit 77); exit 77; }; }
3243fi
3244
3245ac_exeext=$ac_cv_exeext
3246echo "$as_me:$LINENO: result: $ac_file" >&5
3247echo "${ECHO_T}$ac_file" >&6
3248
3249# Check the compiler produces executables we can run. If not, either
3250# the compiler is broken, or we cross compile.
3251echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3252echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3253# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3254# If not cross compiling, check that we can run a simple program.
3255if test "$cross_compiling" != yes; then
3256 if { ac_try='./$ac_file'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 (eval $ac_try) 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3262 cross_compiling=no
3263 else
3264 if test "$cross_compiling" = maybe; then
3265 cross_compiling=yes
3266 else
3267 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3268If you meant to cross compile, use \`--host'.
3269See \`config.log' for more details." >&5
3270echo "$as_me: error: cannot run C compiled programs.
3271If you meant to cross compile, use \`--host'.
3272See \`config.log' for more details." >&2;}
3273 { (exit 1); exit 1; }; }
3274 fi
3275 fi
3276fi
3277echo "$as_me:$LINENO: result: yes" >&5
3278echo "${ECHO_T}yes" >&6
3279
3280rm -f a.out a.exe conftest$ac_cv_exeext b.out
3281ac_clean_files=$ac_clean_files_save
3282# Check the compiler produces executables we can run. If not, either
3283# the compiler is broken, or we cross compile.
3284echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3285echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3286echo "$as_me:$LINENO: result: $cross_compiling" >&5
3287echo "${ECHO_T}$cross_compiling" >&6
3288
3289echo "$as_me:$LINENO: checking for suffix of executables" >&5
3290echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3292 (eval $ac_link) 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; then
3296 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3297# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3298# work properly (i.e., refer to `conftest.exe'), while it won't with
3299# `rm'.
3300for ac_file in conftest.exe conftest conftest.*; do
3301 test -f "$ac_file" || continue
3302 case $ac_file in
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3304 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3305 export ac_cv_exeext
3306 break;;
3307 * ) break;;
3308 esac
3309done
3310else
3311 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3312See \`config.log' for more details." >&5
3313echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3314See \`config.log' for more details." >&2;}
3315 { (exit 1); exit 1; }; }
3316fi
3317
3318rm -f conftest$ac_cv_exeext
3319echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3320echo "${ECHO_T}$ac_cv_exeext" >&6
3321
3322rm -f conftest.$ac_ext
3323EXEEXT=$ac_cv_exeext
3324ac_exeext=$EXEEXT
3325echo "$as_me:$LINENO: checking for suffix of object files" >&5
3326echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3327if test "${ac_cv_objext+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329else
3330 cat >conftest.$ac_ext <<_ACEOF
3331/* confdefs.h. */
3332_ACEOF
3333cat confdefs.h >>conftest.$ac_ext
3334cat >>conftest.$ac_ext <<_ACEOF
3335/* end confdefs.h. */
3336
3337int
3338main ()
3339{
3340
3341 ;
3342 return 0;
3343}
3344_ACEOF
3345rm -f conftest.o conftest.obj
3346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347 (eval $ac_compile) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; then
3351 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3352 case $ac_file in
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3354 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3355 break;;
3356 esac
3357done
cac3d6c4 3358else
c6b750e1
DJ
3359 echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
3362{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3363See \`config.log' for more details." >&5
3364echo "$as_me: error: cannot compute suffix of object files: cannot compile
3365See \`config.log' for more details." >&2;}
3366 { (exit 1); exit 1; }; }
3367fi
3368
3369rm -f conftest.$ac_cv_objext conftest.$ac_ext
3370fi
3371echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3372echo "${ECHO_T}$ac_cv_objext" >&6
3373OBJEXT=$ac_cv_objext
3374ac_objext=$OBJEXT
3375echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3376echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3377if test "${ac_cv_c_compiler_gnu+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379else
3380 cat >conftest.$ac_ext <<_ACEOF
3381/* confdefs.h. */
3382_ACEOF
3383cat confdefs.h >>conftest.$ac_ext
3384cat >>conftest.$ac_ext <<_ACEOF
3385/* end confdefs.h. */
3386
3387int
3388main ()
3389{
3390#ifndef __GNUC__
3391 choke me
3392#endif
3393
3394 ;
3395 return 0;
3396}
3397_ACEOF
3398rm -f conftest.$ac_objext
3399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400 (eval $ac_compile) 2>conftest.er1
3401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try='test -z "$ac_c_werror_flag"
3408 || test ! -s conftest.err'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 (eval $ac_try) 2>&5
3411 ac_status=$?
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; } &&
3414 { ac_try='test -s conftest.$ac_objext'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 (eval $ac_try) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; }; then
3420 ac_compiler_gnu=yes
3421else
3422 echo "$as_me: failed program was:" >&5
3423sed 's/^/| /' conftest.$ac_ext >&5
3424
3425ac_compiler_gnu=no
3426fi
3427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3428ac_cv_c_compiler_gnu=$ac_compiler_gnu
3429
3430fi
3431echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3432echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3433GCC=`test $ac_compiler_gnu = yes && echo yes`
3434ac_test_CFLAGS=${CFLAGS+set}
3435ac_save_CFLAGS=$CFLAGS
3436CFLAGS="-g"
3437echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3438echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3439if test "${ac_cv_prog_cc_g+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442 cat >conftest.$ac_ext <<_ACEOF
3443/* confdefs.h. */
3444_ACEOF
3445cat confdefs.h >>conftest.$ac_ext
3446cat >>conftest.$ac_ext <<_ACEOF
3447/* end confdefs.h. */
3448
3449int
3450main ()
3451{
3452
3453 ;
3454 return 0;
3455}
3456_ACEOF
3457rm -f conftest.$ac_objext
3458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>conftest.er1
3460 ac_status=$?
3461 grep -v '^ *+' conftest.er1 >conftest.err
3462 rm -f conftest.er1
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try='test -z "$ac_c_werror_flag"
3467 || test ! -s conftest.err'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; } &&
3473 { ac_try='test -s conftest.$ac_objext'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 (eval $ac_try) 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
9e07f89d
NN
3479 ac_cv_prog_cc_g=yes
3480else
c6b750e1
DJ
3481 echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3483
c6b750e1 3484ac_cv_prog_cc_g=no
376a0e54 3485fi
c6b750e1
DJ
3486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3487fi
3488echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3489echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3490if test "$ac_test_CFLAGS" = set; then
c6b750e1 3491 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3492elif test $ac_cv_prog_cc_g = yes; then
3493 if test "$GCC" = yes; then
3494 CFLAGS="-g -O2"
3495 else
3496 CFLAGS="-g"
3497 fi
3498else
3499 if test "$GCC" = yes; then
3500 CFLAGS="-O2"
3501 else
3502 CFLAGS=
3503 fi
3504fi
c6b750e1
DJ
3505echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3506echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3507if test "${ac_cv_prog_cc_stdc+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510 ac_cv_prog_cc_stdc=no
3511ac_save_CC=$CC
3512cat >conftest.$ac_ext <<_ACEOF
3513/* confdefs.h. */
3514_ACEOF
3515cat confdefs.h >>conftest.$ac_ext
3516cat >>conftest.$ac_ext <<_ACEOF
3517/* end confdefs.h. */
3518#include <stdarg.h>
3519#include <stdio.h>
3520#include <sys/types.h>
3521#include <sys/stat.h>
3522/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3523struct buf { int x; };
3524FILE * (*rcsopen) (struct buf *, struct stat *, int);
3525static char *e (p, i)
3526 char **p;
3527 int i;
3528{
3529 return p[i];
3530}
3531static char *f (char * (*g) (char **, int), char **p, ...)
3532{
3533 char *s;
3534 va_list v;
3535 va_start (v,p);
3536 s = g (p, va_arg (v,int));
3537 va_end (v);
3538 return s;
3539}
3540
3541/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3542 function prototypes and stuff, but not '\xHH' hex character constants.
3543 These don't provoke an error unfortunately, instead are silently treated
3544 as 'x'. The following induces an error, until -std1 is added to get
3545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3546 array size at least. It's necessary to write '\x00'==0 to get something
3547 that's true only with -std1. */
3548int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3549
3550int test (int i, double x);
3551struct s1 {int (*f) (int a);};
3552struct s2 {int (*f) (double a);};
3553int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3554int argc;
3555char **argv;
3556int
3557main ()
3558{
3559return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3560 ;
3561 return 0;
3562}
3563_ACEOF
3564# Don't try gcc -ansi; that turns off useful extensions and
3565# breaks some systems' header files.
3566# AIX -qlanglvl=ansi
3567# Ultrix and OSF/1 -std1
3568# HP-UX 10.20 and later -Ae
3569# HP-UX older versions -Aa -D_HPUX_SOURCE
3570# SVR4 -Xc -D__EXTENSIONS__
3571for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3572do
3573 CC="$ac_save_CC $ac_arg"
3574 rm -f conftest.$ac_objext
3575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3576 (eval $ac_compile) 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } &&
3583 { ac_try='test -z "$ac_c_werror_flag"
3584 || test ! -s conftest.err'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; } &&
3590 { ac_try='test -s conftest.$ac_objext'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 (eval $ac_try) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; }; then
3596 ac_cv_prog_cc_stdc=$ac_arg
3597break
3598else
3599 echo "$as_me: failed program was:" >&5
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
3602fi
3603rm -f conftest.err conftest.$ac_objext
3604done
3605rm -f conftest.$ac_ext conftest.$ac_objext
3606CC=$ac_save_CC
3607
3608fi
3609
3610case "x$ac_cv_prog_cc_stdc" in
3611 x|xno)
3612 echo "$as_me:$LINENO: result: none needed" >&5
3613echo "${ECHO_T}none needed" >&6 ;;
3614 *)
3615 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3616echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3617 CC="$CC $ac_cv_prog_cc_stdc" ;;
3618esac
3619
3620# Some people use a C++ compiler to compile C. Since we use `exit',
3621# in C++ we need to declare it. In case someone uses the same compiler
3622# for both compiling C and C++ we need to have the C++ compiler decide
3623# the declaration of exit, since it's the most demanding environment.
3624cat >conftest.$ac_ext <<_ACEOF
3625#ifndef __cplusplus
3626 choke me
3627#endif
3628_ACEOF
3629rm -f conftest.$ac_objext
3630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631 (eval $ac_compile) 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try='test -z "$ac_c_werror_flag"
3639 || test ! -s conftest.err'
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; } &&
3645 { ac_try='test -s conftest.$ac_objext'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 (eval $ac_try) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; }; then
3651 for ac_declaration in \
3652 '' \
3653 'extern "C" void std::exit (int) throw (); using std::exit;' \
3654 'extern "C" void std::exit (int); using std::exit;' \
3655 'extern "C" void exit (int) throw ();' \
3656 'extern "C" void exit (int);' \
3657 'void exit (int);'
3658do
3659 cat >conftest.$ac_ext <<_ACEOF
3660/* confdefs.h. */
3661_ACEOF
3662cat confdefs.h >>conftest.$ac_ext
3663cat >>conftest.$ac_ext <<_ACEOF
3664/* end confdefs.h. */
3665$ac_declaration
3666#include <stdlib.h>
3667int
3668main ()
3669{
3670exit (42);
3671 ;
3672 return 0;
3673}
3674_ACEOF
3675rm -f conftest.$ac_objext
3676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3677 (eval $ac_compile) 2>conftest.er1
3678 ac_status=$?
3679 grep -v '^ *+' conftest.er1 >conftest.err
3680 rm -f conftest.er1
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } &&
3684 { ac_try='test -z "$ac_c_werror_flag"
3685 || test ! -s conftest.err'
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); }; } &&
3691 { ac_try='test -s conftest.$ac_objext'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 :
3698else
3699 echo "$as_me: failed program was:" >&5
3700sed 's/^/| /' conftest.$ac_ext >&5
3701
3702continue
3703fi
3704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3705 cat >conftest.$ac_ext <<_ACEOF
3706/* confdefs.h. */
3707_ACEOF
3708cat confdefs.h >>conftest.$ac_ext
3709cat >>conftest.$ac_ext <<_ACEOF
3710/* end confdefs.h. */
3711$ac_declaration
3712int
3713main ()
3714{
3715exit (42);
3716 ;
3717 return 0;
3718}
3719_ACEOF
3720rm -f conftest.$ac_objext
3721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3722 (eval $ac_compile) 2>conftest.er1
3723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try='test -z "$ac_c_werror_flag"
3730 || test ! -s conftest.err'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 (eval $ac_try) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; } &&
3736 { ac_try='test -s conftest.$ac_objext'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 (eval $ac_try) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3742 break
3743else
3744 echo "$as_me: failed program was:" >&5
3745sed 's/^/| /' conftest.$ac_ext >&5
3746
3747fi
3748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3749done
3750rm -f conftest*
3751if test -n "$ac_declaration"; then
3752 echo '#ifdef __cplusplus' >>confdefs.h
3753 echo $ac_declaration >>confdefs.h
3754 echo '#endif' >>confdefs.h
3755fi
3756
3757else
3758 echo "$as_me: failed program was:" >&5
3759sed 's/^/| /' conftest.$ac_ext >&5
3760
3761fi
3762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3763ac_ext=c
3764ac_cpp='$CPP $CPPFLAGS'
3765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3768
18f6b6ee
PB
3769ac_ext=cc
3770ac_cpp='$CXXCPP $CPPFLAGS'
3771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3774if test -n "$ac_tool_prefix"; then
3775 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3776 do
3777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3778set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3779echo "$as_me:$LINENO: checking for $ac_word" >&5
3780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3781if test "${ac_cv_prog_CXX+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783else
3784 if test -n "$CXX"; then
3785 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3786else
3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788for as_dir in $PATH
3789do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3794 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3797 fi
3798done
3799done
512b7dfb 3800
18f6b6ee
PB
3801fi
3802fi
3803CXX=$ac_cv_prog_CXX
3804if test -n "$CXX"; then
3805 echo "$as_me:$LINENO: result: $CXX" >&5
3806echo "${ECHO_T}$CXX" >&6
3807else
3808 echo "$as_me:$LINENO: result: no" >&5
3809echo "${ECHO_T}no" >&6
3810fi
3811
3812 test -n "$CXX" && break
3813 done
3814fi
3815if test -z "$CXX"; then
3816 ac_ct_CXX=$CXX
3817 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3818do
3819 # Extract the first word of "$ac_prog", so it can be a program name with args.
3820set dummy $ac_prog; ac_word=$2
3821echo "$as_me:$LINENO: checking for $ac_word" >&5
3822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3823if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825else
3826 if test -n "$ac_ct_CXX"; then
3827 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3828else
3829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830for as_dir in $PATH
3831do
3832 IFS=$as_save_IFS
3833 test -z "$as_dir" && as_dir=.
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3836 ac_cv_prog_ac_ct_CXX="$ac_prog"
3837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 break 2
512b7dfb 3839 fi
18f6b6ee
PB
3840done
3841done
512b7dfb 3842
18f6b6ee
PB
3843fi
3844fi
3845ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3846if test -n "$ac_ct_CXX"; then
3847 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3848echo "${ECHO_T}$ac_ct_CXX" >&6
3849else
3850 echo "$as_me:$LINENO: result: no" >&5
3851echo "${ECHO_T}no" >&6
3852fi
3853
3854 test -n "$ac_ct_CXX" && break
3855done
3856test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3857
3858 CXX=$ac_ct_CXX
3859fi
3860
3861
3862# Provide some information about the compiler.
3863echo "$as_me:$LINENO:" \
3864 "checking for C++ compiler version" >&5
3865ac_compiler=`set X $ac_compile; echo $2`
3866{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3867 (eval $ac_compiler --version </dev/null >&5) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }
3871{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3872 (eval $ac_compiler -v </dev/null >&5) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }
3876{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3877 (eval $ac_compiler -V </dev/null >&5) 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }
3881
3882echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3883echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3884if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886else
3887 cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */
3893
3894int
3895main ()
3896{
3897#ifndef __GNUC__
3898 choke me
3899#endif
3900
3901 ;
3902 return 0;
3903}
3904_ACEOF
3905rm -f conftest.$ac_objext
3906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>conftest.er1
3908 ac_status=$?
3909 grep -v '^ *+' conftest.er1 >conftest.err
3910 rm -f conftest.er1
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -z "$ac_cxx_werror_flag"
3915 || test ! -s conftest.err'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; } &&
3921 { ac_try='test -s conftest.$ac_objext'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 (eval $ac_try) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3927 ac_compiler_gnu=yes
3928else
3929 echo "$as_me: failed program was:" >&5
3930sed 's/^/| /' conftest.$ac_ext >&5
3931
3932ac_compiler_gnu=no
3933fi
3934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3935ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3936
3937fi
3938echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3939echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3940GXX=`test $ac_compiler_gnu = yes && echo yes`
3941ac_test_CXXFLAGS=${CXXFLAGS+set}
3942ac_save_CXXFLAGS=$CXXFLAGS
3943CXXFLAGS="-g"
3944echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3945echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3946if test "${ac_cv_prog_cxx_g+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948else
3949 cat >conftest.$ac_ext <<_ACEOF
3950/* confdefs.h. */
3951_ACEOF
3952cat confdefs.h >>conftest.$ac_ext
3953cat >>conftest.$ac_ext <<_ACEOF
3954/* end confdefs.h. */
3955
3956int
3957main ()
3958{
3959
3960 ;
3961 return 0;
3962}
3963_ACEOF
3964rm -f conftest.$ac_objext
3965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966 (eval $ac_compile) 2>conftest.er1
3967 ac_status=$?
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } &&
3973 { ac_try='test -z "$ac_cxx_werror_flag"
3974 || test ! -s conftest.err'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 (eval $ac_try) 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; } &&
3980 { ac_try='test -s conftest.$ac_objext'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 (eval $ac_try) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 ac_cv_prog_cxx_g=yes
3987else
3988 echo "$as_me: failed program was:" >&5
3989sed 's/^/| /' conftest.$ac_ext >&5
3990
3991ac_cv_prog_cxx_g=no
3992fi
3993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994fi
3995echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3996echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3997if test "$ac_test_CXXFLAGS" = set; then
3998 CXXFLAGS=$ac_save_CXXFLAGS
3999elif test $ac_cv_prog_cxx_g = yes; then
4000 if test "$GXX" = yes; then
4001 CXXFLAGS="-g -O2"
4002 else
4003 CXXFLAGS="-g"
4004 fi
4005else
4006 if test "$GXX" = yes; then
4007 CXXFLAGS="-O2"
4008 else
4009 CXXFLAGS=
4010 fi
4011fi
4012for ac_declaration in \
4013 '' \
4014 'extern "C" void std::exit (int) throw (); using std::exit;' \
4015 'extern "C" void std::exit (int); using std::exit;' \
4016 'extern "C" void exit (int) throw ();' \
4017 'extern "C" void exit (int);' \
4018 'void exit (int);'
4019do
4020 cat >conftest.$ac_ext <<_ACEOF
4021/* confdefs.h. */
4022_ACEOF
4023cat confdefs.h >>conftest.$ac_ext
4024cat >>conftest.$ac_ext <<_ACEOF
4025/* end confdefs.h. */
4026$ac_declaration
4027#include <stdlib.h>
4028int
4029main ()
4030{
4031exit (42);
4032 ;
4033 return 0;
4034}
4035_ACEOF
4036rm -f conftest.$ac_objext
4037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_cxx_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 (eval $ac_try) 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4058 :
4059else
4060 echo "$as_me: failed program was:" >&5
4061sed 's/^/| /' conftest.$ac_ext >&5
4062
4063continue
4064fi
4065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4066 cat >conftest.$ac_ext <<_ACEOF
4067/* confdefs.h. */
4068_ACEOF
4069cat confdefs.h >>conftest.$ac_ext
4070cat >>conftest.$ac_ext <<_ACEOF
4071/* end confdefs.h. */
4072$ac_declaration
4073int
4074main ()
4075{
4076exit (42);
4077 ;
4078 return 0;
4079}
4080_ACEOF
4081rm -f conftest.$ac_objext
4082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4083 (eval $ac_compile) 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_cxx_werror_flag"
4091 || test ! -s conftest.err'
4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 (eval $ac_try) 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; } &&
4097 { ac_try='test -s conftest.$ac_objext'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 (eval $ac_try) 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 break
4104else
4105 echo "$as_me: failed program was:" >&5
4106sed 's/^/| /' conftest.$ac_ext >&5
4107
4108fi
4109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4110done
4111rm -f conftest*
4112if test -n "$ac_declaration"; then
4113 echo '#ifdef __cplusplus' >>confdefs.h
4114 echo $ac_declaration >>confdefs.h
4115 echo '#endif' >>confdefs.h
4116fi
4117
4118ac_ext=c
4119ac_cpp='$CPP $CPPFLAGS'
4120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123
4124
4125# We must set the default linker to the linker used by gcc for the correct
4126# operation of libtool. If LD is not defined and we are using gcc, try to
4127# set the LD default to the ld used by gcc.
4128if test -z "$LD"; then
4129 if test "$GCC" = yes; then
4130 case $build in
4131 *-*-mingw*)
4132 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4133 *)
4134 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4135 esac
4136 case $gcc_prog_ld in
4137 # Accept absolute paths.
4138 [\\/]* | [A-Za-z]:[\\/]*)
4139 LD="$gcc_prog_ld" ;;
4140 esac
4141 fi
512b7dfb
PB
4142fi
4143
4144
4145
4146
c6b750e1 4147if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4148 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4149set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4150echo "$as_me:$LINENO: checking for $ac_word" >&5
4151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4152if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4153 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4154else
512b7dfb
PB
4155 if test -n "$GNATBIND"; then
4156 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4157else
c6b750e1
DJ
4158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH
4160do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4165 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4168 fi
4169done
4170done
4171
9e07f89d
NN
4172fi
4173fi
512b7dfb
PB
4174GNATBIND=$ac_cv_prog_GNATBIND
4175if test -n "$GNATBIND"; then
4176 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4177echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4178else
c6b750e1
DJ
4179 echo "$as_me:$LINENO: result: no" >&5
4180echo "${ECHO_T}no" >&6
9e07f89d
NN
4181fi
4182
c6b750e1 4183fi
512b7dfb
PB
4184if test -z "$ac_cv_prog_GNATBIND"; then
4185 ac_ct_GNATBIND=$GNATBIND
4186 # Extract the first word of "gnatbind", so it can be a program name with args.
4187set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4188echo "$as_me:$LINENO: checking for $ac_word" >&5
4189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4190if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4191 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4192else
512b7dfb
PB
4193 if test -n "$ac_ct_GNATBIND"; then
4194 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4195else
c6b750e1
DJ
4196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH
4198do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4203 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 break 2
4206 fi
4207done
4208done
4209
512b7dfb 4210 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4211fi
4212fi
512b7dfb
PB
4213ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4214if test -n "$ac_ct_GNATBIND"; then
4215 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4216echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4217else
c6b750e1
DJ
4218 echo "$as_me:$LINENO: result: no" >&5
4219echo "${ECHO_T}no" >&6
9e07f89d
NN
4220fi
4221
512b7dfb 4222 GNATBIND=$ac_ct_GNATBIND
24ff9987 4223else
512b7dfb 4224 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4225fi
4226
7df2cd5d 4227if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4228 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4229set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4230echo "$as_me:$LINENO: checking for $ac_word" >&5
4231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4232if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234else
512b7dfb
PB
4235 if test -n "$GNATMAKE"; then
4236 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4237else
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4245 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4248 fi
4249done
4250done
4251
4252fi
4253fi
512b7dfb
PB
4254GNATMAKE=$ac_cv_prog_GNATMAKE
4255if test -n "$GNATMAKE"; then
4256 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4257echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4258else
4259 echo "$as_me:$LINENO: result: no" >&5
4260echo "${ECHO_T}no" >&6
4261fi
4262
4263fi
512b7dfb
PB
4264if test -z "$ac_cv_prog_GNATMAKE"; then
4265 ac_ct_GNATMAKE=$GNATMAKE
4266 # Extract the first word of "gnatmake", so it can be a program name with args.
4267set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4268echo "$as_me:$LINENO: checking for $ac_word" >&5
4269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4270if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
512b7dfb
PB
4273 if test -n "$ac_ct_GNATMAKE"; then
4274 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4275else
4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4283 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4286 fi
4287done
4288done
4289
512b7dfb 4290 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4291fi
4292fi
512b7dfb
PB
4293ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4294if test -n "$ac_ct_GNATMAKE"; then
4295 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4296echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4297else
4298 echo "$as_me:$LINENO: result: no" >&5
4299echo "${ECHO_T}no" >&6
4300fi
4301
512b7dfb 4302 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4303else
512b7dfb 4304 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4305fi
4306
c6b750e1
DJ
4307echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4308echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4309if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4311else
4312 cat >conftest.adb <<EOF
4313procedure conftest is begin null; end conftest;
4314EOF
4315acx_cv_cc_gcc_supports_ada=no
4316# There is a bug in old released versions of GCC which causes the
4317# driver to exit successfully when the appropriate language module
4318# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4319# Therefore we must check for the error message as well as an
4320# unsuccessful exit.
b8908782
DD
4321# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4322# given a .adb file, but produce no object file. So we must check
4323# if an object file was really produced to guard against this.
9e07f89d 4324errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4325if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4326 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4327fi
4328rm -f conftest.*
4329fi
c6b750e1
DJ
4330echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4331echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4332
512b7dfb 4333if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4334 have_gnat=yes
4335else
4336 have_gnat=no
4337fi
4338
c6b750e1
DJ
4339echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4340echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4341if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4343else
4344 echo abfoo >t1
4345 echo cdfoo >t2
4346 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4347 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4348 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4349 :
4350 else
4351 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4352 fi
4353 fi
b8908782
DD
4354 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4355 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4356 :
b8908782
DD
4357 else
4358 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4359 fi
4360 fi
4361 rm t1 t2
4362
4363fi
c6b750e1
DJ
4364echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4365echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4366do_compare="$gcc_cv_prog_cmp_skip"
4367
4368
9e07f89d 4369
11b04d1f 4370# Check for GMP and MPFR
4b900473 4371gmplibs="-lmpfr -lgmp"
4b1cb4fe 4372gmpinc=
4b900473
PB
4373have_gmp=no
4374
11b04d1f
DD
4375# Specify a location for mpfr
4376# check for this first so it ends up on the link line before gmp.
c6b750e1 4377
11b04d1f
DD
4378# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4379if test "${with_mpfr_dir+set}" = set; then
4380 withval="$with_mpfr_dir"
c6b750e1
DJ
4381 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4382Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4383echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4384Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4385 { (exit 1); exit 1; }; }
4386fi;
11b04d1f
DD
4387
4388
11b04d1f
DD
4389# Check whether --with-mpfr or --without-mpfr was given.
4390if test "${with_mpfr+set}" = set; then
4391 withval="$with_mpfr"
c6b750e1
DJ
4392
4393fi;
11b04d1f 4394
8a0d8a5c
PB
4395# Check whether --with-mpfr_include or --without-mpfr_include was given.
4396if test "${with_mpfr_include+set}" = set; then
4397 withval="$with_mpfr_include"
c6b750e1
DJ
4398
4399fi;
8a0d8a5c
PB
4400
4401# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4402if test "${with_mpfr_lib+set}" = set; then
4403 withval="$with_mpfr_lib"
8a0d8a5c 4404
c6b750e1 4405fi;
11b04d1f
DD
4406
4407if test "x$with_mpfr" != x; then
4408 gmplibs="-L$with_mpfr/lib $gmplibs"
4409 gmpinc="-I$with_mpfr/include"
4410fi
8a0d8a5c
PB
4411if test "x$with_mpfr_include" != x; then
4412 gmpinc="-I$with_mpfr_include"
4413fi
4414if test "x$with_mpfr_lib" != x; then
4415 gmplibs="-L$with_mpfr_lib $gmplibs"
4416fi
4b900473
PB
4417if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4418 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4419 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4420 # Do not test the mpfr version. Assume that it is sufficient, since
4421 # it is in the source tree, and the library has not been built yet
4422 # but it would be included on the link line in the version check below
4423 # hence making the test fail.
4424 have_gmp=yes
4425fi
11b04d1f 4426
4b1cb4fe 4427# Specify a location for gmp
c6b750e1 4428
4b1cb4fe
DD
4429# Check whether --with-gmp-dir or --without-gmp-dir was given.
4430if test "${with_gmp_dir+set}" = set; then
4431 withval="$with_gmp_dir"
c6b750e1
DJ
4432 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4433Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4434echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4435Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4436 { (exit 1); exit 1; }; }
4437fi;
4b1cb4fe
DD
4438
4439
4b1cb4fe
DD
4440# Check whether --with-gmp or --without-gmp was given.
4441if test "${with_gmp+set}" = set; then
4442 withval="$with_gmp"
c6b750e1
DJ
4443
4444fi;
4b1cb4fe 4445
8a0d8a5c
PB
4446# Check whether --with-gmp_include or --without-gmp_include was given.
4447if test "${with_gmp_include+set}" = set; then
4448 withval="$with_gmp_include"
c6b750e1
DJ
4449
4450fi;
8a0d8a5c
PB
4451
4452# Check whether --with-gmp_lib or --without-gmp_lib was given.
4453if test "${with_gmp_lib+set}" = set; then
4454 withval="$with_gmp_lib"
8a0d8a5c 4455
c6b750e1 4456fi;
8a0d8a5c 4457
4b1cb4fe 4458
11b04d1f
DD
4459if test "x$with_gmp" != x; then
4460 gmplibs="-L$with_gmp/lib $gmplibs"
4461 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4462fi
8a0d8a5c
PB
4463if test "x$with_gmp_include" != x; then
4464 gmpinc="-I$with_gmp_include $gmpinc"
4465fi
4466if test "x$with_gmp_lib" != x; then
4467 gmplibs="-L$with_gmp_lib $gmplibs"
4468fi
4b900473
PB
4469if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4470 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4471 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4472 # Do not test the gmp version. Assume that it is sufficient, since
4473 # it is in the source tree, and the library has not been built yet
4474 # but it would be included on the link line in the version check below
4475 # hence making the test fail.
4476 have_gmp=yes
4477fi
4b1cb4fe 4478
ceb92e78 4479if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4480 have_gmp=yes
4481 saved_CFLAGS="$CFLAGS"
4482 CFLAGS="$CFLAGS $gmpinc"
4483 # Check GMP actually works
c6b750e1
DJ
4484 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4485echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4486
4487cat >conftest.$ac_ext <<_ACEOF
4488/* confdefs.h. */
4489_ACEOF
4490cat confdefs.h >>conftest.$ac_ext
4491cat >>conftest.$ac_ext <<_ACEOF
4492/* end confdefs.h. */
4b1cb4fe 4493#include "gmp.h"
c6b750e1
DJ
4494int
4495main ()
4496{
4b1cb4fe 4497
4b900473
PB
4498 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4499 choke me
4500 #endif
c6b750e1
DJ
4501
4502 ;
4503 return 0;
4504}
4505_ACEOF
4506rm -f conftest.$ac_objext
4507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508 (eval $ac_compile) 2>conftest.er1
4509 ac_status=$?
4510 grep -v '^ *+' conftest.er1 >conftest.err
4511 rm -f conftest.er1
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -z "$ac_c_werror_flag"
4516 || test ! -s conftest.err'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try='test -s conftest.$ac_objext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 echo "$as_me:$LINENO: result: yes" >&5
4529echo "${ECHO_T}yes" >&6
4530else
4531 echo "$as_me: failed program was:" >&5
4532sed 's/^/| /' conftest.$ac_ext >&5
4533
4534echo "$as_me:$LINENO: result: no" >&5
4535echo "${ECHO_T}no" >&6; have_gmp=no
4536fi
4537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4538
4b900473
PB
4539 if test x"$have_gmp" = xyes; then
4540 saved_LIBS="$LIBS"
4541 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4542 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4543echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4544 cat >conftest.$ac_ext <<_ACEOF
4545/* confdefs.h. */
4546_ACEOF
4547cat confdefs.h >>conftest.$ac_ext
4548cat >>conftest.$ac_ext <<_ACEOF
4549/* end confdefs.h. */
9b134994 4550#include <gmp.h>
4b900473 4551 #include <mpfr.h>
c6b750e1
DJ
4552int
4553main ()
4554{
9b134994 4555
57c53b2b 4556 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4b900473
PB
4557 choke me
4558 #endif
a3ca38d2
DD
4559 mpfr_t n;
4560 mpfr_t x;
4b900473 4561 int t;
a3ca38d2
DD
4562 mpfr_init (n);
4563 mpfr_init (x);
4b900473
PB
4564 mpfr_atan2 (n, n, x, GMP_RNDN);
4565 mpfr_erfc (n, x, GMP_RNDN);
4566 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4567
4568 ;
4569 return 0;
4570}
4571_ACEOF
4572rm -f conftest.$ac_objext conftest$ac_exeext
4573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4574 (eval $ac_link) 2>conftest.er1
4575 ac_status=$?
4576 grep -v '^ *+' conftest.er1 >conftest.err
4577 rm -f conftest.er1
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } &&
4581 { ac_try='test -z "$ac_c_werror_flag"
4582 || test ! -s conftest.err'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 (eval $ac_try) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; } &&
4588 { ac_try='test -s conftest$ac_exeext'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4594 cat >conftest.$ac_ext <<_ACEOF
4595/* confdefs.h. */
4596_ACEOF
4597cat confdefs.h >>conftest.$ac_ext
4598cat >>conftest.$ac_ext <<_ACEOF
4599/* end confdefs.h. */
4b1cb4fe 4600#include <gmp.h>
4b900473 4601 #include <mpfr.h>
c6b750e1
DJ
4602int
4603main ()
4604{
9dbaa842 4605
57c53b2b 4606 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4b900473
PB
4607 choke me
4608 #endif
4609 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4610
4611 ;
4612 return 0;
4613}
4614_ACEOF
4615rm -f conftest.$ac_objext conftest$ac_exeext
4616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4617 (eval $ac_link) 2>conftest.er1
4618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try='test -z "$ac_c_werror_flag"
4625 || test ! -s conftest.err'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest$ac_exeext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 echo "$as_me:$LINENO: result: yes" >&5
4638echo "${ECHO_T}yes" >&6
4639else
4640 echo "$as_me: failed program was:" >&5
4641sed 's/^/| /' conftest.$ac_ext >&5
4642
4643echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4644echo "${ECHO_T}buggy but acceptable" >&6
4645fi
4646rm -f conftest.err conftest.$ac_objext \
4647 conftest$ac_exeext conftest.$ac_ext
4648else
4649 echo "$as_me: failed program was:" >&5
4650sed 's/^/| /' conftest.$ac_ext >&5
4651
4652echo "$as_me:$LINENO: result: no" >&5
4653echo "${ECHO_T}no" >&6; have_gmp=no
4654fi
4655rm -f conftest.err conftest.$ac_objext \
4656 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4657 LIBS="$saved_LIBS"
4658 fi
4659 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4660
4b900473 4661 if test x$have_gmp != xyes; then
57c53b2b 4662 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
c6b750e1
DJ
4663Try the --with-gmp and/or --with-mpfr options to specify their locations.
4664Copies of these libraries' source code can be found at their respective
4665hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4666See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4667If you obtained GMP and/or MPFR from a vendor distribution package, make
4668sure that you have installed both the libraries and the header files.
4669They may be located in separate packages." >&5
57c53b2b 4670echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
9dbaa842
DD
4671Try the --with-gmp and/or --with-mpfr options to specify their locations.
4672Copies of these libraries' source code can be found at their respective
4673hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4674See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4675If you obtained GMP and/or MPFR from a vendor distribution package, make
4676sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4677They may be located in separate packages." >&2;}
4678 { (exit 1); exit 1; }; }
4b900473 4679 fi
9dbaa842
DD
4680fi
4681
11b04d1f 4682# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4683
4684
4685
947f426e 4686# By default, C is the only stage 1 language.
9b134994 4687stage1_languages=,c,
1d39f329 4688
9e07f89d
NN
4689# Figure out what language subdirectories are present.
4690# Look if the user specified --enable-languages="..."; if not, use
4691# the environment variable $LANGUAGES if defined. $LANGUAGES might
4692# go away some day.
4693# NB: embedded tabs in this IF block -- do not untabify
4694if test -d ${srcdir}/gcc; then
4695 if test x"${enable_languages+set}" != xset; then
4696 if test x"${LANGUAGES+set}" = xset; then
4697 enable_languages="${LANGUAGES}"
4698 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4699 else
4700 enable_languages=all
4701 fi
4702 else
4703 if test x"${enable_languages}" = x ||
4704 test x"${enable_languages}" = xyes;
4705 then
4706 echo configure.in: --enable-languages needs at least one language argument 1>&2
4707 exit 1
4708 fi
4709 fi
4710 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4711
096f7d00
DE
4712 # 'f95' is the old name for the 'fortran' language. We issue a warning
4713 # and make the substitution.
4714 case ,${enable_languages}, in
4715 *,f95,*)
4716 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4717 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4718 ;;
4719 esac
4720
9e07f89d
NN
4721 # First scan to see if an enabled language requires some other language.
4722 # We assume that a given config-lang.in will list all the language
4723 # front ends it requires, even if some are required indirectly.
4724 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4725 case ${lang_frag} in
4726 ..) ;;
4727 # The odd quoting in the next line works around
4728 # an apparent bug in bash 1.12 on linux.
4729 ${srcdir}/gcc/[*]/config-lang.in) ;;
4730 *)
4731 # From the config-lang.in, get $language, $lang_requires
4732 language=
4733 lang_requires=
4734 . ${lang_frag}
4735 for other in ${lang_requires} ; do
4736 case ,${enable_languages}, in
4737 *,$other,*) ;;
4738 *,all,*) ;;
4739 *,$language,*)
4740 echo " \`$other' language required by \`$language'; enabling" 1>&2
4741 enable_languages="${enable_languages},${other}"
4742 ;;
4743 esac
4744 done
4745 ;;
4746 esac
4747 done
4748
9b134994 4749 new_enable_languages=,c,
9e07f89d 4750 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4751 potential_languages=,c,
9e07f89d
NN
4752
4753 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4754 case ${lang_frag} in
4755 ..) ;;
4756 # The odd quoting in the next line works around
4757 # an apparent bug in bash 1.12 on linux.
4758 ${srcdir}/gcc/[*]/config-lang.in) ;;
4759 *)
c6b750e1 4760 # From the config-lang.in, get $language, $target_libs,
1d39f329 4761 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4762 language=
4763 target_libs=
4764 lang_dirs=
64ce424c 4765 subdir_requires=
9b134994
PB
4766 boot_language=no
4767 build_by_default=yes
9e07f89d 4768 . ${lang_frag}
9b134994
PB
4769 if test x${language} = x; then
4770 echo "${lang_frag} doesn't set \$language." 1>&2
4771 exit 1
4772 fi
4773
4774 case ,${enable_languages}, in
4775 *,${language},*)
9e07f89d
NN
4776 # Language was explicitly selected; include it.
4777 add_this_lang=yes
4778 ;;
9b134994
PB
4779 *,all,*)
4780 # 'all' was selected, select it if it is a default language
4781 add_this_lang=${build_by_default}
9e07f89d
NN
4782 ;;
4783 *)
4784 add_this_lang=no
4785 ;;
4786 esac
4b1cb4fe 4787
64ce424c 4788 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4789 for i in $subdir_requires; do
3d3adb43 4790 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4791 case ,${enable_languages}, in
4792 *,${language},*)
4793 # Specifically requested language; tell them.
c6b750e1
DJ
4794 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4795echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4796 { (exit 1); exit 1; }; }
64ce424c
PB
4797 ;;
4798 *)
4799 # Silently disable.
9b134994 4800 add_this_lang=unsupported
64ce424c
PB
4801 ;;
4802 esac
4803 done
4804
9b134994
PB
4805 # Disable Ada if no preexisting GNAT is available.
4806 case ,${enable_languages},:${language}:${have_gnat} in
4807 *,${language},*:ada:no)
4808 # Specifically requested language; tell them.
c6b750e1
DJ
4809 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4810echo "$as_me: error: GNAT is required to build $language" >&2;}
4811 { (exit 1); exit 1; }; }
9b134994
PB
4812 ;;
4813 *:ada:no)
4814 # Silently disable.
4815 add_this_lang=unsupported
4816 ;;
4817 esac
4818
59f7ec45
HPN
4819 # Disable a language that is unsupported by the target.
4820 case " $unsupported_languages " in
4821 *" $language "*)
9b134994 4822 add_this_lang=unsupported
59f7ec45
HPN
4823 ;;
4824 esac
4825
4b1cb4fe 4826 case $add_this_lang in
9b134994 4827 unsupported)
9e07f89d 4828 # Remove language-dependent dirs.
1d39f329
NN
4829 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4830 ;;
9b134994
PB
4831 no)
4832 # Remove language-dependent dirs; still show language as supported.
4833 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4834 potential_languages="${potential_languages}${language},"
4835 ;;
4836 yes)
4837 new_enable_languages="${new_enable_languages}${language},"
4838 potential_languages="${potential_languages}${language},"
1d39f329
NN
4839 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4840 case ${boot_language} in
4841 yes)
4fa63067 4842 # Add to (comma-separated) list of stage 1 languages.
9b134994 4843 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4844 ;;
4845 esac
4846 ;;
9e07f89d
NN
4847 esac
4848 ;;
4849 esac
4850 done
4851
9b134994
PB
4852 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4853if test "${enable_stage1_languages+set}" = set; then
4854 enableval="$enable_stage1_languages"
4855 case ,${enable_stage1_languages}, in
4856 ,no,|,,)
4857 # Set it to something that will have no effect in the loop below
4858 enable_stage1_languages=c ;;
4859 ,yes,)
4860 enable_stage1_languages=`echo $new_enable_languages | \
4861 sed -e "s/^,//" -e "s/,$//" ` ;;
4862 *,all,*)
4863 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4864 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4865 esac
4866
4867 # Add "good" languages from enable_stage1_languages to stage1_languages,
4868 # while "bad" languages go in missing_languages. Leave no duplicates.
4869 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4870 case $potential_languages in
4871 *,$i,*)
4872 case $stage1_languages in
4873 *,$i,*) ;;
4874 *) stage1_languages="$stage1_languages$i," ;;
4875 esac ;;
4876 *)
4877 case $missing_languages in
4878 *,$i,*) ;;
4879 *) missing_languages="$missing_languages$i," ;;
4880 esac ;;
4881 esac
4882 done
c6b750e1 4883fi;
9b134994
PB
4884
4885 # Remove leading/trailing commas that were added for simplicity
4886 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4887 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4888 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4889 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4890
9e07f89d 4891 if test "x$missing_languages" != x; then
c6b750e1 4892 { { echo "$as_me:$LINENO: error:
27258dd4 4893The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4894Supported languages are: ${potential_languages}" >&5
4895echo "$as_me: error:
4896The following requested languages could not be built: ${missing_languages}
4897Supported languages are: ${potential_languages}" >&2;}
4898 { (exit 1); exit 1; }; }
9e07f89d 4899 fi
9e07f89d
NN
4900 if test "x$new_enable_languages" != "x$enable_languages"; then
4901 echo The following languages will be built: ${new_enable_languages}
9b134994 4902 enable_languages="$new_enable_languages"
9e07f89d 4903 fi
9b134994 4904
c6b750e1 4905
81ec575a 4906 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4907fi
4908
a6df5a19
PB
4909# Handle --disable-<component> generically.
4910for dir in $configdirs $build_configdirs $target_configdirs ; do
4911 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
4912 varname=`echo $dirname | sed -e s/+/_/g`
4913 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
4914 noconfigdirs="$noconfigdirs $dir"
4915 fi
4916done
4917
4f0ef2d8
CD
4918# Check for Boehm's garbage collector
4919# Check whether --enable-objc-gc or --disable-objc-gc was given.
4920if test "${enable_objc_gc+set}" = set; then
4921 enableval="$enable_objc_gc"
4922 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4923 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4924 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4925echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4926 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4927 ;;
4928esac
c6b750e1 4929fi;
4f0ef2d8
CD
4930
4931# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4932case ,${enable_languages},:${enable_objc_gc} in
4933 *,objc,*:yes)
4f0ef2d8
CD
4934 # Keep target-boehm-gc if requested for Objective-C.
4935 ;;
4f0ef2d8 4936 *)
d42c4017
DA
4937 # Otherwise remove target-boehm-gc depending on target-libjava.
4938 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4939 noconfigdirs="$noconfigdirs target-boehm-gc"
4940 fi
4f0ef2d8
CD
4941 ;;
4942esac
4943
caeba88f
AL
4944# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4945# $build_configdirs and $target_configdirs.
9e07f89d
NN
4946# If we have the source for $noconfigdirs entries, add them to $notsupp.
4947
4948notsupp=""
4949for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4950 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4951 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4952 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4953 if test -r $srcdir/$dirname/configure ; then
4954 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4955 true
4956 else
4957 notsupp="$notsupp $dir"
4958 fi
4959 fi
4960 fi
caeba88f
AL
4961 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4962 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4963 if test -r $srcdir/$dirname/configure ; then
4964 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4965 true
4966 else
4967 notsupp="$notsupp $dir"
4968 fi
4969 fi
4970 fi
9e07f89d
NN
4971 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4972 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4973 if test -r $srcdir/$dirname/configure ; then
4974 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4975 true
4976 else
4977 notsupp="$notsupp $dir"
4978 fi
4979 fi
4980 fi
4981done
4982
4983# Sometimes the tools are distributed with libiberty but with no other
4984# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4985# Don't let libgcc imply libiberty either.
9e07f89d 4986if test -n "${target_configdirs}" ; then
f86e35b8 4987 libgcc=
9e07f89d
NN
4988 others=
4989 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4990 if test "$i" = "libgcc"; then
4991 libgcc=target-libgcc
4992 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4993 if test -r $srcdir/$i/configure ; then
4994 others=yes;
4995 break;
4996 fi
4997 fi
4998 done
4999 if test -z "${others}" ; then
f86e35b8 5000 target_configdirs=$libgcc
9e07f89d
NN
5001 fi
5002fi
5003
5004# Quietly strip out all directories which aren't configurable in this tree.
5005# This relies on all configurable subdirectories being autoconfiscated, which
5006# is now the case.
6a9cf61e
PB
5007build_configdirs_all="$build_configdirs"
5008build_configdirs=
5009for i in ${build_configdirs_all} ; do
c6b750e1 5010 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5011 if test -f ${srcdir}/$j/configure ; then
5012 build_configdirs="${build_configdirs} $i"
5013 fi
5014done
5015
9e07f89d
NN
5016configdirs_all="$configdirs"
5017configdirs=
5018for i in ${configdirs_all} ; do
5019 if test -f ${srcdir}/$i/configure ; then
5020 configdirs="${configdirs} $i"
5021 fi
5022done
6a9cf61e 5023
9e07f89d
NN
5024target_configdirs_all="$target_configdirs"
5025target_configdirs=
5026for i in ${target_configdirs_all} ; do
c6b750e1 5027 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5028 if test -f ${srcdir}/$j/configure ; then
5029 target_configdirs="${target_configdirs} $i"
5030 fi
5031done
5032
5033# Produce a warning message for the subdirs we can't configure.
5034# This isn't especially interesting in the Cygnus tree, but in the individual
5035# FSF releases, it's important to let people know when their machine isn't
5036# supported by the one or two programs in a package.
5037
5038if test -n "${notsupp}" && test -z "${norecursion}" ; then
5039 # If $appdirs is non-empty, at least one of those directories must still
5040 # be configured, or we error out. (E.g., if the gas release supports a
5041 # specified target in some subdirs but not the gas subdir, we shouldn't
5042 # pretend that all is well.)
5043 if test -n "$appdirs" ; then
5044 for dir in $appdirs ; do
5045 if test -r $dir/Makefile.in ; then
5046 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5047 appdirs=""
5048 break
5049 fi
6a9cf61e 5050 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5051 appdirs=""
5052 break
5053 fi
5054 fi
5055 done
5056 if test -n "$appdirs" ; then
5057 echo "*** This configuration is not supported by this package." 1>&2
5058 exit 1
5059 fi
5060 fi
5061 # Okay, some application will build, or we don't care to check. Still
5062 # notify of subdirs not getting built.
5063 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5064 echo " ${notsupp}" 1>&2
5065 echo " (Any other directories should still work fine.)" 1>&2
5066fi
5067
5068case "$host" in
5069 *msdosdjgpp*)
5070 enable_gdbtk=no ;;
5071esac
5072
18f6b6ee
PB
5073# To find our prefix, in gcc_cv_tool_prefix.
5074
5075# The user is always right.
5076if test "${PATH_SEPARATOR+set}" != set; then
5077 echo "#! /bin/sh" >conf$$.sh
5078 echo "exit 0" >>conf$$.sh
5079 chmod +x conf$$.sh
5080 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5081 PATH_SEPARATOR=';'
5082 else
5083 PATH_SEPARATOR=:
5084 fi
5085 rm -f conf$$.sh
5086fi
5087
5088
5089
5090if test "x$exec_prefix" = xNONE; then
5091 if test "x$prefix" = xNONE; then
5092 gcc_cv_tool_prefix=$ac_default_prefix
5093 else
5094 gcc_cv_tool_prefix=$prefix
5095 fi
5096else
5097 gcc_cv_tool_prefix=$exec_prefix
5098fi
5099
5100# If there is no compiler in the tree, use the PATH only. In any
5101# case, if there is no compiler in the tree nobody should use
5102# AS_FOR_TARGET and LD_FOR_TARGET.
5103if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5104 gcc_version=`cat $srcdir/gcc/BASE-VER`
5105 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5106 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5107 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5108 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5109 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5110 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5111else
5112 gcc_cv_tool_dirs=
5113fi
5114
5115if test x$build = x$target && test -n "$md_exec_prefix"; then
5116 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5117fi
5118
5119
5120
9e07f89d
NN
5121copy_dirs=
5122
c6b750e1 5123
a19b6204
MM
5124# Check whether --with-build-sysroot or --without-build-sysroot was given.
5125if test "${with_build_sysroot+set}" = set; then
5126 withval="$with_build_sysroot"
5127 if test x"$withval" != x ; then
5128 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5129 fi
5130else
5131 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5132fi;
a19b6204
MM
5133
5134
8a6ee3ab
JM
5135
5136# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5137if test "${with_debug_prefix_map+set}" = set; then
5138 withval="$with_debug_prefix_map"
5139 if test x"$withval" != x; then
5140 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5141 for debug_map in $withval; do
5142 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5143 done
5144 fi
5145else
5146 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5147fi;
5148
5149
9e07f89d
NN
5150# Handle --with-headers=XXX. If the value is not "yes", the contents of
5151# the named directory are copied to $(tooldir)/sys-include.
5152if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5153 if test x${is_cross_compiler} = xno ; then
5154 echo 1>&2 '***' --with-headers is only supported when cross compiling
5155 exit 1
5156 fi
5157 if test x"${with_headers}" != xyes ; then
18f6b6ee 5158 x=${gcc_cv_tool_prefix}
c6b750e1 5159 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5160 fi
5161fi
5162
5163# Handle --with-libs=XXX. If the value is not "yes", the contents of
5164# the name directories are copied to $(tooldir)/lib. Multiple directories
5165# are permitted.
5166if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5167 if test x${is_cross_compiler} = xno ; then
5168 echo 1>&2 '***' --with-libs is only supported when cross compiling
5169 exit 1
5170 fi
5171 if test x"${with_libs}" != xyes ; then
5172 # Copy the libraries in reverse order, so that files in the first named
5173 # library override files in subsequent libraries.
18f6b6ee 5174 x=${gcc_cv_tool_prefix}
9e07f89d 5175 for l in ${with_libs}; do
c6b750e1 5176 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5177 done
5178 fi
5179fi
5180
2429c060
PB
5181# Set with_gnu_as and with_gnu_ld as appropriate.
5182#
5183# This is done by determining whether or not the appropriate directory
5184# is available, and by checking whether or not specific configurations
5185# have requested that this magic not happen.
c6b750e1
DJ
5186#
5187# The command line options always override the explicit settings in
2429c060
PB
5188# configure.in, and the settings in configure.in override this magic.
5189#
c6b750e1 5190# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5191# want to do that, then you should use the --without-gnu-as and
5192# --without-gnu-ld options for the configure script.
5193
5194if test x${use_gnu_as} = x &&
5195 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5196 with_gnu_as=yes
5197 extra_host_args="$extra_host_args --with-gnu-as"
5198fi
5199
5200if test x${use_gnu_ld} = x &&
5201 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5202 with_gnu_ld=yes
5203 extra_host_args="$extra_host_args --with-gnu-ld"
5204fi
5205
5206# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5207# can detect this case.
5208
5209if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5210 with_newlib=yes
5211 extra_host_args="$extra_host_args --with-newlib"
5212fi
5213
9e07f89d
NN
5214# Handle ${copy_dirs}
5215set fnord ${copy_dirs}
5216shift
5217while test $# != 0 ; do
5218 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5219 :
5220 else
5221 echo Copying $1 to $2
5222
5223 # Use the install script to create the directory and all required
5224 # parent directories.
5225 if test -d $2 ; then
5226 :
5227 else
5228 echo >config.temp
5229 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5230 fi
5231
5232 # Copy the directory, assuming we have tar.
5233 # FIXME: Should we use B in the second tar? Not all systems support it.
5234 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5235
5236 # It is the responsibility of the user to correctly adjust all
5237 # symlinks. If somebody can figure out how to handle them correctly
5238 # here, feel free to add the code.
5239
5240 echo $1 > $2/COPIED
5241 fi
5242 shift; shift
5243done
5244
2429c060
PB
5245# Determine a target-dependent exec_prefix that the installed
5246# gcc will search in. Keep this list sorted by triplet, with
5247# the *-*-osname triplets last.
5248md_exec_prefix=
5249case "${target}" in
5250 alpha*-*-*vms*)
5251 md_exec_prefix=/gnu/lib/gcc-lib
5252 ;;
521ec477 5253 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5254 md_exec_prefix=/dev/env/DJDIR/bin
5255 ;;
521ec477 5256 i[34567]86-*-sco3.2v5*)
2429c060
PB
5257 if test $with_gnu_as = yes; then
5258 md_exec_prefix=/usr/gnu/bin
5259 else
5260 md_exec_prefix=/usr/ccs/bin/elf
5261 fi
5262 ;;
5263
5264 mn10300-*-* | \
5265 powerpc-*-chorusos* | \
5266 powerpc*-*-eabi* | \
5267 powerpc*-*-sysv* | \
5268 powerpc*-*-kaos* | \
5269 s390x-ibm-tpf*)
5270 md_exec_prefix=/usr/ccs/bin
5271 ;;
5272 sparc64-*-elf*)
5273 ;;
5274 v850*-*-*)
5275 md_exec_prefix=/usr/ccs/bin
5276 ;;
8b66833e 5277 xtensa*-*-elf*)
2429c060
PB
5278 ;;
5279
5280 *-*-beos* | \
5281 *-*-elf* | \
5282 *-*-hpux* | \
5283 *-*-netware* | \
5284 *-*-nto-qnx* | \
5285 *-*-rtems* | \
5286 *-*-solaris2* | \
521ec477 5287 *-*-sysv[45]* | \
2429c060
PB
5288 *-*-vxworks* | \
5289 *-wrs-windiss)
5290 md_exec_prefix=/usr/ccs/bin
5291 ;;
5292esac
5293
a0da8069
NN
5294extra_arflags_for_target=
5295extra_nmflags_for_target=
5296extra_ranlibflags_for_target=
5297target_makefile_frag=/dev/null
5298case "${target}" in
4e206d7e
DB
5299 mep*-*-*)
5300 target_makefile_frag="config/mt-mep"
5301 ;;
77d7106f
AM
5302 spu-*-*)
5303 target_makefile_frag="config/mt-spu"
5304 ;;
429acdec
RS
5305 mips*-sde-elf*)
5306 target_makefile_frag="config/mt-sde"
5307 ;;
f3b1e08e
RS
5308 mipsisa*-*-elfoabi*)
5309 target_makefile_frag="config/mt-mips-elfoabi"
5310 ;;
2a3124ca 5311 *-*-netware*)
a0da8069
NN
5312 target_makefile_frag="config/mt-netware"
5313 ;;
3d6dfe0f
NN
5314 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5315 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5316 ;;
5317 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5318 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5319 # commands to handle both 32-bit and 64-bit objects. These flags are
5320 # harmless if we're using GNU nm or ar.
5321 extra_arflags_for_target=" -X32_64"
5322 extra_nmflags_for_target=" -B -X32_64"
5323 ;;
5324 *-*-darwin*)
5325 # ranlib from Darwin requires the -c flag to look at common symbols.
5326 extra_ranlibflags_for_target=" -c"
5327 ;;
5328 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5329 target_makefile_frag="config/mt-wince"
5330 ;;
5331esac
5332
5333alphaieee_frag=/dev/null
5334case $target in
5335 alpha*-*-*)
5336 # This just makes sure to use the -mieee option to build target libs.
5337 # This should probably be set individually by each library.
5338 alphaieee_frag="config/mt-alphaieee"
5339 ;;
5340esac
5341
5342# If --enable-target-optspace always use -Os instead of -O2 to build
5343# the target libraries, similarly if it is not specified, use -Os
5344# on selected platforms.
5345ospace_frag=/dev/null
5346case "${enable_target_optspace}:${target}" in
5347 yes:*)
5348 ospace_frag="config/mt-ospace"
5349 ;;
5350 :d30v-*)
5351 ospace_frag="config/mt-d30v"
5352 ;;
5353 :m32r-* | :d10v-* | :fr30-*)
5354 ospace_frag="config/mt-ospace"
5355 ;;
5356 no:* | :*)
5357 ;;
5358 *)
5359 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5360 ;;
5361esac
5362
a0da8069
NN
5363# Default to using --with-stabs for certain targets.
5364if test x${with_stabs} = x ; then
5365 case "${target}" in
e31d1ea3 5366 mips*-*-irix[56]*)
a0da8069
NN
5367 ;;
5368 mips*-*-* | alpha*-*-osf*)
5369 with_stabs=yes;
5370 extra_host_args="${extra_host_args} --with-stabs"
5371 ;;
5372 esac
5373fi
5374
5375# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5376# them automatically.
5377case "${host}" in
c6b750e1 5378 hppa*64*-*-hpux11*)
a0da8069
NN
5379 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5380 ;;
5381esac
5382
a0da8069
NN
5383# Some systems (e.g., one of the i386-aix systems the gas testers are
5384# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5385tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5386build_tooldir=${tooldir}
5387
a0da8069
NN
5388# Create a .gdbinit file which runs the one in srcdir
5389# and tells GDB to look there for source files.
5390
5391if test -r ${srcdir}/.gdbinit ; then
5392 case ${srcdir} in
5393 .) ;;
5394 *) cat > ./.gdbinit <<EOF
5395# ${NO_EDIT}
5396dir ${srcdir}
5397dir .
5398source ${srcdir}/.gdbinit
5399EOF
5400 ;;
5401 esac
5402fi
5403
a0da8069
NN
5404# Make sure that the compiler is able to generate an executable. If it
5405# can't, we are probably in trouble. We don't care whether we can run the
5406# executable--we might be using a cross compiler--we only care whether it
5407# can be created. At this point the main configure script has set CC.
5408we_are_ok=no
5409echo "int main () { return 0; }" > conftest.c
5410${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5411if test $? = 0 ; then
5412 if test -s conftest || test -s conftest.exe ; then
5413 we_are_ok=yes
5414 fi
c6b750e1 5415fi
a0da8069
NN
5416case $we_are_ok in
5417 no)
5418 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5419 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5420 rm -f conftest*
5421 exit 1
5422 ;;
5423esac
5424rm -f conftest*
5425
5426# The Solaris /usr/ucb/cc compiler does not appear to work.
5427case "${host}" in
5428 sparc-sun-solaris2*)
5429 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5430 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5431 could_use=
5432 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5433 if test -d /opt/cygnus/bin ; then
5434 if test "$could_use" = "" ; then
5435 could_use="/opt/cygnus/bin"
5436 else
5437 could_use="$could_use or /opt/cygnus/bin"
5438 fi
5439 fi
5440 if test "$could_use" = "" ; then
5441 echo "Warning: compilation may fail because you're using"
5442 echo "/usr/ucb/cc. You should change your PATH or CC "
5443 echo "variable and rerun configure."
5444 else
5445 echo "Warning: compilation may fail because you're using"
5446 echo "/usr/ucb/cc, when you should use the C compiler from"
5447 echo "$could_use. You should change your"
5448 echo "PATH or CC variable and rerun configure."
5449 fi
5450 fi
5451 ;;
5452esac
5453
a0da8069
NN
5454case "${host}" in
5455 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5456 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5457 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5458esac
5459
5460# Record target_configdirs and the configure arguments for target and
5461# build configuration in Makefile.
5462target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5463build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5464
a0da8069
NN
5465# Determine whether gdb needs tk/tcl or not.
5466# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5467# and in that case we want gdb to be built without tk. Ugh!
5468# In fact I believe gdb is the *only* package directly dependent on tk,
5469# so we should be able to put the 'maybe's in unconditionally and
5470# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5471# 100% sure that that's safe though.
c180f501 5472
675c6968 5473gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5474case "$enable_gdbtk" in
5475 no)
5476 GDB_TK="" ;;
c180f501
AC
5477 yes)
5478 GDB_TK="${gdb_tk}" ;;
a0da8069 5479 *)
c180f501
AC
5480 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5481 # distro. Eventually someone will fix this and move Insight, nee
5482 # gdbtk to a separate directory.
5483 if test -d ${srcdir}/gdb/gdbtk ; then
5484 GDB_TK="${gdb_tk}"
5485 else
5486 GDB_TK=""
5487 fi
5488 ;;
a0da8069 5489esac
907be67c
DJ
5490CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5491INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5492
6bd3dfaa 5493# Strip out unwanted targets.
dd12c3a8
NN
5494
5495# While at that, we remove Makefiles if we were started for recursive
5496# configuration, so that the top-level Makefile reconfigures them,
5497# like we used to do when configure itself was recursive.
dd12c3a8 5498
6bd3dfaa
PB
5499# Loop over modules. $extrasub must be used with care, limiting as
5500# much as possible the usage of range addresses. That's because autoconf
5501# splits the sed script to overcome limits in the number of commands,
5502# and relying on carefully-timed sed passes may turn out to be very hard
5503# to maintain later. In this particular case, you just have to be careful
5504# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5505
319cab08
PB
5506# Check whether --enable-bootstrap or --disable-bootstrap was given.
5507if test "${enable_bootstrap+set}" = set; then
5508 enableval="$enable_bootstrap"
c6b750e1 5509
319cab08 5510else
9cb3fa6f 5511 enable_bootstrap=default
c6b750e1 5512fi;
319cab08 5513
9cb3fa6f
PB
5514# Issue errors and warnings for invalid/strange bootstrap combinations.
5515case "$configdirs" in
5516 *gcc*) have_compiler=yes ;;
5517 *) have_compiler=no ;;
5518esac
5519
5520case "$have_compiler:$host:$target:$enable_bootstrap" in
5521 *:*:*:no) ;;
5522
0aed8855 5523 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5524 # and we are in a native configuration.
5525 yes:$build:$build:default)
0aed8855 5526 enable_bootstrap=yes ;;
9cb3fa6f
PB
5527
5528 *:*:*:default)
5529 enable_bootstrap=no ;;
5530
5531 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5532 yes:$build:$build:yes)
9cb3fa6f
PB
5533 ;;
5534
5535 # Other configurations, but we have a compiler. Assume the user knows
5536 # what he's doing.
80911fe1 5537 yes:*:*:yes)
c6b750e1
DJ
5538 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5539echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5540 ;;
5541
5542 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5543 no:*:*:yes)
c6b750e1
DJ
5544 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5545echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5546 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5547
5548 # Fail if wrong command line
5549 *)
c6b750e1
DJ
5550 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5551echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5552 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5553 ;;
5554esac
5555
5556# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5557case "$enable_bootstrap" in
5558 yes)
498d4a71 5559 bootstrap_suffix=bootstrap ;;
319cab08 5560 no)
498d4a71 5561 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5562esac
5563
6a9cf61e 5564for module in ${build_configdirs} ; do
498d4a71
CF
5565 if test -z "${no_recursion}" \
5566 && test -f ${build_subdir}/${module}/Makefile; then
5567 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5568 rm -f ${build_subdir}/${module}/Makefile
5569 fi
5570 extrasub="$extrasub
5571/^@if build-$module\$/d
5572/^@endif build-$module\$/d
5573/^@if build-$module-$bootstrap_suffix\$/d
5574/^@endif build-$module-$bootstrap_suffix\$/d"
5575done
5576for module in ${configdirs} ; do
80911fe1 5577 if test -z "${no_recursion}"; then
8cf39b1b 5578 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5579 if test -f ${file}; then
5580 echo 1>&2 "*** removing ${file} to force reconfigure"
5581 rm -f ${file}
5582 fi
5583 done
498d4a71
CF
5584 fi
5585 extrasub="$extrasub
5586/^@if $module\$/d
5587/^@endif $module\$/d
5588/^@if $module-$bootstrap_suffix\$/d
5589/^@endif $module-$bootstrap_suffix\$/d"
5590done
5591for module in ${target_configdirs} ; do
5592 if test -z "${no_recursion}" \
5593 && test -f ${target_subdir}/${module}/Makefile; then
5594 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5595 rm -f ${target_subdir}/${module}/Makefile
5596 fi
5597 extrasub="$extrasub
5598/^@if target-$module\$/d
5599/^@endif target-$module\$/d
5600/^@if target-$module-$bootstrap_suffix\$/d
5601/^@endif target-$module-$bootstrap_suffix\$/d"
5602done
5603
6bd3dfaa
PB
5604extrasub="$extrasub
5605/^@if /,/^@endif /d"
a0da8069
NN
5606
5607# Create the serialization dependencies. This uses a temporary file.
5608
e6bfb94a
AO
5609# Check whether --enable-serial-configure or --disable-serial-configure was given.
5610if test "${enable_serial_configure+set}" = set; then
5611 enableval="$enable_serial_configure"
e6bfb94a 5612
c6b750e1 5613fi;
e6bfb94a 5614
1047cb91
DD
5615case ${enable_serial_configure} in
5616 yes)
5617 enable_serial_build_configure=yes
5618 enable_serial_host_configure=yes
5619 enable_serial_target_configure=yes
5620 ;;
5621esac
5622
a0da8069
NN
5623# These force 'configure's to be done one at a time, to avoid problems
5624# with contention over a shared config.cache.
5625rm -f serdep.tmp
e6bfb94a 5626echo '# serdep.tmp' > serdep.tmp
a0da8069 5627olditem=
1047cb91 5628test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5629for item in ${build_configdirs} ; do
5630 case ${olditem} in
5631 "") ;;
e6bfb94a 5632 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5633 esac
5634 olditem=${item}
5635done
5636olditem=
1047cb91 5637test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5638for item in ${configdirs} ; do
5639 case ${olditem} in
5640 "") ;;
e6bfb94a 5641 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5642 esac
5643 olditem=${item}
5644done
5645olditem=
1047cb91 5646test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5647for item in ${target_configdirs} ; do
5648 case ${olditem} in
5649 "") ;;
e6bfb94a 5650 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5651 esac
5652 olditem=${item}
5653done
5654serialization_dependencies=serdep.tmp
5655
5656
e6bfb94a 5657# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5658# target, nonopt, and variable assignments. These are the ones we
5659# might not want to pass down to subconfigures. Also strip
5660# program-prefix, program-suffix, and program-transform-name, so that
5661# we can pass down a consistent program-transform-name.
5662baseargs=
5663keep_next=no
5664skip_next=no
5665eval "set -- $ac_configure_args"
18f6b6ee
PB
5666for ac_arg
5667do
c6b750e1
DJ
5668 if test X"$skip_next" = X"yes"; then
5669 skip_next=no
5670 continue
5671 fi
5672 if test X"$keep_next" = X"yes"; then
5673 case $ac_arg in
5674 *\'*)
5675 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5676 esac
5677 baseargs="$baseargs '$ac_arg'"
5678 keep_next=no
5679 continue
5680 fi
5681
5682 # Handle separated arguments. Based on the logic generated by
5683 # autoconf 2.59.
5684 case $ac_arg in
5685 *=* | --config-cache | -C | -disable-* | --disable-* \
5686 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5687 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5688 | -with-* | --with-* | -without-* | --without-* | --x)
5689 separate_arg=no
5690 ;;
5691 -*)
5692 separate_arg=yes
5693 ;;
5694 *)
5695 separate_arg=no
5696 ;;
5697 esac
5698
5699 case "$ac_arg" in
5700 --no*)
5701 continue
5702 ;;
5703 --c* | \
5704 --sr* | \
5705 --ho* | \
5706 --bu* | \
5707 --t* | \
5708 --program-* | \
5709 -cache_file* | \
5710 -srcdir* | \
5711 -host* | \
5712 -build* | \
5713 -target* | \
5714 -program-prefix* | \
5715 -program-suffix* | \
5716 -program-transform-name* )
5717 skip_next=$separate_arg
5718 continue
5719 ;;
5720 -*)
5721 # An option. Add it.
5722 case $ac_arg in
5723 *\'*)
5724 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5725 esac
5726 baseargs="$baseargs '$ac_arg'"
5727 keep_next=$separate_arg
5728 ;;
5729 *)
5730 # Either a variable assignment, or a nonopt (triplet). Don't
5731 # pass it down; let the Makefile handle this.
5732 continue
5733 ;;
5734 esac
5735done
5736# Remove the initial space we just introduced and, as these will be
5737# expanded by make, quote '$'.
5738baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5739
f27d4f92
DJ
5740# Add in --program-transform-name, after --program-prefix and
5741# --program-suffix have been applied to it. Autoconf has already
5742# doubled dollar signs and backslashes in program_transform_name; we want
5743# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5744# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5745# Also, because we want to override the logic in subdir configure scripts to
5746# choose program_transform_name, replace any s,x,x, with s,y,y,.
5747sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5748${program_transform_name}
5749EOF_SED
5750gcc_transform_name=`cat conftestsed.out`
5751rm -f conftestsed.out
5752baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5753if test "$silent" = yes; then
5754 baseargs="$baseargs --silent"
5755fi
f27d4f92 5756
a0da8069
NN
5757# For the build-side libraries, we just need to pretend we're native,
5758# and not use the same cache file. Multilibs are neither needed nor
5759# desired.
4b900473 5760build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5761
5762# For host modules, accept cache file option, or specification as blank.
5763case "${cache_file}" in
5764"") # empty
5765 cache_file_option="" ;;
5766/* | [A-Za-z]:[\\/]* ) # absolute path
5767 cache_file_option="--cache-file=${cache_file}" ;;
5768*) # relative path
5769 cache_file_option="--cache-file=../${cache_file}" ;;
5770esac
5771
82252c06
NN
5772# Host dirs don't like to share a cache file either, horribly enough.
5773# This seems to be due to autoconf 2.5x stupidity.
4b900473 5774host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5775
5776target_configargs=${baseargs}
5777
5778# Passing a --with-cross-host argument lets the target libraries know
5779# whether they are being built with a cross-compiler or being built
5780# native. However, it would be better to use other mechanisms to make the
5781# sorts of decisions they want to make on this basis. Please consider
5782# this option to be deprecated. FIXME.
5783if test x${is_cross_compiler} = xyes ; then
c6b750e1 5784 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5785fi
5786
5787# Default to --enable-multilib.
5788if test x${enable_multilib} = x ; then
5789 target_configargs="--enable-multilib ${target_configargs}"
5790fi
5791
5792# Pass --with-newlib if appropriate. Note that target_configdirs has
5793# changed from the earlier setting of with_newlib.
5794if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5795 target_configargs="--with-newlib ${target_configargs}"
5796fi
5797
95036d20
NN
5798# Different target subdirs use different values of certain variables
5799# (notably CXX). Worse, multilibs use *lots* of different values.
5800# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5801# it doesn't automatically accept command-line overrides of them.
5802# This means it's not safe for target subdirs to share a cache file,
5803# which is disgusting, but there you have it. Hopefully this can be
5804# fixed in future. It's still worthwhile to use a cache file for each
5805# directory. I think.
5806
ae380b45
MS
5807# Pass the appropriate --build, --host, --target and --cache-file arguments.
5808# We need to pass --target, as newer autoconf's requires consistency
5809# for target_alias and gcc doesn't manage it consistently.
4b900473 5810target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5811
a0da8069
NN
5812FLAGS_FOR_TARGET=
5813case " $target_configdirs " in
5814 *" newlib "*)
5815 case " $target_configargs " in
5816 *" --with-newlib "*)
5817 case "$target" in
5818 *-cygwin*)
564b43e5 5819 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
5820 esac
5821
5822 # If we're not building GCC, don't discard standard headers.
5823 if test -d ${srcdir}/gcc; then
5824 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5825
5826 if test "${build}" != "${host}"; then
5827 # On Canadian crosses, CC_FOR_TARGET will have already been set
5828 # by `configure', so we won't have an opportunity to add -Bgcc/
5829 # to it. This is right: we don't want to search that directory
5830 # for binaries, but we want the header files in there, so add
5831 # them explicitly.
b00612cc 5832 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5833
5834 # Someone might think of using the pre-installed headers on
5835 # Canadian crosses, in case the installed compiler is not fully
5836 # compatible with the compiler being built. In this case, it
5837 # would be better to flag an error than risking having
5838 # incompatible object files being constructed. We can't
5839 # guarantee that an error will be flagged, but let's hope the
5840 # compiler will do it, when presented with incompatible header
5841 # files.
5842 fi
5843 fi
5844
5845 case "${target}-${is_cross_compiler}" in
ec11bdc6 5846 i[3456789]86-*-linux*-no)
a0da8069
NN
5847 # Here host == target, so we don't need to build gcc,
5848 # so we don't want to discard standard headers.
5849 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5850 ;;
5851 *)
5852 # If we're building newlib, use its generic headers last, but search
5853 # for any libc-related directories first (so make it the last -B
5854 # switch).
5855 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
5856
5857 # If we're building libgloss, find the startup file, simulator library
5858 # and linker script.
5859 case " $target_configdirs " in
5860 *" libgloss "*)
5861 # Look for startup file, simulator library and maybe linker script.
5862 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5863 # Look for libnosys.a in case the target needs it.
5864 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5865 # Most targets have the linker script in the source directory.
5866 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5867 ;;
5868 esac
a0da8069
NN
5869 ;;
5870 esac
5871 ;;
5872 esac
5873 ;;
5874esac
45055374
CV
5875case "$target" in
5876*-mingw*)
5877 # Can't be handled as Cygwin above since Mingw does not use newlib.
5878 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' ;;
5879esac
a0da8069 5880
5fbad20a
DD
5881# Allow the user to override the flags for
5882# our build compiler if desired.
c66487f8
NC
5883if test x"${build}" = x"${host}" ; then
5884 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5885 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
5886 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
5887fi
5fbad20a 5888
a0da8069
NN
5889# On Canadian crosses, we'll be searching the right directories for
5890# the previously-installed cross compiler, so don't bother to add
5891# flags for directories within the install tree of the compiler
5892# being built; programs in there won't even run.
5893if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5894 # Search for pre-installed headers if nothing else fits.
bba45b8b 5895 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
5896fi
5897
5898if test "x${use_gnu_ld}" = x &&
5899 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5900 # Arrange for us to find uninstalled linker scripts.
b00612cc 5901 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5902fi
5903
a481dbb7
DD
5904# Search for other target-specific linker scripts and such.
5905case "${target}" in
4e206d7e
DB
5906 mep*)
5907 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5908 ;;
5909esac
5910
a0da8069 5911# Makefile fragments.
3e707e94
PB
5912for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5913do
5914 eval fragval=\$$frag
5915 if test $fragval != /dev/null; then
5916 eval $frag=${srcdir}/$fragval
5917 fi
5918done
a0da8069
NN
5919
5920
5921
5922
5923
5924# Miscellanea: directories, flags, etc.
5925
5926
5927
5928
5929
5930
5931
6a9cf61e 5932# Build module lists & subconfigure args.
a0da8069
NN
5933
5934
5935
be01d343
PB
5936# Host module lists & subconfigure args.
5937
5938
5939
5940# Target module lists & subconfigure args.
5941
5942
5943
5944# Build tools.
5945
5946
5947
1576798e
PB
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
be01d343
PB
5962# Generate default definitions for YACC, M4, LEX and other programs that run
5963# on the build machine. These are used if the Makefile can't locate these
5964# programs in objdir.
5965MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5966
5967for ac_prog in 'bison -y' byacc yacc
5968do
c6b750e1 5969 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5970set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5971echo "$as_me:$LINENO: checking for $ac_word" >&5
5972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5973if test "${ac_cv_prog_YACC+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5975else
5976 if test -n "$YACC"; then
5977 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5978else
c6b750e1
DJ
5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980for as_dir in $PATH
5981do
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986 ac_cv_prog_YACC="$ac_prog"
5987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 break 2
5989 fi
5990done
5991done
5992
be01d343
PB
5993fi
5994fi
c6b750e1 5995YACC=$ac_cv_prog_YACC
be01d343 5996if test -n "$YACC"; then
c6b750e1
DJ
5997 echo "$as_me:$LINENO: result: $YACC" >&5
5998echo "${ECHO_T}$YACC" >&6
be01d343 5999else
c6b750e1
DJ
6000 echo "$as_me:$LINENO: result: no" >&5
6001echo "${ECHO_T}no" >&6
be01d343
PB
6002fi
6003
c6b750e1 6004 test -n "$YACC" && break
be01d343
PB
6005done
6006test -n "$YACC" || YACC="$MISSING bison -y"
6007
6008case " $build_configdirs " in
6009 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6010 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6011esac
6012
6013for ac_prog in bison
6014do
c6b750e1 6015 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6016set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6017echo "$as_me:$LINENO: checking for $ac_word" >&5
6018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6019if test "${ac_cv_prog_BISON+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6021else
6022 if test -n "$BISON"; then
6023 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6024else
c6b750e1
DJ
6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026for as_dir in $PATH
6027do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6032 ac_cv_prog_BISON="$ac_prog"
6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036done
6037done
6038
be01d343
PB
6039fi
6040fi
c6b750e1 6041BISON=$ac_cv_prog_BISON
be01d343 6042if test -n "$BISON"; then
c6b750e1
DJ
6043 echo "$as_me:$LINENO: result: $BISON" >&5
6044echo "${ECHO_T}$BISON" >&6
be01d343 6045else
c6b750e1
DJ
6046 echo "$as_me:$LINENO: result: no" >&5
6047echo "${ECHO_T}no" >&6
be01d343
PB
6048fi
6049
c6b750e1 6050 test -n "$BISON" && break
be01d343
PB
6051done
6052test -n "$BISON" || BISON="$MISSING bison"
6053
6054case " $build_configdirs " in
6055 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6056esac
6057
6058for ac_prog in gm4 gnum4 m4
6059do
c6b750e1 6060 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6061set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6062echo "$as_me:$LINENO: checking for $ac_word" >&5
6063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6064if test "${ac_cv_prog_M4+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6066else
6067 if test -n "$M4"; then
6068 ac_cv_prog_M4="$M4" # Let the user override the test.
6069else
c6b750e1
DJ
6070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071for as_dir in $PATH
6072do
6073 IFS=$as_save_IFS
6074 test -z "$as_dir" && as_dir=.
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6077 ac_cv_prog_M4="$ac_prog"
6078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 break 2
6080 fi
6081done
6082done
6083
be01d343
PB
6084fi
6085fi
c6b750e1 6086M4=$ac_cv_prog_M4
be01d343 6087if test -n "$M4"; then
c6b750e1
DJ
6088 echo "$as_me:$LINENO: result: $M4" >&5
6089echo "${ECHO_T}$M4" >&6
be01d343 6090else
c6b750e1
DJ
6091 echo "$as_me:$LINENO: result: no" >&5
6092echo "${ECHO_T}no" >&6
be01d343
PB
6093fi
6094
c6b750e1 6095 test -n "$M4" && break
be01d343
PB
6096done
6097test -n "$M4" || M4="$MISSING m4"
6098
6099case " $build_configdirs " in
6100 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6101esac
6102
6103for ac_prog in flex lex
6104do
c6b750e1 6105 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6106set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6107echo "$as_me:$LINENO: checking for $ac_word" >&5
6108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6109if test "${ac_cv_prog_LEX+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6111else
6112 if test -n "$LEX"; then
6113 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6114else
c6b750e1
DJ
6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116for as_dir in $PATH
6117do
6118 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6122 ac_cv_prog_LEX="$ac_prog"
6123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 break 2
6125 fi
6126done
6127done
6128
be01d343
PB
6129fi
6130fi
c6b750e1 6131LEX=$ac_cv_prog_LEX
be01d343 6132if test -n "$LEX"; then
c6b750e1
DJ
6133 echo "$as_me:$LINENO: result: $LEX" >&5
6134echo "${ECHO_T}$LEX" >&6
be01d343 6135else
c6b750e1
DJ
6136 echo "$as_me:$LINENO: result: no" >&5
6137echo "${ECHO_T}no" >&6
be01d343
PB
6138fi
6139
c6b750e1 6140 test -n "$LEX" && break
be01d343
PB
6141done
6142test -n "$LEX" || LEX="$MISSING flex"
6143
6144case " $build_configdirs " in
6145 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6146 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6147esac
6148
6149for ac_prog in flex
6150do
c6b750e1 6151 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6152set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6153echo "$as_me:$LINENO: checking for $ac_word" >&5
6154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6155if test "${ac_cv_prog_FLEX+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6157else
6158 if test -n "$FLEX"; then
6159 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6160else
c6b750e1
DJ
6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162for as_dir in $PATH
6163do
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168 ac_cv_prog_FLEX="$ac_prog"
6169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 break 2
6171 fi
6172done
6173done
6174
be01d343
PB
6175fi
6176fi
c6b750e1 6177FLEX=$ac_cv_prog_FLEX
be01d343 6178if test -n "$FLEX"; then
c6b750e1
DJ
6179 echo "$as_me:$LINENO: result: $FLEX" >&5
6180echo "${ECHO_T}$FLEX" >&6
be01d343 6181else
c6b750e1
DJ
6182 echo "$as_me:$LINENO: result: no" >&5
6183echo "${ECHO_T}no" >&6
be01d343
PB
6184fi
6185
c6b750e1 6186 test -n "$FLEX" && break
be01d343
PB
6187done
6188test -n "$FLEX" || FLEX="$MISSING flex"
6189
6190case " $build_configdirs " in
6191 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6192esac
6193
6194for ac_prog in makeinfo
6195do
c6b750e1 6196 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6197set dummy $ac_prog; 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_MAKEINFO+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6202else
6203 if test -n "$MAKEINFO"; then
6204 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
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_MAKEINFO="$ac_prog"
6214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 break 2
6216 fi
6217done
6218done
6219
be01d343
PB
6220fi
6221fi
c6b750e1 6222MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6223if test -n "$MAKEINFO"; then
c6b750e1
DJ
6224 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6225echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6226else
c6b750e1
DJ
6227 echo "$as_me:$LINENO: result: no" >&5
6228echo "${ECHO_T}no" >&6
be01d343
PB
6229fi
6230
c6b750e1 6231 test -n "$MAKEINFO" && break
be01d343
PB
6232done
6233test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6234
6235case " $build_configdirs " in
6236 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6237 *)
6238
625a61cd 6239 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6240 # higher, else we use the "missing" dummy.
6241 if ${MAKEINFO} --version \
625a61cd 6242 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6243 :
6244 else
6245 MAKEINFO="$MISSING makeinfo"
6246 fi
6247 ;;
6248
6249esac
a0da8069 6250
be01d343 6251# FIXME: expect and dejagnu may become build tools?
a0da8069 6252
be01d343
PB
6253for ac_prog in expect
6254do
c6b750e1 6255 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6256set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6257echo "$as_me:$LINENO: checking for $ac_word" >&5
6258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6259if test "${ac_cv_prog_EXPECT+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6261else
6262 if test -n "$EXPECT"; then
6263 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6264else
c6b750e1
DJ
6265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266for as_dir in $PATH
6267do
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6272 ac_cv_prog_EXPECT="$ac_prog"
6273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 break 2
6275 fi
6276done
6277done
6278
be01d343
PB
6279fi
6280fi
c6b750e1 6281EXPECT=$ac_cv_prog_EXPECT
be01d343 6282if test -n "$EXPECT"; then
c6b750e1
DJ
6283 echo "$as_me:$LINENO: result: $EXPECT" >&5
6284echo "${ECHO_T}$EXPECT" >&6
be01d343 6285else
c6b750e1
DJ
6286 echo "$as_me:$LINENO: result: no" >&5
6287echo "${ECHO_T}no" >&6
be01d343 6288fi
a0da8069 6289
c6b750e1 6290 test -n "$EXPECT" && break
be01d343
PB
6291done
6292test -n "$EXPECT" || EXPECT="expect"
a0da8069 6293
be01d343
PB
6294case " $configdirs " in
6295 *" expect "*)
6296 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6297 ;;
6298esac
a0da8069 6299
be01d343
PB
6300for ac_prog in runtest
6301do
c6b750e1 6302 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6303set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6304echo "$as_me:$LINENO: checking for $ac_word" >&5
6305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6306if test "${ac_cv_prog_RUNTEST+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6308else
6309 if test -n "$RUNTEST"; then
6310 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6311else
c6b750e1
DJ
6312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313for as_dir in $PATH
6314do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6319 ac_cv_prog_RUNTEST="$ac_prog"
6320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6322 fi
6323done
6324done
6325
be01d343
PB
6326fi
6327fi
c6b750e1 6328RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6329if test -n "$RUNTEST"; then
c6b750e1
DJ
6330 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6331echo "${ECHO_T}$RUNTEST" >&6
be01d343 6332else
c6b750e1
DJ
6333 echo "$as_me:$LINENO: result: no" >&5
6334echo "${ECHO_T}no" >&6
be01d343 6335fi
a0da8069 6336
c6b750e1 6337 test -n "$RUNTEST" && break
be01d343
PB
6338done
6339test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6340
be01d343
PB
6341case " $configdirs " in
6342 *" dejagnu "*)
6b89cc21 6343 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6344 ;;
6345esac
a0da8069
NN
6346
6347
a0da8069 6348# Host tools.
859789af
AC
6349ncn_tool_prefix=
6350test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6351ncn_target_tool_prefix=
6352test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6353
9a819804
AO
6354
6355
6356if test -n "$AR"; then
6357 ac_cv_prog_AR=$AR
6358elif test -n "$ac_cv_prog_AR"; then
6359 AR=$ac_cv_prog_AR
6360fi
6361
6362if test -n "$ac_cv_prog_AR"; then
6363 for ncn_progname in ar; do
6364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6365set dummy ${ncn_progname}; ac_word=$2
6366echo "$as_me:$LINENO: checking for $ac_word" >&5
6367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6368if test "${ac_cv_prog_AR+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6370else
6371 if test -n "$AR"; then
6372 ac_cv_prog_AR="$AR" # Let the user override the test.
6373else
6374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375for as_dir in $PATH
6376do
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6381 ac_cv_prog_AR="${ncn_progname}"
6382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 break 2
6384 fi
6385done
6386done
6387
6388fi
6389fi
6390AR=$ac_cv_prog_AR
6391if test -n "$AR"; then
6392 echo "$as_me:$LINENO: result: $AR" >&5
6393echo "${ECHO_T}$AR" >&6
6394else
6395 echo "$as_me:$LINENO: result: no" >&5
6396echo "${ECHO_T}no" >&6
6397fi
6398
6399 done
6400fi
6401
6402for ncn_progname in ar; do
05cbd757
PB
6403 if test -n "$ncn_tool_prefix"; then
6404 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6405set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6406echo "$as_me:$LINENO: checking for $ac_word" >&5
6407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6408if test "${ac_cv_prog_AR+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6410else
6411 if test -n "$AR"; then
6412 ac_cv_prog_AR="$AR" # Let the user override the test.
6413else
c6b750e1
DJ
6414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415for as_dir in $PATH
6416do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6421 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6424 fi
6425done
6426done
6427
859789af
AC
6428fi
6429fi
c6b750e1 6430AR=$ac_cv_prog_AR
859789af 6431if test -n "$AR"; then
c6b750e1
DJ
6432 echo "$as_me:$LINENO: result: $AR" >&5
6433echo "${ECHO_T}$AR" >&6
859789af 6434else
c6b750e1
DJ
6435 echo "$as_me:$LINENO: result: no" >&5
6436echo "${ECHO_T}no" >&6
859789af
AC
6437fi
6438
05cbd757
PB
6439 fi
6440 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6442set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6443echo "$as_me:$LINENO: checking for $ac_word" >&5
6444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6445if test "${ac_cv_prog_AR+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6447else
05cbd757
PB
6448 if test -n "$AR"; then
6449 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6450else
c6b750e1
DJ
6451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452for as_dir in $PATH
6453do
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6458 ac_cv_prog_AR="${ncn_progname}"
6459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6461 fi
6462done
6463done
6464
859789af
AC
6465fi
6466fi
c6b750e1 6467AR=$ac_cv_prog_AR
05cbd757 6468if test -n "$AR"; then
c6b750e1
DJ
6469 echo "$as_me:$LINENO: result: $AR" >&5
6470echo "${ECHO_T}$AR" >&6
859789af 6471else
c6b750e1
DJ
6472 echo "$as_me:$LINENO: result: no" >&5
6473echo "${ECHO_T}no" >&6
859789af 6474fi
c6b750e1 6475
05cbd757
PB
6476 fi
6477 test -n "$ac_cv_prog_AR" && break
6478done
6479
6480if test -z "$ac_cv_prog_AR" ; then
6481 set dummy ar
6482 if test $build = $host ; then
6483 AR="$2"
859789af 6484 else
05cbd757 6485 AR="${ncn_tool_prefix}$2"
859789af 6486 fi
859789af
AC
6487fi
6488
9a819804
AO
6489
6490
6491if test -n "$AS"; then
6492 ac_cv_prog_AS=$AS
6493elif test -n "$ac_cv_prog_AS"; then
6494 AS=$ac_cv_prog_AS
6495fi
6496
6497if test -n "$ac_cv_prog_AS"; then
6498 for ncn_progname in as; do
6499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6500set dummy ${ncn_progname}; ac_word=$2
6501echo "$as_me:$LINENO: checking for $ac_word" >&5
6502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6503if test "${ac_cv_prog_AS+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506 if test -n "$AS"; then
6507 ac_cv_prog_AS="$AS" # Let the user override the test.
6508else
6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510for as_dir in $PATH
6511do
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516 ac_cv_prog_AS="${ncn_progname}"
6517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520done
6521done
6522
6523fi
6524fi
6525AS=$ac_cv_prog_AS
6526if test -n "$AS"; then
6527 echo "$as_me:$LINENO: result: $AS" >&5
6528echo "${ECHO_T}$AS" >&6
6529else
6530 echo "$as_me:$LINENO: result: no" >&5
6531echo "${ECHO_T}no" >&6
6532fi
6533
6534 done
6535fi
6536
6537for ncn_progname in as; do
05cbd757
PB
6538 if test -n "$ncn_tool_prefix"; then
6539 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6540set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6541echo "$as_me:$LINENO: checking for $ac_word" >&5
6542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6543if test "${ac_cv_prog_AS+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6545else
6546 if test -n "$AS"; then
6547 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6548else
6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550for as_dir in $PATH
6551do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6556 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560done
6561done
6562
859789af
AC
6563fi
6564fi
c6b750e1 6565AS=$ac_cv_prog_AS
859789af 6566if test -n "$AS"; then
c6b750e1
DJ
6567 echo "$as_me:$LINENO: result: $AS" >&5
6568echo "${ECHO_T}$AS" >&6
859789af 6569else
c6b750e1
DJ
6570 echo "$as_me:$LINENO: result: no" >&5
6571echo "${ECHO_T}no" >&6
859789af
AC
6572fi
6573
05cbd757
PB
6574 fi
6575 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6577set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6578echo "$as_me:$LINENO: checking for $ac_word" >&5
6579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6580if test "${ac_cv_prog_AS+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6582else
05cbd757
PB
6583 if test -n "$AS"; then
6584 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6585else
c6b750e1
DJ
6586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587for as_dir in $PATH
6588do
6589 IFS=$as_save_IFS
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6593 ac_cv_prog_AS="${ncn_progname}"
6594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 break 2
6596 fi
6597done
6598done
6599
859789af
AC
6600fi
6601fi
c6b750e1 6602AS=$ac_cv_prog_AS
05cbd757 6603if test -n "$AS"; then
c6b750e1
DJ
6604 echo "$as_me:$LINENO: result: $AS" >&5
6605echo "${ECHO_T}$AS" >&6
859789af 6606else
c6b750e1
DJ
6607 echo "$as_me:$LINENO: result: no" >&5
6608echo "${ECHO_T}no" >&6
859789af 6609fi
c6b750e1 6610
05cbd757
PB
6611 fi
6612 test -n "$ac_cv_prog_AS" && break
6613done
6614
6615if test -z "$ac_cv_prog_AS" ; then
6616 set dummy as
6617 if test $build = $host ; then
6618 AS="$2"
859789af 6619 else
05cbd757 6620 AS="${ncn_tool_prefix}$2"
859789af 6621 fi
859789af
AC
6622fi
6623
9a819804
AO
6624
6625
6626if test -n "$DLLTOOL"; then
6627 ac_cv_prog_DLLTOOL=$DLLTOOL
6628elif test -n "$ac_cv_prog_DLLTOOL"; then
6629 DLLTOOL=$ac_cv_prog_DLLTOOL
6630fi
6631
6632if test -n "$ac_cv_prog_DLLTOOL"; then
6633 for ncn_progname in dlltool; do
6634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6635set dummy ${ncn_progname}; ac_word=$2
6636echo "$as_me:$LINENO: checking for $ac_word" >&5
6637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6638if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6640else
6641 if test -n "$DLLTOOL"; then
6642 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6643else
6644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645for as_dir in $PATH
6646do
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6651 ac_cv_prog_DLLTOOL="${ncn_progname}"
6652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6654 fi
6655done
6656done
6657
6658fi
6659fi
6660DLLTOOL=$ac_cv_prog_DLLTOOL
6661if test -n "$DLLTOOL"; then
6662 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6663echo "${ECHO_T}$DLLTOOL" >&6
6664else
6665 echo "$as_me:$LINENO: result: no" >&5
6666echo "${ECHO_T}no" >&6
6667fi
6668
6669 done
6670fi
6671
6672for ncn_progname in dlltool; do
05cbd757
PB
6673 if test -n "$ncn_tool_prefix"; then
6674 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6675set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6676echo "$as_me:$LINENO: checking for $ac_word" >&5
6677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6678if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6680else
6681 if test -n "$DLLTOOL"; then
6682 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6683else
c6b750e1
DJ
6684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685for as_dir in $PATH
6686do
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 break 2
6694 fi
6695done
6696done
6697
859789af
AC
6698fi
6699fi
c6b750e1 6700DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6701if test -n "$DLLTOOL"; then
c6b750e1
DJ
6702 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6703echo "${ECHO_T}$DLLTOOL" >&6
859789af 6704else
c6b750e1
DJ
6705 echo "$as_me:$LINENO: result: no" >&5
6706echo "${ECHO_T}no" >&6
859789af
AC
6707fi
6708
05cbd757
PB
6709 fi
6710 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6712set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6713echo "$as_me:$LINENO: checking for $ac_word" >&5
6714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6715if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6717else
05cbd757
PB
6718 if test -n "$DLLTOOL"; then
6719 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6720else
c6b750e1
DJ
6721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728 ac_cv_prog_DLLTOOL="${ncn_progname}"
6729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732done
6733done
6734
859789af
AC
6735fi
6736fi
c6b750e1 6737DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6738if test -n "$DLLTOOL"; then
c6b750e1
DJ
6739 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6740echo "${ECHO_T}$DLLTOOL" >&6
859789af 6741else
c6b750e1
DJ
6742 echo "$as_me:$LINENO: result: no" >&5
6743echo "${ECHO_T}no" >&6
859789af 6744fi
c6b750e1 6745
05cbd757
PB
6746 fi
6747 test -n "$ac_cv_prog_DLLTOOL" && break
6748done
6749
6750if test -z "$ac_cv_prog_DLLTOOL" ; then
6751 set dummy dlltool
6752 if test $build = $host ; then
6753 DLLTOOL="$2"
859789af 6754 else
05cbd757 6755 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6756 fi
859789af
AC
6757fi
6758
9a819804
AO
6759
6760
6761if test -n "$LD"; then
6762 ac_cv_prog_LD=$LD
6763elif test -n "$ac_cv_prog_LD"; then
6764 LD=$ac_cv_prog_LD
6765fi
6766
6767if test -n "$ac_cv_prog_LD"; then
6768 for ncn_progname in ld; do
6769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6770set dummy ${ncn_progname}; ac_word=$2
6771echo "$as_me:$LINENO: checking for $ac_word" >&5
6772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6773if test "${ac_cv_prog_LD+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775else
6776 if test -n "$LD"; then
6777 ac_cv_prog_LD="$LD" # Let the user override the test.
6778else
6779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780for as_dir in $PATH
6781do
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786 ac_cv_prog_LD="${ncn_progname}"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6789 fi
6790done
6791done
6792
6793fi
6794fi
6795LD=$ac_cv_prog_LD
6796if test -n "$LD"; then
6797 echo "$as_me:$LINENO: result: $LD" >&5
6798echo "${ECHO_T}$LD" >&6
6799else
6800 echo "$as_me:$LINENO: result: no" >&5
6801echo "${ECHO_T}no" >&6
6802fi
6803
6804 done
6805fi
6806
6807for ncn_progname in ld; do
05cbd757
PB
6808 if test -n "$ncn_tool_prefix"; then
6809 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6810set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6811echo "$as_me:$LINENO: checking for $ac_word" >&5
6812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6813if test "${ac_cv_prog_LD+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6815else
6816 if test -n "$LD"; then
6817 ac_cv_prog_LD="$LD" # Let the user override the test.
6818else
c6b750e1
DJ
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830done
6831done
6832
859789af
AC
6833fi
6834fi
c6b750e1 6835LD=$ac_cv_prog_LD
859789af 6836if test -n "$LD"; then
c6b750e1
DJ
6837 echo "$as_me:$LINENO: result: $LD" >&5
6838echo "${ECHO_T}$LD" >&6
859789af 6839else
c6b750e1
DJ
6840 echo "$as_me:$LINENO: result: no" >&5
6841echo "${ECHO_T}no" >&6
859789af
AC
6842fi
6843
05cbd757
PB
6844 fi
6845 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6847set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6848echo "$as_me:$LINENO: checking for $ac_word" >&5
6849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6850if test "${ac_cv_prog_LD+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6852else
05cbd757
PB
6853 if test -n "$LD"; then
6854 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6855else
c6b750e1
DJ
6856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857for as_dir in $PATH
6858do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863 ac_cv_prog_LD="${ncn_progname}"
6864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6866 fi
6867done
6868done
6869
859789af
AC
6870fi
6871fi
c6b750e1 6872LD=$ac_cv_prog_LD
05cbd757 6873if test -n "$LD"; then
c6b750e1
DJ
6874 echo "$as_me:$LINENO: result: $LD" >&5
6875echo "${ECHO_T}$LD" >&6
859789af 6876else
c6b750e1
DJ
6877 echo "$as_me:$LINENO: result: no" >&5
6878echo "${ECHO_T}no" >&6
859789af 6879fi
c6b750e1 6880
05cbd757
PB
6881 fi
6882 test -n "$ac_cv_prog_LD" && break
6883done
6884
6885if test -z "$ac_cv_prog_LD" ; then
6886 set dummy ld
6887 if test $build = $host ; then
6888 LD="$2"
859789af 6889 else
05cbd757 6890 LD="${ncn_tool_prefix}$2"
859789af 6891 fi
859789af
AC
6892fi
6893
9a819804
AO
6894
6895
6896if test -n "$LIPO"; then
6897 ac_cv_prog_LIPO=$LIPO
6898elif test -n "$ac_cv_prog_LIPO"; then
6899 LIPO=$ac_cv_prog_LIPO
6900fi
6901
6902if test -n "$ac_cv_prog_LIPO"; then
6903 for ncn_progname in lipo; do
6904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6905set dummy ${ncn_progname}; ac_word=$2
6906echo "$as_me:$LINENO: checking for $ac_word" >&5
6907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6908if test "${ac_cv_prog_LIPO+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910else
6911 if test -n "$LIPO"; then
6912 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6913else
6914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915for as_dir in $PATH
6916do
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_LIPO="${ncn_progname}"
6922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6924 fi
6925done
6926done
6927
6928fi
6929fi
6930LIPO=$ac_cv_prog_LIPO
6931if test -n "$LIPO"; then
6932 echo "$as_me:$LINENO: result: $LIPO" >&5
6933echo "${ECHO_T}$LIPO" >&6
6934else
6935 echo "$as_me:$LINENO: result: no" >&5
6936echo "${ECHO_T}no" >&6
6937fi
6938
6939 done
6940fi
6941
6942for ncn_progname in lipo; do
be01d343
PB
6943 if test -n "$ncn_tool_prefix"; then
6944 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6945set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6946echo "$as_me:$LINENO: checking for $ac_word" >&5
6947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6948if test "${ac_cv_prog_LIPO+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6950else
6951 if test -n "$LIPO"; then
6952 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6953else
c6b750e1
DJ
6954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955for as_dir in $PATH
6956do
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 break 2
6964 fi
6965done
6966done
6967
be01d343
PB
6968fi
6969fi
c6b750e1 6970LIPO=$ac_cv_prog_LIPO
be01d343 6971if test -n "$LIPO"; then
c6b750e1
DJ
6972 echo "$as_me:$LINENO: result: $LIPO" >&5
6973echo "${ECHO_T}$LIPO" >&6
be01d343 6974else
c6b750e1
DJ
6975 echo "$as_me:$LINENO: result: no" >&5
6976echo "${ECHO_T}no" >&6
be01d343
PB
6977fi
6978
6979 fi
6980 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6982set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6983echo "$as_me:$LINENO: checking for $ac_word" >&5
6984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6985if test "${ac_cv_prog_LIPO+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6987else
6988 if test -n "$LIPO"; then
6989 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6990else
c6b750e1
DJ
6991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6998 ac_cv_prog_LIPO="${ncn_progname}"
6999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7001 fi
7002done
7003done
7004
be01d343
PB
7005fi
7006fi
c6b750e1 7007LIPO=$ac_cv_prog_LIPO
be01d343 7008if test -n "$LIPO"; then
c6b750e1
DJ
7009 echo "$as_me:$LINENO: result: $LIPO" >&5
7010echo "${ECHO_T}$LIPO" >&6
be01d343 7011else
c6b750e1
DJ
7012 echo "$as_me:$LINENO: result: no" >&5
7013echo "${ECHO_T}no" >&6
be01d343 7014fi
c6b750e1 7015
be01d343
PB
7016 fi
7017 test -n "$ac_cv_prog_LIPO" && break
7018done
7019
7020if test -z "$ac_cv_prog_LIPO" ; then
7021 set dummy lipo
7022 if test $build = $host ; then
7023 LIPO="$2"
7024 else
7025 LIPO="${ncn_tool_prefix}$2"
7026 fi
7027fi
7028
9a819804
AO
7029
7030
7031if test -n "$NM"; then
7032 ac_cv_prog_NM=$NM
7033elif test -n "$ac_cv_prog_NM"; then
7034 NM=$ac_cv_prog_NM
7035fi
7036
7037if test -n "$ac_cv_prog_NM"; then
7038 for ncn_progname in nm; do
7039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7040set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7041echo "$as_me:$LINENO: checking for $ac_word" >&5
7042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7043if test "${ac_cv_prog_NM+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7045else
7046 if test -n "$NM"; then
7047 ac_cv_prog_NM="$NM" # Let the user override the test.
7048else
c6b750e1
DJ
7049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050for as_dir in $PATH
7051do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7056 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 break 2
7059 fi
7060done
7061done
7062
859789af
AC
7063fi
7064fi
c6b750e1 7065NM=$ac_cv_prog_NM
859789af 7066if test -n "$NM"; then
c6b750e1
DJ
7067 echo "$as_me:$LINENO: result: $NM" >&5
7068echo "${ECHO_T}$NM" >&6
859789af 7069else
c6b750e1
DJ
7070 echo "$as_me:$LINENO: result: no" >&5
7071echo "${ECHO_T}no" >&6
859789af
AC
7072fi
7073
9a819804
AO
7074 done
7075fi
7076
7077for ncn_progname in nm; do
7078 if test -n "$ncn_tool_prefix"; then
7079 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7080set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7081echo "$as_me:$LINENO: checking for $ac_word" >&5
7082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7083if test "${ac_cv_prog_NM+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7085else
05cbd757
PB
7086 if test -n "$NM"; then
7087 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7088else
c6b750e1
DJ
7089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090for as_dir in $PATH
7091do
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7096 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7099 fi
7100done
7101done
7102
859789af
AC
7103fi
7104fi
c6b750e1 7105NM=$ac_cv_prog_NM
05cbd757 7106if test -n "$NM"; then
c6b750e1
DJ
7107 echo "$as_me:$LINENO: result: $NM" >&5
7108echo "${ECHO_T}$NM" >&6
859789af 7109else
c6b750e1
DJ
7110 echo "$as_me:$LINENO: result: no" >&5
7111echo "${ECHO_T}no" >&6
859789af 7112fi
c6b750e1 7113
05cbd757 7114 fi
9a819804
AO
7115 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7117set dummy ${ncn_progname}; ac_word=$2
7118echo "$as_me:$LINENO: checking for $ac_word" >&5
7119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7120if test "${ac_cv_prog_NM+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122else
7123 if test -n "$NM"; then
7124 ac_cv_prog_NM="$NM" # Let the user override the test.
7125else
7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_NM="${ncn_progname}"
7134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137done
7138done
7139
7140fi
7141fi
7142NM=$ac_cv_prog_NM
7143if test -n "$NM"; then
7144 echo "$as_me:$LINENO: result: $NM" >&5
7145echo "${ECHO_T}$NM" >&6
7146else
7147 echo "$as_me:$LINENO: result: no" >&5
7148echo "${ECHO_T}no" >&6
7149fi
7150
7151 fi
7152 test -n "$ac_cv_prog_NM" && break
7153done
7154
7155if test -z "$ac_cv_prog_NM" ; then
7156 set dummy nm
7157 if test $build = $host ; then
7158 NM="$2"
7159 else
7160 NM="${ncn_tool_prefix}$2"
7161 fi
7162fi
7163
7164
7165
7166if test -n "$RANLIB"; then
7167 ac_cv_prog_RANLIB=$RANLIB
7168elif test -n "$ac_cv_prog_RANLIB"; then
7169 RANLIB=$ac_cv_prog_RANLIB
7170fi
7171
7172if test -n "$ac_cv_prog_RANLIB"; then
7173 for ncn_progname in ranlib; do
7174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7175set dummy ${ncn_progname}; ac_word=$2
7176echo "$as_me:$LINENO: checking for $ac_word" >&5
7177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7178if test "${ac_cv_prog_RANLIB+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7180else
7181 if test -n "$RANLIB"; then
7182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7183else
7184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185for as_dir in $PATH
7186do
7187 IFS=$as_save_IFS
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7191 ac_cv_prog_RANLIB="${ncn_progname}"
7192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 break 2
7194 fi
7195done
7196done
7197
7198fi
7199fi
7200RANLIB=$ac_cv_prog_RANLIB
7201if test -n "$RANLIB"; then
7202 echo "$as_me:$LINENO: result: $RANLIB" >&5
7203echo "${ECHO_T}$RANLIB" >&6
7204else
7205 echo "$as_me:$LINENO: result: no" >&5
7206echo "${ECHO_T}no" >&6
7207fi
7208
7209 done
7210fi
859789af 7211
9a819804 7212for ncn_progname in ranlib; do
05cbd757
PB
7213 if test -n "$ncn_tool_prefix"; then
7214 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7215set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7216echo "$as_me:$LINENO: checking for $ac_word" >&5
7217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7218if test "${ac_cv_prog_RANLIB+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7220else
7221 if test -n "$RANLIB"; then
7222 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7223else
c6b750e1
DJ
7224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225for as_dir in $PATH
7226do
7227 IFS=$as_save_IFS
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 break 2
7234 fi
7235done
7236done
7237
859789af
AC
7238fi
7239fi
c6b750e1 7240RANLIB=$ac_cv_prog_RANLIB
859789af 7241if test -n "$RANLIB"; then
c6b750e1
DJ
7242 echo "$as_me:$LINENO: result: $RANLIB" >&5
7243echo "${ECHO_T}$RANLIB" >&6
859789af 7244else
c6b750e1
DJ
7245 echo "$as_me:$LINENO: result: no" >&5
7246echo "${ECHO_T}no" >&6
859789af
AC
7247fi
7248
05cbd757
PB
7249 fi
7250 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7252set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7253echo "$as_me:$LINENO: checking for $ac_word" >&5
7254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7255if test "${ac_cv_prog_RANLIB+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7257else
05cbd757
PB
7258 if test -n "$RANLIB"; then
7259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7260else
c6b750e1
DJ
7261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262for as_dir in $PATH
7263do
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268 ac_cv_prog_RANLIB="${ncn_progname}"
7269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 break 2
7271 fi
7272done
7273done
7274
859789af
AC
7275fi
7276fi
c6b750e1 7277RANLIB=$ac_cv_prog_RANLIB
05cbd757 7278if test -n "$RANLIB"; then
c6b750e1
DJ
7279 echo "$as_me:$LINENO: result: $RANLIB" >&5
7280echo "${ECHO_T}$RANLIB" >&6
859789af 7281else
c6b750e1
DJ
7282 echo "$as_me:$LINENO: result: no" >&5
7283echo "${ECHO_T}no" >&6
859789af 7284fi
c6b750e1 7285
859789af 7286 fi
05cbd757
PB
7287 test -n "$ac_cv_prog_RANLIB" && break
7288done
7289
7290if test -z "$ac_cv_prog_RANLIB" ; then
7291 RANLIB=":"
859789af
AC
7292fi
7293
9a819804
AO
7294
7295
7296if test -n "$STRIP"; then
7297 ac_cv_prog_STRIP=$STRIP
7298elif test -n "$ac_cv_prog_STRIP"; then
7299 STRIP=$ac_cv_prog_STRIP
7300fi
7301
7302if test -n "$ac_cv_prog_STRIP"; then
7303 for ncn_progname in strip; do
7304 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7305set dummy ${ncn_progname}; ac_word=$2
7306echo "$as_me:$LINENO: checking for $ac_word" >&5
7307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7308if test "${ac_cv_prog_STRIP+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310else
7311 if test -n "$STRIP"; then
7312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7313else
7314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_STRIP="${ncn_progname}"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7324 fi
7325done
7326done
7327
7328fi
7329fi
7330STRIP=$ac_cv_prog_STRIP
7331if test -n "$STRIP"; then
7332 echo "$as_me:$LINENO: result: $STRIP" >&5
7333echo "${ECHO_T}$STRIP" >&6
7334else
7335 echo "$as_me:$LINENO: result: no" >&5
7336echo "${ECHO_T}no" >&6
7337fi
7338
7339 done
7340fi
7341
7342for ncn_progname in strip; do
be01d343
PB
7343 if test -n "$ncn_tool_prefix"; then
7344 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7345set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7346echo "$as_me:$LINENO: checking for $ac_word" >&5
7347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7348if test "${ac_cv_prog_STRIP+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7350else
7351 if test -n "$STRIP"; then
7352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7353else
c6b750e1
DJ
7354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365done
7366done
7367
be01d343
PB
7368fi
7369fi
c6b750e1 7370STRIP=$ac_cv_prog_STRIP
be01d343 7371if test -n "$STRIP"; then
c6b750e1
DJ
7372 echo "$as_me:$LINENO: result: $STRIP" >&5
7373echo "${ECHO_T}$STRIP" >&6
be01d343 7374else
c6b750e1
DJ
7375 echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6
be01d343
PB
7377fi
7378
7379 fi
7380 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7382set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7383echo "$as_me:$LINENO: checking for $ac_word" >&5
7384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7385if test "${ac_cv_prog_STRIP+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7387else
7388 if test -n "$STRIP"; then
7389 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7390else
c6b750e1
DJ
7391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392for as_dir in $PATH
7393do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7398 ac_cv_prog_STRIP="${ncn_progname}"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 break 2
7401 fi
7402done
7403done
7404
be01d343
PB
7405fi
7406fi
c6b750e1 7407STRIP=$ac_cv_prog_STRIP
be01d343 7408if test -n "$STRIP"; then
c6b750e1
DJ
7409 echo "$as_me:$LINENO: result: $STRIP" >&5
7410echo "${ECHO_T}$STRIP" >&6
be01d343 7411else
c6b750e1
DJ
7412 echo "$as_me:$LINENO: result: no" >&5
7413echo "${ECHO_T}no" >&6
be01d343 7414fi
c6b750e1 7415
be01d343
PB
7416 fi
7417 test -n "$ac_cv_prog_STRIP" && break
7418done
7419
7420if test -z "$ac_cv_prog_STRIP" ; then
7421 STRIP=":"
7422fi
7423
9a819804
AO
7424
7425
7426if test -n "$WINDRES"; then
7427 ac_cv_prog_WINDRES=$WINDRES
7428elif test -n "$ac_cv_prog_WINDRES"; then
7429 WINDRES=$ac_cv_prog_WINDRES
7430fi
7431
7432if test -n "$ac_cv_prog_WINDRES"; then
7433 for ncn_progname in windres; do
7434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7435set dummy ${ncn_progname}; ac_word=$2
7436echo "$as_me:$LINENO: checking for $ac_word" >&5
7437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7438if test "${ac_cv_prog_WINDRES+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7440else
7441 if test -n "$WINDRES"; then
7442 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7443else
7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451 ac_cv_prog_WINDRES="${ncn_progname}"
7452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455done
7456done
7457
7458fi
7459fi
7460WINDRES=$ac_cv_prog_WINDRES
7461if test -n "$WINDRES"; then
7462 echo "$as_me:$LINENO: result: $WINDRES" >&5
7463echo "${ECHO_T}$WINDRES" >&6
7464else
7465 echo "$as_me:$LINENO: result: no" >&5
7466echo "${ECHO_T}no" >&6
7467fi
7468
7469 done
7470fi
7471
7472for ncn_progname in windres; do
05cbd757
PB
7473 if test -n "$ncn_tool_prefix"; then
7474 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7475set dummy ${ncn_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_WINDRES+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7480else
7481 if test -n "$WINDRES"; then
7482 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${ncn_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
859789af
AC
7498fi
7499fi
c6b750e1 7500WINDRES=$ac_cv_prog_WINDRES
859789af 7501if test -n "$WINDRES"; then
c6b750e1
DJ
7502 echo "$as_me:$LINENO: result: $WINDRES" >&5
7503echo "${ECHO_T}$WINDRES" >&6
859789af 7504else
c6b750e1
DJ
7505 echo "$as_me:$LINENO: result: no" >&5
7506echo "${ECHO_T}no" >&6
859789af
AC
7507fi
7508
05cbd757
PB
7509 fi
7510 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
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_WINDRES+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7517else
05cbd757
PB
7518 if test -n "$WINDRES"; then
7519 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7520else
c6b750e1
DJ
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_WINDRES="${ncn_progname}"
7529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 break 2
7531 fi
7532done
7533done
7534
859789af
AC
7535fi
7536fi
c6b750e1 7537WINDRES=$ac_cv_prog_WINDRES
05cbd757 7538if test -n "$WINDRES"; then
c6b750e1
DJ
7539 echo "$as_me:$LINENO: result: $WINDRES" >&5
7540echo "${ECHO_T}$WINDRES" >&6
859789af 7541else
c6b750e1
DJ
7542 echo "$as_me:$LINENO: result: no" >&5
7543echo "${ECHO_T}no" >&6
859789af 7544fi
c6b750e1 7545
05cbd757
PB
7546 fi
7547 test -n "$ac_cv_prog_WINDRES" && break
7548done
7549
7550if test -z "$ac_cv_prog_WINDRES" ; then
7551 set dummy windres
7552 if test $build = $host ; then
7553 WINDRES="$2"
859789af 7554 else
05cbd757 7555 WINDRES="${ncn_tool_prefix}$2"
859789af 7556 fi
859789af
AC
7557fi
7558
9a819804
AO
7559
7560
0c24b341
NC
7561if test -n "$WINDMC"; then
7562 ac_cv_prog_WINDMC=$WINDMC
7563elif test -n "$ac_cv_prog_WINDMC"; then
7564 WINDMC=$ac_cv_prog_WINDMC
7565fi
7566
7567if test -n "$ac_cv_prog_WINDMC"; then
7568 for ncn_progname in windmc; do
7569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7570set dummy ${ncn_progname}; ac_word=$2
7571echo "$as_me:$LINENO: checking for $ac_word" >&5
7572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7573if test "${ac_cv_prog_WINDMC+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575else
7576 if test -n "$WINDMC"; then
7577 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7578else
7579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580for as_dir in $PATH
7581do
7582 IFS=$as_save_IFS
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586 ac_cv_prog_WINDMC="${ncn_progname}"
7587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 break 2
7589 fi
7590done
7591done
7592
7593fi
7594fi
7595WINDMC=$ac_cv_prog_WINDMC
7596if test -n "$WINDMC"; then
7597 echo "$as_me:$LINENO: result: $WINDMC" >&5
7598echo "${ECHO_T}$WINDMC" >&6
7599else
7600 echo "$as_me:$LINENO: result: no" >&5
7601echo "${ECHO_T}no" >&6
7602fi
7603
7604 done
7605fi
7606
7607for ncn_progname in windmc; do
7608 if test -n "$ncn_tool_prefix"; then
7609 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7610set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7611echo "$as_me:$LINENO: checking for $ac_word" >&5
7612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7613if test "${ac_cv_prog_WINDMC+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615else
7616 if test -n "$WINDMC"; then
7617 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7618else
7619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620for as_dir in $PATH
7621do
7622 IFS=$as_save_IFS
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7626 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 break 2
7629 fi
7630done
7631done
7632
7633fi
7634fi
7635WINDMC=$ac_cv_prog_WINDMC
7636if test -n "$WINDMC"; then
7637 echo "$as_me:$LINENO: result: $WINDMC" >&5
7638echo "${ECHO_T}$WINDMC" >&6
7639else
7640 echo "$as_me:$LINENO: result: no" >&5
7641echo "${ECHO_T}no" >&6
7642fi
7643
7644 fi
7645 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7647set dummy ${ncn_progname}; ac_word=$2
7648echo "$as_me:$LINENO: checking for $ac_word" >&5
7649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7650if test "${ac_cv_prog_WINDMC+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652else
7653 if test -n "$WINDMC"; then
7654 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7655else
7656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657for as_dir in $PATH
7658do
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663 ac_cv_prog_WINDMC="${ncn_progname}"
7664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 break 2
7666 fi
7667done
7668done
7669
7670fi
7671fi
7672WINDMC=$ac_cv_prog_WINDMC
7673if test -n "$WINDMC"; then
7674 echo "$as_me:$LINENO: result: $WINDMC" >&5
7675echo "${ECHO_T}$WINDMC" >&6
7676else
7677 echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6
7679fi
7680
7681 fi
7682 test -n "$ac_cv_prog_WINDMC" && break
7683done
7684
7685if test -z "$ac_cv_prog_WINDMC" ; then
7686 set dummy windmc
7687 if test $build = $host ; then
7688 WINDMC="$2"
7689 else
7690 WINDMC="${ncn_tool_prefix}$2"
7691 fi
7692fi
7693
7694
7695
9a819804
AO
7696if test -n "$OBJCOPY"; then
7697 ac_cv_prog_OBJCOPY=$OBJCOPY
7698elif test -n "$ac_cv_prog_OBJCOPY"; then
7699 OBJCOPY=$ac_cv_prog_OBJCOPY
7700fi
7701
7702if test -n "$ac_cv_prog_OBJCOPY"; then
7703 for ncn_progname in objcopy; do
7704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7705set dummy ${ncn_progname}; ac_word=$2
7706echo "$as_me:$LINENO: checking for $ac_word" >&5
7707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7708if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7710else
7711 if test -n "$OBJCOPY"; then
7712 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7713else
7714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715for as_dir in $PATH
7716do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_prog_OBJCOPY="${ncn_progname}"
7722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7724 fi
7725done
7726done
7727
7728fi
7729fi
7730OBJCOPY=$ac_cv_prog_OBJCOPY
7731if test -n "$OBJCOPY"; then
7732 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7733echo "${ECHO_T}$OBJCOPY" >&6
7734else
7735 echo "$as_me:$LINENO: result: no" >&5
7736echo "${ECHO_T}no" >&6
7737fi
7738
7739 done
7740fi
7741
7742for ncn_progname in objcopy; do
05cbd757
PB
7743 if test -n "$ncn_tool_prefix"; then
7744 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7745set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7746echo "$as_me:$LINENO: checking for $ac_word" >&5
7747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7748if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7750else
7751 if test -n "$OBJCOPY"; then
7752 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7753else
c6b750e1
DJ
7754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755for as_dir in $PATH
7756do
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7761 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 break 2
7764 fi
7765done
7766done
7767
859789af
AC
7768fi
7769fi
c6b750e1 7770OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7771if test -n "$OBJCOPY"; then
c6b750e1
DJ
7772 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7773echo "${ECHO_T}$OBJCOPY" >&6
859789af 7774else
c6b750e1
DJ
7775 echo "$as_me:$LINENO: result: no" >&5
7776echo "${ECHO_T}no" >&6
859789af
AC
7777fi
7778
05cbd757
PB
7779 fi
7780 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7782set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7783echo "$as_me:$LINENO: checking for $ac_word" >&5
7784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7785if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7787else
05cbd757
PB
7788 if test -n "$OBJCOPY"; then
7789 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7790else
c6b750e1
DJ
7791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792for as_dir in $PATH
7793do
7794 IFS=$as_save_IFS
7795 test -z "$as_dir" && as_dir=.
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7798 ac_cv_prog_OBJCOPY="${ncn_progname}"
7799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 break 2
7801 fi
7802done
7803done
7804
859789af
AC
7805fi
7806fi
c6b750e1 7807OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7808if test -n "$OBJCOPY"; then
c6b750e1
DJ
7809 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7810echo "${ECHO_T}$OBJCOPY" >&6
859789af 7811else
c6b750e1
DJ
7812 echo "$as_me:$LINENO: result: no" >&5
7813echo "${ECHO_T}no" >&6
859789af 7814fi
c6b750e1 7815
05cbd757
PB
7816 fi
7817 test -n "$ac_cv_prog_OBJCOPY" && break
7818done
7819
7820if test -z "$ac_cv_prog_OBJCOPY" ; then
7821 set dummy objcopy
7822 if test $build = $host ; then
7823 OBJCOPY="$2"
859789af 7824 else
05cbd757 7825 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7826 fi
859789af
AC
7827fi
7828
9a819804
AO
7829
7830
7831if test -n "$OBJDUMP"; then
7832 ac_cv_prog_OBJDUMP=$OBJDUMP
7833elif test -n "$ac_cv_prog_OBJDUMP"; then
7834 OBJDUMP=$ac_cv_prog_OBJDUMP
7835fi
7836
7837if test -n "$ac_cv_prog_OBJDUMP"; then
7838 for ncn_progname in objdump; do
7839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7840set dummy ${ncn_progname}; ac_word=$2
7841echo "$as_me:$LINENO: checking for $ac_word" >&5
7842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7843if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7845else
7846 if test -n "$OBJDUMP"; then
7847 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7848else
7849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850for as_dir in $PATH
7851do
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7856 ac_cv_prog_OBJDUMP="${ncn_progname}"
7857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 break 2
7859 fi
7860done
7861done
7862
7863fi
7864fi
7865OBJDUMP=$ac_cv_prog_OBJDUMP
7866if test -n "$OBJDUMP"; then
7867 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7868echo "${ECHO_T}$OBJDUMP" >&6
7869else
7870 echo "$as_me:$LINENO: result: no" >&5
7871echo "${ECHO_T}no" >&6
7872fi
7873
7874 done
7875fi
7876
7877for ncn_progname in objdump; do
05cbd757
PB
7878 if test -n "$ncn_tool_prefix"; then
7879 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7880set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7881echo "$as_me:$LINENO: checking for $ac_word" >&5
7882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7883if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7885else
7886 if test -n "$OBJDUMP"; then
7887 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7888else
c6b750e1
DJ
7889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890for as_dir in $PATH
7891do
7892 IFS=$as_save_IFS
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7896 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7898 break 2
7899 fi
7900done
7901done
7902
859789af
AC
7903fi
7904fi
c6b750e1 7905OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7906if test -n "$OBJDUMP"; then
c6b750e1
DJ
7907 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7908echo "${ECHO_T}$OBJDUMP" >&6
859789af 7909else
c6b750e1
DJ
7910 echo "$as_me:$LINENO: result: no" >&5
7911echo "${ECHO_T}no" >&6
859789af
AC
7912fi
7913
05cbd757
PB
7914 fi
7915 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7917set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7918echo "$as_me:$LINENO: checking for $ac_word" >&5
7919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7920if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7922else
05cbd757
PB
7923 if test -n "$OBJDUMP"; then
7924 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7925else
c6b750e1
DJ
7926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927for as_dir in $PATH
7928do
7929 IFS=$as_save_IFS
7930 test -z "$as_dir" && as_dir=.
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7933 ac_cv_prog_OBJDUMP="${ncn_progname}"
7934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7935 break 2
7936 fi
7937done
7938done
7939
859789af
AC
7940fi
7941fi
c6b750e1 7942OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7943if test -n "$OBJDUMP"; then
c6b750e1
DJ
7944 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7945echo "${ECHO_T}$OBJDUMP" >&6
859789af 7946else
c6b750e1
DJ
7947 echo "$as_me:$LINENO: result: no" >&5
7948echo "${ECHO_T}no" >&6
859789af 7949fi
c6b750e1 7950
05cbd757
PB
7951 fi
7952 test -n "$ac_cv_prog_OBJDUMP" && break
7953done
7954
7955if test -z "$ac_cv_prog_OBJDUMP" ; then
7956 set dummy objdump
7957 if test $build = $host ; then
7958 OBJDUMP="$2"
859789af 7959 else
05cbd757 7960 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7961 fi
859789af
AC
7962fi
7963
a0da8069
NN
7964
7965
7966
7967
7968
be01d343 7969# Target tools.
c6b750e1 7970
2429c060
PB
7971# Check whether --with-build-time-tools or --without-build-time-tools was given.
7972if test "${with_build_time_tools+set}" = set; then
7973 withval="$with_build_time_tools"
7974 case x"$withval" in
7975 x/*) ;;
7976 *)
7977 with_build_time_tools=
c6b750e1
DJ
7978 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7979echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7980 ;;
7981 esac
859789af 7982else
2429c060 7983 with_build_time_tools=
c6b750e1 7984fi;
859789af 7985
9a819804
AO
7986
7987
7988if test -n "$CC_FOR_TARGET"; then
7989 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7990elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7991 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7992fi
7993
7994if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7995 for ncn_progname in cc gcc; do
7996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7997set dummy ${ncn_progname}; ac_word=$2
7998echo "$as_me:$LINENO: checking for $ac_word" >&5
7999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8000if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8002else
8003 if test -n "$CC_FOR_TARGET"; then
8004 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8005else
8006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007for as_dir in $PATH
8008do
8009 IFS=$as_save_IFS
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8013 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 break 2
8016 fi
8017done
8018done
8019
8020fi
8021fi
8022CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8023if test -n "$CC_FOR_TARGET"; then
8024 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8025echo "${ECHO_T}$CC_FOR_TARGET" >&6
8026else
8027 echo "$as_me:$LINENO: result: no" >&5
8028echo "${ECHO_T}no" >&6
8029fi
8030
8031 done
8032fi
8033
8034if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8035 for ncn_progname in cc gcc; do
c6b750e1
DJ
8036 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8037echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8038 if test -x $with_build_time_tools/${ncn_progname}; then
8039 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8040 echo "$as_me:$LINENO: result: yes" >&5
8041echo "${ECHO_T}yes" >&6
cac3d6c4 8042 break
2429c060 8043 else
c6b750e1
DJ
8044 echo "$as_me:$LINENO: result: no" >&5
8045echo "${ECHO_T}no" >&6
cac3d6c4
CM
8046 fi
8047 done
55db4b87
PB
8048fi
8049
2429c060
PB
8050if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8051 for ncn_progname in cc gcc; do
8052 if test -n "$ncn_target_tool_prefix"; then
8053 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8054set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8055echo "$as_me:$LINENO: checking for $ac_word" >&5
8056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8057if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8059else
8060 if test -n "$CC_FOR_TARGET"; then
8061 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8062else
c6b750e1
DJ
8063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064for as_dir in $PATH
8065do
8066 IFS=$as_save_IFS
8067 test -z "$as_dir" && as_dir=.
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8070 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 break 2
8073 fi
8074done
8075done
8076
55db4b87
PB
8077fi
8078fi
c6b750e1 8079CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8080if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8081 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8082echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8083else
c6b750e1
DJ
8084 echo "$as_me:$LINENO: result: no" >&5
8085echo "${ECHO_T}no" >&6
55db4b87
PB
8086fi
8087
2429c060
PB
8088 fi
8089 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8091set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8092echo "$as_me:$LINENO: checking for $ac_word" >&5
8093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8094if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8096else
05cbd757
PB
8097 if test -n "$CC_FOR_TARGET"; then
8098 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8099else
c6b750e1
DJ
8100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101for as_dir in $PATH
8102do
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8110 fi
8111done
8112done
8113
55db4b87
PB
8114fi
8115fi
c6b750e1 8116CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8117if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8118 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8119echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8120else
c6b750e1
DJ
8121 echo "$as_me:$LINENO: result: no" >&5
8122echo "${ECHO_T}no" >&6
55db4b87 8123fi
c6b750e1 8124
2429c060
PB
8125 fi
8126 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8127 done
8128fi
c6b750e1 8129
05cbd757
PB
8130if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8131 set dummy cc gcc
8132 if test $build = $target ; then
8133 CC_FOR_TARGET="$2"
55db4b87 8134 else
05cbd757 8135 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8136 fi
d3f5afc4
MS
8137else
8138 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8139fi
8140
9a819804
AO
8141
8142
8143if test -n "$CXX_FOR_TARGET"; then
8144 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8145elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8146 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8147fi
8148
8149if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8150 for ncn_progname in c++ g++ cxx gxx; do
8151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8152set dummy ${ncn_progname}; ac_word=$2
8153echo "$as_me:$LINENO: checking for $ac_word" >&5
8154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8155if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8157else
8158 if test -n "$CXX_FOR_TARGET"; then
8159 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8160else
8161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162for as_dir in $PATH
8163do
8164 IFS=$as_save_IFS
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8170 break 2
8171 fi
8172done
8173done
8174
8175fi
8176fi
8177CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8178if test -n "$CXX_FOR_TARGET"; then
8179 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8180echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8181else
8182 echo "$as_me:$LINENO: result: no" >&5
8183echo "${ECHO_T}no" >&6
8184fi
8185
8186 done
8187fi
8188
8189if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8190 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8191 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8192echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8193 if test -x $with_build_time_tools/${ncn_progname}; then
8194 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8195 echo "$as_me:$LINENO: result: yes" >&5
8196echo "${ECHO_T}yes" >&6
2429c060
PB
8197 break
8198 else
c6b750e1
DJ
8199 echo "$as_me:$LINENO: result: no" >&5
8200echo "${ECHO_T}no" >&6
2429c060
PB
8201 fi
8202 done
8203fi
8204
8205if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8206 for ncn_progname in c++ g++ cxx gxx; do
8207 if test -n "$ncn_target_tool_prefix"; then
8208 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8209set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8210echo "$as_me:$LINENO: checking for $ac_word" >&5
8211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8212if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8214else
8215 if test -n "$CXX_FOR_TARGET"; then
8216 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8217else
c6b750e1
DJ
8218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219for as_dir in $PATH
8220do
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8225 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 break 2
8228 fi
8229done
8230done
8231
55db4b87
PB
8232fi
8233fi
c6b750e1 8234CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8235if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8236 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8237echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8238else
c6b750e1
DJ
8239 echo "$as_me:$LINENO: result: no" >&5
8240echo "${ECHO_T}no" >&6
55db4b87
PB
8241fi
8242
2429c060
PB
8243 fi
8244 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8246set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8247echo "$as_me:$LINENO: checking for $ac_word" >&5
8248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8249if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8251else
05cbd757
PB
8252 if test -n "$CXX_FOR_TARGET"; then
8253 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8254else
c6b750e1
DJ
8255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256for as_dir in $PATH
8257do
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8262 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 break 2
8265 fi
8266done
8267done
8268
55db4b87
PB
8269fi
8270fi
c6b750e1 8271CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8272if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8273 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8274echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8275else
c6b750e1
DJ
8276 echo "$as_me:$LINENO: result: no" >&5
8277echo "${ECHO_T}no" >&6
55db4b87 8278fi
c6b750e1 8279
2429c060
PB
8280 fi
8281 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8282 done
8283fi
c6b750e1 8284
05cbd757
PB
8285if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8286 set dummy c++ g++ cxx gxx
8287 if test $build = $target ; then
8288 CXX_FOR_TARGET="$2"
55db4b87 8289 else
05cbd757 8290 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8291 fi
d3f5afc4
MS
8292else
8293 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8294fi
8295
9a819804
AO
8296
8297
8298if test -n "$GCC_FOR_TARGET"; then
8299 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8300elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8301 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8302fi
8303
8304if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8305 for ncn_progname in gcc; do
8306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8307set dummy ${ncn_progname}; ac_word=$2
8308echo "$as_me:$LINENO: checking for $ac_word" >&5
8309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8310if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8312else
8313 if test -n "$GCC_FOR_TARGET"; then
8314 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8315else
8316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317for as_dir in $PATH
8318do
8319 IFS=$as_save_IFS
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8323 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 break 2
8326 fi
8327done
8328done
8329
8330fi
8331fi
8332GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8333if test -n "$GCC_FOR_TARGET"; then
8334 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8335echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8336else
8337 echo "$as_me:$LINENO: result: no" >&5
8338echo "${ECHO_T}no" >&6
8339fi
8340
8341 done
8342fi
8343
8344if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8345 for ncn_progname in gcc; do
c6b750e1
DJ
8346 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8347echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8348 if test -x $with_build_time_tools/${ncn_progname}; then
8349 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8350 echo "$as_me:$LINENO: result: yes" >&5
8351echo "${ECHO_T}yes" >&6
2429c060
PB
8352 break
8353 else
c6b750e1
DJ
8354 echo "$as_me:$LINENO: result: no" >&5
8355echo "${ECHO_T}no" >&6
2429c060
PB
8356 fi
8357 done
8358fi
8359
8360if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8361 for ncn_progname in gcc; do
8362 if test -n "$ncn_target_tool_prefix"; then
8363 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8364set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8365echo "$as_me:$LINENO: checking for $ac_word" >&5
8366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8367if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8369else
2429c060
PB
8370 if test -n "$GCC_FOR_TARGET"; then
8371 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8372else
c6b750e1
DJ
8373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374for as_dir in $PATH
8375do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8380 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8383 fi
8384done
8385done
8386
55db4b87
PB
8387fi
8388fi
c6b750e1 8389GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8390if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8391 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8392echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8393else
c6b750e1
DJ
8394 echo "$as_me:$LINENO: result: no" >&5
8395echo "${ECHO_T}no" >&6
55db4b87
PB
8396fi
8397
2429c060
PB
8398 fi
8399 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8401set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8402echo "$as_me:$LINENO: checking for $ac_word" >&5
8403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8404if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8406else
05cbd757
PB
8407 if test -n "$GCC_FOR_TARGET"; then
8408 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8409else
c6b750e1
DJ
8410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411for as_dir in $PATH
8412do
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8417 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8420 fi
8421done
8422done
8423
55db4b87
PB
8424fi
8425fi
c6b750e1 8426GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8427if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8428 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8429echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8430else
c6b750e1
DJ
8431 echo "$as_me:$LINENO: result: no" >&5
8432echo "${ECHO_T}no" >&6
55db4b87 8433fi
c6b750e1 8434
2429c060
PB
8435 fi
8436 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8437 done
8438fi
c6b750e1 8439
05cbd757
PB
8440if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8441 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8442else
8443 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8444fi
8445
9a819804
AO
8446
8447
8448if test -n "$GCJ_FOR_TARGET"; then
8449 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8450elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8451 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8452fi
8453
8454if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8455 for ncn_progname in gcj; do
8456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8457set dummy ${ncn_progname}; ac_word=$2
8458echo "$as_me:$LINENO: checking for $ac_word" >&5
8459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8460if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8462else
8463 if test -n "$GCJ_FOR_TARGET"; then
8464 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8465else
8466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467for as_dir in $PATH
8468do
8469 IFS=$as_save_IFS
8470 test -z "$as_dir" && as_dir=.
8471 for ac_exec_ext in '' $ac_executable_extensions; do
8472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8473 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8475 break 2
8476 fi
8477done
8478done
8479
8480fi
8481fi
8482GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8483if test -n "$GCJ_FOR_TARGET"; then
8484 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8485echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8486else
8487 echo "$as_me:$LINENO: result: no" >&5
8488echo "${ECHO_T}no" >&6
8489fi
8490
8491 done
8492fi
8493
8494if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8495 for ncn_progname in gcj; do
c6b750e1
DJ
8496 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8497echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8498 if test -x $with_build_time_tools/${ncn_progname}; then
8499 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8500 echo "$as_me:$LINENO: result: yes" >&5
8501echo "${ECHO_T}yes" >&6
2429c060
PB
8502 break
8503 else
c6b750e1
DJ
8504 echo "$as_me:$LINENO: result: no" >&5
8505echo "${ECHO_T}no" >&6
2429c060
PB
8506 fi
8507 done
8508fi
8509
8510if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8511 for ncn_progname in gcj; do
8512 if test -n "$ncn_target_tool_prefix"; then
8513 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8514set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8515echo "$as_me:$LINENO: checking for $ac_word" >&5
8516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8517if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8519else
8520 if test -n "$GCJ_FOR_TARGET"; then
8521 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8522else
c6b750e1
DJ
8523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524for as_dir in $PATH
8525do
8526 IFS=$as_save_IFS
8527 test -z "$as_dir" && as_dir=.
8528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8530 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8532 break 2
8533 fi
8534done
8535done
8536
55db4b87
PB
8537fi
8538fi
9a819804
AO
8539GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8540if test -n "$GCJ_FOR_TARGET"; then
8541 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8542echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8543else
8544 echo "$as_me:$LINENO: result: no" >&5
8545echo "${ECHO_T}no" >&6
8546fi
8547
8548 fi
8549 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8551set dummy ${ncn_progname}; ac_word=$2
8552echo "$as_me:$LINENO: checking for $ac_word" >&5
8553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8554if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556else
8557 if test -n "$GCJ_FOR_TARGET"; then
8558 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8559else
8560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561for as_dir in $PATH
8562do
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8567 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 break 2
8570 fi
8571done
8572done
8573
8574fi
8575fi
8576GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8577if test -n "$GCJ_FOR_TARGET"; then
8578 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8579echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8580else
8581 echo "$as_me:$LINENO: result: no" >&5
8582echo "${ECHO_T}no" >&6
8583fi
8584
8585 fi
8586 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8587 done
8588fi
8589
8590if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8591 set dummy gcj
8592 if test $build = $target ; then
8593 GCJ_FOR_TARGET="$2"
8594 else
8595 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8596 fi
d3f5afc4
MS
8597else
8598 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8599fi
8600
8601
8602
8603if test -n "$GFORTRAN_FOR_TARGET"; then
8604 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8605elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8606 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8607fi
8608
9a819804
AO
8609if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8610 for ncn_progname in gfortran; do
8611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8612set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8613echo "$as_me:$LINENO: checking for $ac_word" >&5
8614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8615if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8616 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8617else
9a819804
AO
8618 if test -n "$GFORTRAN_FOR_TARGET"; then
8619 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8620else
c6b750e1
DJ
8621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622for as_dir in $PATH
8623do
8624 IFS=$as_save_IFS
8625 test -z "$as_dir" && as_dir=.
8626 for ac_exec_ext in '' $ac_executable_extensions; do
8627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8628 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8630 break 2
8631 fi
8632done
8633done
8634
55db4b87
PB
8635fi
8636fi
9a819804
AO
8637GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8638if test -n "$GFORTRAN_FOR_TARGET"; then
8639 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8640echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8641else
c6b750e1
DJ
8642 echo "$as_me:$LINENO: result: no" >&5
8643echo "${ECHO_T}no" >&6
55db4b87 8644fi
c6b750e1 8645
2429c060
PB
8646 done
8647fi
c6b750e1 8648
9a819804 8649if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8650 for ncn_progname in gfortran; do
c6b750e1
DJ
8651 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8652echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8653 if test -x $with_build_time_tools/${ncn_progname}; then
8654 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8655 echo "$as_me:$LINENO: result: yes" >&5
8656echo "${ECHO_T}yes" >&6
2429c060
PB
8657 break
8658 else
c6b750e1
DJ
8659 echo "$as_me:$LINENO: result: no" >&5
8660echo "${ECHO_T}no" >&6
2429c060
PB
8661 fi
8662 done
8663fi
8664
8665if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8666 for ncn_progname in gfortran; do
8667 if test -n "$ncn_target_tool_prefix"; then
8668 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8669set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8670echo "$as_me:$LINENO: checking for $ac_word" >&5
8671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8672if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8674else
8675 if test -n "$GFORTRAN_FOR_TARGET"; then
8676 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8677else
c6b750e1
DJ
8678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679for as_dir in $PATH
8680do
8681 IFS=$as_save_IFS
8682 test -z "$as_dir" && as_dir=.
8683 for ac_exec_ext in '' $ac_executable_extensions; do
8684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8685 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8687 break 2
8688 fi
8689done
8690done
8691
55db4b87
PB
8692fi
8693fi
c6b750e1 8694GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8695if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8696 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8697echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8698else
c6b750e1
DJ
8699 echo "$as_me:$LINENO: result: no" >&5
8700echo "${ECHO_T}no" >&6
55db4b87
PB
8701fi
8702
2429c060
PB
8703 fi
8704 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8706set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8707echo "$as_me:$LINENO: checking for $ac_word" >&5
8708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8709if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8711else
05cbd757 8712 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8713 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8714else
8715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716for as_dir in $PATH
8717do
8718 IFS=$as_save_IFS
8719 test -z "$as_dir" && as_dir=.
8720 for ac_exec_ext in '' $ac_executable_extensions; do
8721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8722 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8724 break 2
8725 fi
8726done
8727done
8728
55db4b87
PB
8729fi
8730fi
c6b750e1 8731GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8732if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8733 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8734echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8735else
c6b750e1
DJ
8736 echo "$as_me:$LINENO: result: no" >&5
8737echo "${ECHO_T}no" >&6
55db4b87 8738fi
c6b750e1 8739
2429c060
PB
8740 fi
8741 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8742 done
8743fi
c6b750e1 8744
05cbd757
PB
8745if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8746 set dummy gfortran
8747 if test $build = $target ; then
8748 GFORTRAN_FOR_TARGET="$2"
55db4b87 8749 else
05cbd757 8750 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8751 fi
d3f5afc4
MS
8752else
8753 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8754fi
8755
2429c060
PB
8756
8757
2429c060
PB
8758cat > conftest.c << \EOF
8759#ifdef __GNUC__
8760 gcc_yay;
8761#endif
8762EOF
8763if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8764 have_gcc_for_target=yes
859789af 8765else
2429c060
PB
8766 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8767 have_gcc_for_target=no
859789af 8768fi
2429c060
PB
8769rm conftest.c
8770
8771
8772
859789af 8773
2429c060
PB
8774if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8775 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8776 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8777echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8778 if test -x $with_build_time_tools/ar; then
8779 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8780 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8781 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8782echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8783 else
c6b750e1
DJ
8784 echo "$as_me:$LINENO: result: no" >&5
8785echo "${ECHO_T}no" >&6
3a35eeb3 8786 fi
2429c060
PB
8787 elif test $build != $host && test $have_gcc_for_target = yes; then
8788 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8789 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8790 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8791 fi
2429c060 8792fi
c6b750e1 8793if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8794 # Extract the first word of "ar", so it can be a program name with args.
8795set dummy ar; ac_word=$2
c6b750e1
DJ
8796echo "$as_me:$LINENO: checking for $ac_word" >&5
8797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8798if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8800else
c6b750e1
DJ
8801 case $AR_FOR_TARGET in
8802 [\\/]* | ?:[\\/]*)
2429c060
PB
8803 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8804 ;;
2429c060 8805 *)
c6b750e1
DJ
8806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807for as_dir in $gcc_cv_tool_dirs
8808do
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
8811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8813 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 break 2
8816 fi
8817done
8818done
8819
2429c060
PB
8820 ;;
8821esac
859789af 8822fi
c6b750e1
DJ
8823AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8824
2429c060 8825if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8826 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8827echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8828else
c6b750e1
DJ
8829 echo "$as_me:$LINENO: result: no" >&5
8830echo "${ECHO_T}no" >&6
859789af 8831fi
05cbd757 8832
2429c060
PB
8833fi
8834if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8835
8836
8837if test -n "$AR_FOR_TARGET"; then
8838 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8839elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8840 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8841fi
8842
8843if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8844 for ncn_progname in ar; do
8845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8846set dummy ${ncn_progname}; ac_word=$2
8847echo "$as_me:$LINENO: checking for $ac_word" >&5
8848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8849if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851else
8852 if test -n "$AR_FOR_TARGET"; then
8853 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8854else
8855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856for as_dir in $PATH
8857do
8858 IFS=$as_save_IFS
8859 test -z "$as_dir" && as_dir=.
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8862 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8864 break 2
8865 fi
8866done
8867done
8868
8869fi
8870fi
8871AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8872if test -n "$AR_FOR_TARGET"; then
8873 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8874echo "${ECHO_T}$AR_FOR_TARGET" >&6
8875else
8876 echo "$as_me:$LINENO: result: no" >&5
8877echo "${ECHO_T}no" >&6
8878fi
8879
8880 done
8881fi
8882
8883if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8884 for ncn_progname in ar; do
c6b750e1
DJ
8885 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8886echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8887 if test -x $with_build_time_tools/${ncn_progname}; then
8888 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8889 echo "$as_me:$LINENO: result: yes" >&5
8890echo "${ECHO_T}yes" >&6
2429c060
PB
8891 break
8892 else
c6b750e1
DJ
8893 echo "$as_me:$LINENO: result: no" >&5
8894echo "${ECHO_T}no" >&6
2429c060
PB
8895 fi
8896 done
859789af
AC
8897fi
8898
2429c060
PB
8899if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8900 for ncn_progname in ar; do
8901 if test -n "$ncn_target_tool_prefix"; then
8902 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8903set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8904echo "$as_me:$LINENO: checking for $ac_word" >&5
8905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8906if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8908else
2429c060
PB
8909 if test -n "$AR_FOR_TARGET"; then
8910 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8911else
c6b750e1
DJ
8912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913for as_dir in $PATH
8914do
8915 IFS=$as_save_IFS
8916 test -z "$as_dir" && as_dir=.
8917 for ac_exec_ext in '' $ac_executable_extensions; do
8918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8919 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8921 break 2
8922 fi
8923done
8924done
8925
7e0f7140
GK
8926fi
8927fi
c6b750e1 8928AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8929if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8930 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8931echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8932else
c6b750e1
DJ
8933 echo "$as_me:$LINENO: result: no" >&5
8934echo "${ECHO_T}no" >&6
7e0f7140
GK
8935fi
8936
2429c060
PB
8937 fi
8938 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8940set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8941echo "$as_me:$LINENO: checking for $ac_word" >&5
8942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8943if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8945else
2429c060
PB
8946 if test -n "$AR_FOR_TARGET"; then
8947 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8948else
c6b750e1
DJ
8949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950for as_dir in $PATH
8951do
8952 IFS=$as_save_IFS
8953 test -z "$as_dir" && as_dir=.
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8956 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 break 2
8959 fi
8960done
8961done
8962
7e0f7140
GK
8963fi
8964fi
c6b750e1 8965AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8966if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8967 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8968echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8969else
c6b750e1
DJ
8970 echo "$as_me:$LINENO: result: no" >&5
8971echo "${ECHO_T}no" >&6
7e0f7140 8972fi
c6b750e1 8973
2429c060
PB
8974 fi
8975 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8976 done
8977fi
c6b750e1 8978
2429c060
PB
8979if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8980 set dummy ar
7e0f7140 8981 if test $build = $target ; then
2429c060 8982 AR_FOR_TARGET="$2"
7e0f7140 8983 else
2429c060 8984 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 8985 fi
d3f5afc4
MS
8986else
8987 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
8988fi
8989
3a35eeb3
PB
8990else
8991 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
8992fi
8993
8994
8995
8996
8997if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8998 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8999 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9000echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9001 if test -x $with_build_time_tools/as; then
9002 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9003 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9004 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9005echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9006 else
c6b750e1
DJ
9007 echo "$as_me:$LINENO: result: no" >&5
9008echo "${ECHO_T}no" >&6
3a35eeb3 9009 fi
2429c060
PB
9010 elif test $build != $host && test $have_gcc_for_target = yes; then
9011 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9012 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9013 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9014 fi
9015fi
c6b750e1 9016if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9017 # Extract the first word of "as", so it can be a program name with args.
9018set dummy as; ac_word=$2
c6b750e1
DJ
9019echo "$as_me:$LINENO: checking for $ac_word" >&5
9020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9021if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9023else
c6b750e1
DJ
9024 case $AS_FOR_TARGET in
9025 [\\/]* | ?:[\\/]*)
2429c060
PB
9026 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9027 ;;
2429c060 9028 *)
c6b750e1
DJ
9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030for as_dir in $gcc_cv_tool_dirs
9031do
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9036 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9038 break 2
9039 fi
9040done
9041done
9042
2429c060
PB
9043 ;;
9044esac
9045fi
c6b750e1
DJ
9046AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9047
2429c060 9048if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9049 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9050echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9051else
c6b750e1
DJ
9052 echo "$as_me:$LINENO: result: no" >&5
9053echo "${ECHO_T}no" >&6
2429c060
PB
9054fi
9055
9056fi
9057if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9058
9059
9060if test -n "$AS_FOR_TARGET"; then
9061 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9062elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9063 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9064fi
9065
9066if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9067 for ncn_progname in as; do
9068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9069set dummy ${ncn_progname}; ac_word=$2
9070echo "$as_me:$LINENO: checking for $ac_word" >&5
9071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9072if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9074else
9075 if test -n "$AS_FOR_TARGET"; then
9076 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9077else
9078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079for as_dir in $PATH
9080do
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9085 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9087 break 2
9088 fi
9089done
9090done
9091
9092fi
9093fi
9094AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9095if test -n "$AS_FOR_TARGET"; then
9096 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9097echo "${ECHO_T}$AS_FOR_TARGET" >&6
9098else
9099 echo "$as_me:$LINENO: result: no" >&5
9100echo "${ECHO_T}no" >&6
9101fi
9102
9103 done
9104fi
9105
9106if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9107 for ncn_progname in as; do
c6b750e1
DJ
9108 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9109echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9110 if test -x $with_build_time_tools/${ncn_progname}; then
9111 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9112 echo "$as_me:$LINENO: result: yes" >&5
9113echo "${ECHO_T}yes" >&6
2429c060
PB
9114 break
9115 else
c6b750e1
DJ
9116 echo "$as_me:$LINENO: result: no" >&5
9117echo "${ECHO_T}no" >&6
2429c060
PB
9118 fi
9119 done
9120fi
9121
9122if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9123 for ncn_progname in as; do
9124 if test -n "$ncn_target_tool_prefix"; then
9125 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9126set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9127echo "$as_me:$LINENO: checking for $ac_word" >&5
9128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9129if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9131else
9132 if test -n "$AS_FOR_TARGET"; then
9133 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9134else
c6b750e1
DJ
9135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136for as_dir in $PATH
9137do
9138 IFS=$as_save_IFS
9139 test -z "$as_dir" && as_dir=.
9140 for ac_exec_ext in '' $ac_executable_extensions; do
9141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9142 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9144 break 2
9145 fi
9146done
9147done
9148
2429c060
PB
9149fi
9150fi
c6b750e1 9151AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9152if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9153 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9154echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9155else
c6b750e1
DJ
9156 echo "$as_me:$LINENO: result: no" >&5
9157echo "${ECHO_T}no" >&6
2429c060
PB
9158fi
9159
9160 fi
9161 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9163set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9164echo "$as_me:$LINENO: checking for $ac_word" >&5
9165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9166if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9168else
9169 if test -n "$AS_FOR_TARGET"; then
9170 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9171else
c6b750e1
DJ
9172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9173for as_dir in $PATH
9174do
9175 IFS=$as_save_IFS
9176 test -z "$as_dir" && as_dir=.
9177 for ac_exec_ext in '' $ac_executable_extensions; do
9178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9179 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9181 break 2
9182 fi
9183done
9184done
9185
2429c060
PB
9186fi
9187fi
c6b750e1 9188AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9189if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9190 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9191echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9192else
c6b750e1
DJ
9193 echo "$as_me:$LINENO: result: no" >&5
9194echo "${ECHO_T}no" >&6
2429c060 9195fi
c6b750e1 9196
2429c060
PB
9197 fi
9198 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9199 done
9200fi
c6b750e1 9201
2429c060
PB
9202if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9203 set dummy as
9204 if test $build = $target ; then
9205 AS_FOR_TARGET="$2"
9206 else
9207 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9208 fi
d3f5afc4
MS
9209else
9210 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9211fi
9212
3a35eeb3
PB
9213else
9214 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9215fi
9216
9217
9218
9219
9220if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9221 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9222 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9223echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9224 if test -x $with_build_time_tools/dlltool; then
9225 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9226 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9227 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9228echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9229 else
c6b750e1
DJ
9230 echo "$as_me:$LINENO: result: no" >&5
9231echo "${ECHO_T}no" >&6
3a35eeb3 9232 fi
2429c060
PB
9233 elif test $build != $host && test $have_gcc_for_target = yes; then
9234 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9235 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9236 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9237 fi
9238fi
c6b750e1 9239if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9240 # Extract the first word of "dlltool", so it can be a program name with args.
9241set dummy dlltool; ac_word=$2
c6b750e1
DJ
9242echo "$as_me:$LINENO: checking for $ac_word" >&5
9243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9244if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9246else
c6b750e1
DJ
9247 case $DLLTOOL_FOR_TARGET in
9248 [\\/]* | ?:[\\/]*)
2429c060
PB
9249 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9250 ;;
2429c060 9251 *)
c6b750e1
DJ
9252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253for as_dir in $gcc_cv_tool_dirs
9254do
9255 IFS=$as_save_IFS
9256 test -z "$as_dir" && as_dir=.
9257 for ac_exec_ext in '' $ac_executable_extensions; do
9258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9259 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9261 break 2
9262 fi
9263done
9264done
9265
2429c060
PB
9266 ;;
9267esac
9268fi
c6b750e1
DJ
9269DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9270
2429c060 9271if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9272 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9273echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9274else
c6b750e1
DJ
9275 echo "$as_me:$LINENO: result: no" >&5
9276echo "${ECHO_T}no" >&6
2429c060
PB
9277fi
9278
9279fi
9280if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9281
9282
9283if test -n "$DLLTOOL_FOR_TARGET"; then
9284 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9285elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9286 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9287fi
9288
9289if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9290 for ncn_progname in dlltool; do
9291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9292set dummy ${ncn_progname}; ac_word=$2
9293echo "$as_me:$LINENO: checking for $ac_word" >&5
9294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9295if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9297else
9298 if test -n "$DLLTOOL_FOR_TARGET"; then
9299 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9300else
9301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302for as_dir in $PATH
9303do
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9308 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9310 break 2
9311 fi
9312done
9313done
9314
9315fi
9316fi
9317DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9318if test -n "$DLLTOOL_FOR_TARGET"; then
9319 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9320echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9321else
9322 echo "$as_me:$LINENO: result: no" >&5
9323echo "${ECHO_T}no" >&6
9324fi
9325
9326 done
9327fi
9328
9329if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9330 for ncn_progname in dlltool; do
c6b750e1
DJ
9331 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9332echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9333 if test -x $with_build_time_tools/${ncn_progname}; then
9334 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9335 echo "$as_me:$LINENO: result: yes" >&5
9336echo "${ECHO_T}yes" >&6
2429c060
PB
9337 break
9338 else
c6b750e1
DJ
9339 echo "$as_me:$LINENO: result: no" >&5
9340echo "${ECHO_T}no" >&6
2429c060
PB
9341 fi
9342 done
9343fi
9344
9345if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9346 for ncn_progname in dlltool; do
9347 if test -n "$ncn_target_tool_prefix"; then
9348 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9349set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9350echo "$as_me:$LINENO: checking for $ac_word" >&5
9351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9352if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9354else
9355 if test -n "$DLLTOOL_FOR_TARGET"; then
9356 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9357else
c6b750e1
DJ
9358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359for as_dir in $PATH
9360do
9361 IFS=$as_save_IFS
9362 test -z "$as_dir" && as_dir=.
9363 for ac_exec_ext in '' $ac_executable_extensions; do
9364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9365 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9367 break 2
9368 fi
9369done
9370done
9371
2429c060
PB
9372fi
9373fi
c6b750e1 9374DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9375if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9376 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9377echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9378else
c6b750e1
DJ
9379 echo "$as_me:$LINENO: result: no" >&5
9380echo "${ECHO_T}no" >&6
2429c060
PB
9381fi
9382
9383 fi
9384 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9386set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9387echo "$as_me:$LINENO: checking for $ac_word" >&5
9388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9389if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9391else
9392 if test -n "$DLLTOOL_FOR_TARGET"; then
9393 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9394else
c6b750e1
DJ
9395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396for as_dir in $PATH
9397do
9398 IFS=$as_save_IFS
9399 test -z "$as_dir" && as_dir=.
9400 for ac_exec_ext in '' $ac_executable_extensions; do
9401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9402 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9404 break 2
9405 fi
9406done
9407done
9408
2429c060
PB
9409fi
9410fi
c6b750e1 9411DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9412if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9413 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9414echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9415else
c6b750e1
DJ
9416 echo "$as_me:$LINENO: result: no" >&5
9417echo "${ECHO_T}no" >&6
2429c060 9418fi
c6b750e1 9419
2429c060
PB
9420 fi
9421 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9422 done
9423fi
c6b750e1 9424
2429c060
PB
9425if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9426 set dummy dlltool
9427 if test $build = $target ; then
9428 DLLTOOL_FOR_TARGET="$2"
9429 else
9430 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9431 fi
d3f5afc4
MS
9432else
9433 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9434fi
9435
3a35eeb3
PB
9436else
9437 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9438fi
9439
9440
9441
9442
9443if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9444 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9445 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9446echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9447 if test -x $with_build_time_tools/ld; then
9448 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9449 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9450 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9451echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9452 else
c6b750e1
DJ
9453 echo "$as_me:$LINENO: result: no" >&5
9454echo "${ECHO_T}no" >&6
3a35eeb3 9455 fi
2429c060
PB
9456 elif test $build != $host && test $have_gcc_for_target = yes; then
9457 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9458 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9459 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9460 fi
9461fi
c6b750e1 9462if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9463 # Extract the first word of "ld", so it can be a program name with args.
9464set dummy ld; ac_word=$2
c6b750e1
DJ
9465echo "$as_me:$LINENO: checking for $ac_word" >&5
9466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9467if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9469else
c6b750e1
DJ
9470 case $LD_FOR_TARGET in
9471 [\\/]* | ?:[\\/]*)
2429c060
PB
9472 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9473 ;;
2429c060 9474 *)
c6b750e1
DJ
9475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476for as_dir in $gcc_cv_tool_dirs
9477do
9478 IFS=$as_save_IFS
9479 test -z "$as_dir" && as_dir=.
9480 for ac_exec_ext in '' $ac_executable_extensions; do
9481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9482 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9484 break 2
9485 fi
9486done
9487done
9488
2429c060
PB
9489 ;;
9490esac
9491fi
c6b750e1
DJ
9492LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9493
2429c060 9494if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9495 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9496echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9497else
c6b750e1
DJ
9498 echo "$as_me:$LINENO: result: no" >&5
9499echo "${ECHO_T}no" >&6
2429c060
PB
9500fi
9501
9502fi
9503if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9504
9505
9506if test -n "$LD_FOR_TARGET"; then
9507 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9508elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9509 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9510fi
9511
9512if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9513 for ncn_progname in ld; do
9514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9515set dummy ${ncn_progname}; ac_word=$2
9516echo "$as_me:$LINENO: checking for $ac_word" >&5
9517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9518if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520else
9521 if test -n "$LD_FOR_TARGET"; then
9522 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9523else
9524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9525for as_dir in $PATH
9526do
9527 IFS=$as_save_IFS
9528 test -z "$as_dir" && as_dir=.
9529 for ac_exec_ext in '' $ac_executable_extensions; do
9530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9531 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9533 break 2
9534 fi
9535done
9536done
9537
9538fi
9539fi
9540LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9541if test -n "$LD_FOR_TARGET"; then
9542 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9543echo "${ECHO_T}$LD_FOR_TARGET" >&6
9544else
9545 echo "$as_me:$LINENO: result: no" >&5
9546echo "${ECHO_T}no" >&6
9547fi
9548
9549 done
9550fi
9551
9552if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9553 for ncn_progname in ld; do
c6b750e1
DJ
9554 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9555echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9556 if test -x $with_build_time_tools/${ncn_progname}; then
9557 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9558 echo "$as_me:$LINENO: result: yes" >&5
9559echo "${ECHO_T}yes" >&6
2429c060
PB
9560 break
9561 else
c6b750e1
DJ
9562 echo "$as_me:$LINENO: result: no" >&5
9563echo "${ECHO_T}no" >&6
2429c060
PB
9564 fi
9565 done
9566fi
9567
9568if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9569 for ncn_progname in ld; do
9570 if test -n "$ncn_target_tool_prefix"; then
9571 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9572set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9573echo "$as_me:$LINENO: checking for $ac_word" >&5
9574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9575if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9577else
9578 if test -n "$LD_FOR_TARGET"; then
9579 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9580else
c6b750e1
DJ
9581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9582for as_dir in $PATH
9583do
9584 IFS=$as_save_IFS
9585 test -z "$as_dir" && as_dir=.
9586 for ac_exec_ext in '' $ac_executable_extensions; do
9587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9588 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9590 break 2
9591 fi
9592done
9593done
9594
2429c060
PB
9595fi
9596fi
c6b750e1 9597LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9598if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9599 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9600echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9601else
c6b750e1
DJ
9602 echo "$as_me:$LINENO: result: no" >&5
9603echo "${ECHO_T}no" >&6
2429c060
PB
9604fi
9605
9606 fi
9607 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9608 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9609set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9610echo "$as_me:$LINENO: checking for $ac_word" >&5
9611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9612if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9614else
9615 if test -n "$LD_FOR_TARGET"; then
9616 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9617else
c6b750e1
DJ
9618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619for as_dir in $PATH
9620do
9621 IFS=$as_save_IFS
9622 test -z "$as_dir" && as_dir=.
9623 for ac_exec_ext in '' $ac_executable_extensions; do
9624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9625 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9627 break 2
9628 fi
9629done
9630done
9631
2429c060
PB
9632fi
9633fi
c6b750e1 9634LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9635if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9636 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9637echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9638else
c6b750e1
DJ
9639 echo "$as_me:$LINENO: result: no" >&5
9640echo "${ECHO_T}no" >&6
2429c060 9641fi
c6b750e1 9642
2429c060
PB
9643 fi
9644 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9645 done
9646fi
c6b750e1 9647
2429c060
PB
9648if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9649 set dummy ld
9650 if test $build = $target ; then
9651 LD_FOR_TARGET="$2"
9652 else
9653 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9654 fi
d3f5afc4
MS
9655else
9656 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9657fi
9658
3a35eeb3
PB
9659else
9660 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9661fi
9662
9663
9664
9665
9666if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9667 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9668 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9669echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9670 if test -x $with_build_time_tools/lipo; then
9671 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9672 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9673 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9674echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9675 else
c6b750e1
DJ
9676 echo "$as_me:$LINENO: result: no" >&5
9677echo "${ECHO_T}no" >&6
3a35eeb3 9678 fi
2429c060
PB
9679 elif test $build != $host && test $have_gcc_for_target = yes; then
9680 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9681 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9682 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9683 fi
9684fi
9a819804
AO
9685if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9686 # Extract the first word of "lipo", so it can be a program name with args.
9687set dummy lipo; ac_word=$2
9688echo "$as_me:$LINENO: checking for $ac_word" >&5
9689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9690if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9692else
9693 case $LIPO_FOR_TARGET in
9694 [\\/]* | ?:[\\/]*)
9695 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9696 ;;
9697 *)
9698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699for as_dir in $gcc_cv_tool_dirs
9700do
9701 IFS=$as_save_IFS
9702 test -z "$as_dir" && as_dir=.
9703 for ac_exec_ext in '' $ac_executable_extensions; do
9704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9705 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9707 break 2
9708 fi
9709done
9710done
9711
9712 ;;
9713esac
9714fi
9715LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9716
9717if test -n "$LIPO_FOR_TARGET"; then
9718 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9719echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9720else
9721 echo "$as_me:$LINENO: result: no" >&5
9722echo "${ECHO_T}no" >&6
9723fi
9724
9725fi
9726if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9727
9728
9729if test -n "$LIPO_FOR_TARGET"; then
9730 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9731elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9732 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9733fi
9734
9735if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9736 for ncn_progname in lipo; do
9737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9738set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9739echo "$as_me:$LINENO: checking for $ac_word" >&5
9740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9741if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9742 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9743else
9a819804
AO
9744 if test -n "$LIPO_FOR_TARGET"; then
9745 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9746else
9747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9748for as_dir in $PATH
c6b750e1
DJ
9749do
9750 IFS=$as_save_IFS
9751 test -z "$as_dir" && as_dir=.
9752 for ac_exec_ext in '' $ac_executable_extensions; do
9753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9754 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9756 break 2
9757 fi
9758done
9759done
9760
2429c060 9761fi
9a819804
AO
9762fi
9763LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9764if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9765 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9766echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9767else
c6b750e1
DJ
9768 echo "$as_me:$LINENO: result: no" >&5
9769echo "${ECHO_T}no" >&6
2429c060
PB
9770fi
9771
9a819804 9772 done
2429c060 9773fi
9a819804
AO
9774
9775if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9776 for ncn_progname in lipo; do
c6b750e1
DJ
9777 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9778echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9779 if test -x $with_build_time_tools/${ncn_progname}; then
9780 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9781 echo "$as_me:$LINENO: result: yes" >&5
9782echo "${ECHO_T}yes" >&6
2429c060
PB
9783 break
9784 else
c6b750e1
DJ
9785 echo "$as_me:$LINENO: result: no" >&5
9786echo "${ECHO_T}no" >&6
2429c060
PB
9787 fi
9788 done
9789fi
9790
9791if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9792 for ncn_progname in lipo; do
9793 if test -n "$ncn_target_tool_prefix"; then
9794 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9795set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9796echo "$as_me:$LINENO: checking for $ac_word" >&5
9797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9798if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9800else
9801 if test -n "$LIPO_FOR_TARGET"; then
9802 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9803else
c6b750e1
DJ
9804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805for as_dir in $PATH
9806do
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9811 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 break 2
9814 fi
9815done
9816done
9817
2429c060
PB
9818fi
9819fi
c6b750e1 9820LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9821if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9822 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9823echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9824else
c6b750e1
DJ
9825 echo "$as_me:$LINENO: result: no" >&5
9826echo "${ECHO_T}no" >&6
2429c060
PB
9827fi
9828
9829 fi
9830 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9832set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9833echo "$as_me:$LINENO: checking for $ac_word" >&5
9834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9835if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9837else
9838 if test -n "$LIPO_FOR_TARGET"; then
9839 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9840else
c6b750e1
DJ
9841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9842for as_dir in $PATH
9843do
9844 IFS=$as_save_IFS
9845 test -z "$as_dir" && as_dir=.
9846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9848 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9850 break 2
9851 fi
9852done
9853done
9854
2429c060
PB
9855fi
9856fi
c6b750e1 9857LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9858if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9859 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9860echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9861else
c6b750e1
DJ
9862 echo "$as_me:$LINENO: result: no" >&5
9863echo "${ECHO_T}no" >&6
2429c060 9864fi
c6b750e1 9865
2429c060
PB
9866 fi
9867 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9868 done
9869fi
c6b750e1 9870
2429c060
PB
9871if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9872 set dummy lipo
9873 if test $build = $target ; then
9874 LIPO_FOR_TARGET="$2"
9875 else
9876 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9877 fi
d3f5afc4
MS
9878else
9879 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9880fi
9881
3a35eeb3
PB
9882else
9883 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9884fi
9885
9886
9887
9888
9889if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9890 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9891 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9892echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9893 if test -x $with_build_time_tools/nm; then
9894 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9895 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9896 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9897echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9898 else
c6b750e1
DJ
9899 echo "$as_me:$LINENO: result: no" >&5
9900echo "${ECHO_T}no" >&6
3a35eeb3 9901 fi
2429c060
PB
9902 elif test $build != $host && test $have_gcc_for_target = yes; then
9903 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
9904 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9905 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
9906 fi
9907fi
c6b750e1 9908if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9909 # Extract the first word of "nm", so it can be a program name with args.
9910set dummy nm; ac_word=$2
c6b750e1
DJ
9911echo "$as_me:$LINENO: checking for $ac_word" >&5
9912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9913if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9915else
c6b750e1
DJ
9916 case $NM_FOR_TARGET in
9917 [\\/]* | ?:[\\/]*)
2429c060
PB
9918 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9919 ;;
2429c060 9920 *)
c6b750e1
DJ
9921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922for as_dir in $gcc_cv_tool_dirs
9923do
9924 IFS=$as_save_IFS
9925 test -z "$as_dir" && as_dir=.
9926 for ac_exec_ext in '' $ac_executable_extensions; do
9927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9928 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9930 break 2
9931 fi
9932done
9933done
9934
2429c060
PB
9935 ;;
9936esac
9937fi
c6b750e1
DJ
9938NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9939
2429c060 9940if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9941 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9942echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9943else
c6b750e1
DJ
9944 echo "$as_me:$LINENO: result: no" >&5
9945echo "${ECHO_T}no" >&6
2429c060
PB
9946fi
9947
9948fi
9949if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9950
9951
9952if test -n "$NM_FOR_TARGET"; then
9953 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9954elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9955 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9956fi
9957
9958if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9959 for ncn_progname in nm; do
9960 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9961set dummy ${ncn_progname}; ac_word=$2
9962echo "$as_me:$LINENO: checking for $ac_word" >&5
9963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9964if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9966else
9967 if test -n "$NM_FOR_TARGET"; then
9968 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9969else
9970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9971for as_dir in $PATH
9972do
9973 IFS=$as_save_IFS
9974 test -z "$as_dir" && as_dir=.
9975 for ac_exec_ext in '' $ac_executable_extensions; do
9976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9977 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9979 break 2
9980 fi
9981done
9982done
9983
9984fi
9985fi
9986NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9987if test -n "$NM_FOR_TARGET"; then
9988 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9989echo "${ECHO_T}$NM_FOR_TARGET" >&6
9990else
9991 echo "$as_me:$LINENO: result: no" >&5
9992echo "${ECHO_T}no" >&6
9993fi
9994
9995 done
9996fi
9997
9998if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9999 for ncn_progname in nm; do
c6b750e1
DJ
10000 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10001echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10002 if test -x $with_build_time_tools/${ncn_progname}; then
10003 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10004 echo "$as_me:$LINENO: result: yes" >&5
10005echo "${ECHO_T}yes" >&6
2429c060
PB
10006 break
10007 else
c6b750e1
DJ
10008 echo "$as_me:$LINENO: result: no" >&5
10009echo "${ECHO_T}no" >&6
2429c060
PB
10010 fi
10011 done
10012fi
10013
10014if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10015 for ncn_progname in nm; do
10016 if test -n "$ncn_target_tool_prefix"; then
10017 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10018set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10019echo "$as_me:$LINENO: checking for $ac_word" >&5
10020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10021if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10023else
55db4b87
PB
10024 if test -n "$NM_FOR_TARGET"; then
10025 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10026else
c6b750e1
DJ
10027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028for as_dir in $PATH
10029do
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
10032 for ac_exec_ext in '' $ac_executable_extensions; do
10033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10034 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10036 break 2
10037 fi
10038done
10039done
10040
859789af
AC
10041fi
10042fi
c6b750e1 10043NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10044if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10045 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10046echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10047else
c6b750e1
DJ
10048 echo "$as_me:$LINENO: result: no" >&5
10049echo "${ECHO_T}no" >&6
859789af
AC
10050fi
10051
2429c060
PB
10052 fi
10053 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10055set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10056echo "$as_me:$LINENO: checking for $ac_word" >&5
10057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10058if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10060else
05cbd757
PB
10061 if test -n "$NM_FOR_TARGET"; then
10062 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10063else
c6b750e1
DJ
10064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065for as_dir in $PATH
10066do
10067 IFS=$as_save_IFS
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10071 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 break 2
10074 fi
10075done
10076done
10077
859789af
AC
10078fi
10079fi
c6b750e1 10080NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10081if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10082 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10083echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10084else
c6b750e1
DJ
10085 echo "$as_me:$LINENO: result: no" >&5
10086echo "${ECHO_T}no" >&6
859789af 10087fi
c6b750e1 10088
2429c060
PB
10089 fi
10090 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10091 done
10092fi
c6b750e1 10093
05cbd757
PB
10094if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10095 set dummy nm
10096 if test $build = $target ; then
10097 NM_FOR_TARGET="$2"
859789af 10098 else
05cbd757 10099 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10100 fi
d3f5afc4
MS
10101else
10102 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10103fi
10104
3a35eeb3
PB
10105else
10106 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10107fi
10108
10109
10110
10111
10112if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10113 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10114 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10115echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10116 if test -x $with_build_time_tools/objdump; then
10117 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10118 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10119 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10120echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10121 else
c6b750e1
DJ
10122 echo "$as_me:$LINENO: result: no" >&5
10123echo "${ECHO_T}no" >&6
3a35eeb3 10124 fi
2429c060
PB
10125 elif test $build != $host && test $have_gcc_for_target = yes; then
10126 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10127 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10128 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10129 fi
10130fi
c6b750e1 10131if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10132 # Extract the first word of "objdump", so it can be a program name with args.
10133set dummy objdump; ac_word=$2
c6b750e1
DJ
10134echo "$as_me:$LINENO: checking for $ac_word" >&5
10135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10136if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10138else
c6b750e1
DJ
10139 case $OBJDUMP_FOR_TARGET in
10140 [\\/]* | ?:[\\/]*)
2429c060
PB
10141 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10142 ;;
2429c060 10143 *)
c6b750e1
DJ
10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145for as_dir in $gcc_cv_tool_dirs
10146do
10147 IFS=$as_save_IFS
10148 test -z "$as_dir" && as_dir=.
10149 for ac_exec_ext in '' $ac_executable_extensions; do
10150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10151 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10153 break 2
10154 fi
10155done
10156done
10157
2429c060
PB
10158 ;;
10159esac
10160fi
c6b750e1
DJ
10161OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10162
2429c060 10163if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10164 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10165echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10166else
c6b750e1
DJ
10167 echo "$as_me:$LINENO: result: no" >&5
10168echo "${ECHO_T}no" >&6
2429c060
PB
10169fi
10170
10171fi
10172if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10173
10174
10175if test -n "$OBJDUMP_FOR_TARGET"; then
10176 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10177elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10178 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10179fi
10180
10181if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10182 for ncn_progname in objdump; do
10183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10184set dummy ${ncn_progname}; ac_word=$2
10185echo "$as_me:$LINENO: checking for $ac_word" >&5
10186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10187if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10189else
10190 if test -n "$OBJDUMP_FOR_TARGET"; then
10191 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10192else
10193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194for as_dir in $PATH
10195do
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10202 break 2
10203 fi
10204done
10205done
10206
10207fi
10208fi
10209OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10210if test -n "$OBJDUMP_FOR_TARGET"; then
10211 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10212echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10213else
10214 echo "$as_me:$LINENO: result: no" >&5
10215echo "${ECHO_T}no" >&6
10216fi
10217
10218 done
10219fi
10220
10221if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10222 for ncn_progname in objdump; do
c6b750e1
DJ
10223 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10224echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10225 if test -x $with_build_time_tools/${ncn_progname}; then
10226 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10227 echo "$as_me:$LINENO: result: yes" >&5
10228echo "${ECHO_T}yes" >&6
2429c060
PB
10229 break
10230 else
c6b750e1
DJ
10231 echo "$as_me:$LINENO: result: no" >&5
10232echo "${ECHO_T}no" >&6
2429c060
PB
10233 fi
10234 done
10235fi
10236
10237if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10238 for ncn_progname in objdump; do
10239 if test -n "$ncn_target_tool_prefix"; then
10240 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10241set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10242echo "$as_me:$LINENO: checking for $ac_word" >&5
10243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10244if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10246else
10247 if test -n "$OBJDUMP_FOR_TARGET"; then
10248 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10249else
c6b750e1
DJ
10250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251for as_dir in $PATH
10252do
10253 IFS=$as_save_IFS
10254 test -z "$as_dir" && as_dir=.
10255 for ac_exec_ext in '' $ac_executable_extensions; do
10256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10257 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10259 break 2
10260 fi
10261done
10262done
10263
5ae72758
DJ
10264fi
10265fi
c6b750e1 10266OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10267if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10268 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10269echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10270else
c6b750e1
DJ
10271 echo "$as_me:$LINENO: result: no" >&5
10272echo "${ECHO_T}no" >&6
5ae72758
DJ
10273fi
10274
2429c060
PB
10275 fi
10276 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10278set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10279echo "$as_me:$LINENO: checking for $ac_word" >&5
10280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10281if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10283else
10284 if test -n "$OBJDUMP_FOR_TARGET"; then
10285 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10286else
c6b750e1
DJ
10287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288for as_dir in $PATH
10289do
10290 IFS=$as_save_IFS
10291 test -z "$as_dir" && as_dir=.
10292 for ac_exec_ext in '' $ac_executable_extensions; do
10293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10294 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10296 break 2
10297 fi
10298done
10299done
10300
5ae72758
DJ
10301fi
10302fi
c6b750e1 10303OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10304if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10305 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10306echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10307else
c6b750e1
DJ
10308 echo "$as_me:$LINENO: result: no" >&5
10309echo "${ECHO_T}no" >&6
5ae72758 10310fi
c6b750e1 10311
2429c060
PB
10312 fi
10313 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10314 done
10315fi
c6b750e1 10316
5ae72758
DJ
10317if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10318 set dummy objdump
10319 if test $build = $target ; then
10320 OBJDUMP_FOR_TARGET="$2"
10321 else
10322 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10323 fi
d3f5afc4
MS
10324else
10325 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10326fi
10327
3a35eeb3
PB
10328else
10329 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10330fi
10331
10332
10333
10334
10335if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10336 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10337 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10338echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10339 if test -x $with_build_time_tools/ranlib; then
10340 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10341 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10342 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10343echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10344 else
c6b750e1
DJ
10345 echo "$as_me:$LINENO: result: no" >&5
10346echo "${ECHO_T}no" >&6
3a35eeb3 10347 fi
2429c060
PB
10348 elif test $build != $host && test $have_gcc_for_target = yes; then
10349 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10350 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10351 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10352 fi
10353fi
c6b750e1 10354if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10355 # Extract the first word of "ranlib", so it can be a program name with args.
10356set dummy ranlib; ac_word=$2
c6b750e1
DJ
10357echo "$as_me:$LINENO: checking for $ac_word" >&5
10358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10359if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10361else
c6b750e1
DJ
10362 case $RANLIB_FOR_TARGET in
10363 [\\/]* | ?:[\\/]*)
2429c060
PB
10364 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10365 ;;
2429c060 10366 *)
c6b750e1
DJ
10367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368for as_dir in $gcc_cv_tool_dirs
10369do
10370 IFS=$as_save_IFS
10371 test -z "$as_dir" && as_dir=.
10372 for ac_exec_ext in '' $ac_executable_extensions; do
10373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10374 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10376 break 2
10377 fi
10378done
10379done
10380
2429c060
PB
10381 ;;
10382esac
10383fi
c6b750e1
DJ
10384RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10385
2429c060 10386if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10387 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10388echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10389else
c6b750e1
DJ
10390 echo "$as_me:$LINENO: result: no" >&5
10391echo "${ECHO_T}no" >&6
2429c060
PB
10392fi
10393
10394fi
10395if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10396
10397
10398if test -n "$RANLIB_FOR_TARGET"; then
10399 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10400elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10401 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10402fi
10403
10404if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10405 for ncn_progname in ranlib; do
10406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10407set dummy ${ncn_progname}; ac_word=$2
10408echo "$as_me:$LINENO: checking for $ac_word" >&5
10409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10410if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10412else
10413 if test -n "$RANLIB_FOR_TARGET"; then
10414 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10415else
10416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10417for as_dir in $PATH
10418do
10419 IFS=$as_save_IFS
10420 test -z "$as_dir" && as_dir=.
10421 for ac_exec_ext in '' $ac_executable_extensions; do
10422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10423 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10425 break 2
10426 fi
10427done
10428done
10429
10430fi
10431fi
10432RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10433if test -n "$RANLIB_FOR_TARGET"; then
10434 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10435echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10436else
10437 echo "$as_me:$LINENO: result: no" >&5
10438echo "${ECHO_T}no" >&6
10439fi
10440
10441 done
10442fi
10443
10444if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10445 for ncn_progname in ranlib; do
c6b750e1
DJ
10446 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10447echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10448 if test -x $with_build_time_tools/${ncn_progname}; then
10449 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10450 echo "$as_me:$LINENO: result: yes" >&5
10451echo "${ECHO_T}yes" >&6
2429c060
PB
10452 break
10453 else
c6b750e1
DJ
10454 echo "$as_me:$LINENO: result: no" >&5
10455echo "${ECHO_T}no" >&6
2429c060
PB
10456 fi
10457 done
10458fi
10459
10460if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10461 for ncn_progname in ranlib; do
10462 if test -n "$ncn_target_tool_prefix"; then
10463 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10464set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10465echo "$as_me:$LINENO: checking for $ac_word" >&5
10466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10467if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10469else
55db4b87
PB
10470 if test -n "$RANLIB_FOR_TARGET"; then
10471 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10472else
c6b750e1
DJ
10473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474for as_dir in $PATH
10475do
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10480 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10482 break 2
10483 fi
10484done
10485done
10486
859789af
AC
10487fi
10488fi
c6b750e1 10489RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10490if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10491 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10492echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10493else
c6b750e1
DJ
10494 echo "$as_me:$LINENO: result: no" >&5
10495echo "${ECHO_T}no" >&6
859789af
AC
10496fi
10497
2429c060
PB
10498 fi
10499 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10501set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10502echo "$as_me:$LINENO: checking for $ac_word" >&5
10503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10504if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10506else
05cbd757
PB
10507 if test -n "$RANLIB_FOR_TARGET"; then
10508 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10509else
c6b750e1
DJ
10510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511for as_dir in $PATH
10512do
10513 IFS=$as_save_IFS
10514 test -z "$as_dir" && as_dir=.
10515 for ac_exec_ext in '' $ac_executable_extensions; do
10516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10517 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10519 break 2
10520 fi
10521done
10522done
10523
859789af
AC
10524fi
10525fi
c6b750e1 10526RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10527if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10528 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10529echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10530else
c6b750e1
DJ
10531 echo "$as_me:$LINENO: result: no" >&5
10532echo "${ECHO_T}no" >&6
859789af 10533fi
c6b750e1 10534
2429c060
PB
10535 fi
10536 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10537 done
10538fi
c6b750e1 10539
2429c060
PB
10540if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10541 set dummy ranlib
10542 if test $build = $target ; then
10543 RANLIB_FOR_TARGET="$2"
10544 else
10545 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10546 fi
d3f5afc4
MS
10547else
10548 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10549fi
05cbd757 10550
3a35eeb3
PB
10551else
10552 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10553fi
10554
2429c060
PB
10555
10556
10557
10558if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10559 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10560 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10561echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10562 if test -x $with_build_time_tools/strip; then
10563 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10564 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10565 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10566echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10567 else
c6b750e1
DJ
10568 echo "$as_me:$LINENO: result: no" >&5
10569echo "${ECHO_T}no" >&6
3a35eeb3 10570 fi
2429c060
PB
10571 elif test $build != $host && test $have_gcc_for_target = yes; then
10572 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10573 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10574 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10575 fi
10576fi
c6b750e1 10577if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10578 # Extract the first word of "strip", so it can be a program name with args.
10579set dummy strip; ac_word=$2
c6b750e1
DJ
10580echo "$as_me:$LINENO: checking for $ac_word" >&5
10581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10582if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10584else
c6b750e1
DJ
10585 case $STRIP_FOR_TARGET in
10586 [\\/]* | ?:[\\/]*)
2429c060
PB
10587 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10588 ;;
2429c060 10589 *)
c6b750e1
DJ
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591for as_dir in $gcc_cv_tool_dirs
10592do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10597 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 break 2
10600 fi
10601done
10602done
10603
2429c060
PB
10604 ;;
10605esac
10606fi
c6b750e1
DJ
10607STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10608
2429c060 10609if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10610 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10611echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10612else
c6b750e1
DJ
10613 echo "$as_me:$LINENO: result: no" >&5
10614echo "${ECHO_T}no" >&6
2429c060
PB
10615fi
10616
10617fi
10618if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10619
10620
10621if test -n "$STRIP_FOR_TARGET"; then
10622 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10623elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10624 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10625fi
10626
10627if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10628 for ncn_progname in strip; do
10629 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10630set dummy ${ncn_progname}; ac_word=$2
10631echo "$as_me:$LINENO: checking for $ac_word" >&5
10632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10633if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10635else
10636 if test -n "$STRIP_FOR_TARGET"; then
10637 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10638else
10639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640for as_dir in $PATH
10641do
10642 IFS=$as_save_IFS
10643 test -z "$as_dir" && as_dir=.
10644 for ac_exec_ext in '' $ac_executable_extensions; do
10645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10646 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10648 break 2
10649 fi
10650done
10651done
10652
10653fi
10654fi
10655STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10656if test -n "$STRIP_FOR_TARGET"; then
10657 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10658echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10659else
10660 echo "$as_me:$LINENO: result: no" >&5
10661echo "${ECHO_T}no" >&6
10662fi
10663
10664 done
10665fi
10666
10667if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10668 for ncn_progname in strip; do
c6b750e1
DJ
10669 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10670echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10671 if test -x $with_build_time_tools/${ncn_progname}; then
10672 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10673 echo "$as_me:$LINENO: result: yes" >&5
10674echo "${ECHO_T}yes" >&6
2429c060
PB
10675 break
10676 else
c6b750e1
DJ
10677 echo "$as_me:$LINENO: result: no" >&5
10678echo "${ECHO_T}no" >&6
2429c060
PB
10679 fi
10680 done
10681fi
10682
10683if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10684 for ncn_progname in strip; do
10685 if test -n "$ncn_target_tool_prefix"; then
10686 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10687set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10688echo "$as_me:$LINENO: checking for $ac_word" >&5
10689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10690if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10692else
10693 if test -n "$STRIP_FOR_TARGET"; then
10694 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10695else
10696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697for as_dir in $PATH
10698do
10699 IFS=$as_save_IFS
10700 test -z "$as_dir" && as_dir=.
10701 for ac_exec_ext in '' $ac_executable_extensions; do
10702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10703 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10705 break 2
10706 fi
10707done
10708done
10709
7e0f7140
GK
10710fi
10711fi
c6b750e1 10712STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10713if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10714 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10715echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10716else
c6b750e1
DJ
10717 echo "$as_me:$LINENO: result: no" >&5
10718echo "${ECHO_T}no" >&6
7e0f7140
GK
10719fi
10720
2429c060
PB
10721 fi
10722 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10724set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10725echo "$as_me:$LINENO: checking for $ac_word" >&5
10726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10727if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10729else
10730 if test -n "$STRIP_FOR_TARGET"; then
10731 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10732else
c6b750e1
DJ
10733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10734for as_dir in $PATH
10735do
10736 IFS=$as_save_IFS
10737 test -z "$as_dir" && as_dir=.
10738 for ac_exec_ext in '' $ac_executable_extensions; do
10739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10740 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10742 break 2
10743 fi
10744done
10745done
10746
7e0f7140
GK
10747fi
10748fi
c6b750e1 10749STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10750if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10751 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10752echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10753else
c6b750e1
DJ
10754 echo "$as_me:$LINENO: result: no" >&5
10755echo "${ECHO_T}no" >&6
7e0f7140 10756fi
c6b750e1 10757
2429c060
PB
10758 fi
10759 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10760 done
10761fi
c6b750e1 10762
7e0f7140
GK
10763if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10764 set dummy strip
10765 if test $build = $target ; then
10766 STRIP_FOR_TARGET="$2"
10767 else
10768 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10769 fi
d3f5afc4
MS
10770else
10771 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10772fi
10773
3a35eeb3
PB
10774else
10775 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10776fi
10777
10778
10779
10780
10781if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10782 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10783 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10784echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10785 if test -x $with_build_time_tools/windres; then
10786 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10787 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10788 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10789echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10790 else
c6b750e1
DJ
10791 echo "$as_me:$LINENO: result: no" >&5
10792echo "${ECHO_T}no" >&6
3a35eeb3 10793 fi
2429c060
PB
10794 elif test $build != $host && test $have_gcc_for_target = yes; then
10795 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10796 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10797 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10798 fi
10799fi
c6b750e1 10800if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10801 # Extract the first word of "windres", so it can be a program name with args.
10802set dummy windres; ac_word=$2
c6b750e1
DJ
10803echo "$as_me:$LINENO: checking for $ac_word" >&5
10804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10805if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10807else
c6b750e1
DJ
10808 case $WINDRES_FOR_TARGET in
10809 [\\/]* | ?:[\\/]*)
2429c060
PB
10810 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10811 ;;
2429c060 10812 *)
c6b750e1
DJ
10813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10814for as_dir in $gcc_cv_tool_dirs
10815do
10816 IFS=$as_save_IFS
10817 test -z "$as_dir" && as_dir=.
10818 for ac_exec_ext in '' $ac_executable_extensions; do
10819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10820 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10822 break 2
10823 fi
10824done
10825done
10826
2429c060
PB
10827 ;;
10828esac
10829fi
c6b750e1
DJ
10830WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10831
2429c060 10832if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10833 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10834echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10835else
c6b750e1
DJ
10836 echo "$as_me:$LINENO: result: no" >&5
10837echo "${ECHO_T}no" >&6
2429c060
PB
10838fi
10839
10840fi
10841if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10842
10843
10844if test -n "$WINDRES_FOR_TARGET"; then
10845 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10846elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10847 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10848fi
10849
10850if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10851 for ncn_progname in windres; do
10852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10853set dummy ${ncn_progname}; ac_word=$2
10854echo "$as_me:$LINENO: checking for $ac_word" >&5
10855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10856if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10858else
10859 if test -n "$WINDRES_FOR_TARGET"; then
10860 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10861else
10862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863for as_dir in $PATH
10864do
10865 IFS=$as_save_IFS
10866 test -z "$as_dir" && as_dir=.
10867 for ac_exec_ext in '' $ac_executable_extensions; do
10868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10869 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10871 break 2
10872 fi
10873done
10874done
10875
10876fi
10877fi
10878WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10879if test -n "$WINDRES_FOR_TARGET"; then
10880 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10881echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10882else
10883 echo "$as_me:$LINENO: result: no" >&5
10884echo "${ECHO_T}no" >&6
10885fi
10886
10887 done
10888fi
10889
10890if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10891 for ncn_progname in windres; do
c6b750e1
DJ
10892 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10893echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10894 if test -x $with_build_time_tools/${ncn_progname}; then
10895 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10896 echo "$as_me:$LINENO: result: yes" >&5
10897echo "${ECHO_T}yes" >&6
2429c060
PB
10898 break
10899 else
c6b750e1
DJ
10900 echo "$as_me:$LINENO: result: no" >&5
10901echo "${ECHO_T}no" >&6
2429c060
PB
10902 fi
10903 done
10904fi
10905
10906if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10907 for ncn_progname in windres; do
10908 if test -n "$ncn_target_tool_prefix"; then
10909 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10910set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10911echo "$as_me:$LINENO: checking for $ac_word" >&5
10912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10913if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10915else
55db4b87
PB
10916 if test -n "$WINDRES_FOR_TARGET"; then
10917 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10918else
c6b750e1
DJ
10919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10920for as_dir in $PATH
10921do
10922 IFS=$as_save_IFS
10923 test -z "$as_dir" && as_dir=.
10924 for ac_exec_ext in '' $ac_executable_extensions; do
10925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10926 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10928 break 2
10929 fi
10930done
10931done
10932
859789af
AC
10933fi
10934fi
c6b750e1 10935WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10936if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10937 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10938echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10939else
c6b750e1
DJ
10940 echo "$as_me:$LINENO: result: no" >&5
10941echo "${ECHO_T}no" >&6
859789af
AC
10942fi
10943
2429c060
PB
10944 fi
10945 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10947set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10948echo "$as_me:$LINENO: checking for $ac_word" >&5
10949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10950if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10952else
05cbd757
PB
10953 if test -n "$WINDRES_FOR_TARGET"; then
10954 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10955else
c6b750e1
DJ
10956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10957for as_dir in $PATH
10958do
10959 IFS=$as_save_IFS
10960 test -z "$as_dir" && as_dir=.
10961 for ac_exec_ext in '' $ac_executable_extensions; do
10962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10963 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10965 break 2
10966 fi
10967done
10968done
10969
859789af
AC
10970fi
10971fi
c6b750e1 10972WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 10973if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10974 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10975echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10976else
c6b750e1
DJ
10977 echo "$as_me:$LINENO: result: no" >&5
10978echo "${ECHO_T}no" >&6
859789af 10979fi
c6b750e1 10980
2429c060
PB
10981 fi
10982 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10983 done
10984fi
c6b750e1 10985
05cbd757
PB
10986if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10987 set dummy windres
10988 if test $build = $target ; then
10989 WINDRES_FOR_TARGET="$2"
859789af 10990 else
05cbd757 10991 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10992 fi
d3f5afc4
MS
10993else
10994 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
10995fi
10996
3a35eeb3
PB
10997else
10998 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
10999fi
11000
852e5f18 11001
0c24b341
NC
11002
11003
11004if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11005 if test -n "$with_build_time_tools"; then
11006 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11007echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11008 if test -x $with_build_time_tools/windmc; then
11009 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11010 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11011 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11012echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11013 else
11014 echo "$as_me:$LINENO: result: no" >&5
11015echo "${ECHO_T}no" >&6
11016 fi
11017 elif test $build != $host && test $have_gcc_for_target = yes; then
11018 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11019 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11020 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11021 fi
11022fi
11023if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11024 # Extract the first word of "windmc", so it can be a program name with args.
11025set dummy windmc; ac_word=$2
11026echo "$as_me:$LINENO: checking for $ac_word" >&5
11027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11028if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11030else
11031 case $WINDMC_FOR_TARGET in
11032 [\\/]* | ?:[\\/]*)
11033 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11034 ;;
11035 *)
11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037for as_dir in $gcc_cv_tool_dirs
11038do
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
11042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11043 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11045 break 2
11046 fi
11047done
11048done
11049
11050 ;;
11051esac
11052fi
11053WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11054
11055if test -n "$WINDMC_FOR_TARGET"; then
11056 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11057echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11058else
11059 echo "$as_me:$LINENO: result: no" >&5
11060echo "${ECHO_T}no" >&6
11061fi
11062
11063fi
11064if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11065
11066
11067if test -n "$WINDMC_FOR_TARGET"; then
11068 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11069elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11070 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11071fi
11072
11073if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11074 for ncn_progname in windmc; do
11075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11076set dummy ${ncn_progname}; ac_word=$2
11077echo "$as_me:$LINENO: checking for $ac_word" >&5
11078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11079if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
11081else
11082 if test -n "$WINDMC_FOR_TARGET"; then
11083 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11084else
11085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086for as_dir in $PATH
11087do
11088 IFS=$as_save_IFS
11089 test -z "$as_dir" && as_dir=.
11090 for ac_exec_ext in '' $ac_executable_extensions; do
11091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11092 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11094 break 2
11095 fi
11096done
11097done
11098
11099fi
11100fi
11101WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11102if test -n "$WINDMC_FOR_TARGET"; then
11103 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11104echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11105else
11106 echo "$as_me:$LINENO: result: no" >&5
11107echo "${ECHO_T}no" >&6
11108fi
11109
11110 done
11111fi
11112
11113if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11114 for ncn_progname in windmc; do
11115 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11116echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11117 if test -x $with_build_time_tools/${ncn_progname}; then
11118 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11119 echo "$as_me:$LINENO: result: yes" >&5
11120echo "${ECHO_T}yes" >&6
11121 break
11122 else
11123 echo "$as_me:$LINENO: result: no" >&5
11124echo "${ECHO_T}no" >&6
11125 fi
11126 done
11127fi
11128
11129if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11130 for ncn_progname in windmc; do
11131 if test -n "$ncn_target_tool_prefix"; then
11132 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11133set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11134echo "$as_me:$LINENO: checking for $ac_word" >&5
11135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11136if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138else
11139 if test -n "$WINDMC_FOR_TARGET"; then
11140 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11141else
11142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11143for as_dir in $PATH
11144do
11145 IFS=$as_save_IFS
11146 test -z "$as_dir" && as_dir=.
11147 for ac_exec_ext in '' $ac_executable_extensions; do
11148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11149 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11151 break 2
11152 fi
11153done
11154done
11155
11156fi
11157fi
11158WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11159if test -n "$WINDMC_FOR_TARGET"; then
11160 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11161echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11162else
11163 echo "$as_me:$LINENO: result: no" >&5
11164echo "${ECHO_T}no" >&6
11165fi
11166
11167 fi
11168 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11170set dummy ${ncn_progname}; ac_word=$2
11171echo "$as_me:$LINENO: checking for $ac_word" >&5
11172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11173if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11175else
11176 if test -n "$WINDMC_FOR_TARGET"; then
11177 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11178else
11179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11180for as_dir in $PATH
11181do
11182 IFS=$as_save_IFS
11183 test -z "$as_dir" && as_dir=.
11184 for ac_exec_ext in '' $ac_executable_extensions; do
11185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11186 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11188 break 2
11189 fi
11190done
11191done
11192
11193fi
11194fi
11195WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11196if test -n "$WINDMC_FOR_TARGET"; then
11197 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11198echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11199else
11200 echo "$as_me:$LINENO: result: no" >&5
11201echo "${ECHO_T}no" >&6
11202fi
11203
11204 fi
11205 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11206 done
11207fi
11208
11209if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11210 set dummy windmc
11211 if test $build = $target ; then
11212 WINDMC_FOR_TARGET="$2"
11213 else
11214 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11215 fi
11216else
11217 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11218fi
11219
11220else
11221 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11222fi
11223
11224
be01d343
PB
11225RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11226
c6b750e1
DJ
11227echo "$as_me:$LINENO: checking where to find the target ar" >&5
11228echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11229if test "x${build}" != "x${host}" ; then
2429c060
PB
11230 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11231 # We already found the complete path
b8025f34
AS
11232 ac_dir=`dirname $AR_FOR_TARGET`
11233 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11234echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11235 else
11236 # Canadian cross, just use what we found
c6b750e1
DJ
11237 echo "$as_me:$LINENO: result: pre-installed" >&5
11238echo "${ECHO_T}pre-installed" >&6
2429c060 11239 fi
be01d343
PB
11240else
11241 ok=yes
11242 case " ${configdirs} " in
11243 *" binutils "*) ;;
11244 *) ok=no ;;
11245 esac
c6b750e1 11246
be01d343
PB
11247 if test $ok = yes; then
11248 # An in-tree tool is available and we can use it
11249 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11250 echo "$as_me:$LINENO: result: just compiled" >&5
11251echo "${ECHO_T}just compiled" >&6
2429c060
PB
11252 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11253 # We already found the complete path
b8025f34
AS
11254 ac_dir=`dirname $AR_FOR_TARGET`
11255 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11256echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11257 elif test "x$target" = "x$host"; then
11258 # We can use an host tool
11259 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11260 echo "$as_me:$LINENO: result: host tool" >&5
11261echo "${ECHO_T}host tool" >&6
be01d343
PB
11262 else
11263 # We need a cross tool
c6b750e1
DJ
11264 echo "$as_me:$LINENO: result: pre-installed" >&5
11265echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11266 fi
11267fi
4b900473 11268
c6b750e1
DJ
11269echo "$as_me:$LINENO: checking where to find the target as" >&5
11270echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11271if test "x${build}" != "x${host}" ; then
2429c060
PB
11272 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11273 # We already found the complete path
b8025f34
AS
11274 ac_dir=`dirname $AS_FOR_TARGET`
11275 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11276echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11277 else
11278 # Canadian cross, just use what we found
c6b750e1
DJ
11279 echo "$as_me:$LINENO: result: pre-installed" >&5
11280echo "${ECHO_T}pre-installed" >&6
2429c060 11281 fi
be01d343
PB
11282else
11283 ok=yes
11284 case " ${configdirs} " in
11285 *" gas "*) ;;
11286 *) ok=no ;;
11287 esac
c6b750e1 11288
be01d343
PB
11289 if test $ok = yes; then
11290 # An in-tree tool is available and we can use it
11291 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11292 echo "$as_me:$LINENO: result: just compiled" >&5
11293echo "${ECHO_T}just compiled" >&6
2429c060
PB
11294 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11295 # We already found the complete path
b8025f34
AS
11296 ac_dir=`dirname $AS_FOR_TARGET`
11297 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11298echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11299 elif test "x$target" = "x$host"; then
11300 # We can use an host tool
11301 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11302 echo "$as_me:$LINENO: result: host tool" >&5
11303echo "${ECHO_T}host tool" >&6
be01d343
PB
11304 else
11305 # We need a cross tool
c6b750e1
DJ
11306 echo "$as_me:$LINENO: result: pre-installed" >&5
11307echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11308 fi
11309fi
4b900473 11310
c6b750e1
DJ
11311echo "$as_me:$LINENO: checking where to find the target cc" >&5
11312echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11313if test "x${build}" != "x${host}" ; then
2429c060
PB
11314 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11315 # We already found the complete path
b8025f34
AS
11316 ac_dir=`dirname $CC_FOR_TARGET`
11317 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11318echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11319 else
11320 # Canadian cross, just use what we found
c6b750e1
DJ
11321 echo "$as_me:$LINENO: result: pre-installed" >&5
11322echo "${ECHO_T}pre-installed" >&6
2429c060 11323 fi
be01d343
PB
11324else
11325 ok=yes
11326 case " ${configdirs} " in
11327 *" gcc "*) ;;
11328 *) ok=no ;;
11329 esac
c6b750e1 11330
be01d343
PB
11331 if test $ok = yes; then
11332 # An in-tree tool is available and we can use it
11333 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11334 echo "$as_me:$LINENO: result: just compiled" >&5
11335echo "${ECHO_T}just compiled" >&6
2429c060
PB
11336 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11337 # We already found the complete path
b8025f34
AS
11338 ac_dir=`dirname $CC_FOR_TARGET`
11339 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11340echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11341 elif test "x$target" = "x$host"; then
11342 # We can use an host tool
11343 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11344 echo "$as_me:$LINENO: result: host tool" >&5
11345echo "${ECHO_T}host tool" >&6
be01d343
PB
11346 else
11347 # We need a cross tool
c6b750e1
DJ
11348 echo "$as_me:$LINENO: result: pre-installed" >&5
11349echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11350 fi
11351fi
4b900473 11352
c6b750e1
DJ
11353echo "$as_me:$LINENO: checking where to find the target c++" >&5
11354echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11355if test "x${build}" != "x${host}" ; then
2429c060
PB
11356 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11357 # We already found the complete path
b8025f34
AS
11358 ac_dir=`dirname $CXX_FOR_TARGET`
11359 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11360echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11361 else
11362 # Canadian cross, just use what we found
c6b750e1
DJ
11363 echo "$as_me:$LINENO: result: pre-installed" >&5
11364echo "${ECHO_T}pre-installed" >&6
2429c060 11365 fi
be01d343
PB
11366else
11367 ok=yes
11368 case " ${configdirs} " in
11369 *" gcc "*) ;;
11370 *) ok=no ;;
11371 esac
11372 case ,${enable_languages}, in
11373 *,c++,*) ;;
11374 *) ok=no ;;
11375 esac
11376 if test $ok = yes; then
11377 # An in-tree tool is available and we can use it
11378 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
11379 echo "$as_me:$LINENO: result: just compiled" >&5
11380echo "${ECHO_T}just compiled" >&6
2429c060
PB
11381 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11382 # We already found the complete path
b8025f34
AS
11383 ac_dir=`dirname $CXX_FOR_TARGET`
11384 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11385echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11386 elif test "x$target" = "x$host"; then
11387 # We can use an host tool
11388 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11389 echo "$as_me:$LINENO: result: host tool" >&5
11390echo "${ECHO_T}host tool" >&6
be01d343
PB
11391 else
11392 # We need a cross tool
c6b750e1
DJ
11393 echo "$as_me:$LINENO: result: pre-installed" >&5
11394echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11395 fi
11396fi
4b900473 11397
c6b750e1
DJ
11398echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11399echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11400if test "x${build}" != "x${host}" ; then
2429c060
PB
11401 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11402 # We already found the complete path
b8025f34
AS
11403 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11404 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11405echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11406 else
11407 # Canadian cross, just use what we found
c6b750e1
DJ
11408 echo "$as_me:$LINENO: result: pre-installed" >&5
11409echo "${ECHO_T}pre-installed" >&6
2429c060 11410 fi
be01d343
PB
11411else
11412 ok=yes
11413 case " ${configdirs} " in
11414 *" gcc "*) ;;
11415 *) ok=no ;;
11416 esac
11417 case ,${enable_languages}, in
11418 *,c++,*) ;;
11419 *) ok=no ;;
11420 esac
11421 if test $ok = yes; then
11422 # An in-tree tool is available and we can use it
11423 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
11424 echo "$as_me:$LINENO: result: just compiled" >&5
11425echo "${ECHO_T}just compiled" >&6
2429c060
PB
11426 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11427 # We already found the complete path
b8025f34
AS
11428 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11429 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11430echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11431 elif test "x$target" = "x$host"; then
11432 # We can use an host tool
11433 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11434 echo "$as_me:$LINENO: result: host tool" >&5
11435echo "${ECHO_T}host tool" >&6
be01d343
PB
11436 else
11437 # We need a cross tool
c6b750e1
DJ
11438 echo "$as_me:$LINENO: result: pre-installed" >&5
11439echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11440 fi
11441fi
4b900473 11442
c6b750e1
DJ
11443echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11444echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11445if test "x${build}" != "x${host}" ; then
2429c060
PB
11446 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11447 # We already found the complete path
b8025f34
AS
11448 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11449 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11450echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11451 else
11452 # Canadian cross, just use what we found
c6b750e1
DJ
11453 echo "$as_me:$LINENO: result: pre-installed" >&5
11454echo "${ECHO_T}pre-installed" >&6
2429c060 11455 fi
be01d343
PB
11456else
11457 ok=yes
11458 case " ${configdirs} " in
11459 *" binutils "*) ;;
11460 *) ok=no ;;
11461 esac
c6b750e1 11462
be01d343
PB
11463 if test $ok = yes; then
11464 # An in-tree tool is available and we can use it
11465 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11466 echo "$as_me:$LINENO: result: just compiled" >&5
11467echo "${ECHO_T}just compiled" >&6
2429c060
PB
11468 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11469 # We already found the complete path
b8025f34
AS
11470 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11471 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11472echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11473 elif test "x$target" = "x$host"; then
11474 # We can use an host tool
11475 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11476 echo "$as_me:$LINENO: result: host tool" >&5
11477echo "${ECHO_T}host tool" >&6
be01d343
PB
11478 else
11479 # We need a cross tool
c6b750e1
DJ
11480 echo "$as_me:$LINENO: result: pre-installed" >&5
11481echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11482 fi
11483fi
4b900473 11484
c6b750e1
DJ
11485echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11486echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11487if test "x${build}" != "x${host}" ; then
2429c060
PB
11488 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11489 # We already found the complete path
b8025f34
AS
11490 ac_dir=`dirname $GCC_FOR_TARGET`
11491 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11492echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11493 else
11494 # Canadian cross, just use what we found
c6b750e1
DJ
11495 echo "$as_me:$LINENO: result: pre-installed" >&5
11496echo "${ECHO_T}pre-installed" >&6
2429c060 11497 fi
be01d343
PB
11498else
11499 ok=yes
11500 case " ${configdirs} " in
11501 *" gcc "*) ;;
11502 *) ok=no ;;
11503 esac
c6b750e1 11504
be01d343
PB
11505 if test $ok = yes; then
11506 # An in-tree tool is available and we can use it
11507 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11508 echo "$as_me:$LINENO: result: just compiled" >&5
11509echo "${ECHO_T}just compiled" >&6
2429c060
PB
11510 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11511 # We already found the complete path
b8025f34
AS
11512 ac_dir=`dirname $GCC_FOR_TARGET`
11513 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11514echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11515 elif test "x$target" = "x$host"; then
11516 # We can use an host tool
11517 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11518 echo "$as_me:$LINENO: result: host tool" >&5
11519echo "${ECHO_T}host tool" >&6
be01d343
PB
11520 else
11521 # We need a cross tool
c6b750e1
DJ
11522 echo "$as_me:$LINENO: result: pre-installed" >&5
11523echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11524 fi
11525fi
4b900473 11526
c6b750e1
DJ
11527echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11528echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11529if test "x${build}" != "x${host}" ; then
2429c060
PB
11530 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11531 # We already found the complete path
b8025f34
AS
11532 ac_dir=`dirname $GCJ_FOR_TARGET`
11533 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11534echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11535 else
11536 # Canadian cross, just use what we found
c6b750e1
DJ
11537 echo "$as_me:$LINENO: result: pre-installed" >&5
11538echo "${ECHO_T}pre-installed" >&6
2429c060 11539 fi
be01d343
PB
11540else
11541 ok=yes
11542 case " ${configdirs} " in
11543 *" gcc "*) ;;
11544 *) ok=no ;;
11545 esac
11546 case ,${enable_languages}, in
11547 *,java,*) ;;
11548 *) ok=no ;;
11549 esac
11550 if test $ok = yes; then
11551 # An in-tree tool is available and we can use it
11552 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11553 echo "$as_me:$LINENO: result: just compiled" >&5
11554echo "${ECHO_T}just compiled" >&6
2429c060
PB
11555 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11556 # We already found the complete path
b8025f34
AS
11557 ac_dir=`dirname $GCJ_FOR_TARGET`
11558 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11559echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11560 elif test "x$target" = "x$host"; then
11561 # We can use an host tool
11562 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11563 echo "$as_me:$LINENO: result: host tool" >&5
11564echo "${ECHO_T}host tool" >&6
be01d343
PB
11565 else
11566 # We need a cross tool
c6b750e1
DJ
11567 echo "$as_me:$LINENO: result: pre-installed" >&5
11568echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11569 fi
11570fi
4b900473 11571
c6b750e1
DJ
11572echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11573echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11574if test "x${build}" != "x${host}" ; then
2429c060
PB
11575 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11576 # We already found the complete path
b8025f34
AS
11577 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11578 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11579echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11580 else
11581 # Canadian cross, just use what we found
c6b750e1
DJ
11582 echo "$as_me:$LINENO: result: pre-installed" >&5
11583echo "${ECHO_T}pre-installed" >&6
2429c060 11584 fi
be01d343
PB
11585else
11586 ok=yes
11587 case " ${configdirs} " in
11588 *" gcc "*) ;;
11589 *) ok=no ;;
11590 esac
11591 case ,${enable_languages}, in
11592 *,fortran,*) ;;
11593 *) ok=no ;;
11594 esac
11595 if test $ok = yes; then
11596 # An in-tree tool is available and we can use it
11597 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11598 echo "$as_me:$LINENO: result: just compiled" >&5
11599echo "${ECHO_T}just compiled" >&6
2429c060
PB
11600 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11601 # We already found the complete path
b8025f34
AS
11602 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11603 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11604echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11605 elif test "x$target" = "x$host"; then
11606 # We can use an host tool
11607 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11608 echo "$as_me:$LINENO: result: host tool" >&5
11609echo "${ECHO_T}host tool" >&6
be01d343
PB
11610 else
11611 # We need a cross tool
c6b750e1
DJ
11612 echo "$as_me:$LINENO: result: pre-installed" >&5
11613echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11614 fi
11615fi
4b900473 11616
c6b750e1
DJ
11617echo "$as_me:$LINENO: checking where to find the target ld" >&5
11618echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11619if test "x${build}" != "x${host}" ; then
2429c060
PB
11620 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11621 # We already found the complete path
b8025f34
AS
11622 ac_dir=`dirname $LD_FOR_TARGET`
11623 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11624echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11625 else
11626 # Canadian cross, just use what we found
c6b750e1
DJ
11627 echo "$as_me:$LINENO: result: pre-installed" >&5
11628echo "${ECHO_T}pre-installed" >&6
2429c060 11629 fi
be01d343
PB
11630else
11631 ok=yes
11632 case " ${configdirs} " in
11633 *" ld "*) ;;
11634 *) ok=no ;;
11635 esac
c6b750e1 11636
be01d343
PB
11637 if test $ok = yes; then
11638 # An in-tree tool is available and we can use it
11639 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11640 echo "$as_me:$LINENO: result: just compiled" >&5
11641echo "${ECHO_T}just compiled" >&6
2429c060
PB
11642 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11643 # We already found the complete path
b8025f34
AS
11644 ac_dir=`dirname $LD_FOR_TARGET`
11645 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11646echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11647 elif test "x$target" = "x$host"; then
11648 # We can use an host tool
11649 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11650 echo "$as_me:$LINENO: result: host tool" >&5
11651echo "${ECHO_T}host tool" >&6
be01d343
PB
11652 else
11653 # We need a cross tool
c6b750e1
DJ
11654 echo "$as_me:$LINENO: result: pre-installed" >&5
11655echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11656 fi
11657fi
4b900473 11658
c6b750e1
DJ
11659echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11660echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11661if test "x${build}" != "x${host}" ; then
2429c060
PB
11662 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11663 # We already found the complete path
b8025f34
AS
11664 ac_dir=`dirname $LIPO_FOR_TARGET`
11665 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11666echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11667 else
11668 # Canadian cross, just use what we found
c6b750e1
DJ
11669 echo "$as_me:$LINENO: result: pre-installed" >&5
11670echo "${ECHO_T}pre-installed" >&6
2429c060 11671 fi
be01d343 11672else
2429c060
PB
11673 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11674 # We already found the complete path
b8025f34
AS
11675 ac_dir=`dirname $LIPO_FOR_TARGET`
11676 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11677echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11678 elif test "x$target" = "x$host"; then
be01d343
PB
11679 # We can use an host tool
11680 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11681 echo "$as_me:$LINENO: result: host tool" >&5
11682echo "${ECHO_T}host tool" >&6
be01d343
PB
11683 else
11684 # We need a cross tool
c6b750e1
DJ
11685 echo "$as_me:$LINENO: result: pre-installed" >&5
11686echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11687 fi
11688fi
4b900473 11689
c6b750e1
DJ
11690echo "$as_me:$LINENO: checking where to find the target nm" >&5
11691echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11692if test "x${build}" != "x${host}" ; then
2429c060
PB
11693 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11694 # We already found the complete path
b8025f34
AS
11695 ac_dir=`dirname $NM_FOR_TARGET`
11696 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11697echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11698 else
11699 # Canadian cross, just use what we found
c6b750e1
DJ
11700 echo "$as_me:$LINENO: result: pre-installed" >&5
11701echo "${ECHO_T}pre-installed" >&6
2429c060 11702 fi
be01d343
PB
11703else
11704 ok=yes
11705 case " ${configdirs} " in
11706 *" binutils "*) ;;
11707 *) ok=no ;;
11708 esac
c6b750e1 11709
be01d343
PB
11710 if test $ok = yes; then
11711 # An in-tree tool is available and we can use it
11712 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11713 echo "$as_me:$LINENO: result: just compiled" >&5
11714echo "${ECHO_T}just compiled" >&6
2429c060
PB
11715 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11716 # We already found the complete path
b8025f34
AS
11717 ac_dir=`dirname $NM_FOR_TARGET`
11718 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11719echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11720 elif test "x$target" = "x$host"; then
11721 # We can use an host tool
11722 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11723 echo "$as_me:$LINENO: result: host tool" >&5
11724echo "${ECHO_T}host tool" >&6
be01d343
PB
11725 else
11726 # We need a cross tool
c6b750e1
DJ
11727 echo "$as_me:$LINENO: result: pre-installed" >&5
11728echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11729 fi
11730fi
4b900473 11731
c6b750e1
DJ
11732echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11733echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11734if test "x${build}" != "x${host}" ; then
2429c060
PB
11735 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11736 # We already found the complete path
b8025f34
AS
11737 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11738 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11739echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11740 else
11741 # Canadian cross, just use what we found
c6b750e1
DJ
11742 echo "$as_me:$LINENO: result: pre-installed" >&5
11743echo "${ECHO_T}pre-installed" >&6
2429c060 11744 fi
be01d343
PB
11745else
11746 ok=yes
11747 case " ${configdirs} " in
11748 *" binutils "*) ;;
11749 *) ok=no ;;
11750 esac
c6b750e1 11751
be01d343
PB
11752 if test $ok = yes; then
11753 # An in-tree tool is available and we can use it
11754 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11755 echo "$as_me:$LINENO: result: just compiled" >&5
11756echo "${ECHO_T}just compiled" >&6
2429c060
PB
11757 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11758 # We already found the complete path
b8025f34
AS
11759 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11760 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11761echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11762 elif test "x$target" = "x$host"; then
11763 # We can use an host tool
11764 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11765 echo "$as_me:$LINENO: result: host tool" >&5
11766echo "${ECHO_T}host tool" >&6
be01d343
PB
11767 else
11768 # We need a cross tool
c6b750e1
DJ
11769 echo "$as_me:$LINENO: result: pre-installed" >&5
11770echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11771 fi
11772fi
4b900473 11773
c6b750e1
DJ
11774echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11775echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11776if test "x${build}" != "x${host}" ; then
2429c060
PB
11777 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11778 # We already found the complete path
b8025f34
AS
11779 ac_dir=`dirname $RANLIB_FOR_TARGET`
11780 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11781echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11782 else
11783 # Canadian cross, just use what we found
c6b750e1
DJ
11784 echo "$as_me:$LINENO: result: pre-installed" >&5
11785echo "${ECHO_T}pre-installed" >&6
2429c060 11786 fi
be01d343
PB
11787else
11788 ok=yes
11789 case " ${configdirs} " in
11790 *" binutils "*) ;;
11791 *) ok=no ;;
11792 esac
c6b750e1 11793
be01d343
PB
11794 if test $ok = yes; then
11795 # An in-tree tool is available and we can use it
11796 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11797 echo "$as_me:$LINENO: result: just compiled" >&5
11798echo "${ECHO_T}just compiled" >&6
2429c060
PB
11799 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11800 # We already found the complete path
b8025f34
AS
11801 ac_dir=`dirname $RANLIB_FOR_TARGET`
11802 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11803echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11804 elif test "x$target" = "x$host"; then
11805 # We can use an host tool
11806 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11807 echo "$as_me:$LINENO: result: host tool" >&5
11808echo "${ECHO_T}host tool" >&6
be01d343
PB
11809 else
11810 # We need a cross tool
c6b750e1
DJ
11811 echo "$as_me:$LINENO: result: pre-installed" >&5
11812echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11813 fi
11814fi
4b900473 11815
c6b750e1
DJ
11816echo "$as_me:$LINENO: checking where to find the target strip" >&5
11817echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11818if test "x${build}" != "x${host}" ; then
2429c060
PB
11819 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11820 # We already found the complete path
b8025f34
AS
11821 ac_dir=`dirname $STRIP_FOR_TARGET`
11822 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11823echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11824 else
11825 # Canadian cross, just use what we found
c6b750e1
DJ
11826 echo "$as_me:$LINENO: result: pre-installed" >&5
11827echo "${ECHO_T}pre-installed" >&6
2429c060 11828 fi
be01d343
PB
11829else
11830 ok=yes
11831 case " ${configdirs} " in
11832 *" binutils "*) ;;
11833 *) ok=no ;;
11834 esac
c6b750e1 11835
be01d343
PB
11836 if test $ok = yes; then
11837 # An in-tree tool is available and we can use it
11838 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11839 echo "$as_me:$LINENO: result: just compiled" >&5
11840echo "${ECHO_T}just compiled" >&6
2429c060
PB
11841 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11842 # We already found the complete path
b8025f34
AS
11843 ac_dir=`dirname $STRIP_FOR_TARGET`
11844 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11845echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11846 elif test "x$target" = "x$host"; then
11847 # We can use an host tool
11848 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11849 echo "$as_me:$LINENO: result: host tool" >&5
11850echo "${ECHO_T}host tool" >&6
be01d343
PB
11851 else
11852 # We need a cross tool
c6b750e1
DJ
11853 echo "$as_me:$LINENO: result: pre-installed" >&5
11854echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11855 fi
11856fi
4b900473 11857
c6b750e1
DJ
11858echo "$as_me:$LINENO: checking where to find the target windres" >&5
11859echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11860if test "x${build}" != "x${host}" ; then
2429c060
PB
11861 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11862 # We already found the complete path
b8025f34
AS
11863 ac_dir=`dirname $WINDRES_FOR_TARGET`
11864 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11865echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11866 else
11867 # Canadian cross, just use what we found
c6b750e1
DJ
11868 echo "$as_me:$LINENO: result: pre-installed" >&5
11869echo "${ECHO_T}pre-installed" >&6
2429c060 11870 fi
be01d343
PB
11871else
11872 ok=yes
11873 case " ${configdirs} " in
11874 *" binutils "*) ;;
11875 *) ok=no ;;
11876 esac
c6b750e1 11877
be01d343
PB
11878 if test $ok = yes; then
11879 # An in-tree tool is available and we can use it
11880 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11881 echo "$as_me:$LINENO: result: just compiled" >&5
11882echo "${ECHO_T}just compiled" >&6
2429c060
PB
11883 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11884 # We already found the complete path
b8025f34
AS
11885 ac_dir=`dirname $WINDRES_FOR_TARGET`
11886 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11887echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11888 elif test "x$target" = "x$host"; then
11889 # We can use an host tool
11890 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11891 echo "$as_me:$LINENO: result: host tool" >&5
11892echo "${ECHO_T}host tool" >&6
be01d343
PB
11893 else
11894 # We need a cross tool
c6b750e1
DJ
11895 echo "$as_me:$LINENO: result: pre-installed" >&5
11896echo "${ECHO_T}pre-installed" >&6
be01d343 11897 fi
a0da8069 11898fi
54752a6b 11899
0c24b341
NC
11900echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11901echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11902if test "x${build}" != "x${host}" ; then
11903 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11904 # We already found the complete path
11905 ac_dir=`dirname $WINDMC_FOR_TARGET`
11906 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11907echo "${ECHO_T}pre-installed in $ac_dir" >&6
11908 else
11909 # Canadian cross, just use what we found
11910 echo "$as_me:$LINENO: result: pre-installed" >&5
11911echo "${ECHO_T}pre-installed" >&6
11912 fi
11913else
11914 ok=yes
11915 case " ${configdirs} " in
11916 *" binutils "*) ;;
11917 *) ok=no ;;
11918 esac
11919
11920 if test $ok = yes; then
11921 # An in-tree tool is available and we can use it
11922 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11923 echo "$as_me:$LINENO: result: just compiled" >&5
11924echo "${ECHO_T}just compiled" >&6
11925 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11926 # We already found the complete path
11927 ac_dir=`dirname $WINDMC_FOR_TARGET`
11928 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11929echo "${ECHO_T}pre-installed in $ac_dir" >&6
11930 elif test "x$target" = "x$host"; then
11931 # We can use an host tool
11932 WINDMC_FOR_TARGET='$(WINDMC)'
11933 echo "$as_me:$LINENO: result: host tool" >&5
11934echo "${ECHO_T}host tool" >&6
11935 else
11936 # We need a cross tool
11937 echo "$as_me:$LINENO: result: pre-installed" >&5
11938echo "${ECHO_T}pre-installed" >&6
11939 fi
11940fi
11941
54752a6b
NN
11942
11943
be01d343 11944
4b900473 11945
a0da8069
NN
11946# Certain tools may need extra flags.
11947AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11948RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11949NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11950
be01d343
PB
11951# When building target libraries, except in a Canadian cross, we use
11952# the same toolchain as the compiler we just built.
11953COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11954COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11955COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11956if test $host = $build; then
11957 case " $configdirs " in
11958 *" gcc "*)
11959 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11960 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11961 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11962 ;;
11963 esac
11964fi
11965
11966
11967
11968
11969
c6b750e1
DJ
11970echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11971echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
11972# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11973if test "${enable_maintainer_mode+set}" = set; then
11974 enableval="$enable_maintainer_mode"
11975 USE_MAINTAINER_MODE=$enableval
11976else
11977 USE_MAINTAINER_MODE=no
c6b750e1
DJ
11978fi;
11979echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11980echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
11981
11982
11983if test "$USE_MAINTAINER_MODE" = yes; then
11984 MAINTAINER_MODE_TRUE=
11985 MAINTAINER_MODE_FALSE='#'
11986else
11987 MAINTAINER_MODE_TRUE='#'
11988 MAINTAINER_MODE_FALSE=
c6b750e1 11989fi
3d5e36ae
AO
11990MAINT=$MAINTAINER_MODE_TRUE
11991
1d39f329
NN
11992# ---------------------
11993# GCC bootstrap support
11994# ---------------------
11995
11996# Stage specific cflags for build.
11997stage1_cflags="-g"
11998case $build in
11999 vax-*-*)
12000 case ${GCC} in
12001 yes) stage1_cflags="-g -Wa,-J" ;;
12002 *) stage1_cflags="-g -J" ;;
12003 esac ;;
1d39f329
NN
12004esac
12005
1d89b610
PB
12006# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12007if test "$GCC" = yes; then
12008 saved_CFLAGS="$CFLAGS"
12009
12010 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12011 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12012 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12013echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12014 cat >conftest.$ac_ext <<_ACEOF
12015/* confdefs.h. */
12016_ACEOF
12017cat confdefs.h >>conftest.$ac_ext
12018cat >>conftest.$ac_ext <<_ACEOF
12019/* end confdefs.h. */
12020
2038f525
PB
12021#if (__GNUC__ < 3) \
12022 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12023 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12024#error http://gcc.gnu.org/PR29382
12025#endif
12026
c6b750e1
DJ
12027int
12028main ()
12029{
12030
12031 ;
12032 return 0;
12033}
12034_ACEOF
12035rm -f conftest.$ac_objext
12036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_c_werror_flag"
12045 || test ! -s conftest.err'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; } &&
12051 { ac_try='test -s conftest.$ac_objext'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 echo "$as_me:$LINENO: result: yes" >&5
12058echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12059else
12060 echo "$as_me: failed program was:" >&5
12061sed 's/^/| /' conftest.$ac_ext >&5
12062
12063echo "$as_me:$LINENO: result: no" >&5
12064echo "${ECHO_T}no" >&6
12065fi
12066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12067
12068 CFLAGS="$saved_CFLAGS"
12069fi
12070
12071
1d39f329 12072
8a0d8a5c
PB
12073# Enable --enable-checking in stage1 of the compiler.
12074# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12075if test "${enable_stage1_checking+set}" = set; then
12076 enableval="$enable_stage1_checking"
12077 stage1_checking=--enable-checking=${enable_stage1_checking}
12078else
5566c1fa 12079 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12080 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12081else
5566c1fa 12082 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12083fi
c6b750e1 12084fi;
8a0d8a5c
PB
12085
12086
1d39f329 12087# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12088# Check whether --enable-werror or --disable-werror was given.
12089if test "${enable_werror+set}" = set; then
12090 enableval="$enable_werror"
c6b750e1 12091
1d39f329 12092else
a0323144 12093 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12094 enable_werror=yes
79fcd0ec
PB
12095else
12096 enable_werror=no
12097fi
c6b750e1 12098fi;
1a6f2dc7
NN
12099case ${enable_werror} in
12100 yes) stage2_werror_flag="--enable-werror-always" ;;
12101 *) stage2_werror_flag="" ;;
1d39f329
NN
12102esac
12103
12104
108a6f8e 12105# Flags needed to enable html installing and building
c6b750e1 12106
108a6f8e
CD
12107# Check whether --with-datarootdir or --without-datarootdir was given.
12108if test "${with_datarootdir+set}" = set; then
12109 withval="$with_datarootdir"
12110 datarootdir="\${prefix}/${withval}"
12111else
12112 datarootdir="\${prefix}/share"
c6b750e1 12113fi;
108a6f8e
CD
12114
12115
12116# Check whether --with-docdir or --without-docdir was given.
12117if test "${with_docdir+set}" = set; then
12118 withval="$with_docdir"
12119 docdir="\${prefix}/${withval}"
12120else
12121 docdir="\${datarootdir}/doc"
c6b750e1 12122fi;
108a6f8e
CD
12123
12124
a3ca38d2
DD
12125# Check whether --with-pdfdir or --without-pdfdir was given.
12126if test "${with_pdfdir+set}" = set; then
12127 withval="$with_pdfdir"
12128 pdfdir="\${prefix}/${withval}"
12129else
12130 pdfdir="\${docdir}"
12131fi;
12132
12133
108a6f8e
CD
12134# Check whether --with-htmldir or --without-htmldir was given.
12135if test "${with_htmldir+set}" = set; then
12136 withval="$with_htmldir"
12137 htmldir="\${prefix}/${withval}"
12138else
12139 htmldir="\${docdir}"
c6b750e1 12140fi;
108a6f8e
CD
12141
12142
12143
12144
12145
b8025f34 12146
c6b750e1
DJ
12147 ac_config_files="$ac_config_files Makefile"
12148cat >confcache <<\_ACEOF
a0da8069
NN
12149# This file is a shell script that caches the results of configure
12150# tests run on this system so they can be shared between configure
c6b750e1
DJ
12151# scripts and configure runs, see configure's option --config-cache.
12152# It is not useful on other systems. If it contains results you don't
12153# want to keep, you may remove or edit it.
a0da8069 12154#
c6b750e1
DJ
12155# config.status only pays attention to the cache file if you give it
12156# the --recheck option to rerun configure.
a0da8069 12157#
c6b750e1
DJ
12158# `ac_cv_env_foo' variables (set or unset) will be overridden when
12159# loading this file, other *unset* `ac_cv_foo' will be assigned the
12160# following values.
12161
12162_ACEOF
12163
a0da8069
NN
12164# The following way of writing the cache mishandles newlines in values,
12165# but we know of no workaround that is simple, portable, and efficient.
12166# So, don't put newlines in cache variables' values.
12167# Ultrix sh set writes to stderr and can't be redirected directly,
12168# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12169{
12170 (set) 2>&1 |
12171 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12172 *ac_space=\ *)
12173 # `set' does not quote correctly, so add quotes (double-quote
12174 # substitution turns \\\\ into \\, and sed turns \\ into \).
12175 sed -n \
12176 "s/'/'\\\\''/g;
12177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12178 ;;
12179 *)
12180 # `set' quotes correctly as required by POSIX, so do not add quotes.
12181 sed -n \
12182 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12183 ;;
12184 esac;
12185} |
12186 sed '
12187 t clear
12188 : clear
12189 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12190 t end
12191 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12192 : end' >>confcache
12193if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12194 if test -w $cache_file; then
c6b750e1
DJ
12195 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12196 cat confcache >$cache_file
a0da8069
NN
12197 else
12198 echo "not updating unwritable cache $cache_file"
12199 fi
852e5f18 12200fi
a0da8069 12201rm -f confcache
852e5f18 12202
a0da8069
NN
12203test "x$prefix" = xNONE && prefix=$ac_default_prefix
12204# Let make expand exec_prefix.
12205test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12206
c6b750e1
DJ
12207# VPATH may cause trouble with some makes, so we remove $(srcdir),
12208# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12209# trailing colons and then remove the whole line if VPATH becomes empty
12210# (actually we leave an empty line to preserve line numbers).
a0da8069 12211if test "x$srcdir" = x.; then
c6b750e1
DJ
12212 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12213s/:*\$(srcdir):*/:/;
12214s/:*\${srcdir}:*/:/;
12215s/:*@srcdir@:*/:/;
12216s/^\([^=]*=[ ]*\):*/\1/;
12217s/:*$//;
12218s/^[^=]*=[ ]*$//;
12219}'
a0da8069 12220fi
252b5132 12221
a0da8069
NN
12222# Transform confdefs.h into DEFS.
12223# Protect against shell expansion while executing Makefile rules.
12224# Protect against Makefile macro expansion.
c6b750e1
DJ
12225#
12226# If the first sed substitution is executed (which looks for macros that
12227# take arguments), then we branch to the quote section. Otherwise,
12228# look for a macro that doesn't take arguments.
12229cat >confdef2opt.sed <<\_ACEOF
12230t clear
12231: clear
12232s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12233t quote
12234s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12235t quote
12236d
12237: quote
12238s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12239s,\[,\\&,g
12240s,\],\\&,g
12241s,\$,$$,g
12242p
12243_ACEOF
12244# We use echo to avoid assuming a particular line-breaking character.
12245# The extra dot is to prevent the shell from consuming trailing
12246# line-breaks from the sub-command output. A line-break within
12247# single-quotes doesn't work because, if this script is created in a
12248# platform that uses two characters for line-breaks (e.g., DOS), tr
12249# would break.
12250ac_LF_and_DOT=`echo; echo .`
12251DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12252rm -f confdef2opt.sed
12253
12254
12255ac_libobjs=
12256ac_ltlibobjs=
12257for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12258 # 1. Remove the extension, and $U if already installed.
12259 ac_i=`echo "$ac_i" |
12260 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12261 # 2. Add them.
12262 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12263 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12264done
12265LIBOBJS=$ac_libobjs
852e5f18 12266
c6b750e1 12267LTLIBOBJS=$ac_ltlibobjs
376a0e54 12268
cac3d6c4 12269
c6b750e1
DJ
12270
12271: ${CONFIG_STATUS=./config.status}
12272ac_clean_files_save=$ac_clean_files
12273ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12274{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12275echo "$as_me: creating $CONFIG_STATUS" >&6;}
12276cat >$CONFIG_STATUS <<_ACEOF
12277#! $SHELL
12278# Generated by $as_me.
a0da8069 12279# Run this file to recreate the current configuration.
a0da8069 12280# Compiler output produced by configure, useful for debugging
c6b750e1 12281# configure, is in config.log if it exists.
376a0e54 12282
c6b750e1
DJ
12283debug=false
12284ac_cs_recheck=false
12285ac_cs_silent=false
12286SHELL=\${CONFIG_SHELL-$SHELL}
12287_ACEOF
12288
12289cat >>$CONFIG_STATUS <<\_ACEOF
12290## --------------------- ##
12291## M4sh Initialization. ##
12292## --------------------- ##
12293
12294# Be Bourne compatible
12295if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12296 emulate sh
12297 NULLCMD=:
12298 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12299 # is contrary to our usage. Disable this feature.
12300 alias -g '${1+"$@"}'='"$@"'
12301elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12302 set -o posix
12303fi
12304DUALCASE=1; export DUALCASE # for MKS sh
12305
12306# Support unset when possible.
12307if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12308 as_unset=unset
12309else
12310 as_unset=false
12311fi
12312
12313
12314# Work around bugs in pre-3.0 UWIN ksh.
12315$as_unset ENV MAIL MAILPATH
12316PS1='$ '
12317PS2='> '
12318PS4='+ '
12319
12320# NLS nuisances.
12321for as_var in \
12322 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12323 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12324 LC_TELEPHONE LC_TIME
12325do
12326 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12327 eval $as_var=C; export $as_var
12328 else
12329 $as_unset $as_var
12330 fi
12331done
12332
12333# Required to use basename.
12334if expr a : '\(a\)' >/dev/null 2>&1; then
12335 as_expr=expr
12336else
12337 as_expr=false
12338fi
12339
12340if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12341 as_basename=basename
12342else
12343 as_basename=false
12344fi
12345
12346
12347# Name of the executable.
12348as_me=`$as_basename "$0" ||
12349$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12350 X"$0" : 'X\(//\)$' \| \
12351 X"$0" : 'X\(/\)$' \| \
12352 . : '\(.\)' 2>/dev/null ||
12353echo X/"$0" |
12354 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12355 /^X\/\(\/\/\)$/{ s//\1/; q; }
12356 /^X\/\(\/\).*/{ s//\1/; q; }
12357 s/.*/./; q'`
12358
12359
12360# PATH needs CR, and LINENO needs CR and PATH.
12361# Avoid depending upon Character Ranges.
12362as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12363as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12364as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12365as_cr_digits='0123456789'
12366as_cr_alnum=$as_cr_Letters$as_cr_digits
12367
12368# The user is always right.
12369if test "${PATH_SEPARATOR+set}" != set; then
12370 echo "#! /bin/sh" >conf$$.sh
12371 echo "exit 0" >>conf$$.sh
12372 chmod +x conf$$.sh
12373 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12374 PATH_SEPARATOR=';'
12375 else
12376 PATH_SEPARATOR=:
12377 fi
12378 rm -f conf$$.sh
12379fi
12380
12381
12382 as_lineno_1=$LINENO
12383 as_lineno_2=$LINENO
12384 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12385 test "x$as_lineno_1" != "x$as_lineno_2" &&
12386 test "x$as_lineno_3" = "x$as_lineno_2" || {
12387 # Find who we are. Look in the path if we contain no path at all
12388 # relative or not.
12389 case $0 in
12390 *[\\/]* ) as_myself=$0 ;;
12391 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12392for as_dir in $PATH
12393do
12394 IFS=$as_save_IFS
12395 test -z "$as_dir" && as_dir=.
12396 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12397done
12398
12399 ;;
12400 esac
12401 # We did not find ourselves, most probably we were run as `sh COMMAND'
12402 # in which case we are not to be found in the path.
12403 if test "x$as_myself" = x; then
12404 as_myself=$0
12405 fi
12406 if test ! -f "$as_myself"; then
12407 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12408echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12409 { (exit 1); exit 1; }; }
12410 fi
12411 case $CONFIG_SHELL in
12412 '')
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12415do
12416 IFS=$as_save_IFS
12417 test -z "$as_dir" && as_dir=.
12418 for as_base in sh bash ksh sh5; do
12419 case $as_dir in
12420 /*)
12421 if ("$as_dir/$as_base" -c '
12422 as_lineno_1=$LINENO
12423 as_lineno_2=$LINENO
12424 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12425 test "x$as_lineno_1" != "x$as_lineno_2" &&
12426 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12427 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12428 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12429 CONFIG_SHELL=$as_dir/$as_base
12430 export CONFIG_SHELL
12431 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12432 fi;;
12433 esac
12434 done
12435done
12436;;
12437 esac
12438
12439 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12440 # uniformly replaced by the line number. The first 'sed' inserts a
12441 # line-number line before each line; the second 'sed' does the real
12442 # work. The second script uses 'N' to pair each line-number line
12443 # with the numbered line, and appends trailing '-' during
12444 # substitution so that $LINENO is not a special case at line end.
12445 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12446 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12447 sed '=' <$as_myself |
12448 sed '
12449 N
12450 s,$,-,
12451 : loop
12452 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12453 t loop
12454 s,-$,,
12455 s,^['$as_cr_digits']*\n,,
12456 ' >$as_me.lineno &&
12457 chmod +x $as_me.lineno ||
12458 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12459echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12460 { (exit 1); exit 1; }; }
12461
12462 # Don't try to exec as it changes $[0], causing all sort of problems
12463 # (the dirname of $[0] is not the place where we might find the
12464 # original and so on. Autoconf is especially sensible to this).
12465 . ./$as_me.lineno
12466 # Exit status is that of the last command.
12467 exit
12468}
12469
12470
12471case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12472 *c*,-n*) ECHO_N= ECHO_C='
12473' ECHO_T=' ' ;;
12474 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12475 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12476esac
12477
12478if expr a : '\(a\)' >/dev/null 2>&1; then
12479 as_expr=expr
12480else
12481 as_expr=false
12482fi
12483
12484rm -f conf$$ conf$$.exe conf$$.file
12485echo >conf$$.file
12486if ln -s conf$$.file conf$$ 2>/dev/null; then
12487 # We could just check for DJGPP; but this test a) works b) is more generic
12488 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12489 if test -f conf$$.exe; then
12490 # Don't use ln at all; we don't have any links
12491 as_ln_s='cp -p'
12492 else
12493 as_ln_s='ln -s'
12494 fi
12495elif ln conf$$.file conf$$ 2>/dev/null; then
12496 as_ln_s=ln
12497else
12498 as_ln_s='cp -p'
12499fi
12500rm -f conf$$ conf$$.exe conf$$.file
12501
12502if mkdir -p . 2>/dev/null; then
12503 as_mkdir_p=:
12504else
12505 test -d ./-p && rmdir ./-p
12506 as_mkdir_p=false
12507fi
12508
12509as_executable_p="test -f"
12510
12511# Sed expression to map a string onto a valid CPP name.
12512as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12513
12514# Sed expression to map a string onto a valid variable name.
12515as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12516
12517
12518# IFS
12519# We need space, tab and new line, in precisely that order.
12520as_nl='
12521'
12522IFS=" $as_nl"
12523
12524# CDPATH.
12525$as_unset CDPATH
12526
12527exec 6>&1
12528
12529# Open the log real soon, to keep \$[0] and so on meaningful, and to
12530# report actual input values of CONFIG_FILES etc. instead of their
12531# values after options handling. Logging --version etc. is OK.
12532exec 5>>config.log
12533{
12534 echo
12535 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12536## Running $as_me. ##
12537_ASBOX
12538} >&5
12539cat >&5 <<_CSEOF
12540
12541This file was extended by $as_me, which was
12542generated by GNU Autoconf 2.59. Invocation command line was
12543
12544 CONFIG_FILES = $CONFIG_FILES
12545 CONFIG_HEADERS = $CONFIG_HEADERS
12546 CONFIG_LINKS = $CONFIG_LINKS
12547 CONFIG_COMMANDS = $CONFIG_COMMANDS
12548 $ $0 $@
12549
12550_CSEOF
12551echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12552echo >&5
12553_ACEOF
12554
12555# Files that config.status was made for.
12556if test -n "$ac_config_files"; then
12557 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12558fi
12559
12560if test -n "$ac_config_headers"; then
12561 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12562fi
12563
12564if test -n "$ac_config_links"; then
12565 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12566fi
12567
12568if test -n "$ac_config_commands"; then
12569 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12570fi
12571
12572cat >>$CONFIG_STATUS <<\_ACEOF
12573
12574ac_cs_usage="\
12575\`$as_me' instantiates files from templates according to the
12576current configuration.
12577
12578Usage: $0 [OPTIONS] [FILE]...
12579
12580 -h, --help print this help, then exit
12581 -V, --version print version number, then exit
12582 -q, --quiet do not print progress messages
12583 -d, --debug don't remove temporary files
12584 --recheck update $as_me by reconfiguring in the same conditions
12585 --file=FILE[:TEMPLATE]
12586 instantiate the configuration file FILE
12587
12588Configuration files:
12589$config_files
12590
12591Report bugs to <bug-autoconf@gnu.org>."
12592_ACEOF
12593
12594cat >>$CONFIG_STATUS <<_ACEOF
12595ac_cs_version="\\
12596config.status
12597configured by $0, generated by GNU Autoconf 2.59,
12598 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12599
12600Copyright (C) 2003 Free Software Foundation, Inc.
12601This config.status script is free software; the Free Software Foundation
12602gives unlimited permission to copy, distribute and modify it."
12603srcdir=$srcdir
12604INSTALL="$INSTALL"
12605_ACEOF
12606
12607cat >>$CONFIG_STATUS <<\_ACEOF
12608# If no file are specified by the user, then we need to provide default
12609# value. By we need to know if files were specified by the user.
12610ac_need_defaults=:
12611while test $# != 0
a0da8069 12612do
c6b750e1
DJ
12613 case $1 in
12614 --*=*)
12615 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12616 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12617 ac_shift=:
12618 ;;
12619 -*)
12620 ac_option=$1
12621 ac_optarg=$2
12622 ac_shift=shift
12623 ;;
12624 *) # This is not an option, so the user has probably given explicit
12625 # arguments.
12626 ac_option=$1
12627 ac_need_defaults=false;;
12628 esac
12629
12630 case $ac_option in
12631 # Handling of the options.
12632_ACEOF
12633cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12634 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12635 ac_cs_recheck=: ;;
12636 --version | --vers* | -V )
12637 echo "$ac_cs_version"; exit 0 ;;
12638 --he | --h)
12639 # Conflict between --help and --header
12640 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12641Try \`$0 --help' for more information." >&5
12642echo "$as_me: error: ambiguous option: $1
12643Try \`$0 --help' for more information." >&2;}
12644 { (exit 1); exit 1; }; };;
12645 --help | --hel | -h )
12646 echo "$ac_cs_usage"; exit 0 ;;
12647 --debug | --d* | -d )
12648 debug=: ;;
12649 --file | --fil | --fi | --f )
12650 $ac_shift
12651 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12652 ac_need_defaults=false;;
12653 --header | --heade | --head | --hea )
12654 $ac_shift
12655 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12656 ac_need_defaults=false;;
12657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12658 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12659 ac_cs_silent=: ;;
12660
12661 # This is an error.
12662 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12663Try \`$0 --help' for more information." >&5
12664echo "$as_me: error: unrecognized option: $1
12665Try \`$0 --help' for more information." >&2;}
12666 { (exit 1); exit 1; }; } ;;
12667
12668 *) ac_config_targets="$ac_config_targets $1" ;;
12669
376a0e54 12670 esac
c6b750e1 12671 shift
376a0e54
CM
12672done
12673
c6b750e1 12674ac_configure_extra_args=
376a0e54 12675
c6b750e1
DJ
12676if $ac_cs_silent; then
12677 exec 6>/dev/null
12678 ac_configure_extra_args="$ac_configure_extra_args --silent"
12679fi
376a0e54 12680
c6b750e1
DJ
12681_ACEOF
12682cat >>$CONFIG_STATUS <<_ACEOF
12683if \$ac_cs_recheck; then
12684 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12685 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12686fi
12687
12688_ACEOF
12689
12690
12691
12692
12693
12694cat >>$CONFIG_STATUS <<\_ACEOF
12695for ac_config_target in $ac_config_targets
12696do
12697 case "$ac_config_target" in
12698 # Handling of arguments.
12699 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12700 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12701echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12702 { (exit 1); exit 1; }; };;
12703 esac
12704done
12705
12706# If the user did not use the arguments to specify the items to instantiate,
12707# then the envvar interface is used. Set only those that are not.
12708# We use the long form for the default assignment because of an extremely
12709# bizarre bug on SunOS 4.1.3.
12710if $ac_need_defaults; then
12711 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12712fi
12713
12714# Have a temporary directory for convenience. Make it in the build tree
12715# simply because there is no reason to put it here, and in addition,
12716# creating and moving files from /tmp can sometimes cause problems.
12717# Create a temporary directory, and hook for its removal unless debugging.
12718$debug ||
12719{
12720 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12721 trap '{ (exit 1); exit 1; }' 1 2 13 15
12722}
12723
12724# Create a (secure) tmp directory for tmp files.
12725
12726{
12727 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12728 test -n "$tmp" && test -d "$tmp"
12729} ||
12730{
12731 tmp=./confstat$$-$RANDOM
12732 (umask 077 && mkdir $tmp)
12733} ||
12734{
12735 echo "$me: cannot create a temporary directory in ." >&2
12736 { (exit 1); exit 1; }
12737}
12738
12739_ACEOF
12740
12741cat >>$CONFIG_STATUS <<_ACEOF
12742
12743#
12744# CONFIG_FILES section.
12745#
12746
12747# No need to generate the scripts if there are no CONFIG_FILES.
12748# This happens for instance when ./config.status config.h
12749if test -n "\$CONFIG_FILES"; then
12750 # Protect against being on the right side of a sed subst in config.status.
12751 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12752 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12753s,@SHELL@,$SHELL,;t t
12754s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12755s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12756s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12757s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12758s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12759s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12760s,@exec_prefix@,$exec_prefix,;t t
12761s,@prefix@,$prefix,;t t
12762s,@program_transform_name@,$program_transform_name,;t t
12763s,@bindir@,$bindir,;t t
12764s,@sbindir@,$sbindir,;t t
12765s,@libexecdir@,$libexecdir,;t t
12766s,@datadir@,$datadir,;t t
12767s,@sysconfdir@,$sysconfdir,;t t
12768s,@sharedstatedir@,$sharedstatedir,;t t
12769s,@localstatedir@,$localstatedir,;t t
12770s,@libdir@,$libdir,;t t
12771s,@includedir@,$includedir,;t t
12772s,@oldincludedir@,$oldincludedir,;t t
12773s,@infodir@,$infodir,;t t
12774s,@mandir@,$mandir,;t t
12775s,@build_alias@,$build_alias,;t t
12776s,@host_alias@,$host_alias,;t t
12777s,@target_alias@,$target_alias,;t t
12778s,@DEFS@,$DEFS,;t t
12779s,@ECHO_C@,$ECHO_C,;t t
12780s,@ECHO_N@,$ECHO_N,;t t
12781s,@ECHO_T@,$ECHO_T,;t t
12782s,@LIBS@,$LIBS,;t t
12783s,@build@,$build,;t t
12784s,@build_cpu@,$build_cpu,;t t
12785s,@build_vendor@,$build_vendor,;t t
12786s,@build_os@,$build_os,;t t
12787s,@build_noncanonical@,$build_noncanonical,;t t
12788s,@host_noncanonical@,$host_noncanonical,;t t
12789s,@target_noncanonical@,$target_noncanonical,;t t
12790s,@host@,$host,;t t
12791s,@host_cpu@,$host_cpu,;t t
12792s,@host_vendor@,$host_vendor,;t t
12793s,@host_os@,$host_os,;t t
12794s,@target@,$target,;t t
12795s,@target_cpu@,$target_cpu,;t t
12796s,@target_vendor@,$target_vendor,;t t
12797s,@target_os@,$target_os,;t t
12798s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12799s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12800s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12801s,@LN@,$LN,;t t
12802s,@LN_S@,$LN_S,;t t
12803s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12804s,@build_libsubdir@,$build_libsubdir,;t t
12805s,@build_subdir@,$build_subdir,;t t
12806s,@host_subdir@,$host_subdir,;t t
12807s,@target_subdir@,$target_subdir,;t t
12808s,@CC@,$CC,;t t
12809s,@CFLAGS@,$CFLAGS,;t t
12810s,@LDFLAGS@,$LDFLAGS,;t t
12811s,@CPPFLAGS@,$CPPFLAGS,;t t
12812s,@ac_ct_CC@,$ac_ct_CC,;t t
12813s,@EXEEXT@,$EXEEXT,;t t
12814s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12815s,@CXX@,$CXX,;t t
12816s,@CXXFLAGS@,$CXXFLAGS,;t t
12817s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12818s,@GNATBIND@,$GNATBIND,;t t
12819s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12820s,@GNATMAKE@,$GNATMAKE,;t t
12821s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12822s,@do_compare@,$do_compare,;t t
12823s,@gmplibs@,$gmplibs,;t t
12824s,@gmpinc@,$gmpinc,;t t
12825s,@stage1_languages@,$stage1_languages,;t t
12826s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12827s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12828s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12829s,@tooldir@,$tooldir,;t t
12830s,@build_tooldir@,$build_tooldir,;t t
12831s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12832s,@GDB_TK@,$GDB_TK,;t t
12833s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12834s,@build_configargs@,$build_configargs,;t t
12835s,@build_configdirs@,$build_configdirs,;t t
12836s,@host_configargs@,$host_configargs,;t t
12837s,@configdirs@,$configdirs,;t t
12838s,@target_configargs@,$target_configargs,;t t
1576798e
PB
12839s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12840s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 12841s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
12842s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12843s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12844s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12845s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12846s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12847s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12848s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12849s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12850s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12851s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12852s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12853s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
12854s,@config_shell@,$config_shell,;t t
12855s,@YACC@,$YACC,;t t
12856s,@BISON@,$BISON,;t t
12857s,@M4@,$M4,;t t
12858s,@LEX@,$LEX,;t t
12859s,@FLEX@,$FLEX,;t t
12860s,@MAKEINFO@,$MAKEINFO,;t t
12861s,@EXPECT@,$EXPECT,;t t
12862s,@RUNTEST@,$RUNTEST,;t t
12863s,@AR@,$AR,;t t
12864s,@AS@,$AS,;t t
12865s,@DLLTOOL@,$DLLTOOL,;t t
12866s,@LD@,$LD,;t t
12867s,@LIPO@,$LIPO,;t t
12868s,@NM@,$NM,;t t
12869s,@RANLIB@,$RANLIB,;t t
12870s,@STRIP@,$STRIP,;t t
12871s,@WINDRES@,$WINDRES,;t t
0c24b341 12872s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12873s,@OBJCOPY@,$OBJCOPY,;t t
12874s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
12875s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12876s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12877s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12878s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12879s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12880s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12881s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12882s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12883s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12884s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12885s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12886s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12887s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12888s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12889s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12890s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12891s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12892s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12893s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12894s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12895s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12896s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12897s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12898s,@MAINT@,$MAINT,;t t
12899s,@stage1_cflags@,$stage1_cflags,;t t
12900s,@stage1_checking@,$stage1_checking,;t t
12901s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12902s,@datarootdir@,$datarootdir,;t t
12903s,@docdir@,$docdir,;t t
a3ca38d2 12904s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12905s,@htmldir@,$htmldir,;t t
12906s,@LIBOBJS@,$LIBOBJS,;t t
12907s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12908/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12909s,@serialization_dependencies@,,;t t
a0da8069 12910/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12911s,@host_makefile_frag@,,;t t
a0da8069 12912/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12913s,@target_makefile_frag@,,;t t
a0da8069 12914/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12915s,@alphaieee_frag@,,;t t
a0da8069 12916/@ospace_frag@/r $ospace_frag
c6b750e1 12917s,@ospace_frag@,,;t t
a0da8069 12918CEOF
252b5132 12919
c6b750e1
DJ
12920_ACEOF
12921
12922 cat >>$CONFIG_STATUS <<\_ACEOF
12923 # Split the substitutions into bite-sized pieces for seds with
12924 # small command number limits, like on Digital OSF/1 and HP-UX.
12925 ac_max_sed_lines=48
12926 ac_sed_frag=1 # Number of current file.
12927 ac_beg=1 # First line for current file.
12928 ac_end=$ac_max_sed_lines # Line after last line for current file.
12929 ac_more_lines=:
12930 ac_sed_cmds=
12931 while $ac_more_lines; do
12932 if test $ac_beg -gt 1; then
12933 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12934 else
12935 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12936 fi
12937 if test ! -s $tmp/subs.frag; then
12938 ac_more_lines=false
a0da8069 12939 else
c6b750e1
DJ
12940 # The purpose of the label and of the branching condition is to
12941 # speed up the sed processing (if there are no `@' at all, there
12942 # is no need to browse any of the substitutions).
12943 # These are the two extra sed commands mentioned above.
12944 (echo ':t
12945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12946 if test -z "$ac_sed_cmds"; then
12947 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12948 else
12949 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12950 fi
12951 ac_sed_frag=`expr $ac_sed_frag + 1`
12952 ac_beg=$ac_end
12953 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12954 fi
c6b750e1
DJ
12955 done
12956 if test -z "$ac_sed_cmds"; then
12957 ac_sed_cmds=cat
852e5f18 12958 fi
c6b750e1 12959fi # test -n "$CONFIG_FILES"
cac3d6c4 12960
c6b750e1
DJ
12961_ACEOF
12962cat >>$CONFIG_STATUS <<\_ACEOF
12963for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12964 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12965 case $ac_file in
12966 - | *:- | *:-:* ) # input from stdin
12967 cat >$tmp/stdin
12968 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12969 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12970 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12971 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12972 * ) ac_file_in=$ac_file.in ;;
a0da8069 12973 esac
252b5132 12974
c6b750e1
DJ
12975 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12976 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12977$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12978 X"$ac_file" : 'X\(//\)[^/]' \| \
12979 X"$ac_file" : 'X\(//\)$' \| \
12980 X"$ac_file" : 'X\(/\)' \| \
12981 . : '\(.\)' 2>/dev/null ||
12982echo X"$ac_file" |
12983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12985 /^X\(\/\/\)$/{ s//\1/; q; }
12986 /^X\(\/\).*/{ s//\1/; q; }
12987 s/.*/./; q'`
12988 { if $as_mkdir_p; then
12989 mkdir -p "$ac_dir"
cac3d6c4 12990 else
c6b750e1
DJ
12991 as_dir="$ac_dir"
12992 as_dirs=
12993 while test ! -d "$as_dir"; do
12994 as_dirs="$as_dir $as_dirs"
12995 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12996$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12997 X"$as_dir" : 'X\(//\)[^/]' \| \
12998 X"$as_dir" : 'X\(//\)$' \| \
12999 X"$as_dir" : 'X\(/\)' \| \
13000 . : '\(.\)' 2>/dev/null ||
13001echo X"$as_dir" |
13002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13004 /^X\(\/\/\)$/{ s//\1/; q; }
13005 /^X\(\/\).*/{ s//\1/; q; }
13006 s/.*/./; q'`
13007 done
13008 test ! -n "$as_dirs" || mkdir $as_dirs
13009 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13010echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13011 { (exit 1); exit 1; }; }; }
13012
13013 ac_builddir=.
252b5132 13014
c6b750e1
DJ
13015if test "$ac_dir" != .; then
13016 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13017 # A "../" for each directory in $ac_dir_suffix.
13018 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13019else
13020 ac_dir_suffix= ac_top_builddir=
13021fi
13022
13023case $srcdir in
13024 .) # No --srcdir option. We are building in place.
13025 ac_srcdir=.
13026 if test -z "$ac_top_builddir"; then
13027 ac_top_srcdir=.
13028 else
13029 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13030 fi ;;
13031 [\\/]* | ?:[\\/]* ) # Absolute path.
13032 ac_srcdir=$srcdir$ac_dir_suffix;
13033 ac_top_srcdir=$srcdir ;;
a0da8069 13034 *) # Relative path.
c6b750e1
DJ
13035 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13036 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13037esac
252b5132 13038
c6b750e1
DJ
13039# Do not use `cd foo && pwd` to compute absolute paths, because
13040# the directories may not exist.
13041case `pwd` in
13042.) ac_abs_builddir="$ac_dir";;
13043*)
13044 case "$ac_dir" in
13045 .) ac_abs_builddir=`pwd`;;
13046 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13047 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13048 esac;;
13049esac
13050case $ac_abs_builddir in
13051.) ac_abs_top_builddir=${ac_top_builddir}.;;
13052*)
13053 case ${ac_top_builddir}. in
13054 .) ac_abs_top_builddir=$ac_abs_builddir;;
13055 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13056 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13057 esac;;
13058esac
13059case $ac_abs_builddir in
13060.) ac_abs_srcdir=$ac_srcdir;;
13061*)
13062 case $ac_srcdir in
13063 .) ac_abs_srcdir=$ac_abs_builddir;;
13064 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13065 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13066 esac;;
13067esac
13068case $ac_abs_builddir in
13069.) ac_abs_top_srcdir=$ac_top_srcdir;;
13070*)
13071 case $ac_top_srcdir in
13072 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13073 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13074 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13075 esac;;
13076esac
252b5132 13077
c6b750e1
DJ
13078
13079 case $INSTALL in
13080 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13081 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13082 esac
252b5132 13083
c6b750e1
DJ
13084 if test x"$ac_file" != x-; then
13085 { echo "$as_me:$LINENO: creating $ac_file" >&5
13086echo "$as_me: creating $ac_file" >&6;}
13087 rm -f "$ac_file"
13088 fi
13089 # Let's still pretend it is `configure' which instantiates (i.e., don't
13090 # use $as_me), people would be surprised to read:
13091 # /* config.h. Generated by config.status. */
13092 if test x"$ac_file" = x-; then
13093 configure_input=
13094 else
13095 configure_input="$ac_file. "
13096 fi
13097 configure_input=$configure_input"Generated from `echo $ac_file_in |
13098 sed 's,.*/,,'` by configure."
13099
13100 # First look for the input files in the build tree, otherwise in the
13101 # src tree.
13102 ac_file_inputs=`IFS=:
13103 for f in $ac_file_in; do
13104 case $f in
13105 -) echo $tmp/stdin ;;
13106 [\\/$]*)
13107 # Absolute (can't be DOS-style, as IFS=:)
13108 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13109echo "$as_me: error: cannot find input file: $f" >&2;}
13110 { (exit 1); exit 1; }; }
13111 echo "$f";;
13112 *) # Relative
13113 if test -f "$f"; then
13114 # Build tree
13115 echo "$f"
13116 elif test -f "$srcdir/$f"; then
13117 # Source tree
13118 echo "$srcdir/$f"
13119 else
13120 # /dev/null tree
13121 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13122echo "$as_me: error: cannot find input file: $f" >&2;}
13123 { (exit 1); exit 1; }; }
13124 fi;;
13125 esac
13126 done` || { (exit 1); exit 1; }
13127_ACEOF
13128cat >>$CONFIG_STATUS <<_ACEOF
13129 sed "$ac_vpsub
13130$extrasub
13131_ACEOF
13132cat >>$CONFIG_STATUS <<\_ACEOF
13133:t
13134/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13135s,@configure_input@,$configure_input,;t t
13136s,@srcdir@,$ac_srcdir,;t t
13137s,@abs_srcdir@,$ac_abs_srcdir,;t t
13138s,@top_srcdir@,$ac_top_srcdir,;t t
13139s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13140s,@builddir@,$ac_builddir,;t t
13141s,@abs_builddir@,$ac_abs_builddir,;t t
13142s,@top_builddir@,$ac_top_builddir,;t t
13143s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13144s,@INSTALL@,$ac_INSTALL,;t t
13145" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13146 rm -f $tmp/stdin
13147 if test x"$ac_file" != x-; then
13148 mv $tmp/out $ac_file
13149 else
13150 cat $tmp/out
13151 rm -f $tmp/out
13152 fi
c148b4cb 13153
c6b750e1
DJ
13154done
13155_ACEOF
c148b4cb 13156
c6b750e1 13157cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13158
c6b750e1
DJ
13159{ (exit 0); exit 0; }
13160_ACEOF
c148b4cb 13161chmod +x $CONFIG_STATUS
c6b750e1
DJ
13162ac_clean_files=$ac_clean_files_save
13163
13164
13165# configure is writing to config.log, and then calls config.status.
13166# config.status does its own redirection, appending to config.log.
13167# Unfortunately, on DOS this fails, as config.log is still kept open
13168# by configure, so config.status won't be able to write to it; its
13169# output is simply discarded. So we exec the FD to /dev/null,
13170# effectively closing config.log, so it can be properly (re)opened and
13171# appended to by config.status. When coming back to configure, we
13172# need to make the FD available again.
13173if test "$no_create" != yes; then
13174 ac_cs_success=:
13175 ac_config_status_args=
13176 test "$silent" = yes &&
13177 ac_config_status_args="$ac_config_status_args --quiet"
13178 exec 5>/dev/null
13179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13180 exec 5>>config.log
13181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13182 # would make configure fail if this is the last instruction.
13183 $ac_cs_success || { (exit 1); exit 1; }
13184fi
c148b4cb 13185
This page took 1.103196 seconds and 4 git commands to generate.