2008-01-31 Marc Gauthier <marc@tensilica.com>
[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)
096f7d00 2301 unsupported_languages="$unsupported_languages fortran"
5e818318 2302 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2303 *-*-linux*)
5e818318 2304 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2305 *)
096f7d00 2306 unsupported_languages="$unsupported_languages fortran"
54d1c879 2307 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2308 esac
691bb5a1 2309 libgloss_dir=cris
a0da8069 2310 ;;
3e707e94 2311 crx-*-*)
54d1c879 2312 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2313 ;;
a0da8069 2314 d10v-*-*)
54d1c879 2315 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2316 ;;
2317 d30v-*-*)
54d1c879 2318 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2319 ;;
691bb5a1
DD
2320 ep9312-*-elf | ep9312-*-coff)
2321 libgloss_dir=arm
2322 ;;
a0da8069 2323 fr30-*-elf*)
54d1c879 2324 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2325 ;;
2326 frv-*-*)
54d1c879 2327 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2328 ;;
2329 h8300*-*-*)
54d1c879 2330 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2331 ;;
2332 h8500-*-*)
54d1c879 2333 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2334 ;;
caeba88f 2335 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2336 ;;
a0da8069
NN
2337 hppa*64*-*-linux* | parisc*64*-*-linux*)
2338 # In this case, it's because the hppa64-linux target is for
2339 # the kernel only at this point and has no libc, and thus no
2340 # headers, crt*.o, etc., all of which are needed by these.
2341 noconfigdirs="$noconfigdirs target-zlib"
2342 ;;
5dcac624
DA
2343 parisc*-*-linux* | hppa*-*-linux*)
2344 ;;
a0da8069 2345 hppa*-*-*elf* | \
a0da8069
NN
2346 hppa*-*-lites* | \
2347 hppa*-*-openbsd* | \
2348 hppa*64*-*-*)
54d1c879 2349 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2350 ;;
2351 hppa*-hp-hpux11*)
2352 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2353 ;;
691bb5a1
DD
2354 hppa*-*-pro*)
2355 libgloss_dir=pa
2356 ;;
a0da8069
NN
2357 hppa*-*-*)
2358 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2359 # build on HP-UX 10.20.
54d1c879 2360 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2361 ;;
b07c2aad 2362 i960-*-*)
54d1c879 2363 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2364 ;;
a0da8069
NN
2365 ia64*-*-elf*)
2366 # No gdb support yet.
675c6968 2367 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2368 ;;
2369 ia64*-**-hpux*)
2370 # No gdb or ld support yet.
54d1c879 2371 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2372 ;;
caeba88f 2373 i370-*-opened*)
caeba88f 2374 ;;
ec11bdc6 2375 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2376 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2377 libgloss_dir=i386
a0da8069 2378 ;;
ec11bdc6 2379 i[3456789]86-*-linux*)
a0da8069
NN
2380 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2381 # not build java stuff by default.
2382 case "${target}" in
2383 *-*-*libc1*)
54d1c879 2384 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2385 esac
2386
2387 # This section makes it possible to build newlib natively on linux.
2388 # If we are using a cross compiler then don't configure newlib.
2389 if test x${is_cross_compiler} != xno ; then
bba45b8b 2390 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2391 fi
2392 noconfigdirs="$noconfigdirs target-libgloss"
2393 # If we are not using a cross compiler, do configure newlib.
2394 # Note however, that newlib will only be configured in this situation
2395 # if the --with-newlib option has been given, because otherwise
2396 # 'target-newlib' will appear in skipdirs.
2397 ;;
ec11bdc6 2398 i[3456789]86-*-mingw32*)
45055374
CV
2399 target_configdirs="$target_configdirs target-winsup"
2400 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2401 ;;
2d1e8239
NC
2402 x86_64-*-mingw*)
2403 target_configdirs="$target_configdirs target-winsup"
2404 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2405 ;;
a0da8069
NN
2406 *-*-cygwin*)
2407 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2408 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2409 # always build newlib if winsup directory is present.
45055374 2410 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2411 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2412 elif test -d "$srcdir/newlib"; then
45055374 2413 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2414 fi
c6b750e1 2415 ;;
caeba88f
AL
2416 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2417 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2418 ;;
ec11bdc6 2419 i[3456789]86-*-pe)
54d1c879 2420 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2421 ;;
ec11bdc6 2422 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2423 # The linker does not yet know about weak symbols in COFF,
2424 # and is not configured to handle mixed ELF and COFF.
54d1c879 2425 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2426 ;;
ec11bdc6 2427 i[3456789]86-*-sco*)
54d1c879 2428 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2429 ;;
ec11bdc6 2430 i[3456789]86-*-solaris2*)
a0da8069
NN
2431 noconfigdirs="$noconfigdirs target-libgloss"
2432 ;;
ec11bdc6 2433 i[3456789]86-*-sysv4*)
54d1c879 2434 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2435 ;;
ec11bdc6 2436 i[3456789]86-*-beos*)
54d1c879 2437 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2438 ;;
b59bea8a 2439 i[3456789]86-*-rdos*)
2429c060
PB
2440 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2441 ;;
b07c2aad 2442 m32r-*-*)
54d1c879 2443 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2444 ;;
a0da8069 2445 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2446 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2447 libgloss_dir=m68hc11
a0da8069
NN
2448 ;;
2449 m68k-*-elf*)
54d1c879 2450 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2451 ;;
2452 m68k-*-coff*)
54d1c879 2453 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2454 ;;
691bb5a1
DD
2455 m68*-*-* | fido-*-*)
2456 libgloss_dir=m68k
2457 ;;
a0da8069
NN
2458 mcore-*-pe*)
2459 # The EPOC C++ environment does not support exceptions or rtti,
2460 # and so building libstdc++-v3 tends not to always work.
2461 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2462 ;;
2463 mmix-*-*)
59f7ec45 2464 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2465 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2466 ;;
2467 mn10200-*-*)
54d1c879 2468 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2469 ;;
2470 mn10300-*-*)
54d1c879 2471 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2472 ;;
4970f871 2473 mt-*-*)
cdb9b172
AH
2474 noconfigdirs="$noconfigdirs sim"
2475 ;;
a0da8069
NN
2476 powerpc-*-aix*)
2477 # copied from rs6000-*-* entry
54d1c879 2478 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2479 ;;
2480 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2481 target_configdirs="$target_configdirs target-winsup"
54d1c879 2482 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2483 # always build newlib.
2484 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2485 ;;
2486 # This is temporary until we can link against shared libraries
2487 powerpcle-*-solaris*)
54d1c879 2488 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2489 libgloss_dir=rs6000
a0da8069
NN
2490 ;;
2491 powerpc-*-beos*)
54d1c879 2492 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2493 ;;
a0da8069 2494 powerpc-*-eabi)
54d1c879 2495 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2496 libgloss_dir=rs6000
caeba88f
AL
2497 ;;
2498 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2499 libgloss_dir=rs6000
a0da8069 2500 ;;
a0da8069 2501 rs6000-*-lynxos*)
54d1c879 2502 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2503 ;;
2504 rs6000-*-aix*)
54d1c879 2505 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2506 ;;
2507 rs6000-*-*)
54d1c879 2508 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2509 ;;
2510 m68k-apollo-*)
54d1c879 2511 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2512 ;;
5bd8be13
RS
2513 mips*-sde-elf*)
2514 skipdirs="$skipdirs target-libiberty"
2515 noconfigdirs="$noconfigdirs ${libgcj}"
2516 if test x$with_newlib = xyes; then
2517 noconfigdirs="$noconfigdirs gprof"
2518 fi
2519 libgloss_dir=mips
2520 ;;
a0da8069 2521 mips*-*-irix5*)
54d1c879 2522 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2523 ;;
2524 mips*-*-irix6*)
a0da8069
NN
2525 # Linking libjava exceeds command-line length limits on at least
2526 # IRIX 6.2, but not on IRIX 6.5.
2527 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2528 # <oldham@codesourcery.com>
54d1c879 2529 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2530 ;;
a0da8069 2531 mips*-*-bsd*)
54d1c879 2532 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2533 ;;
a0da8069
NN
2534 mips*-*-linux*)
2535 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2536 ;;
2537 mips*-*-*)
54d1c879 2538 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2539 libgloss_dir=mips
a0da8069
NN
2540 ;;
2541 romp-*-*)
54d1c879 2542 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2543 ;;
dbf85af7 2544 sh-*-* | sh64-*-*)
a0da8069 2545 case "${host}" in
ec11bdc6
DD
2546 i[3456789]86-*-vsta) ;; # don't add gprof back in
2547 i[3456789]86-*-go32*) ;; # don't add gprof back in
2548 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2549 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2550 esac
54d1c879 2551 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2552 ;;
691bb5a1
DD
2553 sparclet-*-aout* | sparc86x-*-*)
2554 libgloss_dir=sparc
2555 ;;
a0da8069 2556 sparc-*-elf*)
54d1c879 2557 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2558 ;;
2559 sparc64-*-elf*)
54d1c879 2560 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2561 libgloss_dir=sparc
a0da8069
NN
2562 ;;
2563 sparclite-*-*)
54d1c879 2564 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2565 libgloss_dir=sparc
a0da8069
NN
2566 ;;
2567 sparc-*-sunos4*)
54d1c879 2568 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2569 if test x${is_cross_compiler} != xno ; then
2570 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2571 else
2572 use_gnu_ld=no
2573 fi
2574 ;;
e3c770b1 2575 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2576 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2577 ;;
a0da8069
NN
2578 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2579 ;;
2839fe5d
BE
2580 spu-*-*)
2581 skipdirs="target-libssp"
2582 ;;
a0da8069 2583 v810-*-*)
54d1c879 2584 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2585 ;;
2586 v850-*-*)
54d1c879 2587 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2588 ;;
2589 v850e-*-*)
54d1c879 2590 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2591 ;;
2592 v850ea-*-*)
54d1c879 2593 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2594 ;;
2595 vax-*-vms)
54d1c879 2596 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2597 ;;
2598 vax-*-*)
54d1c879 2599 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2600 ;;
fbd1054d 2601 xtensa-*-*)
54d1c879 2602 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2603 ;;
a0da8069 2604 ip2k-*-*)
54d1c879 2605 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2606 ;;
de0b4a87 2607 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2608 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2609 ;;
2610 *-*-lynxos*)
54d1c879 2611 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2612 ;;
a0da8069 2613 *-*-*)
54d1c879 2614 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2615 ;;
2616esac
252b5132 2617
a0da8069
NN
2618# If we aren't building newlib, then don't build libgloss, since libgloss
2619# depends upon some newlib header files.
2620case "${noconfigdirs}" in
2621 *target-libgloss*) ;;
2622 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2623esac
2624
a0da8069
NN
2625# Work in distributions that contain no compiler tools, like Autoconf.
2626tentative_cc=""
2627host_makefile_frag=/dev/null
2628if test -d ${srcdir}/config ; then
2629case "${host}" in
2630 m68k-hp-hpux*)
2631 # Avoid "too much defining" errors from HPUX compiler.
2632 tentative_cc="cc -Wp,-H256000"
2633 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2634 # If it's HP/UX ar, this should be harmless.
2635 RANLIB="ar ts"
2636 ;;
2637 m68k-apollo-sysv*)
2638 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2639 ;;
2640 m68k-apollo-bsd*)
2641 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2642 # chokes on bfd, the compiler won't let you assign integers to enums, and
2643 # other problems. Defining CC to gcc is a questionable way to say "don't use
2644 # the apollo compiler" (the preferred version of GCC could be called cc,
2645 # or whatever), but I'm not sure leaving CC as cc is any better...
2646 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2647 # Used to have BISON=yacc.
2648 tentative_cc=gcc
2649 ;;
2650 m88k-dg-dgux*)
2651 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2652 ;;
2653 m88k-harris-cxux*)
2654 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2655 tentative_cc="cc -Xa"
2656 host_makefile_frag="config/mh-cxux"
2657 ;;
2658 m88k-motorola-sysv*)
2659 ;;
2660 mips*-dec-ultrix*)
2661 tentative_cc="cc -Wf,-XNg1000"
2662 host_makefile_frag="config/mh-decstation"
2663 ;;
2664 mips*-nec-sysv4*)
2665 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2666 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2667 host_makefile_frag="config/mh-necv4"
2668 ;;
2669 mips*-sgi-irix4*)
2670 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2671 # environment. Also bump switch table size so that cp-parse will
2672 # compile. Bump string length limit so linker builds.
2673 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2674 ;;
2675 mips*-*-sysv4*)
2676 host_makefile_frag="config/mh-sysv4"
2677 ;;
2678 mips*-*-sysv*)
2679 # This is for a MIPS running RISC/os 4.52C.
2680
2681 # This is needed for GDB, but needs to be in the top-level make because
2682 # if a library is compiled with the bsd headers and gets linked with the
2683 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2684 # a different size).
2685 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2686 # known except to select the sysv environment. Could we use /proc instead?
2687 # These "sysv environments" and "bsd environments" often end up being a pain.
2688 #
2689 # This is not part of CFLAGS because perhaps not all C compilers have this
2690 # option.
2691 tentative_cc="cc -systype sysv"
2692 ;;
2693 i370-ibm-opened*)
2694 tentative_cc="c89"
2695 ;;
ec11bdc6 2696 i[3456789]86-*-sysv5*)
a0da8069
NN
2697 host_makefile_frag="config/mh-sysv5"
2698 ;;
ec11bdc6 2699 i[3456789]86-*-dgux*)
a0da8069
NN
2700 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2701 host_makefile_frag="config/mh-dgux386"
2702 ;;
ec11bdc6 2703 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2704 # The MetaWare compiler will generate a copyright message unless you
2705 # turn it off by adding the -Hnocopyr flag.
2706 tentative_cc="cc -Hnocopyr"
2707 ;;
ec11bdc6 2708 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2709 # for an NCR 3000 (i486/SVR4) system.
2710 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2711 # This compiler not only emits obnoxious copyright messages every time
2712 # you run it, but it chokes and dies on a whole bunch of GNU source
2713 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2714 tentative_cc="/usr/ccs/ATT/cc"
2715 host_makefile_frag="config/mh-ncr3000"
2716 ;;
ec11bdc6 2717 i[3456789]86-*-sco3.2v5*)
a0da8069 2718 ;;
ec11bdc6 2719 i[3456789]86-*-sco*)
a0da8069
NN
2720 # The native C compiler botches some simple uses of const. Unfortunately,
2721 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2722 tentative_cc="cc -Dconst="
2723 host_makefile_frag="config/mh-sco"
2724 ;;
ec11bdc6 2725 i[3456789]86-*-udk*)
a0da8069
NN
2726 host_makefile_frag="config/mh-sysv5"
2727 ;;
ec11bdc6 2728 i[3456789]86-*-solaris2*)
a0da8069
NN
2729 host_makefile_frag="config/mh-sysv4"
2730 ;;
ec11bdc6 2731 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2732 host_makefile_frag="config/mh-djgpp"
2733 ;;
2734 *-cygwin*)
2735 host_makefile_frag="config/mh-cygwin"
2736 ;;
2737 *-mingw32*)
84e7906e 2738 host_makefile_frag="config/mh-mingw"
a0da8069 2739 ;;
2d1e8239 2740 *-mingw64*)
84e7906e 2741 host_makefile_frag="config/mh-mingw"
2d1e8239 2742 ;;
a0da8069
NN
2743 *-interix*)
2744 host_makefile_frag="config/mh-interix"
2745 ;;
2746 vax-*-ultrix2*)
2747 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2748 tentative_cc=gcc
2749 ;;
2750 *-*-solaris2*)
2751 host_makefile_frag="config/mh-solaris"
2752 ;;
2753 m68k-sun-sunos*)
2754 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2755 # without overflowing the jump tables (-J says to use a 32 bit table)
2756 tentative_cc="cc -J"
2757 ;;
2758 *-hp-hpux*)
2759 tentative_cc="cc -Wp,-H256000"
2760 ;;
2761 *-*-hiux*)
2762 tentative_cc="cc -Wp,-H256000"
2763 ;;
2764 rs6000-*-lynxos*)
2765 # /bin/cc is less than useful for our purposes. Always use GCC
2766 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2767 host_makefile_frag="config/mh-lynxrs6k"
2768 ;;
0df3d27f
PB
2769 powerpc-*-darwin*)
2770 host_makefile_frag="config/mh-ppc-darwin"
2771 ;;
f6d183c0
PB
2772 powerpc-*-aix*)
2773 host_makefile_frag="config/mh-ppc-aix"
2774 ;;
2775 rs6000-*-aix*)
2776 host_makefile_frag="config/mh-ppc-aix"
2777 ;;
a0da8069
NN
2778 *-*-lynxos*)
2779 # /bin/cc is less than useful for our purposes. Always use GCC
2780 tentative_cc="/bin/gcc"
2781 ;;
2782 *-*-sysv4*)
2783 host_makefile_frag="config/mh-sysv4"
2784 ;;
fe69863c
DD
2785 # This is placed last to prevent interfering with the cases above.
2786 i[3456789]86-*-*)
2787 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2788 host_makefile_frag="config/mh-x86omitfp"
2789 ;;
a0da8069
NN
2790esac
2791fi
2792
9e07f89d
NN
2793# If we aren't going to be using gcc, see if we can extract a definition
2794# of CC from the fragment.
2795# Actually, use the 'pre-extracted' version above.
2796if test -z "${CC}" && test "${build}" = "${host}" ; then
2797 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2798 found=
2799 for dir in $PATH; do
2800 test -z "$dir" && dir=.
2801 if test -f $dir/gcc; then
2802 found=yes
2803 break
2804 fi
2805 done
2806 IFS="$save_ifs"
2807 if test -z "${found}" && test -n "${tentative_cc}" ; then
2808 CC=$tentative_cc
2809 fi
2810fi
2811
2812if test "${build}" != "${host}" ; then
1576798e
PB
2813 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2814 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2815 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2816 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2817 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2818 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2819 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2820 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2821 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2822 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2823 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2824 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2825else
2826 AR_FOR_BUILD="\$(AR)"
2827 AS_FOR_BUILD="\$(AS)"
512b7dfb 2828 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2829 CXX_FOR_BUILD="\$(CXX)"
2830 GCJ_FOR_BUILD="\$(GCJ)"
2831 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2832 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2833 LD_FOR_BUILD="\$(LD)"
2834 NM_FOR_BUILD="\$(NM)"
2835 RANLIB_FOR_BUILD="\$(RANLIB)"
2836 WINDRES_FOR_BUILD="\$(WINDRES)"
2837 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2838fi
2839
2840ac_ext=c
c6b750e1
DJ
2841ac_cpp='$CPP $CPPFLAGS'
2842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2844ac_compiler_gnu=$ac_cv_c_compiler_gnu
2845if test -n "$ac_tool_prefix"; then
2846 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2847set dummy ${ac_tool_prefix}gcc; ac_word=$2
2848echo "$as_me:$LINENO: checking for $ac_word" >&5
2849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850if test "${ac_cv_prog_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852else
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2855else
2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH
2858do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867done
2868done
2869
2870fi
2871fi
2872CC=$ac_cv_prog_CC
2873if test -n "$CC"; then
2874 echo "$as_me:$LINENO: result: $CC" >&5
2875echo "${ECHO_T}$CC" >&6
2876else
2877 echo "$as_me:$LINENO: result: no" >&5
2878echo "${ECHO_T}no" >&6
2879fi
2880
2881fi
2882if test -z "$ac_cv_prog_CC"; then
2883 ac_ct_CC=$CC
6a9cf61e 2884 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2885set dummy gcc; ac_word=$2
c6b750e1
DJ
2886echo "$as_me:$LINENO: checking for $ac_word" >&5
2887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890else
2891 if test -n "$ac_ct_CC"; then
2892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2893else
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895for as_dir in $PATH
2896do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_ac_ct_CC="gcc"
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905done
2906done
2907
2908fi
2909fi
2910ac_ct_CC=$ac_cv_prog_ac_ct_CC
2911if test -n "$ac_ct_CC"; then
2912 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2913echo "${ECHO_T}$ac_ct_CC" >&6
2914else
2915 echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6
2917fi
2918
2919 CC=$ac_ct_CC
2920else
2921 CC="$ac_cv_prog_CC"
2922fi
2923
2924if test -z "$CC"; then
2925 if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2927set dummy ${ac_tool_prefix}cc; ac_word=$2
2928echo "$as_me:$LINENO: checking for $ac_word" >&5
2929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2930if test "${ac_cv_prog_CC+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2932else
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2935else
c6b750e1
DJ
2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943 ac_cv_prog_CC="${ac_tool_prefix}cc"
2944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2946 fi
2947done
2948done
2949
9e07f89d
NN
2950fi
2951fi
c6b750e1 2952CC=$ac_cv_prog_CC
9e07f89d 2953if test -n "$CC"; then
c6b750e1
DJ
2954 echo "$as_me:$LINENO: result: $CC" >&5
2955echo "${ECHO_T}$CC" >&6
9e07f89d 2956else
c6b750e1
DJ
2957 echo "$as_me:$LINENO: result: no" >&5
2958echo "${ECHO_T}no" >&6
9e07f89d
NN
2959fi
2960
c6b750e1
DJ
2961fi
2962if test -z "$ac_cv_prog_CC"; then
2963 ac_ct_CC=$CC
2964 # Extract the first word of "cc", so it can be a program name with args.
2965set dummy cc; ac_word=$2
2966echo "$as_me:$LINENO: checking for $ac_word" >&5
2967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2968if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970else
2971 if test -n "$ac_ct_CC"; then
2972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2973else
2974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975for as_dir in $PATH
2976do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981 ac_cv_prog_ac_ct_CC="cc"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2984 fi
2985done
2986done
2987
2988fi
2989fi
2990ac_ct_CC=$ac_cv_prog_ac_ct_CC
2991if test -n "$ac_ct_CC"; then
2992 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2993echo "${ECHO_T}$ac_ct_CC" >&6
2994else
2995 echo "$as_me:$LINENO: result: no" >&5
2996echo "${ECHO_T}no" >&6
2997fi
2998
2999 CC=$ac_ct_CC
3000else
3001 CC="$ac_cv_prog_CC"
3002fi
3003
3004fi
9e07f89d
NN
3005if test -z "$CC"; then
3006 # Extract the first word of "cc", so it can be a program name with args.
3007set dummy cc; ac_word=$2
c6b750e1
DJ
3008echo "$as_me:$LINENO: checking for $ac_word" >&5
3009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3010if test "${ac_cv_prog_CC+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3012else
3013 if test -n "$CC"; then
3014 ac_cv_prog_CC="$CC" # Let the user override the test.
3015else
9e07f89d 3016 ac_prog_rejected=no
c6b750e1
DJ
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3025 ac_prog_rejected=yes
3026 continue
3027 fi
3028 ac_cv_prog_CC="cc"
3029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3031 fi
3032done
3033done
3034
9e07f89d
NN
3035if test $ac_prog_rejected = yes; then
3036 # We found a bogon in the path, so make sure we never use it.
3037 set dummy $ac_cv_prog_CC
3038 shift
c6b750e1 3039 if test $# != 0; then
9e07f89d
NN
3040 # We chose a different compiler from the bogus one.
3041 # However, it has the same basename, so the bogon will be chosen
3042 # first if we set CC to just the basename; use the full file name.
3043 shift
c6b750e1 3044 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3045 fi
3046fi
3047fi
3048fi
c6b750e1 3049CC=$ac_cv_prog_CC
9e07f89d 3050if test -n "$CC"; then
c6b750e1
DJ
3051 echo "$as_me:$LINENO: result: $CC" >&5
3052echo "${ECHO_T}$CC" >&6
9e07f89d 3053else
c6b750e1
DJ
3054 echo "$as_me:$LINENO: result: no" >&5
3055echo "${ECHO_T}no" >&6
9e07f89d
NN
3056fi
3057
c6b750e1
DJ
3058fi
3059if test -z "$CC"; then
3060 if test -n "$ac_tool_prefix"; then
3061 for ac_prog in cl
3062 do
3063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3064set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3065echo "$as_me:$LINENO: checking for $ac_word" >&5
3066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067if test "${ac_cv_prog_CC+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3069else
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3072else
c6b750e1
DJ
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
376a0e54 3083 fi
c6b750e1
DJ
3084done
3085done
cac3d6c4 3086
c6b750e1
DJ
3087fi
3088fi
3089CC=$ac_cv_prog_CC
3090if test -n "$CC"; then
3091 echo "$as_me:$LINENO: result: $CC" >&5
3092echo "${ECHO_T}$CC" >&6
cac3d6c4 3093else
c6b750e1
DJ
3094 echo "$as_me:$LINENO: result: no" >&5
3095echo "${ECHO_T}no" >&6
9e07f89d 3096fi
cac3d6c4 3097
c6b750e1
DJ
3098 test -n "$CC" && break
3099 done
cac3d6c4 3100fi
c6b750e1
DJ
3101if test -z "$CC"; then
3102 ac_ct_CC=$CC
3103 for ac_prog in cl
3104do
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106set dummy $ac_prog; ac_word=$2
3107echo "$as_me:$LINENO: checking for $ac_word" >&5
3108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3109if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3111else
c6b750e1
DJ
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3114else
c6b750e1
DJ
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_ac_ct_CC="$ac_prog"
3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3125 fi
3126done
3127done
3128
cac3d6c4
CM
3129fi
3130fi
c6b750e1
DJ
3131ac_ct_CC=$ac_cv_prog_ac_ct_CC
3132if test -n "$ac_ct_CC"; then
3133 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3134echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3135else
c6b750e1
DJ
3136 echo "$as_me:$LINENO: result: no" >&5
3137echo "${ECHO_T}no" >&6
cac3d6c4 3138fi
376a0e54 3139
c6b750e1
DJ
3140 test -n "$ac_ct_CC" && break
3141done
3142
3143 CC=$ac_ct_CC
3144fi
3145
3146fi
3147
3148
3149test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3150See \`config.log' for more details." >&5
3151echo "$as_me: error: no acceptable C compiler found in \$PATH
3152See \`config.log' for more details." >&2;}
3153 { (exit 1); exit 1; }; }
3154
3155# Provide some information about the compiler.
3156echo "$as_me:$LINENO:" \
3157 "checking for C compiler version" >&5
3158ac_compiler=`set X $ac_compile; echo $2`
3159{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3160 (eval $ac_compiler --version </dev/null >&5) 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }
3164{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3165 (eval $ac_compiler -v </dev/null >&5) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }
3169{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3170 (eval $ac_compiler -V </dev/null >&5) 2>&5
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }
3174
3175cat >conftest.$ac_ext <<_ACEOF
3176/* confdefs.h. */
3177_ACEOF
3178cat confdefs.h >>conftest.$ac_ext
3179cat >>conftest.$ac_ext <<_ACEOF
3180/* end confdefs.h. */
3181
3182int
3183main ()
3184{
3185
3186 ;
3187 return 0;
3188}
3189_ACEOF
3190ac_clean_files_save=$ac_clean_files
3191ac_clean_files="$ac_clean_files a.out a.exe b.out"
3192# Try to create an executable without -o first, disregard a.out.
3193# It will help us diagnose broken compilers, and finding out an intuition
3194# of exeext.
3195echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3196echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3197ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3198if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3199 (eval $ac_link_default) 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; then
3203 # Find the output, starting from the most likely. This scheme is
3204# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3205# resort.
3206
3207# Be careful to initialize this variable, since it used to be cached.
3208# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3209ac_cv_exeext=
3210# b.out is created by i960 compilers.
3211for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3212do
3213 test -f "$ac_file" || continue
3214 case $ac_file in
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3216 ;;
3217 conftest.$ac_ext )
3218 # This is the source file.
3219 ;;
3220 [ab].out )
3221 # We found the default executable, but exeext='' is most
3222 # certainly right.
3223 break;;
3224 *.* )
3225 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 # FIXME: I believe we export ac_cv_exeext for Libtool,
3227 # but it would be cool to find out if it's true. Does anybody
3228 # maintain Libtool? --akim.
3229 export ac_cv_exeext
3230 break;;
3231 * )
3232 break;;
3233 esac
3234done
3235else
3236 echo "$as_me: failed program was:" >&5
3237sed 's/^/| /' conftest.$ac_ext >&5
3238
3239{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3240See \`config.log' for more details." >&5
3241echo "$as_me: error: C compiler cannot create executables
3242See \`config.log' for more details." >&2;}
3243 { (exit 77); exit 77; }; }
3244fi
3245
3246ac_exeext=$ac_cv_exeext
3247echo "$as_me:$LINENO: result: $ac_file" >&5
3248echo "${ECHO_T}$ac_file" >&6
3249
3250# Check the compiler produces executables we can run. If not, either
3251# the compiler is broken, or we cross compile.
3252echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3253echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3254# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3255# If not cross compiling, check that we can run a simple program.
3256if test "$cross_compiling" != yes; then
3257 if { ac_try='./$ac_file'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 (eval $ac_try) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 cross_compiling=no
3264 else
3265 if test "$cross_compiling" = maybe; then
3266 cross_compiling=yes
3267 else
3268 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3269If you meant to cross compile, use \`--host'.
3270See \`config.log' for more details." >&5
3271echo "$as_me: error: cannot run C compiled programs.
3272If you meant to cross compile, use \`--host'.
3273See \`config.log' for more details." >&2;}
3274 { (exit 1); exit 1; }; }
3275 fi
3276 fi
3277fi
3278echo "$as_me:$LINENO: result: yes" >&5
3279echo "${ECHO_T}yes" >&6
3280
3281rm -f a.out a.exe conftest$ac_cv_exeext b.out
3282ac_clean_files=$ac_clean_files_save
3283# Check the compiler produces executables we can run. If not, either
3284# the compiler is broken, or we cross compile.
3285echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3286echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3287echo "$as_me:$LINENO: result: $cross_compiling" >&5
3288echo "${ECHO_T}$cross_compiling" >&6
3289
3290echo "$as_me:$LINENO: checking for suffix of executables" >&5
3291echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3293 (eval $ac_link) 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; then
3297 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3298# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3299# work properly (i.e., refer to `conftest.exe'), while it won't with
3300# `rm'.
3301for ac_file in conftest.exe conftest conftest.*; do
3302 test -f "$ac_file" || continue
3303 case $ac_file in
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3305 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3306 export ac_cv_exeext
3307 break;;
3308 * ) break;;
3309 esac
3310done
3311else
3312 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3313See \`config.log' for more details." >&5
3314echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3315See \`config.log' for more details." >&2;}
3316 { (exit 1); exit 1; }; }
3317fi
3318
3319rm -f conftest$ac_cv_exeext
3320echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3321echo "${ECHO_T}$ac_cv_exeext" >&6
3322
3323rm -f conftest.$ac_ext
3324EXEEXT=$ac_cv_exeext
3325ac_exeext=$EXEEXT
3326echo "$as_me:$LINENO: checking for suffix of object files" >&5
3327echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3328if test "${ac_cv_objext+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3330else
3331 cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h. */
3337
3338int
3339main ()
3340{
3341
3342 ;
3343 return 0;
3344}
3345_ACEOF
3346rm -f conftest.o conftest.obj
3347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348 (eval $ac_compile) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; then
3352 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3353 case $ac_file in
3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3355 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3356 break;;
3357 esac
3358done
cac3d6c4 3359else
c6b750e1
DJ
3360 echo "$as_me: failed program was:" >&5
3361sed 's/^/| /' conftest.$ac_ext >&5
3362
3363{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3364See \`config.log' for more details." >&5
3365echo "$as_me: error: cannot compute suffix of object files: cannot compile
3366See \`config.log' for more details." >&2;}
3367 { (exit 1); exit 1; }; }
3368fi
3369
3370rm -f conftest.$ac_cv_objext conftest.$ac_ext
3371fi
3372echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3373echo "${ECHO_T}$ac_cv_objext" >&6
3374OBJEXT=$ac_cv_objext
3375ac_objext=$OBJEXT
3376echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3377echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3378if test "${ac_cv_c_compiler_gnu+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380else
3381 cat >conftest.$ac_ext <<_ACEOF
3382/* confdefs.h. */
3383_ACEOF
3384cat confdefs.h >>conftest.$ac_ext
3385cat >>conftest.$ac_ext <<_ACEOF
3386/* end confdefs.h. */
3387
3388int
3389main ()
3390{
3391#ifndef __GNUC__
3392 choke me
3393#endif
3394
3395 ;
3396 return 0;
3397}
3398_ACEOF
3399rm -f conftest.$ac_objext
3400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401 (eval $ac_compile) 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } &&
3408 { ac_try='test -z "$ac_c_werror_flag"
3409 || test ! -s conftest.err'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 ac_compiler_gnu=yes
3422else
3423 echo "$as_me: failed program was:" >&5
3424sed 's/^/| /' conftest.$ac_ext >&5
3425
3426ac_compiler_gnu=no
3427fi
3428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3429ac_cv_c_compiler_gnu=$ac_compiler_gnu
3430
3431fi
3432echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3433echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3434GCC=`test $ac_compiler_gnu = yes && echo yes`
3435ac_test_CFLAGS=${CFLAGS+set}
3436ac_save_CFLAGS=$CFLAGS
3437CFLAGS="-g"
3438echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3439echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3440if test "${ac_cv_prog_cc_g+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442else
3443 cat >conftest.$ac_ext <<_ACEOF
3444/* confdefs.h. */
3445_ACEOF
3446cat confdefs.h >>conftest.$ac_ext
3447cat >>conftest.$ac_ext <<_ACEOF
3448/* end confdefs.h. */
3449
3450int
3451main ()
3452{
3453
3454 ;
3455 return 0;
3456}
3457_ACEOF
3458rm -f conftest.$ac_objext
3459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>conftest.er1
3461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; } &&
3474 { ac_try='test -s conftest.$ac_objext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
9e07f89d
NN
3480 ac_cv_prog_cc_g=yes
3481else
c6b750e1
DJ
3482 echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3484
c6b750e1 3485ac_cv_prog_cc_g=no
376a0e54 3486fi
c6b750e1
DJ
3487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3488fi
3489echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3490echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3491if test "$ac_test_CFLAGS" = set; then
c6b750e1 3492 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3493elif test $ac_cv_prog_cc_g = yes; then
3494 if test "$GCC" = yes; then
3495 CFLAGS="-g -O2"
3496 else
3497 CFLAGS="-g"
3498 fi
3499else
3500 if test "$GCC" = yes; then
3501 CFLAGS="-O2"
3502 else
3503 CFLAGS=
3504 fi
3505fi
c6b750e1
DJ
3506echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3507echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3508if test "${ac_cv_prog_cc_stdc+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510else
3511 ac_cv_prog_cc_stdc=no
3512ac_save_CC=$CC
3513cat >conftest.$ac_ext <<_ACEOF
3514/* confdefs.h. */
3515_ACEOF
3516cat confdefs.h >>conftest.$ac_ext
3517cat >>conftest.$ac_ext <<_ACEOF
3518/* end confdefs.h. */
3519#include <stdarg.h>
3520#include <stdio.h>
3521#include <sys/types.h>
3522#include <sys/stat.h>
3523/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3524struct buf { int x; };
3525FILE * (*rcsopen) (struct buf *, struct stat *, int);
3526static char *e (p, i)
3527 char **p;
3528 int i;
3529{
3530 return p[i];
3531}
3532static char *f (char * (*g) (char **, int), char **p, ...)
3533{
3534 char *s;
3535 va_list v;
3536 va_start (v,p);
3537 s = g (p, va_arg (v,int));
3538 va_end (v);
3539 return s;
3540}
3541
3542/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3543 function prototypes and stuff, but not '\xHH' hex character constants.
3544 These don't provoke an error unfortunately, instead are silently treated
3545 as 'x'. The following induces an error, until -std1 is added to get
3546 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3547 array size at least. It's necessary to write '\x00'==0 to get something
3548 that's true only with -std1. */
3549int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3550
3551int test (int i, double x);
3552struct s1 {int (*f) (int a);};
3553struct s2 {int (*f) (double a);};
3554int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3555int argc;
3556char **argv;
3557int
3558main ()
3559{
3560return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3561 ;
3562 return 0;
3563}
3564_ACEOF
3565# Don't try gcc -ansi; that turns off useful extensions and
3566# breaks some systems' header files.
3567# AIX -qlanglvl=ansi
3568# Ultrix and OSF/1 -std1
3569# HP-UX 10.20 and later -Ae
3570# HP-UX older versions -Aa -D_HPUX_SOURCE
3571# SVR4 -Xc -D__EXTENSIONS__
3572for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3573do
3574 CC="$ac_save_CC $ac_arg"
3575 rm -f conftest.$ac_objext
3576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577 (eval $ac_compile) 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try='test -z "$ac_c_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 ac_cv_prog_cc_stdc=$ac_arg
3598break
3599else
3600 echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603fi
3604rm -f conftest.err conftest.$ac_objext
3605done
3606rm -f conftest.$ac_ext conftest.$ac_objext
3607CC=$ac_save_CC
3608
3609fi
3610
3611case "x$ac_cv_prog_cc_stdc" in
3612 x|xno)
3613 echo "$as_me:$LINENO: result: none needed" >&5
3614echo "${ECHO_T}none needed" >&6 ;;
3615 *)
3616 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3617echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3618 CC="$CC $ac_cv_prog_cc_stdc" ;;
3619esac
3620
3621# Some people use a C++ compiler to compile C. Since we use `exit',
3622# in C++ we need to declare it. In case someone uses the same compiler
3623# for both compiling C and C++ we need to have the C++ compiler decide
3624# the declaration of exit, since it's the most demanding environment.
3625cat >conftest.$ac_ext <<_ACEOF
3626#ifndef __cplusplus
3627 choke me
3628#endif
3629_ACEOF
3630rm -f conftest.$ac_objext
3631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>conftest.er1
3633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } &&
3639 { ac_try='test -z "$ac_c_werror_flag"
3640 || test ! -s conftest.err'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; } &&
3646 { ac_try='test -s conftest.$ac_objext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 (eval $ac_try) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 for ac_declaration in \
3653 '' \
3654 'extern "C" void std::exit (int) throw (); using std::exit;' \
3655 'extern "C" void std::exit (int); using std::exit;' \
3656 'extern "C" void exit (int) throw ();' \
3657 'extern "C" void exit (int);' \
3658 'void exit (int);'
3659do
3660 cat >conftest.$ac_ext <<_ACEOF
3661/* confdefs.h. */
3662_ACEOF
3663cat confdefs.h >>conftest.$ac_ext
3664cat >>conftest.$ac_ext <<_ACEOF
3665/* end confdefs.h. */
3666$ac_declaration
3667#include <stdlib.h>
3668int
3669main ()
3670{
3671exit (42);
3672 ;
3673 return 0;
3674}
3675_ACEOF
3676rm -f conftest.$ac_objext
3677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678 (eval $ac_compile) 2>conftest.er1
3679 ac_status=$?
3680 grep -v '^ *+' conftest.er1 >conftest.err
3681 rm -f conftest.er1
3682 cat conftest.err >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } &&
3685 { ac_try='test -z "$ac_c_werror_flag"
3686 || test ! -s conftest.err'
3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 (eval $ac_try) 2>&5
3689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; } &&
3692 { ac_try='test -s conftest.$ac_objext'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3698 :
3699else
3700 echo "$as_me: failed program was:" >&5
3701sed 's/^/| /' conftest.$ac_ext >&5
3702
3703continue
3704fi
3705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3706 cat >conftest.$ac_ext <<_ACEOF
3707/* confdefs.h. */
3708_ACEOF
3709cat confdefs.h >>conftest.$ac_ext
3710cat >>conftest.$ac_ext <<_ACEOF
3711/* end confdefs.h. */
3712$ac_declaration
3713int
3714main ()
3715{
3716exit (42);
3717 ;
3718 return 0;
3719}
3720_ACEOF
3721rm -f conftest.$ac_objext
3722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3723 (eval $ac_compile) 2>conftest.er1
3724 ac_status=$?
3725 grep -v '^ *+' conftest.er1 >conftest.err
3726 rm -f conftest.er1
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } &&
3730 { ac_try='test -z "$ac_c_werror_flag"
3731 || test ! -s conftest.err'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 (eval $ac_try) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; } &&
3737 { ac_try='test -s conftest.$ac_objext'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739 (eval $ac_try) 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; }; then
3743 break
3744else
3745 echo "$as_me: failed program was:" >&5
3746sed 's/^/| /' conftest.$ac_ext >&5
3747
3748fi
3749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3750done
3751rm -f conftest*
3752if test -n "$ac_declaration"; then
3753 echo '#ifdef __cplusplus' >>confdefs.h
3754 echo $ac_declaration >>confdefs.h
3755 echo '#endif' >>confdefs.h
3756fi
3757
3758else
3759 echo "$as_me: failed program was:" >&5
3760sed 's/^/| /' conftest.$ac_ext >&5
3761
3762fi
3763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3764ac_ext=c
3765ac_cpp='$CPP $CPPFLAGS'
3766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3769
18f6b6ee
PB
3770ac_ext=cc
3771ac_cpp='$CXXCPP $CPPFLAGS'
3772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3775if test -n "$ac_tool_prefix"; then
3776 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3777 do
3778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3779set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3780echo "$as_me:$LINENO: checking for $ac_word" >&5
3781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782if test "${ac_cv_prog_CXX+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784else
3785 if test -n "$CXX"; then
3786 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3787else
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 break 2
3798 fi
3799done
3800done
512b7dfb 3801
18f6b6ee
PB
3802fi
3803fi
3804CXX=$ac_cv_prog_CXX
3805if test -n "$CXX"; then
3806 echo "$as_me:$LINENO: result: $CXX" >&5
3807echo "${ECHO_T}$CXX" >&6
3808else
3809 echo "$as_me:$LINENO: result: no" >&5
3810echo "${ECHO_T}no" >&6
3811fi
3812
3813 test -n "$CXX" && break
3814 done
3815fi
3816if test -z "$CXX"; then
3817 ac_ct_CXX=$CXX
3818 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3819do
3820 # Extract the first word of "$ac_prog", so it can be a program name with args.
3821set dummy $ac_prog; ac_word=$2
3822echo "$as_me:$LINENO: checking for $ac_word" >&5
3823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3826else
3827 if test -n "$ac_ct_CXX"; then
3828 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3829else
3830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831for as_dir in $PATH
3832do
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837 ac_cv_prog_ac_ct_CXX="$ac_prog"
3838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 break 2
512b7dfb 3840 fi
18f6b6ee
PB
3841done
3842done
512b7dfb 3843
18f6b6ee
PB
3844fi
3845fi
3846ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3847if test -n "$ac_ct_CXX"; then
3848 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3849echo "${ECHO_T}$ac_ct_CXX" >&6
3850else
3851 echo "$as_me:$LINENO: result: no" >&5
3852echo "${ECHO_T}no" >&6
3853fi
3854
3855 test -n "$ac_ct_CXX" && break
3856done
3857test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3858
3859 CXX=$ac_ct_CXX
3860fi
3861
3862
3863# Provide some information about the compiler.
3864echo "$as_me:$LINENO:" \
3865 "checking for C++ compiler version" >&5
3866ac_compiler=`set X $ac_compile; echo $2`
3867{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3868 (eval $ac_compiler --version </dev/null >&5) 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }
3872{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3873 (eval $ac_compiler -v </dev/null >&5) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }
3877{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3878 (eval $ac_compiler -V </dev/null >&5) 2>&5
3879 ac_status=$?
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }
3882
3883echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3884echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3885if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887else
3888 cat >conftest.$ac_ext <<_ACEOF
3889/* confdefs.h. */
3890_ACEOF
3891cat confdefs.h >>conftest.$ac_ext
3892cat >>conftest.$ac_ext <<_ACEOF
3893/* end confdefs.h. */
3894
3895int
3896main ()
3897{
3898#ifndef __GNUC__
3899 choke me
3900#endif
3901
3902 ;
3903 return 0;
3904}
3905_ACEOF
3906rm -f conftest.$ac_objext
3907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908 (eval $ac_compile) 2>conftest.er1
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } &&
3915 { ac_try='test -z "$ac_cxx_werror_flag"
3916 || test ! -s conftest.err'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; } &&
3922 { ac_try='test -s conftest.$ac_objext'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
3928 ac_compiler_gnu=yes
3929else
3930 echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
3932
3933ac_compiler_gnu=no
3934fi
3935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3936ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3937
3938fi
3939echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3940echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3941GXX=`test $ac_compiler_gnu = yes && echo yes`
3942ac_test_CXXFLAGS=${CXXFLAGS+set}
3943ac_save_CXXFLAGS=$CXXFLAGS
3944CXXFLAGS="-g"
3945echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3946echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3947if test "${ac_cv_prog_cxx_g+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3949else
3950 cat >conftest.$ac_ext <<_ACEOF
3951/* confdefs.h. */
3952_ACEOF
3953cat confdefs.h >>conftest.$ac_ext
3954cat >>conftest.$ac_ext <<_ACEOF
3955/* end confdefs.h. */
3956
3957int
3958main ()
3959{
3960
3961 ;
3962 return 0;
3963}
3964_ACEOF
3965rm -f conftest.$ac_objext
3966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3967 (eval $ac_compile) 2>conftest.er1
3968 ac_status=$?
3969 grep -v '^ *+' conftest.er1 >conftest.err
3970 rm -f conftest.er1
3971 cat conftest.err >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } &&
3974 { ac_try='test -z "$ac_cxx_werror_flag"
3975 || test ! -s conftest.err'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 (eval $ac_try) 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; } &&
3981 { ac_try='test -s conftest.$ac_objext'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 (eval $ac_try) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
3987 ac_cv_prog_cxx_g=yes
3988else
3989 echo "$as_me: failed program was:" >&5
3990sed 's/^/| /' conftest.$ac_ext >&5
3991
3992ac_cv_prog_cxx_g=no
3993fi
3994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995fi
3996echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3997echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3998if test "$ac_test_CXXFLAGS" = set; then
3999 CXXFLAGS=$ac_save_CXXFLAGS
4000elif test $ac_cv_prog_cxx_g = yes; then
4001 if test "$GXX" = yes; then
4002 CXXFLAGS="-g -O2"
4003 else
4004 CXXFLAGS="-g"
4005 fi
4006else
4007 if test "$GXX" = yes; then
4008 CXXFLAGS="-O2"
4009 else
4010 CXXFLAGS=
4011 fi
4012fi
4013for ac_declaration in \
4014 '' \
4015 'extern "C" void std::exit (int) throw (); using std::exit;' \
4016 'extern "C" void std::exit (int); using std::exit;' \
4017 'extern "C" void exit (int) throw ();' \
4018 'extern "C" void exit (int);' \
4019 'void exit (int);'
4020do
4021 cat >conftest.$ac_ext <<_ACEOF
4022/* confdefs.h. */
4023_ACEOF
4024cat confdefs.h >>conftest.$ac_ext
4025cat >>conftest.$ac_ext <<_ACEOF
4026/* end confdefs.h. */
4027$ac_declaration
4028#include <stdlib.h>
4029int
4030main ()
4031{
4032exit (42);
4033 ;
4034 return 0;
4035}
4036_ACEOF
4037rm -f conftest.$ac_objext
4038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4039 (eval $ac_compile) 2>conftest.er1
4040 ac_status=$?
4041 grep -v '^ *+' conftest.er1 >conftest.err
4042 rm -f conftest.er1
4043 cat conftest.err >&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } &&
4046 { ac_try='test -z "$ac_cxx_werror_flag"
4047 || test ! -s conftest.err'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 (eval $ac_try) 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4059 :
4060else
4061 echo "$as_me: failed program was:" >&5
4062sed 's/^/| /' conftest.$ac_ext >&5
4063
4064continue
4065fi
4066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4067 cat >conftest.$ac_ext <<_ACEOF
4068/* confdefs.h. */
4069_ACEOF
4070cat confdefs.h >>conftest.$ac_ext
4071cat >>conftest.$ac_ext <<_ACEOF
4072/* end confdefs.h. */
4073$ac_declaration
4074int
4075main ()
4076{
4077exit (42);
4078 ;
4079 return 0;
4080}
4081_ACEOF
4082rm -f conftest.$ac_objext
4083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4084 (eval $ac_compile) 2>conftest.er1
4085 ac_status=$?
4086 grep -v '^ *+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } &&
4091 { ac_try='test -z "$ac_cxx_werror_flag"
4092 || test ! -s conftest.err'
4093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 (eval $ac_try) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; } &&
4098 { ac_try='test -s conftest.$ac_objext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 (eval $ac_try) 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4104 break
4105else
4106 echo "$as_me: failed program was:" >&5
4107sed 's/^/| /' conftest.$ac_ext >&5
4108
4109fi
4110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4111done
4112rm -f conftest*
4113if test -n "$ac_declaration"; then
4114 echo '#ifdef __cplusplus' >>confdefs.h
4115 echo $ac_declaration >>confdefs.h
4116 echo '#endif' >>confdefs.h
4117fi
4118
4119ac_ext=c
4120ac_cpp='$CPP $CPPFLAGS'
4121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123ac_compiler_gnu=$ac_cv_c_compiler_gnu
4124
4125
4126# We must set the default linker to the linker used by gcc for the correct
4127# operation of libtool. If LD is not defined and we are using gcc, try to
4128# set the LD default to the ld used by gcc.
4129if test -z "$LD"; then
4130 if test "$GCC" = yes; then
4131 case $build in
4132 *-*-mingw*)
4133 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4134 *)
4135 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4136 esac
4137 case $gcc_prog_ld in
4138 # Accept absolute paths.
4139 [\\/]* | [A-Za-z]:[\\/]*)
4140 LD="$gcc_prog_ld" ;;
4141 esac
4142 fi
512b7dfb
PB
4143fi
4144
4145
4146
4147
c6b750e1 4148if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4149 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4150set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4151echo "$as_me:$LINENO: checking for $ac_word" >&5
4152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4153if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4154 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4155else
512b7dfb
PB
4156 if test -n "$GNATBIND"; then
4157 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4158else
c6b750e1
DJ
4159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH
4161do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4166 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 break 2
4169 fi
4170done
4171done
4172
9e07f89d
NN
4173fi
4174fi
512b7dfb
PB
4175GNATBIND=$ac_cv_prog_GNATBIND
4176if test -n "$GNATBIND"; then
4177 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4178echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4179else
c6b750e1
DJ
4180 echo "$as_me:$LINENO: result: no" >&5
4181echo "${ECHO_T}no" >&6
9e07f89d
NN
4182fi
4183
c6b750e1 4184fi
512b7dfb
PB
4185if test -z "$ac_cv_prog_GNATBIND"; then
4186 ac_ct_GNATBIND=$GNATBIND
4187 # Extract the first word of "gnatbind", so it can be a program name with args.
4188set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4189echo "$as_me:$LINENO: checking for $ac_word" >&5
4190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4191if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4192 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4193else
512b7dfb
PB
4194 if test -n "$ac_ct_GNATBIND"; then
4195 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4196else
c6b750e1
DJ
4197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4204 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4207 fi
4208done
4209done
4210
512b7dfb 4211 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4212fi
4213fi
512b7dfb
PB
4214ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4215if test -n "$ac_ct_GNATBIND"; then
4216 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4217echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4218else
c6b750e1
DJ
4219 echo "$as_me:$LINENO: result: no" >&5
4220echo "${ECHO_T}no" >&6
9e07f89d
NN
4221fi
4222
512b7dfb 4223 GNATBIND=$ac_ct_GNATBIND
24ff9987 4224else
512b7dfb 4225 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4226fi
4227
7df2cd5d 4228if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4229 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4230set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4231echo "$as_me:$LINENO: checking for $ac_word" >&5
4232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4233if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4235else
512b7dfb
PB
4236 if test -n "$GNATMAKE"; then
4237 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4238else
4239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240for as_dir in $PATH
4241do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4246 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 break 2
4249 fi
4250done
4251done
4252
4253fi
4254fi
512b7dfb
PB
4255GNATMAKE=$ac_cv_prog_GNATMAKE
4256if test -n "$GNATMAKE"; then
4257 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4258echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4259else
4260 echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6
4262fi
4263
4264fi
512b7dfb
PB
4265if test -z "$ac_cv_prog_GNATMAKE"; then
4266 ac_ct_GNATMAKE=$GNATMAKE
4267 # Extract the first word of "gnatmake", so it can be a program name with args.
4268set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4269echo "$as_me:$LINENO: checking for $ac_word" >&5
4270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4271if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4273else
512b7dfb
PB
4274 if test -n "$ac_ct_GNATMAKE"; then
4275 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4276else
4277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4284 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288done
4289done
4290
512b7dfb 4291 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4292fi
4293fi
512b7dfb
PB
4294ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4295if test -n "$ac_ct_GNATMAKE"; then
4296 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4297echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4298else
4299 echo "$as_me:$LINENO: result: no" >&5
4300echo "${ECHO_T}no" >&6
4301fi
4302
512b7dfb 4303 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4304else
512b7dfb 4305 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4306fi
4307
c6b750e1
DJ
4308echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4309echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4310if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4312else
4313 cat >conftest.adb <<EOF
4314procedure conftest is begin null; end conftest;
4315EOF
4316acx_cv_cc_gcc_supports_ada=no
4317# There is a bug in old released versions of GCC which causes the
4318# driver to exit successfully when the appropriate language module
4319# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4320# Therefore we must check for the error message as well as an
4321# unsuccessful exit.
b8908782
DD
4322# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4323# given a .adb file, but produce no object file. So we must check
4324# if an object file was really produced to guard against this.
9e07f89d 4325errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4326if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4327 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4328fi
4329rm -f conftest.*
4330fi
c6b750e1
DJ
4331echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4332echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4333
512b7dfb 4334if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4335 have_gnat=yes
4336else
4337 have_gnat=no
4338fi
4339
c6b750e1
DJ
4340echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4341echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4342if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4344else
4345 echo abfoo >t1
4346 echo cdfoo >t2
4347 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4348 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4349 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4350 :
4351 else
4352 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4353 fi
4354 fi
b8908782
DD
4355 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4356 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4357 :
b8908782
DD
4358 else
4359 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4360 fi
4361 fi
4362 rm t1 t2
4363
4364fi
c6b750e1
DJ
4365echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4366echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4367do_compare="$gcc_cv_prog_cmp_skip"
4368
4369
9e07f89d 4370
11b04d1f 4371# Check for GMP and MPFR
4b900473 4372gmplibs="-lmpfr -lgmp"
4b1cb4fe 4373gmpinc=
4b900473
PB
4374have_gmp=no
4375
11b04d1f
DD
4376# Specify a location for mpfr
4377# check for this first so it ends up on the link line before gmp.
c6b750e1 4378
11b04d1f
DD
4379# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4380if test "${with_mpfr_dir+set}" = set; then
4381 withval="$with_mpfr_dir"
c6b750e1
DJ
4382 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4383Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4384echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4385Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4386 { (exit 1); exit 1; }; }
4387fi;
11b04d1f
DD
4388
4389
11b04d1f
DD
4390# Check whether --with-mpfr or --without-mpfr was given.
4391if test "${with_mpfr+set}" = set; then
4392 withval="$with_mpfr"
c6b750e1
DJ
4393
4394fi;
11b04d1f 4395
8a0d8a5c
PB
4396# Check whether --with-mpfr_include or --without-mpfr_include was given.
4397if test "${with_mpfr_include+set}" = set; then
4398 withval="$with_mpfr_include"
c6b750e1
DJ
4399
4400fi;
8a0d8a5c
PB
4401
4402# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4403if test "${with_mpfr_lib+set}" = set; then
4404 withval="$with_mpfr_lib"
8a0d8a5c 4405
c6b750e1 4406fi;
11b04d1f
DD
4407
4408if test "x$with_mpfr" != x; then
4409 gmplibs="-L$with_mpfr/lib $gmplibs"
4410 gmpinc="-I$with_mpfr/include"
4411fi
8a0d8a5c
PB
4412if test "x$with_mpfr_include" != x; then
4413 gmpinc="-I$with_mpfr_include"
4414fi
4415if test "x$with_mpfr_lib" != x; then
4416 gmplibs="-L$with_mpfr_lib $gmplibs"
4417fi
4b900473
PB
4418if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4419 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4420 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4421 # Do not test the mpfr version. Assume that it is sufficient, since
4422 # it is in the source tree, and the library has not been built yet
4423 # but it would be included on the link line in the version check below
4424 # hence making the test fail.
4425 have_gmp=yes
4426fi
11b04d1f 4427
4b1cb4fe 4428# Specify a location for gmp
c6b750e1 4429
4b1cb4fe
DD
4430# Check whether --with-gmp-dir or --without-gmp-dir was given.
4431if test "${with_gmp_dir+set}" = set; then
4432 withval="$with_gmp_dir"
c6b750e1
DJ
4433 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4434Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4435echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4436Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4437 { (exit 1); exit 1; }; }
4438fi;
4b1cb4fe
DD
4439
4440
4b1cb4fe
DD
4441# Check whether --with-gmp or --without-gmp was given.
4442if test "${with_gmp+set}" = set; then
4443 withval="$with_gmp"
c6b750e1
DJ
4444
4445fi;
4b1cb4fe 4446
8a0d8a5c
PB
4447# Check whether --with-gmp_include or --without-gmp_include was given.
4448if test "${with_gmp_include+set}" = set; then
4449 withval="$with_gmp_include"
c6b750e1
DJ
4450
4451fi;
8a0d8a5c
PB
4452
4453# Check whether --with-gmp_lib or --without-gmp_lib was given.
4454if test "${with_gmp_lib+set}" = set; then
4455 withval="$with_gmp_lib"
8a0d8a5c 4456
c6b750e1 4457fi;
8a0d8a5c 4458
4b1cb4fe 4459
11b04d1f
DD
4460if test "x$with_gmp" != x; then
4461 gmplibs="-L$with_gmp/lib $gmplibs"
4462 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4463fi
8a0d8a5c
PB
4464if test "x$with_gmp_include" != x; then
4465 gmpinc="-I$with_gmp_include $gmpinc"
4466fi
4467if test "x$with_gmp_lib" != x; then
4468 gmplibs="-L$with_gmp_lib $gmplibs"
4469fi
4b900473
PB
4470if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4471 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4472 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4473 # Do not test the gmp version. Assume that it is sufficient, since
4474 # it is in the source tree, and the library has not been built yet
4475 # but it would be included on the link line in the version check below
4476 # hence making the test fail.
4477 have_gmp=yes
4478fi
4b1cb4fe 4479
ceb92e78 4480if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4481 have_gmp=yes
4482 saved_CFLAGS="$CFLAGS"
4483 CFLAGS="$CFLAGS $gmpinc"
4484 # Check GMP actually works
c6b750e1
DJ
4485 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4486echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4487
4488cat >conftest.$ac_ext <<_ACEOF
4489/* confdefs.h. */
4490_ACEOF
4491cat confdefs.h >>conftest.$ac_ext
4492cat >>conftest.$ac_ext <<_ACEOF
4493/* end confdefs.h. */
4b1cb4fe 4494#include "gmp.h"
c6b750e1
DJ
4495int
4496main ()
4497{
4b1cb4fe 4498
4b900473
PB
4499 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4500 choke me
4501 #endif
c6b750e1
DJ
4502
4503 ;
4504 return 0;
4505}
4506_ACEOF
4507rm -f conftest.$ac_objext
4508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 echo "$as_me:$LINENO: result: yes" >&5
4530echo "${ECHO_T}yes" >&6
4531else
4532 echo "$as_me: failed program was:" >&5
4533sed 's/^/| /' conftest.$ac_ext >&5
4534
4535echo "$as_me:$LINENO: result: no" >&5
4536echo "${ECHO_T}no" >&6; have_gmp=no
4537fi
4538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4539
4b900473
PB
4540 if test x"$have_gmp" = xyes; then
4541 saved_LIBS="$LIBS"
4542 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4543 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4544echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4545 cat >conftest.$ac_ext <<_ACEOF
4546/* confdefs.h. */
4547_ACEOF
4548cat confdefs.h >>conftest.$ac_ext
4549cat >>conftest.$ac_ext <<_ACEOF
4550/* end confdefs.h. */
9b134994 4551#include <gmp.h>
4b900473 4552 #include <mpfr.h>
c6b750e1
DJ
4553int
4554main ()
4555{
9b134994 4556
57c53b2b 4557 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4b900473
PB
4558 choke me
4559 #endif
a3ca38d2
DD
4560 mpfr_t n;
4561 mpfr_t x;
4b900473 4562 int t;
a3ca38d2
DD
4563 mpfr_init (n);
4564 mpfr_init (x);
4b900473
PB
4565 mpfr_atan2 (n, n, x, GMP_RNDN);
4566 mpfr_erfc (n, x, GMP_RNDN);
4567 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4568
4569 ;
4570 return 0;
4571}
4572_ACEOF
4573rm -f conftest.$ac_objext conftest$ac_exeext
4574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4575 (eval $ac_link) 2>conftest.er1
4576 ac_status=$?
4577 grep -v '^ *+' conftest.er1 >conftest.err
4578 rm -f conftest.er1
4579 cat conftest.err >&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); } &&
4582 { ac_try='test -z "$ac_c_werror_flag"
4583 || test ! -s conftest.err'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 (eval $ac_try) 2>&5
4586 ac_status=$?
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; } &&
4589 { ac_try='test -s conftest$ac_exeext'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 (eval $ac_try) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; }; then
4595 cat >conftest.$ac_ext <<_ACEOF
4596/* confdefs.h. */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h. */
4b1cb4fe 4601#include <gmp.h>
4b900473 4602 #include <mpfr.h>
c6b750e1
DJ
4603int
4604main ()
4605{
9dbaa842 4606
57c53b2b 4607 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4b900473
PB
4608 choke me
4609 #endif
4610 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4611
4612 ;
4613 return 0;
4614}
4615_ACEOF
4616rm -f conftest.$ac_objext conftest$ac_exeext
4617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest$ac_exeext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 echo "$as_me:$LINENO: result: yes" >&5
4639echo "${ECHO_T}yes" >&6
4640else
4641 echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4645echo "${ECHO_T}buggy but acceptable" >&6
4646fi
4647rm -f conftest.err conftest.$ac_objext \
4648 conftest$ac_exeext conftest.$ac_ext
4649else
4650 echo "$as_me: failed program was:" >&5
4651sed 's/^/| /' conftest.$ac_ext >&5
4652
4653echo "$as_me:$LINENO: result: no" >&5
4654echo "${ECHO_T}no" >&6; have_gmp=no
4655fi
4656rm -f conftest.err conftest.$ac_objext \
4657 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4658 LIBS="$saved_LIBS"
4659 fi
4660 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4661
4b900473 4662 if test x$have_gmp != xyes; then
57c53b2b 4663 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
c6b750e1
DJ
4664Try the --with-gmp and/or --with-mpfr options to specify their locations.
4665Copies of these libraries' source code can be found at their respective
4666hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4667See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4668If you obtained GMP and/or MPFR from a vendor distribution package, make
4669sure that you have installed both the libraries and the header files.
4670They may be located in separate packages." >&5
57c53b2b 4671echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
9dbaa842
DD
4672Try the --with-gmp and/or --with-mpfr options to specify their locations.
4673Copies of these libraries' source code can be found at their respective
4674hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4675See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4676If you obtained GMP and/or MPFR from a vendor distribution package, make
4677sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4678They may be located in separate packages." >&2;}
4679 { (exit 1); exit 1; }; }
4b900473 4680 fi
9dbaa842
DD
4681fi
4682
11b04d1f 4683# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4684
4685
4686
947f426e 4687# By default, C is the only stage 1 language.
9b134994 4688stage1_languages=,c,
1d39f329 4689
9e07f89d
NN
4690# Figure out what language subdirectories are present.
4691# Look if the user specified --enable-languages="..."; if not, use
4692# the environment variable $LANGUAGES if defined. $LANGUAGES might
4693# go away some day.
4694# NB: embedded tabs in this IF block -- do not untabify
4695if test -d ${srcdir}/gcc; then
4696 if test x"${enable_languages+set}" != xset; then
4697 if test x"${LANGUAGES+set}" = xset; then
4698 enable_languages="${LANGUAGES}"
4699 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4700 else
4701 enable_languages=all
4702 fi
4703 else
4704 if test x"${enable_languages}" = x ||
4705 test x"${enable_languages}" = xyes;
4706 then
4707 echo configure.in: --enable-languages needs at least one language argument 1>&2
4708 exit 1
4709 fi
4710 fi
4711 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4712
096f7d00
DE
4713 # 'f95' is the old name for the 'fortran' language. We issue a warning
4714 # and make the substitution.
4715 case ,${enable_languages}, in
4716 *,f95,*)
4717 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4718 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4719 ;;
4720 esac
4721
9e07f89d
NN
4722 # First scan to see if an enabled language requires some other language.
4723 # We assume that a given config-lang.in will list all the language
4724 # front ends it requires, even if some are required indirectly.
4725 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4726 case ${lang_frag} in
4727 ..) ;;
4728 # The odd quoting in the next line works around
4729 # an apparent bug in bash 1.12 on linux.
4730 ${srcdir}/gcc/[*]/config-lang.in) ;;
4731 *)
4732 # From the config-lang.in, get $language, $lang_requires
4733 language=
4734 lang_requires=
4735 . ${lang_frag}
4736 for other in ${lang_requires} ; do
4737 case ,${enable_languages}, in
4738 *,$other,*) ;;
4739 *,all,*) ;;
4740 *,$language,*)
4741 echo " \`$other' language required by \`$language'; enabling" 1>&2
4742 enable_languages="${enable_languages},${other}"
4743 ;;
4744 esac
4745 done
4746 ;;
4747 esac
4748 done
4749
9b134994 4750 new_enable_languages=,c,
9e07f89d 4751 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4752 potential_languages=,c,
9e07f89d
NN
4753
4754 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4755 case ${lang_frag} in
4756 ..) ;;
4757 # The odd quoting in the next line works around
4758 # an apparent bug in bash 1.12 on linux.
4759 ${srcdir}/gcc/[*]/config-lang.in) ;;
4760 *)
c6b750e1 4761 # From the config-lang.in, get $language, $target_libs,
1d39f329 4762 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4763 language=
4764 target_libs=
4765 lang_dirs=
64ce424c 4766 subdir_requires=
9b134994
PB
4767 boot_language=no
4768 build_by_default=yes
9e07f89d 4769 . ${lang_frag}
9b134994
PB
4770 if test x${language} = x; then
4771 echo "${lang_frag} doesn't set \$language." 1>&2
4772 exit 1
4773 fi
4774
4775 case ,${enable_languages}, in
4776 *,${language},*)
9e07f89d
NN
4777 # Language was explicitly selected; include it.
4778 add_this_lang=yes
4779 ;;
9b134994
PB
4780 *,all,*)
4781 # 'all' was selected, select it if it is a default language
4782 add_this_lang=${build_by_default}
9e07f89d
NN
4783 ;;
4784 *)
4785 add_this_lang=no
4786 ;;
4787 esac
4b1cb4fe 4788
64ce424c 4789 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4790 for i in $subdir_requires; do
3d3adb43 4791 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4792 case ,${enable_languages}, in
4793 *,${language},*)
4794 # Specifically requested language; tell them.
c6b750e1
DJ
4795 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4796echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4797 { (exit 1); exit 1; }; }
64ce424c
PB
4798 ;;
4799 *)
4800 # Silently disable.
9b134994 4801 add_this_lang=unsupported
64ce424c
PB
4802 ;;
4803 esac
4804 done
4805
9b134994
PB
4806 # Disable Ada if no preexisting GNAT is available.
4807 case ,${enable_languages},:${language}:${have_gnat} in
4808 *,${language},*:ada:no)
4809 # Specifically requested language; tell them.
c6b750e1
DJ
4810 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4811echo "$as_me: error: GNAT is required to build $language" >&2;}
4812 { (exit 1); exit 1; }; }
9b134994
PB
4813 ;;
4814 *:ada:no)
4815 # Silently disable.
4816 add_this_lang=unsupported
4817 ;;
4818 esac
4819
59f7ec45
HPN
4820 # Disable a language that is unsupported by the target.
4821 case " $unsupported_languages " in
4822 *" $language "*)
9b134994 4823 add_this_lang=unsupported
59f7ec45
HPN
4824 ;;
4825 esac
4826
4b1cb4fe 4827 case $add_this_lang in
9b134994 4828 unsupported)
9e07f89d 4829 # Remove language-dependent dirs.
1d39f329
NN
4830 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4831 ;;
9b134994
PB
4832 no)
4833 # Remove language-dependent dirs; still show language as supported.
4834 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4835 potential_languages="${potential_languages}${language},"
4836 ;;
4837 yes)
4838 new_enable_languages="${new_enable_languages}${language},"
4839 potential_languages="${potential_languages}${language},"
1d39f329
NN
4840 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4841 case ${boot_language} in
4842 yes)
4fa63067 4843 # Add to (comma-separated) list of stage 1 languages.
9b134994 4844 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4845 ;;
4846 esac
4847 ;;
9e07f89d
NN
4848 esac
4849 ;;
4850 esac
4851 done
4852
9b134994
PB
4853 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4854if test "${enable_stage1_languages+set}" = set; then
4855 enableval="$enable_stage1_languages"
4856 case ,${enable_stage1_languages}, in
4857 ,no,|,,)
4858 # Set it to something that will have no effect in the loop below
4859 enable_stage1_languages=c ;;
4860 ,yes,)
4861 enable_stage1_languages=`echo $new_enable_languages | \
4862 sed -e "s/^,//" -e "s/,$//" ` ;;
4863 *,all,*)
4864 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4865 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4866 esac
4867
4868 # Add "good" languages from enable_stage1_languages to stage1_languages,
4869 # while "bad" languages go in missing_languages. Leave no duplicates.
4870 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4871 case $potential_languages in
4872 *,$i,*)
4873 case $stage1_languages in
4874 *,$i,*) ;;
4875 *) stage1_languages="$stage1_languages$i," ;;
4876 esac ;;
4877 *)
4878 case $missing_languages in
4879 *,$i,*) ;;
4880 *) missing_languages="$missing_languages$i," ;;
4881 esac ;;
4882 esac
4883 done
c6b750e1 4884fi;
9b134994
PB
4885
4886 # Remove leading/trailing commas that were added for simplicity
4887 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4888 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4889 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4890 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4891
9e07f89d 4892 if test "x$missing_languages" != x; then
c6b750e1 4893 { { echo "$as_me:$LINENO: error:
27258dd4 4894The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4895Supported languages are: ${potential_languages}" >&5
4896echo "$as_me: error:
4897The following requested languages could not be built: ${missing_languages}
4898Supported languages are: ${potential_languages}" >&2;}
4899 { (exit 1); exit 1; }; }
9e07f89d 4900 fi
9e07f89d
NN
4901 if test "x$new_enable_languages" != "x$enable_languages"; then
4902 echo The following languages will be built: ${new_enable_languages}
9b134994 4903 enable_languages="$new_enable_languages"
9e07f89d 4904 fi
9b134994 4905
c6b750e1 4906
81ec575a 4907 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4908fi
4909
a6df5a19
PB
4910# Handle --disable-<component> generically.
4911for dir in $configdirs $build_configdirs $target_configdirs ; do
4912 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
4913 varname=`echo $dirname | sed -e s/+/_/g`
4914 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
4915 noconfigdirs="$noconfigdirs $dir"
4916 fi
4917done
4918
4f0ef2d8
CD
4919# Check for Boehm's garbage collector
4920# Check whether --enable-objc-gc or --disable-objc-gc was given.
4921if test "${enable_objc_gc+set}" = set; then
4922 enableval="$enable_objc_gc"
4923 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4924 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4925 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4926echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4927 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4928 ;;
4929esac
c6b750e1 4930fi;
4f0ef2d8
CD
4931
4932# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4933case ,${enable_languages},:${enable_objc_gc} in
4934 *,objc,*:yes)
4f0ef2d8
CD
4935 # Keep target-boehm-gc if requested for Objective-C.
4936 ;;
4f0ef2d8 4937 *)
d42c4017
DA
4938 # Otherwise remove target-boehm-gc depending on target-libjava.
4939 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4940 noconfigdirs="$noconfigdirs target-boehm-gc"
4941 fi
4f0ef2d8
CD
4942 ;;
4943esac
4944
caeba88f
AL
4945# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4946# $build_configdirs and $target_configdirs.
9e07f89d
NN
4947# If we have the source for $noconfigdirs entries, add them to $notsupp.
4948
4949notsupp=""
4950for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4951 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4952 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4953 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4954 if test -r $srcdir/$dirname/configure ; then
4955 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4956 true
4957 else
4958 notsupp="$notsupp $dir"
4959 fi
4960 fi
4961 fi
caeba88f
AL
4962 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4963 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4964 if test -r $srcdir/$dirname/configure ; then
4965 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4966 true
4967 else
4968 notsupp="$notsupp $dir"
4969 fi
4970 fi
4971 fi
9e07f89d
NN
4972 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4973 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4974 if test -r $srcdir/$dirname/configure ; then
4975 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4976 true
4977 else
4978 notsupp="$notsupp $dir"
4979 fi
4980 fi
4981 fi
4982done
4983
4984# Sometimes the tools are distributed with libiberty but with no other
4985# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4986# Don't let libgcc imply libiberty either.
9e07f89d 4987if test -n "${target_configdirs}" ; then
f86e35b8 4988 libgcc=
9e07f89d
NN
4989 others=
4990 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4991 if test "$i" = "libgcc"; then
4992 libgcc=target-libgcc
4993 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4994 if test -r $srcdir/$i/configure ; then
4995 others=yes;
4996 break;
4997 fi
4998 fi
4999 done
5000 if test -z "${others}" ; then
f86e35b8 5001 target_configdirs=$libgcc
9e07f89d
NN
5002 fi
5003fi
5004
5005# Quietly strip out all directories which aren't configurable in this tree.
5006# This relies on all configurable subdirectories being autoconfiscated, which
5007# is now the case.
6a9cf61e
PB
5008build_configdirs_all="$build_configdirs"
5009build_configdirs=
5010for i in ${build_configdirs_all} ; do
c6b750e1 5011 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5012 if test -f ${srcdir}/$j/configure ; then
5013 build_configdirs="${build_configdirs} $i"
5014 fi
5015done
5016
9e07f89d
NN
5017configdirs_all="$configdirs"
5018configdirs=
5019for i in ${configdirs_all} ; do
5020 if test -f ${srcdir}/$i/configure ; then
5021 configdirs="${configdirs} $i"
5022 fi
5023done
6a9cf61e 5024
9e07f89d
NN
5025target_configdirs_all="$target_configdirs"
5026target_configdirs=
5027for i in ${target_configdirs_all} ; do
c6b750e1 5028 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5029 if test -f ${srcdir}/$j/configure ; then
5030 target_configdirs="${target_configdirs} $i"
5031 fi
5032done
5033
5034# Produce a warning message for the subdirs we can't configure.
5035# This isn't especially interesting in the Cygnus tree, but in the individual
5036# FSF releases, it's important to let people know when their machine isn't
5037# supported by the one or two programs in a package.
5038
5039if test -n "${notsupp}" && test -z "${norecursion}" ; then
5040 # If $appdirs is non-empty, at least one of those directories must still
5041 # be configured, or we error out. (E.g., if the gas release supports a
5042 # specified target in some subdirs but not the gas subdir, we shouldn't
5043 # pretend that all is well.)
5044 if test -n "$appdirs" ; then
5045 for dir in $appdirs ; do
5046 if test -r $dir/Makefile.in ; then
5047 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5048 appdirs=""
5049 break
5050 fi
6a9cf61e 5051 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5052 appdirs=""
5053 break
5054 fi
5055 fi
5056 done
5057 if test -n "$appdirs" ; then
5058 echo "*** This configuration is not supported by this package." 1>&2
5059 exit 1
5060 fi
5061 fi
5062 # Okay, some application will build, or we don't care to check. Still
5063 # notify of subdirs not getting built.
5064 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5065 echo " ${notsupp}" 1>&2
5066 echo " (Any other directories should still work fine.)" 1>&2
5067fi
5068
5069case "$host" in
5070 *msdosdjgpp*)
5071 enable_gdbtk=no ;;
5072esac
5073
18f6b6ee
PB
5074# To find our prefix, in gcc_cv_tool_prefix.
5075
5076# The user is always right.
5077if test "${PATH_SEPARATOR+set}" != set; then
5078 echo "#! /bin/sh" >conf$$.sh
5079 echo "exit 0" >>conf$$.sh
5080 chmod +x conf$$.sh
5081 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5082 PATH_SEPARATOR=';'
5083 else
5084 PATH_SEPARATOR=:
5085 fi
5086 rm -f conf$$.sh
5087fi
5088
5089
5090
5091if test "x$exec_prefix" = xNONE; then
5092 if test "x$prefix" = xNONE; then
5093 gcc_cv_tool_prefix=$ac_default_prefix
5094 else
5095 gcc_cv_tool_prefix=$prefix
5096 fi
5097else
5098 gcc_cv_tool_prefix=$exec_prefix
5099fi
5100
5101# If there is no compiler in the tree, use the PATH only. In any
5102# case, if there is no compiler in the tree nobody should use
5103# AS_FOR_TARGET and LD_FOR_TARGET.
5104if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5105 gcc_version=`cat $srcdir/gcc/BASE-VER`
5106 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5107 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5108 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5109 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5110 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5111 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5112else
5113 gcc_cv_tool_dirs=
5114fi
5115
5116if test x$build = x$target && test -n "$md_exec_prefix"; then
5117 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5118fi
5119
5120
5121
9e07f89d
NN
5122copy_dirs=
5123
c6b750e1 5124
a19b6204
MM
5125# Check whether --with-build-sysroot or --without-build-sysroot was given.
5126if test "${with_build_sysroot+set}" = set; then
5127 withval="$with_build_sysroot"
5128 if test x"$withval" != x ; then
5129 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5130 fi
5131else
5132 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5133fi;
a19b6204
MM
5134
5135
8a6ee3ab
JM
5136
5137# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5138if test "${with_debug_prefix_map+set}" = set; then
5139 withval="$with_debug_prefix_map"
5140 if test x"$withval" != x; then
5141 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5142 for debug_map in $withval; do
5143 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5144 done
5145 fi
5146else
5147 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5148fi;
5149
5150
9e07f89d
NN
5151# Handle --with-headers=XXX. If the value is not "yes", the contents of
5152# the named directory are copied to $(tooldir)/sys-include.
5153if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5154 if test x${is_cross_compiler} = xno ; then
5155 echo 1>&2 '***' --with-headers is only supported when cross compiling
5156 exit 1
5157 fi
5158 if test x"${with_headers}" != xyes ; then
18f6b6ee 5159 x=${gcc_cv_tool_prefix}
c6b750e1 5160 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5161 fi
5162fi
5163
5164# Handle --with-libs=XXX. If the value is not "yes", the contents of
5165# the name directories are copied to $(tooldir)/lib. Multiple directories
5166# are permitted.
5167if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5168 if test x${is_cross_compiler} = xno ; then
5169 echo 1>&2 '***' --with-libs is only supported when cross compiling
5170 exit 1
5171 fi
5172 if test x"${with_libs}" != xyes ; then
5173 # Copy the libraries in reverse order, so that files in the first named
5174 # library override files in subsequent libraries.
18f6b6ee 5175 x=${gcc_cv_tool_prefix}
9e07f89d 5176 for l in ${with_libs}; do
c6b750e1 5177 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5178 done
5179 fi
5180fi
5181
2429c060
PB
5182# Set with_gnu_as and with_gnu_ld as appropriate.
5183#
5184# This is done by determining whether or not the appropriate directory
5185# is available, and by checking whether or not specific configurations
5186# have requested that this magic not happen.
c6b750e1
DJ
5187#
5188# The command line options always override the explicit settings in
2429c060
PB
5189# configure.in, and the settings in configure.in override this magic.
5190#
c6b750e1 5191# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5192# want to do that, then you should use the --without-gnu-as and
5193# --without-gnu-ld options for the configure script.
5194
5195if test x${use_gnu_as} = x &&
5196 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5197 with_gnu_as=yes
5198 extra_host_args="$extra_host_args --with-gnu-as"
5199fi
5200
5201if test x${use_gnu_ld} = x &&
5202 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5203 with_gnu_ld=yes
5204 extra_host_args="$extra_host_args --with-gnu-ld"
5205fi
5206
5207# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5208# can detect this case.
5209
5210if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5211 with_newlib=yes
5212 extra_host_args="$extra_host_args --with-newlib"
5213fi
5214
9e07f89d
NN
5215# Handle ${copy_dirs}
5216set fnord ${copy_dirs}
5217shift
5218while test $# != 0 ; do
5219 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5220 :
5221 else
5222 echo Copying $1 to $2
5223
5224 # Use the install script to create the directory and all required
5225 # parent directories.
5226 if test -d $2 ; then
5227 :
5228 else
5229 echo >config.temp
5230 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5231 fi
5232
5233 # Copy the directory, assuming we have tar.
5234 # FIXME: Should we use B in the second tar? Not all systems support it.
5235 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5236
5237 # It is the responsibility of the user to correctly adjust all
5238 # symlinks. If somebody can figure out how to handle them correctly
5239 # here, feel free to add the code.
5240
5241 echo $1 > $2/COPIED
5242 fi
5243 shift; shift
5244done
5245
2429c060
PB
5246# Determine a target-dependent exec_prefix that the installed
5247# gcc will search in. Keep this list sorted by triplet, with
5248# the *-*-osname triplets last.
5249md_exec_prefix=
5250case "${target}" in
5251 alpha*-*-*vms*)
5252 md_exec_prefix=/gnu/lib/gcc-lib
5253 ;;
521ec477 5254 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5255 md_exec_prefix=/dev/env/DJDIR/bin
5256 ;;
521ec477 5257 i[34567]86-*-sco3.2v5*)
2429c060
PB
5258 if test $with_gnu_as = yes; then
5259 md_exec_prefix=/usr/gnu/bin
5260 else
5261 md_exec_prefix=/usr/ccs/bin/elf
5262 fi
5263 ;;
5264
5265 mn10300-*-* | \
5266 powerpc-*-chorusos* | \
5267 powerpc*-*-eabi* | \
5268 powerpc*-*-sysv* | \
5269 powerpc*-*-kaos* | \
5270 s390x-ibm-tpf*)
5271 md_exec_prefix=/usr/ccs/bin
5272 ;;
5273 sparc64-*-elf*)
5274 ;;
5275 v850*-*-*)
5276 md_exec_prefix=/usr/ccs/bin
5277 ;;
5278 xtensa-*-elf*)
5279 ;;
5280
5281 *-*-beos* | \
5282 *-*-elf* | \
5283 *-*-hpux* | \
5284 *-*-netware* | \
5285 *-*-nto-qnx* | \
5286 *-*-rtems* | \
5287 *-*-solaris2* | \
521ec477 5288 *-*-sysv[45]* | \
2429c060
PB
5289 *-*-vxworks* | \
5290 *-wrs-windiss)
5291 md_exec_prefix=/usr/ccs/bin
5292 ;;
5293esac
5294
a0da8069
NN
5295extra_arflags_for_target=
5296extra_nmflags_for_target=
5297extra_ranlibflags_for_target=
5298target_makefile_frag=/dev/null
5299case "${target}" in
4e206d7e
DB
5300 mep*-*-*)
5301 target_makefile_frag="config/mt-mep"
5302 ;;
77d7106f
AM
5303 spu-*-*)
5304 target_makefile_frag="config/mt-spu"
5305 ;;
429acdec
RS
5306 mips*-sde-elf*)
5307 target_makefile_frag="config/mt-sde"
5308 ;;
f3b1e08e
RS
5309 mipsisa*-*-elfoabi*)
5310 target_makefile_frag="config/mt-mips-elfoabi"
5311 ;;
2a3124ca 5312 *-*-netware*)
a0da8069
NN
5313 target_makefile_frag="config/mt-netware"
5314 ;;
3d6dfe0f
NN
5315 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5316 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5317 ;;
5318 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5319 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5320 # commands to handle both 32-bit and 64-bit objects. These flags are
5321 # harmless if we're using GNU nm or ar.
5322 extra_arflags_for_target=" -X32_64"
5323 extra_nmflags_for_target=" -B -X32_64"
5324 ;;
5325 *-*-darwin*)
5326 # ranlib from Darwin requires the -c flag to look at common symbols.
5327 extra_ranlibflags_for_target=" -c"
5328 ;;
5329 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5330 target_makefile_frag="config/mt-wince"
5331 ;;
5332esac
5333
5334alphaieee_frag=/dev/null
5335case $target in
5336 alpha*-*-*)
5337 # This just makes sure to use the -mieee option to build target libs.
5338 # This should probably be set individually by each library.
5339 alphaieee_frag="config/mt-alphaieee"
5340 ;;
5341esac
5342
5343# If --enable-target-optspace always use -Os instead of -O2 to build
5344# the target libraries, similarly if it is not specified, use -Os
5345# on selected platforms.
5346ospace_frag=/dev/null
5347case "${enable_target_optspace}:${target}" in
5348 yes:*)
5349 ospace_frag="config/mt-ospace"
5350 ;;
5351 :d30v-*)
5352 ospace_frag="config/mt-d30v"
5353 ;;
5354 :m32r-* | :d10v-* | :fr30-*)
5355 ospace_frag="config/mt-ospace"
5356 ;;
5357 no:* | :*)
5358 ;;
5359 *)
5360 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5361 ;;
5362esac
5363
a0da8069
NN
5364# Default to using --with-stabs for certain targets.
5365if test x${with_stabs} = x ; then
5366 case "${target}" in
e31d1ea3 5367 mips*-*-irix[56]*)
a0da8069
NN
5368 ;;
5369 mips*-*-* | alpha*-*-osf*)
5370 with_stabs=yes;
5371 extra_host_args="${extra_host_args} --with-stabs"
5372 ;;
5373 esac
5374fi
5375
5376# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5377# them automatically.
5378case "${host}" in
c6b750e1 5379 hppa*64*-*-hpux11*)
a0da8069
NN
5380 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5381 ;;
5382esac
5383
a0da8069
NN
5384# Some systems (e.g., one of the i386-aix systems the gas testers are
5385# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5386tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5387build_tooldir=${tooldir}
5388
a0da8069
NN
5389# Create a .gdbinit file which runs the one in srcdir
5390# and tells GDB to look there for source files.
5391
5392if test -r ${srcdir}/.gdbinit ; then
5393 case ${srcdir} in
5394 .) ;;
5395 *) cat > ./.gdbinit <<EOF
5396# ${NO_EDIT}
5397dir ${srcdir}
5398dir .
5399source ${srcdir}/.gdbinit
5400EOF
5401 ;;
5402 esac
5403fi
5404
a0da8069
NN
5405# Make sure that the compiler is able to generate an executable. If it
5406# can't, we are probably in trouble. We don't care whether we can run the
5407# executable--we might be using a cross compiler--we only care whether it
5408# can be created. At this point the main configure script has set CC.
5409we_are_ok=no
5410echo "int main () { return 0; }" > conftest.c
5411${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5412if test $? = 0 ; then
5413 if test -s conftest || test -s conftest.exe ; then
5414 we_are_ok=yes
5415 fi
c6b750e1 5416fi
a0da8069
NN
5417case $we_are_ok in
5418 no)
5419 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5420 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5421 rm -f conftest*
5422 exit 1
5423 ;;
5424esac
5425rm -f conftest*
5426
5427# The Solaris /usr/ucb/cc compiler does not appear to work.
5428case "${host}" in
5429 sparc-sun-solaris2*)
5430 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5431 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5432 could_use=
5433 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5434 if test -d /opt/cygnus/bin ; then
5435 if test "$could_use" = "" ; then
5436 could_use="/opt/cygnus/bin"
5437 else
5438 could_use="$could_use or /opt/cygnus/bin"
5439 fi
5440 fi
5441 if test "$could_use" = "" ; then
5442 echo "Warning: compilation may fail because you're using"
5443 echo "/usr/ucb/cc. You should change your PATH or CC "
5444 echo "variable and rerun configure."
5445 else
5446 echo "Warning: compilation may fail because you're using"
5447 echo "/usr/ucb/cc, when you should use the C compiler from"
5448 echo "$could_use. You should change your"
5449 echo "PATH or CC variable and rerun configure."
5450 fi
5451 fi
5452 ;;
5453esac
5454
a0da8069
NN
5455case "${host}" in
5456 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5457 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5458 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5459esac
5460
5461# Record target_configdirs and the configure arguments for target and
5462# build configuration in Makefile.
5463target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5464build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5465
a0da8069
NN
5466# Determine whether gdb needs tk/tcl or not.
5467# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5468# and in that case we want gdb to be built without tk. Ugh!
5469# In fact I believe gdb is the *only* package directly dependent on tk,
5470# so we should be able to put the 'maybe's in unconditionally and
5471# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5472# 100% sure that that's safe though.
c180f501 5473
675c6968 5474gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5475case "$enable_gdbtk" in
5476 no)
5477 GDB_TK="" ;;
c180f501
AC
5478 yes)
5479 GDB_TK="${gdb_tk}" ;;
a0da8069 5480 *)
c180f501
AC
5481 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5482 # distro. Eventually someone will fix this and move Insight, nee
5483 # gdbtk to a separate directory.
5484 if test -d ${srcdir}/gdb/gdbtk ; then
5485 GDB_TK="${gdb_tk}"
5486 else
5487 GDB_TK=""
5488 fi
5489 ;;
a0da8069 5490esac
907be67c
DJ
5491CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5492INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5493
6bd3dfaa 5494# Strip out unwanted targets.
dd12c3a8
NN
5495
5496# While at that, we remove Makefiles if we were started for recursive
5497# configuration, so that the top-level Makefile reconfigures them,
5498# like we used to do when configure itself was recursive.
dd12c3a8 5499
6bd3dfaa
PB
5500# Loop over modules. $extrasub must be used with care, limiting as
5501# much as possible the usage of range addresses. That's because autoconf
5502# splits the sed script to overcome limits in the number of commands,
5503# and relying on carefully-timed sed passes may turn out to be very hard
5504# to maintain later. In this particular case, you just have to be careful
5505# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5506
319cab08
PB
5507# Check whether --enable-bootstrap or --disable-bootstrap was given.
5508if test "${enable_bootstrap+set}" = set; then
5509 enableval="$enable_bootstrap"
c6b750e1 5510
319cab08 5511else
9cb3fa6f 5512 enable_bootstrap=default
c6b750e1 5513fi;
319cab08 5514
9cb3fa6f
PB
5515# Issue errors and warnings for invalid/strange bootstrap combinations.
5516case "$configdirs" in
5517 *gcc*) have_compiler=yes ;;
5518 *) have_compiler=no ;;
5519esac
5520
5521case "$have_compiler:$host:$target:$enable_bootstrap" in
5522 *:*:*:no) ;;
5523
0aed8855 5524 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5525 # and we are in a native configuration.
5526 yes:$build:$build:default)
0aed8855 5527 enable_bootstrap=yes ;;
9cb3fa6f
PB
5528
5529 *:*:*:default)
5530 enable_bootstrap=no ;;
5531
5532 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5533 yes:$build:$build:yes)
9cb3fa6f
PB
5534 ;;
5535
5536 # Other configurations, but we have a compiler. Assume the user knows
5537 # what he's doing.
80911fe1 5538 yes:*:*:yes)
c6b750e1
DJ
5539 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5540echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5541 ;;
5542
5543 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5544 no:*:*:yes)
c6b750e1
DJ
5545 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5546echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5547 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5548
5549 # Fail if wrong command line
5550 *)
c6b750e1
DJ
5551 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5552echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5553 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5554 ;;
5555esac
5556
5557# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5558case "$enable_bootstrap" in
5559 yes)
498d4a71 5560 bootstrap_suffix=bootstrap ;;
319cab08 5561 no)
498d4a71 5562 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5563esac
5564
6a9cf61e 5565for module in ${build_configdirs} ; do
498d4a71
CF
5566 if test -z "${no_recursion}" \
5567 && test -f ${build_subdir}/${module}/Makefile; then
5568 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5569 rm -f ${build_subdir}/${module}/Makefile
5570 fi
5571 extrasub="$extrasub
5572/^@if build-$module\$/d
5573/^@endif build-$module\$/d
5574/^@if build-$module-$bootstrap_suffix\$/d
5575/^@endif build-$module-$bootstrap_suffix\$/d"
5576done
5577for module in ${configdirs} ; do
80911fe1 5578 if test -z "${no_recursion}"; then
8cf39b1b 5579 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5580 if test -f ${file}; then
5581 echo 1>&2 "*** removing ${file} to force reconfigure"
5582 rm -f ${file}
5583 fi
5584 done
498d4a71
CF
5585 fi
5586 extrasub="$extrasub
5587/^@if $module\$/d
5588/^@endif $module\$/d
5589/^@if $module-$bootstrap_suffix\$/d
5590/^@endif $module-$bootstrap_suffix\$/d"
5591done
5592for module in ${target_configdirs} ; do
5593 if test -z "${no_recursion}" \
5594 && test -f ${target_subdir}/${module}/Makefile; then
5595 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5596 rm -f ${target_subdir}/${module}/Makefile
5597 fi
5598 extrasub="$extrasub
5599/^@if target-$module\$/d
5600/^@endif target-$module\$/d
5601/^@if target-$module-$bootstrap_suffix\$/d
5602/^@endif target-$module-$bootstrap_suffix\$/d"
5603done
5604
6bd3dfaa
PB
5605extrasub="$extrasub
5606/^@if /,/^@endif /d"
a0da8069
NN
5607
5608# Create the serialization dependencies. This uses a temporary file.
5609
e6bfb94a
AO
5610# Check whether --enable-serial-configure or --disable-serial-configure was given.
5611if test "${enable_serial_configure+set}" = set; then
5612 enableval="$enable_serial_configure"
e6bfb94a 5613
c6b750e1 5614fi;
e6bfb94a 5615
1047cb91
DD
5616case ${enable_serial_configure} in
5617 yes)
5618 enable_serial_build_configure=yes
5619 enable_serial_host_configure=yes
5620 enable_serial_target_configure=yes
5621 ;;
5622esac
5623
a0da8069
NN
5624# These force 'configure's to be done one at a time, to avoid problems
5625# with contention over a shared config.cache.
5626rm -f serdep.tmp
e6bfb94a 5627echo '# serdep.tmp' > serdep.tmp
a0da8069 5628olditem=
1047cb91 5629test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5630for item in ${build_configdirs} ; do
5631 case ${olditem} in
5632 "") ;;
e6bfb94a 5633 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5634 esac
5635 olditem=${item}
5636done
5637olditem=
1047cb91 5638test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5639for item in ${configdirs} ; do
5640 case ${olditem} in
5641 "") ;;
e6bfb94a 5642 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5643 esac
5644 olditem=${item}
5645done
5646olditem=
1047cb91 5647test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5648for item in ${target_configdirs} ; do
5649 case ${olditem} in
5650 "") ;;
e6bfb94a 5651 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5652 esac
5653 olditem=${item}
5654done
5655serialization_dependencies=serdep.tmp
5656
5657
e6bfb94a 5658# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5659# target, nonopt, and variable assignments. These are the ones we
5660# might not want to pass down to subconfigures. Also strip
5661# program-prefix, program-suffix, and program-transform-name, so that
5662# we can pass down a consistent program-transform-name.
5663baseargs=
5664keep_next=no
5665skip_next=no
5666eval "set -- $ac_configure_args"
18f6b6ee
PB
5667for ac_arg
5668do
c6b750e1
DJ
5669 if test X"$skip_next" = X"yes"; then
5670 skip_next=no
5671 continue
5672 fi
5673 if test X"$keep_next" = X"yes"; then
5674 case $ac_arg in
5675 *\'*)
5676 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5677 esac
5678 baseargs="$baseargs '$ac_arg'"
5679 keep_next=no
5680 continue
5681 fi
5682
5683 # Handle separated arguments. Based on the logic generated by
5684 # autoconf 2.59.
5685 case $ac_arg in
5686 *=* | --config-cache | -C | -disable-* | --disable-* \
5687 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5688 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5689 | -with-* | --with-* | -without-* | --without-* | --x)
5690 separate_arg=no
5691 ;;
5692 -*)
5693 separate_arg=yes
5694 ;;
5695 *)
5696 separate_arg=no
5697 ;;
5698 esac
5699
5700 case "$ac_arg" in
5701 --no*)
5702 continue
5703 ;;
5704 --c* | \
5705 --sr* | \
5706 --ho* | \
5707 --bu* | \
5708 --t* | \
5709 --program-* | \
5710 -cache_file* | \
5711 -srcdir* | \
5712 -host* | \
5713 -build* | \
5714 -target* | \
5715 -program-prefix* | \
5716 -program-suffix* | \
5717 -program-transform-name* )
5718 skip_next=$separate_arg
5719 continue
5720 ;;
5721 -*)
5722 # An option. Add it.
5723 case $ac_arg in
5724 *\'*)
5725 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5726 esac
5727 baseargs="$baseargs '$ac_arg'"
5728 keep_next=$separate_arg
5729 ;;
5730 *)
5731 # Either a variable assignment, or a nonopt (triplet). Don't
5732 # pass it down; let the Makefile handle this.
5733 continue
5734 ;;
5735 esac
5736done
5737# Remove the initial space we just introduced and, as these will be
5738# expanded by make, quote '$'.
5739baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5740
f27d4f92
DJ
5741# Add in --program-transform-name, after --program-prefix and
5742# --program-suffix have been applied to it. Autoconf has already
5743# doubled dollar signs and backslashes in program_transform_name; we want
5744# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5745# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5746# Also, because we want to override the logic in subdir configure scripts to
5747# choose program_transform_name, replace any s,x,x, with s,y,y,.
5748sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5749${program_transform_name}
5750EOF_SED
5751gcc_transform_name=`cat conftestsed.out`
5752rm -f conftestsed.out
5753baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5754if test "$silent" = yes; then
5755 baseargs="$baseargs --silent"
5756fi
f27d4f92 5757
a0da8069
NN
5758# For the build-side libraries, we just need to pretend we're native,
5759# and not use the same cache file. Multilibs are neither needed nor
5760# desired.
4b900473 5761build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5762
5763# For host modules, accept cache file option, or specification as blank.
5764case "${cache_file}" in
5765"") # empty
5766 cache_file_option="" ;;
5767/* | [A-Za-z]:[\\/]* ) # absolute path
5768 cache_file_option="--cache-file=${cache_file}" ;;
5769*) # relative path
5770 cache_file_option="--cache-file=../${cache_file}" ;;
5771esac
5772
82252c06
NN
5773# Host dirs don't like to share a cache file either, horribly enough.
5774# This seems to be due to autoconf 2.5x stupidity.
4b900473 5775host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5776
5777target_configargs=${baseargs}
5778
5779# Passing a --with-cross-host argument lets the target libraries know
5780# whether they are being built with a cross-compiler or being built
5781# native. However, it would be better to use other mechanisms to make the
5782# sorts of decisions they want to make on this basis. Please consider
5783# this option to be deprecated. FIXME.
5784if test x${is_cross_compiler} = xyes ; then
c6b750e1 5785 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5786fi
5787
5788# Default to --enable-multilib.
5789if test x${enable_multilib} = x ; then
5790 target_configargs="--enable-multilib ${target_configargs}"
5791fi
5792
5793# Pass --with-newlib if appropriate. Note that target_configdirs has
5794# changed from the earlier setting of with_newlib.
5795if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5796 target_configargs="--with-newlib ${target_configargs}"
5797fi
5798
95036d20
NN
5799# Different target subdirs use different values of certain variables
5800# (notably CXX). Worse, multilibs use *lots* of different values.
5801# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5802# it doesn't automatically accept command-line overrides of them.
5803# This means it's not safe for target subdirs to share a cache file,
5804# which is disgusting, but there you have it. Hopefully this can be
5805# fixed in future. It's still worthwhile to use a cache file for each
5806# directory. I think.
5807
ae380b45
MS
5808# Pass the appropriate --build, --host, --target and --cache-file arguments.
5809# We need to pass --target, as newer autoconf's requires consistency
5810# for target_alias and gcc doesn't manage it consistently.
4b900473 5811target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5812
a0da8069
NN
5813FLAGS_FOR_TARGET=
5814case " $target_configdirs " in
5815 *" newlib "*)
5816 case " $target_configargs " in
5817 *" --with-newlib "*)
5818 case "$target" in
5819 *-cygwin*)
564b43e5 5820 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
5821 esac
5822
5823 # If we're not building GCC, don't discard standard headers.
5824 if test -d ${srcdir}/gcc; then
5825 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5826
5827 if test "${build}" != "${host}"; then
5828 # On Canadian crosses, CC_FOR_TARGET will have already been set
5829 # by `configure', so we won't have an opportunity to add -Bgcc/
5830 # to it. This is right: we don't want to search that directory
5831 # for binaries, but we want the header files in there, so add
5832 # them explicitly.
b00612cc 5833 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5834
5835 # Someone might think of using the pre-installed headers on
5836 # Canadian crosses, in case the installed compiler is not fully
5837 # compatible with the compiler being built. In this case, it
5838 # would be better to flag an error than risking having
5839 # incompatible object files being constructed. We can't
5840 # guarantee that an error will be flagged, but let's hope the
5841 # compiler will do it, when presented with incompatible header
5842 # files.
5843 fi
5844 fi
5845
5846 case "${target}-${is_cross_compiler}" in
ec11bdc6 5847 i[3456789]86-*-linux*-no)
a0da8069
NN
5848 # Here host == target, so we don't need to build gcc,
5849 # so we don't want to discard standard headers.
5850 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5851 ;;
5852 *)
5853 # If we're building newlib, use its generic headers last, but search
5854 # for any libc-related directories first (so make it the last -B
5855 # switch).
5856 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
5857
5858 # If we're building libgloss, find the startup file, simulator library
5859 # and linker script.
5860 case " $target_configdirs " in
5861 *" libgloss "*)
5862 # Look for startup file, simulator library and maybe linker script.
5863 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5864 # Look for libnosys.a in case the target needs it.
5865 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5866 # Most targets have the linker script in the source directory.
5867 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5868 ;;
5869 esac
a0da8069
NN
5870 ;;
5871 esac
5872 ;;
5873 esac
5874 ;;
5875esac
45055374
CV
5876case "$target" in
5877*-mingw*)
5878 # Can't be handled as Cygwin above since Mingw does not use newlib.
5879 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' ;;
5880esac
a0da8069 5881
5fbad20a
DD
5882# Allow the user to override the flags for
5883# our build compiler if desired.
c66487f8
NC
5884if test x"${build}" = x"${host}" ; then
5885 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5886 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
5887 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
5888fi
5fbad20a 5889
a0da8069
NN
5890# On Canadian crosses, we'll be searching the right directories for
5891# the previously-installed cross compiler, so don't bother to add
5892# flags for directories within the install tree of the compiler
5893# being built; programs in there won't even run.
5894if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5895 # Search for pre-installed headers if nothing else fits.
bba45b8b 5896 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
5897fi
5898
5899if test "x${use_gnu_ld}" = x &&
5900 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5901 # Arrange for us to find uninstalled linker scripts.
b00612cc 5902 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5903fi
5904
a481dbb7
DD
5905# Search for other target-specific linker scripts and such.
5906case "${target}" in
4e206d7e
DB
5907 mep*)
5908 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5909 ;;
5910esac
5911
a0da8069 5912# Makefile fragments.
3e707e94
PB
5913for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5914do
5915 eval fragval=\$$frag
5916 if test $fragval != /dev/null; then
5917 eval $frag=${srcdir}/$fragval
5918 fi
5919done
a0da8069
NN
5920
5921
5922
5923
5924
5925# Miscellanea: directories, flags, etc.
5926
5927
5928
5929
5930
5931
5932
6a9cf61e 5933# Build module lists & subconfigure args.
a0da8069
NN
5934
5935
5936
be01d343
PB
5937# Host module lists & subconfigure args.
5938
5939
5940
5941# Target module lists & subconfigure args.
5942
5943
5944
5945# Build tools.
5946
5947
5948
1576798e
PB
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
be01d343
PB
5963# Generate default definitions for YACC, M4, LEX and other programs that run
5964# on the build machine. These are used if the Makefile can't locate these
5965# programs in objdir.
5966MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5967
5968for ac_prog in 'bison -y' byacc yacc
5969do
c6b750e1 5970 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5971set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5972echo "$as_me:$LINENO: checking for $ac_word" >&5
5973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5974if test "${ac_cv_prog_YACC+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5976else
5977 if test -n "$YACC"; then
5978 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5979else
c6b750e1
DJ
5980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981for as_dir in $PATH
5982do
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5987 ac_cv_prog_YACC="$ac_prog"
5988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5990 fi
5991done
5992done
5993
be01d343
PB
5994fi
5995fi
c6b750e1 5996YACC=$ac_cv_prog_YACC
be01d343 5997if test -n "$YACC"; then
c6b750e1
DJ
5998 echo "$as_me:$LINENO: result: $YACC" >&5
5999echo "${ECHO_T}$YACC" >&6
be01d343 6000else
c6b750e1
DJ
6001 echo "$as_me:$LINENO: result: no" >&5
6002echo "${ECHO_T}no" >&6
be01d343
PB
6003fi
6004
c6b750e1 6005 test -n "$YACC" && break
be01d343
PB
6006done
6007test -n "$YACC" || YACC="$MISSING bison -y"
6008
6009case " $build_configdirs " in
6010 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6011 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6012esac
6013
6014for ac_prog in bison
6015do
c6b750e1 6016 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6017set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6018echo "$as_me:$LINENO: checking for $ac_word" >&5
6019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6020if test "${ac_cv_prog_BISON+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6022else
6023 if test -n "$BISON"; then
6024 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6025else
c6b750e1
DJ
6026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027for as_dir in $PATH
6028do
6029 IFS=$as_save_IFS
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033 ac_cv_prog_BISON="$ac_prog"
6034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 break 2
6036 fi
6037done
6038done
6039
be01d343
PB
6040fi
6041fi
c6b750e1 6042BISON=$ac_cv_prog_BISON
be01d343 6043if test -n "$BISON"; then
c6b750e1
DJ
6044 echo "$as_me:$LINENO: result: $BISON" >&5
6045echo "${ECHO_T}$BISON" >&6
be01d343 6046else
c6b750e1
DJ
6047 echo "$as_me:$LINENO: result: no" >&5
6048echo "${ECHO_T}no" >&6
be01d343
PB
6049fi
6050
c6b750e1 6051 test -n "$BISON" && break
be01d343
PB
6052done
6053test -n "$BISON" || BISON="$MISSING bison"
6054
6055case " $build_configdirs " in
6056 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6057esac
6058
6059for ac_prog in gm4 gnum4 m4
6060do
c6b750e1 6061 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6062set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6063echo "$as_me:$LINENO: checking for $ac_word" >&5
6064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6065if test "${ac_cv_prog_M4+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6067else
6068 if test -n "$M4"; then
6069 ac_cv_prog_M4="$M4" # Let the user override the test.
6070else
c6b750e1
DJ
6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072for as_dir in $PATH
6073do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6078 ac_cv_prog_M4="$ac_prog"
6079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082done
6083done
6084
be01d343
PB
6085fi
6086fi
c6b750e1 6087M4=$ac_cv_prog_M4
be01d343 6088if test -n "$M4"; then
c6b750e1
DJ
6089 echo "$as_me:$LINENO: result: $M4" >&5
6090echo "${ECHO_T}$M4" >&6
be01d343 6091else
c6b750e1
DJ
6092 echo "$as_me:$LINENO: result: no" >&5
6093echo "${ECHO_T}no" >&6
be01d343
PB
6094fi
6095
c6b750e1 6096 test -n "$M4" && break
be01d343
PB
6097done
6098test -n "$M4" || M4="$MISSING m4"
6099
6100case " $build_configdirs " in
6101 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6102esac
6103
6104for ac_prog in flex lex
6105do
c6b750e1 6106 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6107set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6108echo "$as_me:$LINENO: checking for $ac_word" >&5
6109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6110if test "${ac_cv_prog_LEX+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6112else
6113 if test -n "$LEX"; then
6114 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6115else
c6b750e1
DJ
6116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117for as_dir in $PATH
6118do
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123 ac_cv_prog_LEX="$ac_prog"
6124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 break 2
6126 fi
6127done
6128done
6129
be01d343
PB
6130fi
6131fi
c6b750e1 6132LEX=$ac_cv_prog_LEX
be01d343 6133if test -n "$LEX"; then
c6b750e1
DJ
6134 echo "$as_me:$LINENO: result: $LEX" >&5
6135echo "${ECHO_T}$LEX" >&6
be01d343 6136else
c6b750e1
DJ
6137 echo "$as_me:$LINENO: result: no" >&5
6138echo "${ECHO_T}no" >&6
be01d343
PB
6139fi
6140
c6b750e1 6141 test -n "$LEX" && break
be01d343
PB
6142done
6143test -n "$LEX" || LEX="$MISSING flex"
6144
6145case " $build_configdirs " in
6146 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6147 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6148esac
6149
6150for ac_prog in flex
6151do
c6b750e1 6152 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6153set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6154echo "$as_me:$LINENO: checking for $ac_word" >&5
6155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6156if test "${ac_cv_prog_FLEX+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6158else
6159 if test -n "$FLEX"; then
6160 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6161else
c6b750e1
DJ
6162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH
6164do
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169 ac_cv_prog_FLEX="$ac_prog"
6170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6172 fi
6173done
6174done
6175
be01d343
PB
6176fi
6177fi
c6b750e1 6178FLEX=$ac_cv_prog_FLEX
be01d343 6179if test -n "$FLEX"; then
c6b750e1
DJ
6180 echo "$as_me:$LINENO: result: $FLEX" >&5
6181echo "${ECHO_T}$FLEX" >&6
be01d343 6182else
c6b750e1
DJ
6183 echo "$as_me:$LINENO: result: no" >&5
6184echo "${ECHO_T}no" >&6
be01d343
PB
6185fi
6186
c6b750e1 6187 test -n "$FLEX" && break
be01d343
PB
6188done
6189test -n "$FLEX" || FLEX="$MISSING flex"
6190
6191case " $build_configdirs " in
6192 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6193esac
6194
6195for ac_prog in makeinfo
6196do
c6b750e1 6197 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6198set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6199echo "$as_me:$LINENO: checking for $ac_word" >&5
6200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6201if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6203else
6204 if test -n "$MAKEINFO"; then
6205 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6206else
c6b750e1
DJ
6207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208for as_dir in $PATH
6209do
6210 IFS=$as_save_IFS
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6214 ac_cv_prog_MAKEINFO="$ac_prog"
6215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 break 2
6217 fi
6218done
6219done
6220
be01d343
PB
6221fi
6222fi
c6b750e1 6223MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6224if test -n "$MAKEINFO"; then
c6b750e1
DJ
6225 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6226echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6227else
c6b750e1
DJ
6228 echo "$as_me:$LINENO: result: no" >&5
6229echo "${ECHO_T}no" >&6
be01d343
PB
6230fi
6231
c6b750e1 6232 test -n "$MAKEINFO" && break
be01d343
PB
6233done
6234test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6235
6236case " $build_configdirs " in
6237 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6238 *)
6239
625a61cd 6240 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6241 # higher, else we use the "missing" dummy.
6242 if ${MAKEINFO} --version \
625a61cd 6243 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6244 :
6245 else
6246 MAKEINFO="$MISSING makeinfo"
6247 fi
6248 ;;
6249
6250esac
a0da8069 6251
be01d343 6252# FIXME: expect and dejagnu may become build tools?
a0da8069 6253
be01d343
PB
6254for ac_prog in expect
6255do
c6b750e1 6256 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6257set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6258echo "$as_me:$LINENO: checking for $ac_word" >&5
6259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6260if test "${ac_cv_prog_EXPECT+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6262else
6263 if test -n "$EXPECT"; then
6264 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6265else
c6b750e1
DJ
6266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267for as_dir in $PATH
6268do
6269 IFS=$as_save_IFS
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6273 ac_cv_prog_EXPECT="$ac_prog"
6274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 break 2
6276 fi
6277done
6278done
6279
be01d343
PB
6280fi
6281fi
c6b750e1 6282EXPECT=$ac_cv_prog_EXPECT
be01d343 6283if test -n "$EXPECT"; then
c6b750e1
DJ
6284 echo "$as_me:$LINENO: result: $EXPECT" >&5
6285echo "${ECHO_T}$EXPECT" >&6
be01d343 6286else
c6b750e1
DJ
6287 echo "$as_me:$LINENO: result: no" >&5
6288echo "${ECHO_T}no" >&6
be01d343 6289fi
a0da8069 6290
c6b750e1 6291 test -n "$EXPECT" && break
be01d343
PB
6292done
6293test -n "$EXPECT" || EXPECT="expect"
a0da8069 6294
be01d343
PB
6295case " $configdirs " in
6296 *" expect "*)
6297 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6298 ;;
6299esac
a0da8069 6300
be01d343
PB
6301for ac_prog in runtest
6302do
c6b750e1 6303 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6304set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6305echo "$as_me:$LINENO: checking for $ac_word" >&5
6306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6307if test "${ac_cv_prog_RUNTEST+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6309else
6310 if test -n "$RUNTEST"; then
6311 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6312else
c6b750e1
DJ
6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6320 ac_cv_prog_RUNTEST="$ac_prog"
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 break 2
6323 fi
6324done
6325done
6326
be01d343
PB
6327fi
6328fi
c6b750e1 6329RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6330if test -n "$RUNTEST"; then
c6b750e1
DJ
6331 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6332echo "${ECHO_T}$RUNTEST" >&6
be01d343 6333else
c6b750e1
DJ
6334 echo "$as_me:$LINENO: result: no" >&5
6335echo "${ECHO_T}no" >&6
be01d343 6336fi
a0da8069 6337
c6b750e1 6338 test -n "$RUNTEST" && break
be01d343
PB
6339done
6340test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6341
be01d343
PB
6342case " $configdirs " in
6343 *" dejagnu "*)
6b89cc21 6344 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6345 ;;
6346esac
a0da8069
NN
6347
6348
a0da8069 6349# Host tools.
859789af
AC
6350ncn_tool_prefix=
6351test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6352ncn_target_tool_prefix=
6353test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6354
9a819804
AO
6355
6356
6357if test -n "$AR"; then
6358 ac_cv_prog_AR=$AR
6359elif test -n "$ac_cv_prog_AR"; then
6360 AR=$ac_cv_prog_AR
6361fi
6362
6363if test -n "$ac_cv_prog_AR"; then
6364 for ncn_progname in ar; do
6365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6366set dummy ${ncn_progname}; ac_word=$2
6367echo "$as_me:$LINENO: checking for $ac_word" >&5
6368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6369if test "${ac_cv_prog_AR+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371else
6372 if test -n "$AR"; then
6373 ac_cv_prog_AR="$AR" # Let the user override the test.
6374else
6375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376for as_dir in $PATH
6377do
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6382 ac_cv_prog_AR="${ncn_progname}"
6383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 break 2
6385 fi
6386done
6387done
6388
6389fi
6390fi
6391AR=$ac_cv_prog_AR
6392if test -n "$AR"; then
6393 echo "$as_me:$LINENO: result: $AR" >&5
6394echo "${ECHO_T}$AR" >&6
6395else
6396 echo "$as_me:$LINENO: result: no" >&5
6397echo "${ECHO_T}no" >&6
6398fi
6399
6400 done
6401fi
6402
6403for ncn_progname in ar; do
05cbd757
PB
6404 if test -n "$ncn_tool_prefix"; then
6405 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6406set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6407echo "$as_me:$LINENO: checking for $ac_word" >&5
6408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6409if test "${ac_cv_prog_AR+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6411else
6412 if test -n "$AR"; then
6413 ac_cv_prog_AR="$AR" # Let the user override the test.
6414else
c6b750e1
DJ
6415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416for as_dir in $PATH
6417do
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6422 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 break 2
6425 fi
6426done
6427done
6428
859789af
AC
6429fi
6430fi
c6b750e1 6431AR=$ac_cv_prog_AR
859789af 6432if test -n "$AR"; then
c6b750e1
DJ
6433 echo "$as_me:$LINENO: result: $AR" >&5
6434echo "${ECHO_T}$AR" >&6
859789af 6435else
c6b750e1
DJ
6436 echo "$as_me:$LINENO: result: no" >&5
6437echo "${ECHO_T}no" >&6
859789af
AC
6438fi
6439
05cbd757
PB
6440 fi
6441 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6443set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6444echo "$as_me:$LINENO: checking for $ac_word" >&5
6445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6446if test "${ac_cv_prog_AR+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6448else
05cbd757
PB
6449 if test -n "$AR"; then
6450 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6451else
c6b750e1
DJ
6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459 ac_cv_prog_AR="${ncn_progname}"
6460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6462 fi
6463done
6464done
6465
859789af
AC
6466fi
6467fi
c6b750e1 6468AR=$ac_cv_prog_AR
05cbd757 6469if test -n "$AR"; then
c6b750e1
DJ
6470 echo "$as_me:$LINENO: result: $AR" >&5
6471echo "${ECHO_T}$AR" >&6
859789af 6472else
c6b750e1
DJ
6473 echo "$as_me:$LINENO: result: no" >&5
6474echo "${ECHO_T}no" >&6
859789af 6475fi
c6b750e1 6476
05cbd757
PB
6477 fi
6478 test -n "$ac_cv_prog_AR" && break
6479done
6480
6481if test -z "$ac_cv_prog_AR" ; then
6482 set dummy ar
6483 if test $build = $host ; then
6484 AR="$2"
859789af 6485 else
05cbd757 6486 AR="${ncn_tool_prefix}$2"
859789af 6487 fi
859789af
AC
6488fi
6489
9a819804
AO
6490
6491
6492if test -n "$AS"; then
6493 ac_cv_prog_AS=$AS
6494elif test -n "$ac_cv_prog_AS"; then
6495 AS=$ac_cv_prog_AS
6496fi
6497
6498if test -n "$ac_cv_prog_AS"; then
6499 for ncn_progname in as; do
6500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6501set dummy ${ncn_progname}; ac_word=$2
6502echo "$as_me:$LINENO: checking for $ac_word" >&5
6503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6504if test "${ac_cv_prog_AS+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506else
6507 if test -n "$AS"; then
6508 ac_cv_prog_AS="$AS" # Let the user override the test.
6509else
6510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511for as_dir in $PATH
6512do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_AS="${ncn_progname}"
6518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6520 fi
6521done
6522done
6523
6524fi
6525fi
6526AS=$ac_cv_prog_AS
6527if test -n "$AS"; then
6528 echo "$as_me:$LINENO: result: $AS" >&5
6529echo "${ECHO_T}$AS" >&6
6530else
6531 echo "$as_me:$LINENO: result: no" >&5
6532echo "${ECHO_T}no" >&6
6533fi
6534
6535 done
6536fi
6537
6538for ncn_progname in as; do
05cbd757
PB
6539 if test -n "$ncn_tool_prefix"; then
6540 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6541set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6542echo "$as_me:$LINENO: checking for $ac_word" >&5
6543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6544if test "${ac_cv_prog_AS+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6546else
6547 if test -n "$AS"; then
6548 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6549else
6550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551for as_dir in $PATH
6552do
6553 IFS=$as_save_IFS
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6557 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 break 2
6560 fi
6561done
6562done
6563
859789af
AC
6564fi
6565fi
c6b750e1 6566AS=$ac_cv_prog_AS
859789af 6567if test -n "$AS"; then
c6b750e1
DJ
6568 echo "$as_me:$LINENO: result: $AS" >&5
6569echo "${ECHO_T}$AS" >&6
859789af 6570else
c6b750e1
DJ
6571 echo "$as_me:$LINENO: result: no" >&5
6572echo "${ECHO_T}no" >&6
859789af
AC
6573fi
6574
05cbd757
PB
6575 fi
6576 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6578set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6579echo "$as_me:$LINENO: checking for $ac_word" >&5
6580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6581if test "${ac_cv_prog_AS+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6583else
05cbd757
PB
6584 if test -n "$AS"; then
6585 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6586else
c6b750e1
DJ
6587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588for as_dir in $PATH
6589do
6590 IFS=$as_save_IFS
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6594 ac_cv_prog_AS="${ncn_progname}"
6595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 break 2
6597 fi
6598done
6599done
6600
859789af
AC
6601fi
6602fi
c6b750e1 6603AS=$ac_cv_prog_AS
05cbd757 6604if test -n "$AS"; then
c6b750e1
DJ
6605 echo "$as_me:$LINENO: result: $AS" >&5
6606echo "${ECHO_T}$AS" >&6
859789af 6607else
c6b750e1
DJ
6608 echo "$as_me:$LINENO: result: no" >&5
6609echo "${ECHO_T}no" >&6
859789af 6610fi
c6b750e1 6611
05cbd757
PB
6612 fi
6613 test -n "$ac_cv_prog_AS" && break
6614done
6615
6616if test -z "$ac_cv_prog_AS" ; then
6617 set dummy as
6618 if test $build = $host ; then
6619 AS="$2"
859789af 6620 else
05cbd757 6621 AS="${ncn_tool_prefix}$2"
859789af 6622 fi
859789af
AC
6623fi
6624
9a819804
AO
6625
6626
6627if test -n "$DLLTOOL"; then
6628 ac_cv_prog_DLLTOOL=$DLLTOOL
6629elif test -n "$ac_cv_prog_DLLTOOL"; then
6630 DLLTOOL=$ac_cv_prog_DLLTOOL
6631fi
6632
6633if test -n "$ac_cv_prog_DLLTOOL"; then
6634 for ncn_progname in dlltool; do
6635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6636set dummy ${ncn_progname}; ac_word=$2
6637echo "$as_me:$LINENO: checking for $ac_word" >&5
6638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6639if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6641else
6642 if test -n "$DLLTOOL"; then
6643 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6644else
6645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646for as_dir in $PATH
6647do
6648 IFS=$as_save_IFS
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6652 ac_cv_prog_DLLTOOL="${ncn_progname}"
6653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 break 2
6655 fi
6656done
6657done
6658
6659fi
6660fi
6661DLLTOOL=$ac_cv_prog_DLLTOOL
6662if test -n "$DLLTOOL"; then
6663 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6664echo "${ECHO_T}$DLLTOOL" >&6
6665else
6666 echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
6668fi
6669
6670 done
6671fi
6672
6673for ncn_progname in dlltool; do
05cbd757
PB
6674 if test -n "$ncn_tool_prefix"; then
6675 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6676set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6677echo "$as_me:$LINENO: checking for $ac_word" >&5
6678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6679if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6681else
6682 if test -n "$DLLTOOL"; then
6683 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6684else
c6b750e1
DJ
6685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688 IFS=$as_save_IFS
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6692 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 break 2
6695 fi
6696done
6697done
6698
859789af
AC
6699fi
6700fi
c6b750e1 6701DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6702if test -n "$DLLTOOL"; then
c6b750e1
DJ
6703 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6704echo "${ECHO_T}$DLLTOOL" >&6
859789af 6705else
c6b750e1
DJ
6706 echo "$as_me:$LINENO: result: no" >&5
6707echo "${ECHO_T}no" >&6
859789af
AC
6708fi
6709
05cbd757
PB
6710 fi
6711 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6713set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6714echo "$as_me:$LINENO: checking for $ac_word" >&5
6715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6716if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6718else
05cbd757
PB
6719 if test -n "$DLLTOOL"; then
6720 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6721else
c6b750e1
DJ
6722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723for as_dir in $PATH
6724do
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_DLLTOOL="${ncn_progname}"
6730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 break 2
6732 fi
6733done
6734done
6735
859789af
AC
6736fi
6737fi
c6b750e1 6738DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6739if test -n "$DLLTOOL"; then
c6b750e1
DJ
6740 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6741echo "${ECHO_T}$DLLTOOL" >&6
859789af 6742else
c6b750e1
DJ
6743 echo "$as_me:$LINENO: result: no" >&5
6744echo "${ECHO_T}no" >&6
859789af 6745fi
c6b750e1 6746
05cbd757
PB
6747 fi
6748 test -n "$ac_cv_prog_DLLTOOL" && break
6749done
6750
6751if test -z "$ac_cv_prog_DLLTOOL" ; then
6752 set dummy dlltool
6753 if test $build = $host ; then
6754 DLLTOOL="$2"
859789af 6755 else
05cbd757 6756 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6757 fi
859789af
AC
6758fi
6759
9a819804
AO
6760
6761
6762if test -n "$LD"; then
6763 ac_cv_prog_LD=$LD
6764elif test -n "$ac_cv_prog_LD"; then
6765 LD=$ac_cv_prog_LD
6766fi
6767
6768if test -n "$ac_cv_prog_LD"; then
6769 for ncn_progname in ld; do
6770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6771set dummy ${ncn_progname}; ac_word=$2
6772echo "$as_me:$LINENO: checking for $ac_word" >&5
6773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6774if test "${ac_cv_prog_LD+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6776else
6777 if test -n "$LD"; then
6778 ac_cv_prog_LD="$LD" # Let the user override the test.
6779else
6780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781for as_dir in $PATH
6782do
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787 ac_cv_prog_LD="${ncn_progname}"
6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6790 fi
6791done
6792done
6793
6794fi
6795fi
6796LD=$ac_cv_prog_LD
6797if test -n "$LD"; then
6798 echo "$as_me:$LINENO: result: $LD" >&5
6799echo "${ECHO_T}$LD" >&6
6800else
6801 echo "$as_me:$LINENO: result: no" >&5
6802echo "${ECHO_T}no" >&6
6803fi
6804
6805 done
6806fi
6807
6808for ncn_progname in ld; do
05cbd757
PB
6809 if test -n "$ncn_tool_prefix"; then
6810 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6811set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6812echo "$as_me:$LINENO: checking for $ac_word" >&5
6813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6814if test "${ac_cv_prog_LD+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6816else
6817 if test -n "$LD"; then
6818 ac_cv_prog_LD="$LD" # Let the user override the test.
6819else
c6b750e1
DJ
6820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821for as_dir in $PATH
6822do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6827 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6830 fi
6831done
6832done
6833
859789af
AC
6834fi
6835fi
c6b750e1 6836LD=$ac_cv_prog_LD
859789af 6837if test -n "$LD"; then
c6b750e1
DJ
6838 echo "$as_me:$LINENO: result: $LD" >&5
6839echo "${ECHO_T}$LD" >&6
859789af 6840else
c6b750e1
DJ
6841 echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6
859789af
AC
6843fi
6844
05cbd757
PB
6845 fi
6846 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6847 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6848set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6849echo "$as_me:$LINENO: checking for $ac_word" >&5
6850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6851if test "${ac_cv_prog_LD+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6853else
05cbd757
PB
6854 if test -n "$LD"; then
6855 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6856else
c6b750e1
DJ
6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6864 ac_cv_prog_LD="${ncn_progname}"
6865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868done
6869done
6870
859789af
AC
6871fi
6872fi
c6b750e1 6873LD=$ac_cv_prog_LD
05cbd757 6874if test -n "$LD"; then
c6b750e1
DJ
6875 echo "$as_me:$LINENO: result: $LD" >&5
6876echo "${ECHO_T}$LD" >&6
859789af 6877else
c6b750e1
DJ
6878 echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6
859789af 6880fi
c6b750e1 6881
05cbd757
PB
6882 fi
6883 test -n "$ac_cv_prog_LD" && break
6884done
6885
6886if test -z "$ac_cv_prog_LD" ; then
6887 set dummy ld
6888 if test $build = $host ; then
6889 LD="$2"
859789af 6890 else
05cbd757 6891 LD="${ncn_tool_prefix}$2"
859789af 6892 fi
859789af
AC
6893fi
6894
9a819804
AO
6895
6896
6897if test -n "$LIPO"; then
6898 ac_cv_prog_LIPO=$LIPO
6899elif test -n "$ac_cv_prog_LIPO"; then
6900 LIPO=$ac_cv_prog_LIPO
6901fi
6902
6903if test -n "$ac_cv_prog_LIPO"; then
6904 for ncn_progname in lipo; do
6905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6906set dummy ${ncn_progname}; ac_word=$2
6907echo "$as_me:$LINENO: checking for $ac_word" >&5
6908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6909if test "${ac_cv_prog_LIPO+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911else
6912 if test -n "$LIPO"; then
6913 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6914else
6915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916for as_dir in $PATH
6917do
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6922 ac_cv_prog_LIPO="${ncn_progname}"
6923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 break 2
6925 fi
6926done
6927done
6928
6929fi
6930fi
6931LIPO=$ac_cv_prog_LIPO
6932if test -n "$LIPO"; then
6933 echo "$as_me:$LINENO: result: $LIPO" >&5
6934echo "${ECHO_T}$LIPO" >&6
6935else
6936 echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6
6938fi
6939
6940 done
6941fi
6942
6943for ncn_progname in lipo; do
be01d343
PB
6944 if test -n "$ncn_tool_prefix"; then
6945 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6946set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6947echo "$as_me:$LINENO: checking for $ac_word" >&5
6948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6949if test "${ac_cv_prog_LIPO+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6951else
6952 if test -n "$LIPO"; then
6953 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6954else
c6b750e1
DJ
6955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956for as_dir in $PATH
6957do
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6962 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 break 2
6965 fi
6966done
6967done
6968
be01d343
PB
6969fi
6970fi
c6b750e1 6971LIPO=$ac_cv_prog_LIPO
be01d343 6972if test -n "$LIPO"; then
c6b750e1
DJ
6973 echo "$as_me:$LINENO: result: $LIPO" >&5
6974echo "${ECHO_T}$LIPO" >&6
be01d343 6975else
c6b750e1
DJ
6976 echo "$as_me:$LINENO: result: no" >&5
6977echo "${ECHO_T}no" >&6
be01d343
PB
6978fi
6979
6980 fi
6981 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6983set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6984echo "$as_me:$LINENO: checking for $ac_word" >&5
6985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6986if test "${ac_cv_prog_LIPO+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6988else
6989 if test -n "$LIPO"; then
6990 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6991else
c6b750e1
DJ
6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_LIPO="${ncn_progname}"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003done
7004done
7005
be01d343
PB
7006fi
7007fi
c6b750e1 7008LIPO=$ac_cv_prog_LIPO
be01d343 7009if test -n "$LIPO"; then
c6b750e1
DJ
7010 echo "$as_me:$LINENO: result: $LIPO" >&5
7011echo "${ECHO_T}$LIPO" >&6
be01d343 7012else
c6b750e1
DJ
7013 echo "$as_me:$LINENO: result: no" >&5
7014echo "${ECHO_T}no" >&6
be01d343 7015fi
c6b750e1 7016
be01d343
PB
7017 fi
7018 test -n "$ac_cv_prog_LIPO" && break
7019done
7020
7021if test -z "$ac_cv_prog_LIPO" ; then
7022 set dummy lipo
7023 if test $build = $host ; then
7024 LIPO="$2"
7025 else
7026 LIPO="${ncn_tool_prefix}$2"
7027 fi
7028fi
7029
9a819804
AO
7030
7031
7032if test -n "$NM"; then
7033 ac_cv_prog_NM=$NM
7034elif test -n "$ac_cv_prog_NM"; then
7035 NM=$ac_cv_prog_NM
7036fi
7037
7038if test -n "$ac_cv_prog_NM"; then
7039 for ncn_progname in nm; do
7040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7041set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7042echo "$as_me:$LINENO: checking for $ac_word" >&5
7043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7044if test "${ac_cv_prog_NM+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7046else
7047 if test -n "$NM"; then
7048 ac_cv_prog_NM="$NM" # Let the user override the test.
7049else
c6b750e1
DJ
7050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051for as_dir in $PATH
7052do
7053 IFS=$as_save_IFS
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7057 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 break 2
7060 fi
7061done
7062done
7063
859789af
AC
7064fi
7065fi
c6b750e1 7066NM=$ac_cv_prog_NM
859789af 7067if test -n "$NM"; then
c6b750e1
DJ
7068 echo "$as_me:$LINENO: result: $NM" >&5
7069echo "${ECHO_T}$NM" >&6
859789af 7070else
c6b750e1
DJ
7071 echo "$as_me:$LINENO: result: no" >&5
7072echo "${ECHO_T}no" >&6
859789af
AC
7073fi
7074
9a819804
AO
7075 done
7076fi
7077
7078for ncn_progname in nm; do
7079 if test -n "$ncn_tool_prefix"; then
7080 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7081set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7082echo "$as_me:$LINENO: checking for $ac_word" >&5
7083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7084if test "${ac_cv_prog_NM+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7086else
05cbd757
PB
7087 if test -n "$NM"; then
7088 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7089else
c6b750e1
DJ
7090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7097 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7100 fi
7101done
7102done
7103
859789af
AC
7104fi
7105fi
c6b750e1 7106NM=$ac_cv_prog_NM
05cbd757 7107if test -n "$NM"; then
c6b750e1
DJ
7108 echo "$as_me:$LINENO: result: $NM" >&5
7109echo "${ECHO_T}$NM" >&6
859789af 7110else
c6b750e1
DJ
7111 echo "$as_me:$LINENO: result: no" >&5
7112echo "${ECHO_T}no" >&6
859789af 7113fi
c6b750e1 7114
05cbd757 7115 fi
9a819804
AO
7116 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7118set dummy ${ncn_progname}; ac_word=$2
7119echo "$as_me:$LINENO: checking for $ac_word" >&5
7120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7121if test "${ac_cv_prog_NM+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123else
7124 if test -n "$NM"; then
7125 ac_cv_prog_NM="$NM" # Let the user override the test.
7126else
7127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128for as_dir in $PATH
7129do
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134 ac_cv_prog_NM="${ncn_progname}"
7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7137 fi
7138done
7139done
7140
7141fi
7142fi
7143NM=$ac_cv_prog_NM
7144if test -n "$NM"; then
7145 echo "$as_me:$LINENO: result: $NM" >&5
7146echo "${ECHO_T}$NM" >&6
7147else
7148 echo "$as_me:$LINENO: result: no" >&5
7149echo "${ECHO_T}no" >&6
7150fi
7151
7152 fi
7153 test -n "$ac_cv_prog_NM" && break
7154done
7155
7156if test -z "$ac_cv_prog_NM" ; then
7157 set dummy nm
7158 if test $build = $host ; then
7159 NM="$2"
7160 else
7161 NM="${ncn_tool_prefix}$2"
7162 fi
7163fi
7164
7165
7166
7167if test -n "$RANLIB"; then
7168 ac_cv_prog_RANLIB=$RANLIB
7169elif test -n "$ac_cv_prog_RANLIB"; then
7170 RANLIB=$ac_cv_prog_RANLIB
7171fi
7172
7173if test -n "$ac_cv_prog_RANLIB"; then
7174 for ncn_progname in ranlib; do
7175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7176set dummy ${ncn_progname}; ac_word=$2
7177echo "$as_me:$LINENO: checking for $ac_word" >&5
7178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7179if test "${ac_cv_prog_RANLIB+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7181else
7182 if test -n "$RANLIB"; then
7183 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7184else
7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188 IFS=$as_save_IFS
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192 ac_cv_prog_RANLIB="${ncn_progname}"
7193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 break 2
7195 fi
7196done
7197done
7198
7199fi
7200fi
7201RANLIB=$ac_cv_prog_RANLIB
7202if test -n "$RANLIB"; then
7203 echo "$as_me:$LINENO: result: $RANLIB" >&5
7204echo "${ECHO_T}$RANLIB" >&6
7205else
7206 echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6
7208fi
7209
7210 done
7211fi
859789af 7212
9a819804 7213for ncn_progname in ranlib; do
05cbd757
PB
7214 if test -n "$ncn_tool_prefix"; then
7215 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7216set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7217echo "$as_me:$LINENO: checking for $ac_word" >&5
7218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7219if test "${ac_cv_prog_RANLIB+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7221else
7222 if test -n "$RANLIB"; then
7223 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7224else
c6b750e1
DJ
7225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7232 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 break 2
7235 fi
7236done
7237done
7238
859789af
AC
7239fi
7240fi
c6b750e1 7241RANLIB=$ac_cv_prog_RANLIB
859789af 7242if test -n "$RANLIB"; then
c6b750e1
DJ
7243 echo "$as_me:$LINENO: result: $RANLIB" >&5
7244echo "${ECHO_T}$RANLIB" >&6
859789af 7245else
c6b750e1
DJ
7246 echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6
859789af
AC
7248fi
7249
05cbd757
PB
7250 fi
7251 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7253set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7254echo "$as_me:$LINENO: checking for $ac_word" >&5
7255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7256if test "${ac_cv_prog_RANLIB+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7258else
05cbd757
PB
7259 if test -n "$RANLIB"; then
7260 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7261else
c6b750e1
DJ
7262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_RANLIB="${ncn_progname}"
7270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7272 fi
7273done
7274done
7275
859789af
AC
7276fi
7277fi
c6b750e1 7278RANLIB=$ac_cv_prog_RANLIB
05cbd757 7279if test -n "$RANLIB"; then
c6b750e1
DJ
7280 echo "$as_me:$LINENO: result: $RANLIB" >&5
7281echo "${ECHO_T}$RANLIB" >&6
859789af 7282else
c6b750e1
DJ
7283 echo "$as_me:$LINENO: result: no" >&5
7284echo "${ECHO_T}no" >&6
859789af 7285fi
c6b750e1 7286
859789af 7287 fi
05cbd757
PB
7288 test -n "$ac_cv_prog_RANLIB" && break
7289done
7290
7291if test -z "$ac_cv_prog_RANLIB" ; then
7292 RANLIB=":"
859789af
AC
7293fi
7294
9a819804
AO
7295
7296
7297if test -n "$STRIP"; then
7298 ac_cv_prog_STRIP=$STRIP
7299elif test -n "$ac_cv_prog_STRIP"; then
7300 STRIP=$ac_cv_prog_STRIP
7301fi
7302
7303if test -n "$ac_cv_prog_STRIP"; then
7304 for ncn_progname in strip; do
7305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7306set dummy ${ncn_progname}; ac_word=$2
7307echo "$as_me:$LINENO: checking for $ac_word" >&5
7308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309if test "${ac_cv_prog_STRIP+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312 if test -n "$STRIP"; then
7313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7314else
7315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_STRIP="${ncn_progname}"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7325 fi
7326done
7327done
7328
7329fi
7330fi
7331STRIP=$ac_cv_prog_STRIP
7332if test -n "$STRIP"; then
7333 echo "$as_me:$LINENO: result: $STRIP" >&5
7334echo "${ECHO_T}$STRIP" >&6
7335else
7336 echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6
7338fi
7339
7340 done
7341fi
7342
7343for ncn_progname in strip; do
be01d343
PB
7344 if test -n "$ncn_tool_prefix"; then
7345 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7346set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7347echo "$as_me:$LINENO: checking for $ac_word" >&5
7348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7349if test "${ac_cv_prog_STRIP+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7351else
7352 if test -n "$STRIP"; then
7353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7354else
c6b750e1
DJ
7355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7365 fi
7366done
7367done
7368
be01d343
PB
7369fi
7370fi
c6b750e1 7371STRIP=$ac_cv_prog_STRIP
be01d343 7372if test -n "$STRIP"; then
c6b750e1
DJ
7373 echo "$as_me:$LINENO: result: $STRIP" >&5
7374echo "${ECHO_T}$STRIP" >&6
be01d343 7375else
c6b750e1
DJ
7376 echo "$as_me:$LINENO: result: no" >&5
7377echo "${ECHO_T}no" >&6
be01d343
PB
7378fi
7379
7380 fi
7381 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7383set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7384echo "$as_me:$LINENO: checking for $ac_word" >&5
7385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7386if test "${ac_cv_prog_STRIP+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7388else
7389 if test -n "$STRIP"; then
7390 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7391else
c6b750e1
DJ
7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395 IFS=$as_save_IFS
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_STRIP="${ncn_progname}"
7400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 break 2
7402 fi
7403done
7404done
7405
be01d343
PB
7406fi
7407fi
c6b750e1 7408STRIP=$ac_cv_prog_STRIP
be01d343 7409if test -n "$STRIP"; then
c6b750e1
DJ
7410 echo "$as_me:$LINENO: result: $STRIP" >&5
7411echo "${ECHO_T}$STRIP" >&6
be01d343 7412else
c6b750e1
DJ
7413 echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6
be01d343 7415fi
c6b750e1 7416
be01d343
PB
7417 fi
7418 test -n "$ac_cv_prog_STRIP" && break
7419done
7420
7421if test -z "$ac_cv_prog_STRIP" ; then
7422 STRIP=":"
7423fi
7424
9a819804
AO
7425
7426
7427if test -n "$WINDRES"; then
7428 ac_cv_prog_WINDRES=$WINDRES
7429elif test -n "$ac_cv_prog_WINDRES"; then
7430 WINDRES=$ac_cv_prog_WINDRES
7431fi
7432
7433if test -n "$ac_cv_prog_WINDRES"; then
7434 for ncn_progname in windres; do
7435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7436set dummy ${ncn_progname}; ac_word=$2
7437echo "$as_me:$LINENO: checking for $ac_word" >&5
7438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7439if test "${ac_cv_prog_WINDRES+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7441else
7442 if test -n "$WINDRES"; then
7443 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7444else
7445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446for as_dir in $PATH
7447do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7452 ac_cv_prog_WINDRES="${ncn_progname}"
7453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456done
7457done
7458
7459fi
7460fi
7461WINDRES=$ac_cv_prog_WINDRES
7462if test -n "$WINDRES"; then
7463 echo "$as_me:$LINENO: result: $WINDRES" >&5
7464echo "${ECHO_T}$WINDRES" >&6
7465else
7466 echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6
7468fi
7469
7470 done
7471fi
7472
7473for ncn_progname in windres; do
05cbd757
PB
7474 if test -n "$ncn_tool_prefix"; then
7475 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7476set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7477echo "$as_me:$LINENO: checking for $ac_word" >&5
7478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7479if test "${ac_cv_prog_WINDRES+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7481else
7482 if test -n "$WINDRES"; then
7483 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7484else
c6b750e1
DJ
7485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486for as_dir in $PATH
7487do
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 break 2
7495 fi
7496done
7497done
7498
859789af
AC
7499fi
7500fi
c6b750e1 7501WINDRES=$ac_cv_prog_WINDRES
859789af 7502if test -n "$WINDRES"; then
c6b750e1
DJ
7503 echo "$as_me:$LINENO: result: $WINDRES" >&5
7504echo "${ECHO_T}$WINDRES" >&6
859789af 7505else
c6b750e1
DJ
7506 echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6
859789af
AC
7508fi
7509
05cbd757
PB
7510 fi
7511 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7513set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7514echo "$as_me:$LINENO: checking for $ac_word" >&5
7515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7516if test "${ac_cv_prog_WINDRES+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7518else
05cbd757
PB
7519 if test -n "$WINDRES"; then
7520 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7521else
c6b750e1
DJ
7522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_WINDRES="${ncn_progname}"
7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533done
7534done
7535
859789af
AC
7536fi
7537fi
c6b750e1 7538WINDRES=$ac_cv_prog_WINDRES
05cbd757 7539if test -n "$WINDRES"; then
c6b750e1
DJ
7540 echo "$as_me:$LINENO: result: $WINDRES" >&5
7541echo "${ECHO_T}$WINDRES" >&6
859789af 7542else
c6b750e1
DJ
7543 echo "$as_me:$LINENO: result: no" >&5
7544echo "${ECHO_T}no" >&6
859789af 7545fi
c6b750e1 7546
05cbd757
PB
7547 fi
7548 test -n "$ac_cv_prog_WINDRES" && break
7549done
7550
7551if test -z "$ac_cv_prog_WINDRES" ; then
7552 set dummy windres
7553 if test $build = $host ; then
7554 WINDRES="$2"
859789af 7555 else
05cbd757 7556 WINDRES="${ncn_tool_prefix}$2"
859789af 7557 fi
859789af
AC
7558fi
7559
9a819804
AO
7560
7561
0c24b341
NC
7562if test -n "$WINDMC"; then
7563 ac_cv_prog_WINDMC=$WINDMC
7564elif test -n "$ac_cv_prog_WINDMC"; then
7565 WINDMC=$ac_cv_prog_WINDMC
7566fi
7567
7568if test -n "$ac_cv_prog_WINDMC"; then
7569 for ncn_progname in windmc; do
7570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7571set dummy ${ncn_progname}; ac_word=$2
7572echo "$as_me:$LINENO: checking for $ac_word" >&5
7573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7574if test "${ac_cv_prog_WINDMC+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576else
7577 if test -n "$WINDMC"; then
7578 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7579else
7580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581for as_dir in $PATH
7582do
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587 ac_cv_prog_WINDMC="${ncn_progname}"
7588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 break 2
7590 fi
7591done
7592done
7593
7594fi
7595fi
7596WINDMC=$ac_cv_prog_WINDMC
7597if test -n "$WINDMC"; then
7598 echo "$as_me:$LINENO: result: $WINDMC" >&5
7599echo "${ECHO_T}$WINDMC" >&6
7600else
7601 echo "$as_me:$LINENO: result: no" >&5
7602echo "${ECHO_T}no" >&6
7603fi
7604
7605 done
7606fi
7607
7608for ncn_progname in windmc; do
7609 if test -n "$ncn_tool_prefix"; then
7610 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7611set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7612echo "$as_me:$LINENO: checking for $ac_word" >&5
7613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7614if test "${ac_cv_prog_WINDMC+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7616else
7617 if test -n "$WINDMC"; then
7618 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7619else
7620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621for as_dir in $PATH
7622do
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 break 2
7630 fi
7631done
7632done
7633
7634fi
7635fi
7636WINDMC=$ac_cv_prog_WINDMC
7637if test -n "$WINDMC"; then
7638 echo "$as_me:$LINENO: result: $WINDMC" >&5
7639echo "${ECHO_T}$WINDMC" >&6
7640else
7641 echo "$as_me:$LINENO: result: no" >&5
7642echo "${ECHO_T}no" >&6
7643fi
7644
7645 fi
7646 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7648set dummy ${ncn_progname}; ac_word=$2
7649echo "$as_me:$LINENO: checking for $ac_word" >&5
7650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7651if test "${ac_cv_prog_WINDMC+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654 if test -n "$WINDMC"; then
7655 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7656else
7657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658for as_dir in $PATH
7659do
7660 IFS=$as_save_IFS
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7664 ac_cv_prog_WINDMC="${ncn_progname}"
7665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 break 2
7667 fi
7668done
7669done
7670
7671fi
7672fi
7673WINDMC=$ac_cv_prog_WINDMC
7674if test -n "$WINDMC"; then
7675 echo "$as_me:$LINENO: result: $WINDMC" >&5
7676echo "${ECHO_T}$WINDMC" >&6
7677else
7678 echo "$as_me:$LINENO: result: no" >&5
7679echo "${ECHO_T}no" >&6
7680fi
7681
7682 fi
7683 test -n "$ac_cv_prog_WINDMC" && break
7684done
7685
7686if test -z "$ac_cv_prog_WINDMC" ; then
7687 set dummy windmc
7688 if test $build = $host ; then
7689 WINDMC="$2"
7690 else
7691 WINDMC="${ncn_tool_prefix}$2"
7692 fi
7693fi
7694
7695
7696
9a819804
AO
7697if test -n "$OBJCOPY"; then
7698 ac_cv_prog_OBJCOPY=$OBJCOPY
7699elif test -n "$ac_cv_prog_OBJCOPY"; then
7700 OBJCOPY=$ac_cv_prog_OBJCOPY
7701fi
7702
7703if test -n "$ac_cv_prog_OBJCOPY"; then
7704 for ncn_progname in objcopy; do
7705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7706set dummy ${ncn_progname}; ac_word=$2
7707echo "$as_me:$LINENO: checking for $ac_word" >&5
7708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7709if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711else
7712 if test -n "$OBJCOPY"; then
7713 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7714else
7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_OBJCOPY="${ncn_progname}"
7723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726done
7727done
7728
7729fi
7730fi
7731OBJCOPY=$ac_cv_prog_OBJCOPY
7732if test -n "$OBJCOPY"; then
7733 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7734echo "${ECHO_T}$OBJCOPY" >&6
7735else
7736 echo "$as_me:$LINENO: result: no" >&5
7737echo "${ECHO_T}no" >&6
7738fi
7739
7740 done
7741fi
7742
7743for ncn_progname in objcopy; do
05cbd757
PB
7744 if test -n "$ncn_tool_prefix"; then
7745 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7746set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7747echo "$as_me:$LINENO: checking for $ac_word" >&5
7748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7749if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7751else
7752 if test -n "$OBJCOPY"; then
7753 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7754else
c6b750e1
DJ
7755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756for as_dir in $PATH
7757do
7758 IFS=$as_save_IFS
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 break 2
7765 fi
7766done
7767done
7768
859789af
AC
7769fi
7770fi
c6b750e1 7771OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7772if test -n "$OBJCOPY"; then
c6b750e1
DJ
7773 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7774echo "${ECHO_T}$OBJCOPY" >&6
859789af 7775else
c6b750e1
DJ
7776 echo "$as_me:$LINENO: result: no" >&5
7777echo "${ECHO_T}no" >&6
859789af
AC
7778fi
7779
05cbd757
PB
7780 fi
7781 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7783set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7784echo "$as_me:$LINENO: checking for $ac_word" >&5
7785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7786if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7788else
05cbd757
PB
7789 if test -n "$OBJCOPY"; then
7790 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7791else
c6b750e1
DJ
7792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799 ac_cv_prog_OBJCOPY="${ncn_progname}"
7800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7802 fi
7803done
7804done
7805
859789af
AC
7806fi
7807fi
c6b750e1 7808OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7809if test -n "$OBJCOPY"; then
c6b750e1
DJ
7810 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7811echo "${ECHO_T}$OBJCOPY" >&6
859789af 7812else
c6b750e1
DJ
7813 echo "$as_me:$LINENO: result: no" >&5
7814echo "${ECHO_T}no" >&6
859789af 7815fi
c6b750e1 7816
05cbd757
PB
7817 fi
7818 test -n "$ac_cv_prog_OBJCOPY" && break
7819done
7820
7821if test -z "$ac_cv_prog_OBJCOPY" ; then
7822 set dummy objcopy
7823 if test $build = $host ; then
7824 OBJCOPY="$2"
859789af 7825 else
05cbd757 7826 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7827 fi
859789af
AC
7828fi
7829
9a819804
AO
7830
7831
7832if test -n "$OBJDUMP"; then
7833 ac_cv_prog_OBJDUMP=$OBJDUMP
7834elif test -n "$ac_cv_prog_OBJDUMP"; then
7835 OBJDUMP=$ac_cv_prog_OBJDUMP
7836fi
7837
7838if test -n "$ac_cv_prog_OBJDUMP"; then
7839 for ncn_progname in objdump; do
7840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7841set dummy ${ncn_progname}; ac_word=$2
7842echo "$as_me:$LINENO: checking for $ac_word" >&5
7843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7844if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846else
7847 if test -n "$OBJDUMP"; then
7848 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7849else
7850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851for as_dir in $PATH
7852do
7853 IFS=$as_save_IFS
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7857 ac_cv_prog_OBJDUMP="${ncn_progname}"
7858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 break 2
7860 fi
7861done
7862done
7863
7864fi
7865fi
7866OBJDUMP=$ac_cv_prog_OBJDUMP
7867if test -n "$OBJDUMP"; then
7868 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7869echo "${ECHO_T}$OBJDUMP" >&6
7870else
7871 echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6
7873fi
7874
7875 done
7876fi
7877
7878for ncn_progname in objdump; do
05cbd757
PB
7879 if test -n "$ncn_tool_prefix"; then
7880 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7881set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7882echo "$as_me:$LINENO: checking for $ac_word" >&5
7883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7884if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7886else
7887 if test -n "$OBJDUMP"; then
7888 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7889else
c6b750e1
DJ
7890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891for as_dir in $PATH
7892do
7893 IFS=$as_save_IFS
7894 test -z "$as_dir" && as_dir=.
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7897 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 break 2
7900 fi
7901done
7902done
7903
859789af
AC
7904fi
7905fi
c6b750e1 7906OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7907if test -n "$OBJDUMP"; then
c6b750e1
DJ
7908 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7909echo "${ECHO_T}$OBJDUMP" >&6
859789af 7910else
c6b750e1
DJ
7911 echo "$as_me:$LINENO: result: no" >&5
7912echo "${ECHO_T}no" >&6
859789af
AC
7913fi
7914
05cbd757
PB
7915 fi
7916 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7918set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7919echo "$as_me:$LINENO: checking for $ac_word" >&5
7920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7921if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7923else
05cbd757
PB
7924 if test -n "$OBJDUMP"; then
7925 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7926else
c6b750e1
DJ
7927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928for as_dir in $PATH
7929do
7930 IFS=$as_save_IFS
7931 test -z "$as_dir" && as_dir=.
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7934 ac_cv_prog_OBJDUMP="${ncn_progname}"
7935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 break 2
7937 fi
7938done
7939done
7940
859789af
AC
7941fi
7942fi
c6b750e1 7943OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7944if test -n "$OBJDUMP"; then
c6b750e1
DJ
7945 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7946echo "${ECHO_T}$OBJDUMP" >&6
859789af 7947else
c6b750e1
DJ
7948 echo "$as_me:$LINENO: result: no" >&5
7949echo "${ECHO_T}no" >&6
859789af 7950fi
c6b750e1 7951
05cbd757
PB
7952 fi
7953 test -n "$ac_cv_prog_OBJDUMP" && break
7954done
7955
7956if test -z "$ac_cv_prog_OBJDUMP" ; then
7957 set dummy objdump
7958 if test $build = $host ; then
7959 OBJDUMP="$2"
859789af 7960 else
05cbd757 7961 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7962 fi
859789af
AC
7963fi
7964
a0da8069
NN
7965
7966
7967
7968
7969
be01d343 7970# Target tools.
c6b750e1 7971
2429c060
PB
7972# Check whether --with-build-time-tools or --without-build-time-tools was given.
7973if test "${with_build_time_tools+set}" = set; then
7974 withval="$with_build_time_tools"
7975 case x"$withval" in
7976 x/*) ;;
7977 *)
7978 with_build_time_tools=
c6b750e1
DJ
7979 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7980echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7981 ;;
7982 esac
859789af 7983else
2429c060 7984 with_build_time_tools=
c6b750e1 7985fi;
859789af 7986
9a819804
AO
7987
7988
7989if test -n "$CC_FOR_TARGET"; then
7990 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7991elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7992 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7993fi
7994
7995if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7996 for ncn_progname in cc gcc; do
7997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7998set dummy ${ncn_progname}; ac_word=$2
7999echo "$as_me:$LINENO: checking for $ac_word" >&5
8000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8001if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8003else
8004 if test -n "$CC_FOR_TARGET"; then
8005 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8006else
8007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008for as_dir in $PATH
8009do
8010 IFS=$as_save_IFS
8011 test -z "$as_dir" && as_dir=.
8012 for ac_exec_ext in '' $ac_executable_extensions; do
8013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8014 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 break 2
8017 fi
8018done
8019done
8020
8021fi
8022fi
8023CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8024if test -n "$CC_FOR_TARGET"; then
8025 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8026echo "${ECHO_T}$CC_FOR_TARGET" >&6
8027else
8028 echo "$as_me:$LINENO: result: no" >&5
8029echo "${ECHO_T}no" >&6
8030fi
8031
8032 done
8033fi
8034
8035if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8036 for ncn_progname in cc gcc; do
c6b750e1
DJ
8037 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8038echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8039 if test -x $with_build_time_tools/${ncn_progname}; then
8040 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8041 echo "$as_me:$LINENO: result: yes" >&5
8042echo "${ECHO_T}yes" >&6
cac3d6c4 8043 break
2429c060 8044 else
c6b750e1
DJ
8045 echo "$as_me:$LINENO: result: no" >&5
8046echo "${ECHO_T}no" >&6
cac3d6c4
CM
8047 fi
8048 done
55db4b87
PB
8049fi
8050
2429c060
PB
8051if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8052 for ncn_progname in cc gcc; do
8053 if test -n "$ncn_target_tool_prefix"; then
8054 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8055set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8056echo "$as_me:$LINENO: checking for $ac_word" >&5
8057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8058if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8060else
8061 if test -n "$CC_FOR_TARGET"; then
8062 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8063else
c6b750e1
DJ
8064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065for as_dir in $PATH
8066do
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8074 fi
8075done
8076done
8077
55db4b87
PB
8078fi
8079fi
c6b750e1 8080CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8081if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8082 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8083echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8084else
c6b750e1
DJ
8085 echo "$as_me:$LINENO: result: no" >&5
8086echo "${ECHO_T}no" >&6
55db4b87
PB
8087fi
8088
2429c060
PB
8089 fi
8090 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8092set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8093echo "$as_me:$LINENO: checking for $ac_word" >&5
8094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8095if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8097else
05cbd757
PB
8098 if test -n "$CC_FOR_TARGET"; then
8099 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8100else
c6b750e1
DJ
8101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102for as_dir in $PATH
8103do
8104 IFS=$as_save_IFS
8105 test -z "$as_dir" && as_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8108 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 break 2
8111 fi
8112done
8113done
8114
55db4b87
PB
8115fi
8116fi
c6b750e1 8117CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8118if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8119 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8120echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8121else
c6b750e1
DJ
8122 echo "$as_me:$LINENO: result: no" >&5
8123echo "${ECHO_T}no" >&6
55db4b87 8124fi
c6b750e1 8125
2429c060
PB
8126 fi
8127 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8128 done
8129fi
c6b750e1 8130
05cbd757
PB
8131if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8132 set dummy cc gcc
8133 if test $build = $target ; then
8134 CC_FOR_TARGET="$2"
55db4b87 8135 else
05cbd757 8136 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8137 fi
d3f5afc4
MS
8138else
8139 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8140fi
8141
9a819804
AO
8142
8143
8144if test -n "$CXX_FOR_TARGET"; then
8145 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8146elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8147 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8148fi
8149
8150if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8151 for ncn_progname in c++ g++ cxx gxx; do
8152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8153set dummy ${ncn_progname}; ac_word=$2
8154echo "$as_me:$LINENO: checking for $ac_word" >&5
8155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8156if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8158else
8159 if test -n "$CXX_FOR_TARGET"; then
8160 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8161else
8162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8169 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8172 fi
8173done
8174done
8175
8176fi
8177fi
8178CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8179if test -n "$CXX_FOR_TARGET"; then
8180 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8181echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8182else
8183 echo "$as_me:$LINENO: result: no" >&5
8184echo "${ECHO_T}no" >&6
8185fi
8186
8187 done
8188fi
8189
8190if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8191 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8192 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8193echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8194 if test -x $with_build_time_tools/${ncn_progname}; then
8195 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8196 echo "$as_me:$LINENO: result: yes" >&5
8197echo "${ECHO_T}yes" >&6
2429c060
PB
8198 break
8199 else
c6b750e1
DJ
8200 echo "$as_me:$LINENO: result: no" >&5
8201echo "${ECHO_T}no" >&6
2429c060
PB
8202 fi
8203 done
8204fi
8205
8206if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8207 for ncn_progname in c++ g++ cxx gxx; do
8208 if test -n "$ncn_target_tool_prefix"; then
8209 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8210set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8211echo "$as_me:$LINENO: checking for $ac_word" >&5
8212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8213if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8215else
8216 if test -n "$CXX_FOR_TARGET"; then
8217 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8218else
c6b750e1
DJ
8219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220for as_dir in $PATH
8221do
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8226 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 break 2
8229 fi
8230done
8231done
8232
55db4b87
PB
8233fi
8234fi
c6b750e1 8235CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8236if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8237 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8238echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8239else
c6b750e1
DJ
8240 echo "$as_me:$LINENO: result: no" >&5
8241echo "${ECHO_T}no" >&6
55db4b87
PB
8242fi
8243
2429c060
PB
8244 fi
8245 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8247set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8248echo "$as_me:$LINENO: checking for $ac_word" >&5
8249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8250if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8252else
05cbd757
PB
8253 if test -n "$CXX_FOR_TARGET"; then
8254 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8255else
c6b750e1
DJ
8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257for as_dir in $PATH
8258do
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8263 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 break 2
8266 fi
8267done
8268done
8269
55db4b87
PB
8270fi
8271fi
c6b750e1 8272CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8273if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8274 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8275echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8276else
c6b750e1
DJ
8277 echo "$as_me:$LINENO: result: no" >&5
8278echo "${ECHO_T}no" >&6
55db4b87 8279fi
c6b750e1 8280
2429c060
PB
8281 fi
8282 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8283 done
8284fi
c6b750e1 8285
05cbd757
PB
8286if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8287 set dummy c++ g++ cxx gxx
8288 if test $build = $target ; then
8289 CXX_FOR_TARGET="$2"
55db4b87 8290 else
05cbd757 8291 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8292 fi
d3f5afc4
MS
8293else
8294 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8295fi
8296
9a819804
AO
8297
8298
8299if test -n "$GCC_FOR_TARGET"; then
8300 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8301elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8302 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8303fi
8304
8305if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8306 for ncn_progname in gcc; do
8307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8308set dummy ${ncn_progname}; ac_word=$2
8309echo "$as_me:$LINENO: checking for $ac_word" >&5
8310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8311if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313else
8314 if test -n "$GCC_FOR_TARGET"; then
8315 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8316else
8317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH
8319do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8327 fi
8328done
8329done
8330
8331fi
8332fi
8333GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8334if test -n "$GCC_FOR_TARGET"; then
8335 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8336echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8337else
8338 echo "$as_me:$LINENO: result: no" >&5
8339echo "${ECHO_T}no" >&6
8340fi
8341
8342 done
8343fi
8344
8345if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8346 for ncn_progname in gcc; do
c6b750e1
DJ
8347 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8348echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8349 if test -x $with_build_time_tools/${ncn_progname}; then
8350 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8351 echo "$as_me:$LINENO: result: yes" >&5
8352echo "${ECHO_T}yes" >&6
2429c060
PB
8353 break
8354 else
c6b750e1
DJ
8355 echo "$as_me:$LINENO: result: no" >&5
8356echo "${ECHO_T}no" >&6
2429c060
PB
8357 fi
8358 done
8359fi
8360
8361if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8362 for ncn_progname in gcc; do
8363 if test -n "$ncn_target_tool_prefix"; then
8364 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8365set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8366echo "$as_me:$LINENO: checking for $ac_word" >&5
8367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8368if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8370else
2429c060
PB
8371 if test -n "$GCC_FOR_TARGET"; then
8372 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8373else
c6b750e1
DJ
8374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375for as_dir in $PATH
8376do
8377 IFS=$as_save_IFS
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8383 break 2
8384 fi
8385done
8386done
8387
55db4b87
PB
8388fi
8389fi
c6b750e1 8390GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8391if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8392 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8393echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8394else
c6b750e1
DJ
8395 echo "$as_me:$LINENO: result: no" >&5
8396echo "${ECHO_T}no" >&6
55db4b87
PB
8397fi
8398
2429c060
PB
8399 fi
8400 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8402set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8403echo "$as_me:$LINENO: checking for $ac_word" >&5
8404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8405if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8407else
05cbd757
PB
8408 if test -n "$GCC_FOR_TARGET"; then
8409 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8410else
c6b750e1
DJ
8411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412for as_dir in $PATH
8413do
8414 IFS=$as_save_IFS
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8418 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 break 2
8421 fi
8422done
8423done
8424
55db4b87
PB
8425fi
8426fi
c6b750e1 8427GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8428if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8429 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8430echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8431else
c6b750e1
DJ
8432 echo "$as_me:$LINENO: result: no" >&5
8433echo "${ECHO_T}no" >&6
55db4b87 8434fi
c6b750e1 8435
2429c060
PB
8436 fi
8437 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8438 done
8439fi
c6b750e1 8440
05cbd757
PB
8441if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8442 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8443else
8444 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8445fi
8446
9a819804
AO
8447
8448
8449if test -n "$GCJ_FOR_TARGET"; then
8450 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8451elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8452 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8453fi
8454
8455if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8456 for ncn_progname in gcj; do
8457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8458set dummy ${ncn_progname}; ac_word=$2
8459echo "$as_me:$LINENO: checking for $ac_word" >&5
8460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8461if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463else
8464 if test -n "$GCJ_FOR_TARGET"; then
8465 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8466else
8467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468for as_dir in $PATH
8469do
8470 IFS=$as_save_IFS
8471 test -z "$as_dir" && as_dir=.
8472 for ac_exec_ext in '' $ac_executable_extensions; do
8473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8474 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8476 break 2
8477 fi
8478done
8479done
8480
8481fi
8482fi
8483GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8484if test -n "$GCJ_FOR_TARGET"; then
8485 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8486echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8487else
8488 echo "$as_me:$LINENO: result: no" >&5
8489echo "${ECHO_T}no" >&6
8490fi
8491
8492 done
8493fi
8494
8495if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8496 for ncn_progname in gcj; do
c6b750e1
DJ
8497 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8498echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8499 if test -x $with_build_time_tools/${ncn_progname}; then
8500 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8501 echo "$as_me:$LINENO: result: yes" >&5
8502echo "${ECHO_T}yes" >&6
2429c060
PB
8503 break
8504 else
c6b750e1
DJ
8505 echo "$as_me:$LINENO: result: no" >&5
8506echo "${ECHO_T}no" >&6
2429c060
PB
8507 fi
8508 done
8509fi
8510
8511if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8512 for ncn_progname in gcj; do
8513 if test -n "$ncn_target_tool_prefix"; then
8514 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8515set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8516echo "$as_me:$LINENO: checking for $ac_word" >&5
8517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8518if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8520else
8521 if test -n "$GCJ_FOR_TARGET"; then
8522 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8523else
c6b750e1
DJ
8524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525for as_dir in $PATH
8526do
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8531 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 break 2
8534 fi
8535done
8536done
8537
55db4b87
PB
8538fi
8539fi
9a819804
AO
8540GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8541if test -n "$GCJ_FOR_TARGET"; then
8542 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8543echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8544else
8545 echo "$as_me:$LINENO: result: no" >&5
8546echo "${ECHO_T}no" >&6
8547fi
8548
8549 fi
8550 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8552set dummy ${ncn_progname}; ac_word=$2
8553echo "$as_me:$LINENO: checking for $ac_word" >&5
8554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8555if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557else
8558 if test -n "$GCJ_FOR_TARGET"; then
8559 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8560else
8561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562for as_dir in $PATH
8563do
8564 IFS=$as_save_IFS
8565 test -z "$as_dir" && as_dir=.
8566 for ac_exec_ext in '' $ac_executable_extensions; do
8567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8568 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8570 break 2
8571 fi
8572done
8573done
8574
8575fi
8576fi
8577GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8578if test -n "$GCJ_FOR_TARGET"; then
8579 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8580echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8581else
8582 echo "$as_me:$LINENO: result: no" >&5
8583echo "${ECHO_T}no" >&6
8584fi
8585
8586 fi
8587 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8588 done
8589fi
8590
8591if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8592 set dummy gcj
8593 if test $build = $target ; then
8594 GCJ_FOR_TARGET="$2"
8595 else
8596 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8597 fi
d3f5afc4
MS
8598else
8599 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8600fi
8601
8602
8603
8604if test -n "$GFORTRAN_FOR_TARGET"; then
8605 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8606elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8607 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8608fi
8609
9a819804
AO
8610if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8611 for ncn_progname in gfortran; do
8612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8613set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8614echo "$as_me:$LINENO: checking for $ac_word" >&5
8615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8616if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8617 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8618else
9a819804
AO
8619 if test -n "$GFORTRAN_FOR_TARGET"; then
8620 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8621else
c6b750e1
DJ
8622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623for as_dir in $PATH
8624do
8625 IFS=$as_save_IFS
8626 test -z "$as_dir" && as_dir=.
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8629 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 break 2
8632 fi
8633done
8634done
8635
55db4b87
PB
8636fi
8637fi
9a819804
AO
8638GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8639if test -n "$GFORTRAN_FOR_TARGET"; then
8640 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8641echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8642else
c6b750e1
DJ
8643 echo "$as_me:$LINENO: result: no" >&5
8644echo "${ECHO_T}no" >&6
55db4b87 8645fi
c6b750e1 8646
2429c060
PB
8647 done
8648fi
c6b750e1 8649
9a819804 8650if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8651 for ncn_progname in gfortran; do
c6b750e1
DJ
8652 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8653echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8654 if test -x $with_build_time_tools/${ncn_progname}; then
8655 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8656 echo "$as_me:$LINENO: result: yes" >&5
8657echo "${ECHO_T}yes" >&6
2429c060
PB
8658 break
8659 else
c6b750e1
DJ
8660 echo "$as_me:$LINENO: result: no" >&5
8661echo "${ECHO_T}no" >&6
2429c060
PB
8662 fi
8663 done
8664fi
8665
8666if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8667 for ncn_progname in gfortran; do
8668 if test -n "$ncn_target_tool_prefix"; then
8669 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8670set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8671echo "$as_me:$LINENO: checking for $ac_word" >&5
8672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8673if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8675else
8676 if test -n "$GFORTRAN_FOR_TARGET"; then
8677 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8678else
c6b750e1
DJ
8679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680for as_dir in $PATH
8681do
8682 IFS=$as_save_IFS
8683 test -z "$as_dir" && as_dir=.
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8688 break 2
8689 fi
8690done
8691done
8692
55db4b87
PB
8693fi
8694fi
c6b750e1 8695GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8696if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8697 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8698echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8699else
c6b750e1
DJ
8700 echo "$as_me:$LINENO: result: no" >&5
8701echo "${ECHO_T}no" >&6
55db4b87
PB
8702fi
8703
2429c060
PB
8704 fi
8705 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8707set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8708echo "$as_me:$LINENO: checking for $ac_word" >&5
8709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8710if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8712else
05cbd757 8713 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8714 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8715else
8716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717for as_dir in $PATH
8718do
8719 IFS=$as_save_IFS
8720 test -z "$as_dir" && as_dir=.
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8723 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8725 break 2
8726 fi
8727done
8728done
8729
55db4b87
PB
8730fi
8731fi
c6b750e1 8732GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8733if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8734 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8735echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8736else
c6b750e1
DJ
8737 echo "$as_me:$LINENO: result: no" >&5
8738echo "${ECHO_T}no" >&6
55db4b87 8739fi
c6b750e1 8740
2429c060
PB
8741 fi
8742 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8743 done
8744fi
c6b750e1 8745
05cbd757
PB
8746if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8747 set dummy gfortran
8748 if test $build = $target ; then
8749 GFORTRAN_FOR_TARGET="$2"
55db4b87 8750 else
05cbd757 8751 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8752 fi
d3f5afc4
MS
8753else
8754 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8755fi
8756
2429c060
PB
8757
8758
2429c060
PB
8759cat > conftest.c << \EOF
8760#ifdef __GNUC__
8761 gcc_yay;
8762#endif
8763EOF
8764if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8765 have_gcc_for_target=yes
859789af 8766else
2429c060
PB
8767 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8768 have_gcc_for_target=no
859789af 8769fi
2429c060
PB
8770rm conftest.c
8771
8772
8773
859789af 8774
2429c060
PB
8775if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8776 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8777 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8778echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8779 if test -x $with_build_time_tools/ar; then
8780 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8781 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8782 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8783echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8784 else
c6b750e1
DJ
8785 echo "$as_me:$LINENO: result: no" >&5
8786echo "${ECHO_T}no" >&6
3a35eeb3 8787 fi
2429c060
PB
8788 elif test $build != $host && test $have_gcc_for_target = yes; then
8789 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8790 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8791 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8792 fi
2429c060 8793fi
c6b750e1 8794if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8795 # Extract the first word of "ar", so it can be a program name with args.
8796set dummy ar; ac_word=$2
c6b750e1
DJ
8797echo "$as_me:$LINENO: checking for $ac_word" >&5
8798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8799if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8801else
c6b750e1
DJ
8802 case $AR_FOR_TARGET in
8803 [\\/]* | ?:[\\/]*)
2429c060
PB
8804 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8805 ;;
2429c060 8806 *)
c6b750e1
DJ
8807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808for as_dir in $gcc_cv_tool_dirs
8809do
8810 IFS=$as_save_IFS
8811 test -z "$as_dir" && as_dir=.
8812 for ac_exec_ext in '' $ac_executable_extensions; do
8813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8814 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 break 2
8817 fi
8818done
8819done
8820
2429c060
PB
8821 ;;
8822esac
859789af 8823fi
c6b750e1
DJ
8824AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8825
2429c060 8826if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8827 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8828echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8829else
c6b750e1
DJ
8830 echo "$as_me:$LINENO: result: no" >&5
8831echo "${ECHO_T}no" >&6
859789af 8832fi
05cbd757 8833
2429c060
PB
8834fi
8835if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8836
8837
8838if test -n "$AR_FOR_TARGET"; then
8839 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8840elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8841 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8842fi
8843
8844if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8845 for ncn_progname in ar; do
8846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8847set dummy ${ncn_progname}; ac_word=$2
8848echo "$as_me:$LINENO: checking for $ac_word" >&5
8849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8850if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852else
8853 if test -n "$AR_FOR_TARGET"; then
8854 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8855else
8856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857for as_dir in $PATH
8858do
8859 IFS=$as_save_IFS
8860 test -z "$as_dir" && as_dir=.
8861 for ac_exec_ext in '' $ac_executable_extensions; do
8862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8863 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 break 2
8866 fi
8867done
8868done
8869
8870fi
8871fi
8872AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8873if test -n "$AR_FOR_TARGET"; then
8874 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8875echo "${ECHO_T}$AR_FOR_TARGET" >&6
8876else
8877 echo "$as_me:$LINENO: result: no" >&5
8878echo "${ECHO_T}no" >&6
8879fi
8880
8881 done
8882fi
8883
8884if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8885 for ncn_progname in ar; do
c6b750e1
DJ
8886 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8887echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8888 if test -x $with_build_time_tools/${ncn_progname}; then
8889 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8890 echo "$as_me:$LINENO: result: yes" >&5
8891echo "${ECHO_T}yes" >&6
2429c060
PB
8892 break
8893 else
c6b750e1
DJ
8894 echo "$as_me:$LINENO: result: no" >&5
8895echo "${ECHO_T}no" >&6
2429c060
PB
8896 fi
8897 done
859789af
AC
8898fi
8899
2429c060
PB
8900if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8901 for ncn_progname in ar; do
8902 if test -n "$ncn_target_tool_prefix"; then
8903 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8904set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8905echo "$as_me:$LINENO: checking for $ac_word" >&5
8906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8907if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8909else
2429c060
PB
8910 if test -n "$AR_FOR_TARGET"; then
8911 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8912else
c6b750e1
DJ
8913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8914for as_dir in $PATH
8915do
8916 IFS=$as_save_IFS
8917 test -z "$as_dir" && as_dir=.
8918 for ac_exec_ext in '' $ac_executable_extensions; do
8919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8920 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8922 break 2
8923 fi
8924done
8925done
8926
7e0f7140
GK
8927fi
8928fi
c6b750e1 8929AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8930if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8931 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8932echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8933else
c6b750e1
DJ
8934 echo "$as_me:$LINENO: result: no" >&5
8935echo "${ECHO_T}no" >&6
7e0f7140
GK
8936fi
8937
2429c060
PB
8938 fi
8939 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8941set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8942echo "$as_me:$LINENO: checking for $ac_word" >&5
8943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8944if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8946else
2429c060
PB
8947 if test -n "$AR_FOR_TARGET"; then
8948 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8949else
c6b750e1
DJ
8950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951for as_dir in $PATH
8952do
8953 IFS=$as_save_IFS
8954 test -z "$as_dir" && as_dir=.
8955 for ac_exec_ext in '' $ac_executable_extensions; do
8956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8957 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8959 break 2
8960 fi
8961done
8962done
8963
7e0f7140
GK
8964fi
8965fi
c6b750e1 8966AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8967if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8968 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8969echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8970else
c6b750e1
DJ
8971 echo "$as_me:$LINENO: result: no" >&5
8972echo "${ECHO_T}no" >&6
7e0f7140 8973fi
c6b750e1 8974
2429c060
PB
8975 fi
8976 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8977 done
8978fi
c6b750e1 8979
2429c060
PB
8980if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8981 set dummy ar
7e0f7140 8982 if test $build = $target ; then
2429c060 8983 AR_FOR_TARGET="$2"
7e0f7140 8984 else
2429c060 8985 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 8986 fi
d3f5afc4
MS
8987else
8988 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
8989fi
8990
3a35eeb3
PB
8991else
8992 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
8993fi
8994
8995
8996
8997
8998if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8999 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9000 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9001echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9002 if test -x $with_build_time_tools/as; then
9003 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9004 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9005 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9006echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9007 else
c6b750e1
DJ
9008 echo "$as_me:$LINENO: result: no" >&5
9009echo "${ECHO_T}no" >&6
3a35eeb3 9010 fi
2429c060
PB
9011 elif test $build != $host && test $have_gcc_for_target = yes; then
9012 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9013 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9014 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9015 fi
9016fi
c6b750e1 9017if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9018 # Extract the first word of "as", so it can be a program name with args.
9019set dummy as; ac_word=$2
c6b750e1
DJ
9020echo "$as_me:$LINENO: checking for $ac_word" >&5
9021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9022if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9024else
c6b750e1
DJ
9025 case $AS_FOR_TARGET in
9026 [\\/]* | ?:[\\/]*)
2429c060
PB
9027 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9028 ;;
2429c060 9029 *)
c6b750e1
DJ
9030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031for as_dir in $gcc_cv_tool_dirs
9032do
9033 IFS=$as_save_IFS
9034 test -z "$as_dir" && as_dir=.
9035 for ac_exec_ext in '' $ac_executable_extensions; do
9036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9037 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9039 break 2
9040 fi
9041done
9042done
9043
2429c060
PB
9044 ;;
9045esac
9046fi
c6b750e1
DJ
9047AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9048
2429c060 9049if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9050 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9051echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9052else
c6b750e1
DJ
9053 echo "$as_me:$LINENO: result: no" >&5
9054echo "${ECHO_T}no" >&6
2429c060
PB
9055fi
9056
9057fi
9058if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9059
9060
9061if test -n "$AS_FOR_TARGET"; then
9062 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9063elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9064 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9065fi
9066
9067if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9068 for ncn_progname in as; do
9069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9070set dummy ${ncn_progname}; ac_word=$2
9071echo "$as_me:$LINENO: checking for $ac_word" >&5
9072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9073if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9074 echo $ECHO_N "(cached) $ECHO_C" >&6
9075else
9076 if test -n "$AS_FOR_TARGET"; then
9077 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9078else
9079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9080for as_dir in $PATH
9081do
9082 IFS=$as_save_IFS
9083 test -z "$as_dir" && as_dir=.
9084 for ac_exec_ext in '' $ac_executable_extensions; do
9085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9086 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9088 break 2
9089 fi
9090done
9091done
9092
9093fi
9094fi
9095AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9096if test -n "$AS_FOR_TARGET"; then
9097 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9098echo "${ECHO_T}$AS_FOR_TARGET" >&6
9099else
9100 echo "$as_me:$LINENO: result: no" >&5
9101echo "${ECHO_T}no" >&6
9102fi
9103
9104 done
9105fi
9106
9107if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9108 for ncn_progname in as; do
c6b750e1
DJ
9109 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9110echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9111 if test -x $with_build_time_tools/${ncn_progname}; then
9112 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9113 echo "$as_me:$LINENO: result: yes" >&5
9114echo "${ECHO_T}yes" >&6
2429c060
PB
9115 break
9116 else
c6b750e1
DJ
9117 echo "$as_me:$LINENO: result: no" >&5
9118echo "${ECHO_T}no" >&6
2429c060
PB
9119 fi
9120 done
9121fi
9122
9123if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9124 for ncn_progname in as; do
9125 if test -n "$ncn_target_tool_prefix"; then
9126 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9127set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9128echo "$as_me:$LINENO: checking for $ac_word" >&5
9129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9130if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9131 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9132else
9133 if test -n "$AS_FOR_TARGET"; then
9134 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9135else
c6b750e1
DJ
9136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137for as_dir in $PATH
9138do
9139 IFS=$as_save_IFS
9140 test -z "$as_dir" && as_dir=.
9141 for ac_exec_ext in '' $ac_executable_extensions; do
9142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9143 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9145 break 2
9146 fi
9147done
9148done
9149
2429c060
PB
9150fi
9151fi
c6b750e1 9152AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9153if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9154 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9155echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9156else
c6b750e1
DJ
9157 echo "$as_me:$LINENO: result: no" >&5
9158echo "${ECHO_T}no" >&6
2429c060
PB
9159fi
9160
9161 fi
9162 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9164set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9165echo "$as_me:$LINENO: checking for $ac_word" >&5
9166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9167if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9169else
9170 if test -n "$AS_FOR_TARGET"; then
9171 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9172else
c6b750e1
DJ
9173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174for as_dir in $PATH
9175do
9176 IFS=$as_save_IFS
9177 test -z "$as_dir" && as_dir=.
9178 for ac_exec_ext in '' $ac_executable_extensions; do
9179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9180 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9182 break 2
9183 fi
9184done
9185done
9186
2429c060
PB
9187fi
9188fi
c6b750e1 9189AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9190if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9191 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9192echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9193else
c6b750e1
DJ
9194 echo "$as_me:$LINENO: result: no" >&5
9195echo "${ECHO_T}no" >&6
2429c060 9196fi
c6b750e1 9197
2429c060
PB
9198 fi
9199 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9200 done
9201fi
c6b750e1 9202
2429c060
PB
9203if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9204 set dummy as
9205 if test $build = $target ; then
9206 AS_FOR_TARGET="$2"
9207 else
9208 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9209 fi
d3f5afc4
MS
9210else
9211 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9212fi
9213
3a35eeb3
PB
9214else
9215 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9216fi
9217
9218
9219
9220
9221if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9222 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9223 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9224echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9225 if test -x $with_build_time_tools/dlltool; then
9226 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9227 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9228 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9229echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9230 else
c6b750e1
DJ
9231 echo "$as_me:$LINENO: result: no" >&5
9232echo "${ECHO_T}no" >&6
3a35eeb3 9233 fi
2429c060
PB
9234 elif test $build != $host && test $have_gcc_for_target = yes; then
9235 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9236 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9237 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9238 fi
9239fi
c6b750e1 9240if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9241 # Extract the first word of "dlltool", so it can be a program name with args.
9242set dummy dlltool; ac_word=$2
c6b750e1
DJ
9243echo "$as_me:$LINENO: checking for $ac_word" >&5
9244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9245if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9247else
c6b750e1
DJ
9248 case $DLLTOOL_FOR_TARGET in
9249 [\\/]* | ?:[\\/]*)
2429c060
PB
9250 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9251 ;;
2429c060 9252 *)
c6b750e1
DJ
9253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254for as_dir in $gcc_cv_tool_dirs
9255do
9256 IFS=$as_save_IFS
9257 test -z "$as_dir" && as_dir=.
9258 for ac_exec_ext in '' $ac_executable_extensions; do
9259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9260 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9262 break 2
9263 fi
9264done
9265done
9266
2429c060
PB
9267 ;;
9268esac
9269fi
c6b750e1
DJ
9270DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9271
2429c060 9272if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9273 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9274echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9275else
c6b750e1
DJ
9276 echo "$as_me:$LINENO: result: no" >&5
9277echo "${ECHO_T}no" >&6
2429c060
PB
9278fi
9279
9280fi
9281if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9282
9283
9284if test -n "$DLLTOOL_FOR_TARGET"; then
9285 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9286elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9287 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9288fi
9289
9290if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9291 for ncn_progname in dlltool; do
9292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9293set dummy ${ncn_progname}; ac_word=$2
9294echo "$as_me:$LINENO: checking for $ac_word" >&5
9295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9296if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9298else
9299 if test -n "$DLLTOOL_FOR_TARGET"; then
9300 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9301else
9302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9303for as_dir in $PATH
9304do
9305 IFS=$as_save_IFS
9306 test -z "$as_dir" && as_dir=.
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9309 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9311 break 2
9312 fi
9313done
9314done
9315
9316fi
9317fi
9318DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9319if test -n "$DLLTOOL_FOR_TARGET"; then
9320 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9321echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9322else
9323 echo "$as_me:$LINENO: result: no" >&5
9324echo "${ECHO_T}no" >&6
9325fi
9326
9327 done
9328fi
9329
9330if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9331 for ncn_progname in dlltool; do
c6b750e1
DJ
9332 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9333echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9334 if test -x $with_build_time_tools/${ncn_progname}; then
9335 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9336 echo "$as_me:$LINENO: result: yes" >&5
9337echo "${ECHO_T}yes" >&6
2429c060
PB
9338 break
9339 else
c6b750e1
DJ
9340 echo "$as_me:$LINENO: result: no" >&5
9341echo "${ECHO_T}no" >&6
2429c060
PB
9342 fi
9343 done
9344fi
9345
9346if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9347 for ncn_progname in dlltool; do
9348 if test -n "$ncn_target_tool_prefix"; then
9349 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9350set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9351echo "$as_me:$LINENO: checking for $ac_word" >&5
9352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9353if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9355else
9356 if test -n "$DLLTOOL_FOR_TARGET"; then
9357 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9358else
c6b750e1
DJ
9359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9360for as_dir in $PATH
9361do
9362 IFS=$as_save_IFS
9363 test -z "$as_dir" && as_dir=.
9364 for ac_exec_ext in '' $ac_executable_extensions; do
9365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9366 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9368 break 2
9369 fi
9370done
9371done
9372
2429c060
PB
9373fi
9374fi
c6b750e1 9375DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9376if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9377 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9378echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9379else
c6b750e1
DJ
9380 echo "$as_me:$LINENO: result: no" >&5
9381echo "${ECHO_T}no" >&6
2429c060
PB
9382fi
9383
9384 fi
9385 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9387set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9388echo "$as_me:$LINENO: checking for $ac_word" >&5
9389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9390if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9392else
9393 if test -n "$DLLTOOL_FOR_TARGET"; then
9394 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9395else
c6b750e1
DJ
9396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397for as_dir in $PATH
9398do
9399 IFS=$as_save_IFS
9400 test -z "$as_dir" && as_dir=.
9401 for ac_exec_ext in '' $ac_executable_extensions; do
9402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9403 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9405 break 2
9406 fi
9407done
9408done
9409
2429c060
PB
9410fi
9411fi
c6b750e1 9412DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9413if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9414 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9415echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9416else
c6b750e1
DJ
9417 echo "$as_me:$LINENO: result: no" >&5
9418echo "${ECHO_T}no" >&6
2429c060 9419fi
c6b750e1 9420
2429c060
PB
9421 fi
9422 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9423 done
9424fi
c6b750e1 9425
2429c060
PB
9426if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9427 set dummy dlltool
9428 if test $build = $target ; then
9429 DLLTOOL_FOR_TARGET="$2"
9430 else
9431 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9432 fi
d3f5afc4
MS
9433else
9434 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9435fi
9436
3a35eeb3
PB
9437else
9438 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9439fi
9440
9441
9442
9443
9444if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9445 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9446 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9447echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9448 if test -x $with_build_time_tools/ld; then
9449 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9450 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9451 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9452echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9453 else
c6b750e1
DJ
9454 echo "$as_me:$LINENO: result: no" >&5
9455echo "${ECHO_T}no" >&6
3a35eeb3 9456 fi
2429c060
PB
9457 elif test $build != $host && test $have_gcc_for_target = yes; then
9458 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9459 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9460 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9461 fi
9462fi
c6b750e1 9463if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9464 # Extract the first word of "ld", so it can be a program name with args.
9465set dummy ld; ac_word=$2
c6b750e1
DJ
9466echo "$as_me:$LINENO: checking for $ac_word" >&5
9467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9468if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9470else
c6b750e1
DJ
9471 case $LD_FOR_TARGET in
9472 [\\/]* | ?:[\\/]*)
2429c060
PB
9473 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9474 ;;
2429c060 9475 *)
c6b750e1
DJ
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477for as_dir in $gcc_cv_tool_dirs
9478do
9479 IFS=$as_save_IFS
9480 test -z "$as_dir" && as_dir=.
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9483 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9485 break 2
9486 fi
9487done
9488done
9489
2429c060
PB
9490 ;;
9491esac
9492fi
c6b750e1
DJ
9493LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9494
2429c060 9495if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9496 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9497echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9498else
c6b750e1
DJ
9499 echo "$as_me:$LINENO: result: no" >&5
9500echo "${ECHO_T}no" >&6
2429c060
PB
9501fi
9502
9503fi
9504if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9505
9506
9507if test -n "$LD_FOR_TARGET"; then
9508 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9509elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9510 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9511fi
9512
9513if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9514 for ncn_progname in ld; do
9515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9516set dummy ${ncn_progname}; ac_word=$2
9517echo "$as_me:$LINENO: checking for $ac_word" >&5
9518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9519if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9521else
9522 if test -n "$LD_FOR_TARGET"; then
9523 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9524else
9525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526for as_dir in $PATH
9527do
9528 IFS=$as_save_IFS
9529 test -z "$as_dir" && as_dir=.
9530 for ac_exec_ext in '' $ac_executable_extensions; do
9531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9532 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9534 break 2
9535 fi
9536done
9537done
9538
9539fi
9540fi
9541LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9542if test -n "$LD_FOR_TARGET"; then
9543 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9544echo "${ECHO_T}$LD_FOR_TARGET" >&6
9545else
9546 echo "$as_me:$LINENO: result: no" >&5
9547echo "${ECHO_T}no" >&6
9548fi
9549
9550 done
9551fi
9552
9553if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9554 for ncn_progname in ld; do
c6b750e1
DJ
9555 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9556echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9557 if test -x $with_build_time_tools/${ncn_progname}; then
9558 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9559 echo "$as_me:$LINENO: result: yes" >&5
9560echo "${ECHO_T}yes" >&6
2429c060
PB
9561 break
9562 else
c6b750e1
DJ
9563 echo "$as_me:$LINENO: result: no" >&5
9564echo "${ECHO_T}no" >&6
2429c060
PB
9565 fi
9566 done
9567fi
9568
9569if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9570 for ncn_progname in ld; do
9571 if test -n "$ncn_target_tool_prefix"; then
9572 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9573set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9574echo "$as_me:$LINENO: checking for $ac_word" >&5
9575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9576if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9578else
9579 if test -n "$LD_FOR_TARGET"; then
9580 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9581else
c6b750e1
DJ
9582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583for as_dir in $PATH
9584do
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
9587 for ac_exec_ext in '' $ac_executable_extensions; do
9588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9589 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9591 break 2
9592 fi
9593done
9594done
9595
2429c060
PB
9596fi
9597fi
c6b750e1 9598LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9599if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9600 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9601echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9602else
c6b750e1
DJ
9603 echo "$as_me:$LINENO: result: no" >&5
9604echo "${ECHO_T}no" >&6
2429c060
PB
9605fi
9606
9607 fi
9608 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9609 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9610set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9611echo "$as_me:$LINENO: checking for $ac_word" >&5
9612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9613if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9615else
9616 if test -n "$LD_FOR_TARGET"; then
9617 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9618else
c6b750e1
DJ
9619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620for as_dir in $PATH
9621do
9622 IFS=$as_save_IFS
9623 test -z "$as_dir" && as_dir=.
9624 for ac_exec_ext in '' $ac_executable_extensions; do
9625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9626 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9628 break 2
9629 fi
9630done
9631done
9632
2429c060
PB
9633fi
9634fi
c6b750e1 9635LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9636if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9637 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9638echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9639else
c6b750e1
DJ
9640 echo "$as_me:$LINENO: result: no" >&5
9641echo "${ECHO_T}no" >&6
2429c060 9642fi
c6b750e1 9643
2429c060
PB
9644 fi
9645 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9646 done
9647fi
c6b750e1 9648
2429c060
PB
9649if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9650 set dummy ld
9651 if test $build = $target ; then
9652 LD_FOR_TARGET="$2"
9653 else
9654 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9655 fi
d3f5afc4
MS
9656else
9657 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9658fi
9659
3a35eeb3
PB
9660else
9661 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9662fi
9663
9664
9665
9666
9667if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9668 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9669 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9670echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9671 if test -x $with_build_time_tools/lipo; then
9672 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9673 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9674 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9675echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9676 else
c6b750e1
DJ
9677 echo "$as_me:$LINENO: result: no" >&5
9678echo "${ECHO_T}no" >&6
3a35eeb3 9679 fi
2429c060
PB
9680 elif test $build != $host && test $have_gcc_for_target = yes; then
9681 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9682 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9683 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9684 fi
9685fi
9a819804
AO
9686if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9687 # Extract the first word of "lipo", so it can be a program name with args.
9688set dummy lipo; ac_word=$2
9689echo "$as_me:$LINENO: checking for $ac_word" >&5
9690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9691if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693else
9694 case $LIPO_FOR_TARGET in
9695 [\\/]* | ?:[\\/]*)
9696 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9697 ;;
9698 *)
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700for as_dir in $gcc_cv_tool_dirs
9701do
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9706 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 break 2
9709 fi
9710done
9711done
9712
9713 ;;
9714esac
9715fi
9716LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9717
9718if test -n "$LIPO_FOR_TARGET"; then
9719 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9720echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9721else
9722 echo "$as_me:$LINENO: result: no" >&5
9723echo "${ECHO_T}no" >&6
9724fi
9725
9726fi
9727if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9728
9729
9730if test -n "$LIPO_FOR_TARGET"; then
9731 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9732elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9733 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9734fi
9735
9736if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9737 for ncn_progname in lipo; do
9738 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9739set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9740echo "$as_me:$LINENO: checking for $ac_word" >&5
9741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9742if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9743 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9744else
9a819804
AO
9745 if test -n "$LIPO_FOR_TARGET"; then
9746 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9747else
9748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749for as_dir in $PATH
c6b750e1
DJ
9750do
9751 IFS=$as_save_IFS
9752 test -z "$as_dir" && as_dir=.
9753 for ac_exec_ext in '' $ac_executable_extensions; do
9754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9755 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9757 break 2
9758 fi
9759done
9760done
9761
2429c060 9762fi
9a819804
AO
9763fi
9764LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9765if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9766 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9767echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9768else
c6b750e1
DJ
9769 echo "$as_me:$LINENO: result: no" >&5
9770echo "${ECHO_T}no" >&6
2429c060
PB
9771fi
9772
9a819804 9773 done
2429c060 9774fi
9a819804
AO
9775
9776if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9777 for ncn_progname in lipo; do
c6b750e1
DJ
9778 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9779echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9780 if test -x $with_build_time_tools/${ncn_progname}; then
9781 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9782 echo "$as_me:$LINENO: result: yes" >&5
9783echo "${ECHO_T}yes" >&6
2429c060
PB
9784 break
9785 else
c6b750e1
DJ
9786 echo "$as_me:$LINENO: result: no" >&5
9787echo "${ECHO_T}no" >&6
2429c060
PB
9788 fi
9789 done
9790fi
9791
9792if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9793 for ncn_progname in lipo; do
9794 if test -n "$ncn_target_tool_prefix"; then
9795 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9796set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9797echo "$as_me:$LINENO: checking for $ac_word" >&5
9798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9799if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9801else
9802 if test -n "$LIPO_FOR_TARGET"; then
9803 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9804else
c6b750e1
DJ
9805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806for as_dir in $PATH
9807do
9808 IFS=$as_save_IFS
9809 test -z "$as_dir" && as_dir=.
9810 for ac_exec_ext in '' $ac_executable_extensions; do
9811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9812 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9814 break 2
9815 fi
9816done
9817done
9818
2429c060
PB
9819fi
9820fi
c6b750e1 9821LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9822if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9823 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9824echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9825else
c6b750e1
DJ
9826 echo "$as_me:$LINENO: result: no" >&5
9827echo "${ECHO_T}no" >&6
2429c060
PB
9828fi
9829
9830 fi
9831 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9833set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9834echo "$as_me:$LINENO: checking for $ac_word" >&5
9835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9836if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9838else
9839 if test -n "$LIPO_FOR_TARGET"; then
9840 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9841else
c6b750e1
DJ
9842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9843for as_dir in $PATH
9844do
9845 IFS=$as_save_IFS
9846 test -z "$as_dir" && as_dir=.
9847 for ac_exec_ext in '' $ac_executable_extensions; do
9848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9849 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9851 break 2
9852 fi
9853done
9854done
9855
2429c060
PB
9856fi
9857fi
c6b750e1 9858LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9859if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9860 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9861echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9862else
c6b750e1
DJ
9863 echo "$as_me:$LINENO: result: no" >&5
9864echo "${ECHO_T}no" >&6
2429c060 9865fi
c6b750e1 9866
2429c060
PB
9867 fi
9868 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9869 done
9870fi
c6b750e1 9871
2429c060
PB
9872if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9873 set dummy lipo
9874 if test $build = $target ; then
9875 LIPO_FOR_TARGET="$2"
9876 else
9877 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9878 fi
d3f5afc4
MS
9879else
9880 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9881fi
9882
3a35eeb3
PB
9883else
9884 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9885fi
9886
9887
9888
9889
9890if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9891 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9892 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9893echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9894 if test -x $with_build_time_tools/nm; then
9895 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9896 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9897 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9898echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9899 else
c6b750e1
DJ
9900 echo "$as_me:$LINENO: result: no" >&5
9901echo "${ECHO_T}no" >&6
3a35eeb3 9902 fi
2429c060
PB
9903 elif test $build != $host && test $have_gcc_for_target = yes; then
9904 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
9905 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9906 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
9907 fi
9908fi
c6b750e1 9909if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9910 # Extract the first word of "nm", so it can be a program name with args.
9911set dummy nm; ac_word=$2
c6b750e1
DJ
9912echo "$as_me:$LINENO: checking for $ac_word" >&5
9913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9914if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9916else
c6b750e1
DJ
9917 case $NM_FOR_TARGET in
9918 [\\/]* | ?:[\\/]*)
2429c060
PB
9919 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9920 ;;
2429c060 9921 *)
c6b750e1
DJ
9922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923for as_dir in $gcc_cv_tool_dirs
9924do
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
9928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9929 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 break 2
9932 fi
9933done
9934done
9935
2429c060
PB
9936 ;;
9937esac
9938fi
c6b750e1
DJ
9939NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9940
2429c060 9941if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9942 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9943echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9944else
c6b750e1
DJ
9945 echo "$as_me:$LINENO: result: no" >&5
9946echo "${ECHO_T}no" >&6
2429c060
PB
9947fi
9948
9949fi
9950if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9951
9952
9953if test -n "$NM_FOR_TARGET"; then
9954 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9955elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9956 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9957fi
9958
9959if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9960 for ncn_progname in nm; do
9961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9962set dummy ${ncn_progname}; ac_word=$2
9963echo "$as_me:$LINENO: checking for $ac_word" >&5
9964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9965if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967else
9968 if test -n "$NM_FOR_TARGET"; then
9969 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9970else
9971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972for as_dir in $PATH
9973do
9974 IFS=$as_save_IFS
9975 test -z "$as_dir" && as_dir=.
9976 for ac_exec_ext in '' $ac_executable_extensions; do
9977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9978 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9980 break 2
9981 fi
9982done
9983done
9984
9985fi
9986fi
9987NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9988if test -n "$NM_FOR_TARGET"; then
9989 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9990echo "${ECHO_T}$NM_FOR_TARGET" >&6
9991else
9992 echo "$as_me:$LINENO: result: no" >&5
9993echo "${ECHO_T}no" >&6
9994fi
9995
9996 done
9997fi
9998
9999if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10000 for ncn_progname in nm; do
c6b750e1
DJ
10001 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10002echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10003 if test -x $with_build_time_tools/${ncn_progname}; then
10004 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10005 echo "$as_me:$LINENO: result: yes" >&5
10006echo "${ECHO_T}yes" >&6
2429c060
PB
10007 break
10008 else
c6b750e1
DJ
10009 echo "$as_me:$LINENO: result: no" >&5
10010echo "${ECHO_T}no" >&6
2429c060
PB
10011 fi
10012 done
10013fi
10014
10015if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10016 for ncn_progname in nm; do
10017 if test -n "$ncn_target_tool_prefix"; then
10018 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10019set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10020echo "$as_me:$LINENO: checking for $ac_word" >&5
10021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10022if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10024else
55db4b87
PB
10025 if test -n "$NM_FOR_TARGET"; then
10026 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10027else
c6b750e1
DJ
10028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029for as_dir in $PATH
10030do
10031 IFS=$as_save_IFS
10032 test -z "$as_dir" && as_dir=.
10033 for ac_exec_ext in '' $ac_executable_extensions; do
10034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10035 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10037 break 2
10038 fi
10039done
10040done
10041
859789af
AC
10042fi
10043fi
c6b750e1 10044NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10045if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10046 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10047echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10048else
c6b750e1
DJ
10049 echo "$as_me:$LINENO: result: no" >&5
10050echo "${ECHO_T}no" >&6
859789af
AC
10051fi
10052
2429c060
PB
10053 fi
10054 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10056set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10057echo "$as_me:$LINENO: checking for $ac_word" >&5
10058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10059if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10061else
05cbd757
PB
10062 if test -n "$NM_FOR_TARGET"; then
10063 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10064else
c6b750e1
DJ
10065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066for as_dir in $PATH
10067do
10068 IFS=$as_save_IFS
10069 test -z "$as_dir" && as_dir=.
10070 for ac_exec_ext in '' $ac_executable_extensions; do
10071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10072 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10074 break 2
10075 fi
10076done
10077done
10078
859789af
AC
10079fi
10080fi
c6b750e1 10081NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10082if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10083 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10084echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10085else
c6b750e1
DJ
10086 echo "$as_me:$LINENO: result: no" >&5
10087echo "${ECHO_T}no" >&6
859789af 10088fi
c6b750e1 10089
2429c060
PB
10090 fi
10091 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10092 done
10093fi
c6b750e1 10094
05cbd757
PB
10095if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10096 set dummy nm
10097 if test $build = $target ; then
10098 NM_FOR_TARGET="$2"
859789af 10099 else
05cbd757 10100 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10101 fi
d3f5afc4
MS
10102else
10103 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10104fi
10105
3a35eeb3
PB
10106else
10107 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10108fi
10109
10110
10111
10112
10113if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10114 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10115 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10116echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10117 if test -x $with_build_time_tools/objdump; then
10118 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10119 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10120 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10121echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10122 else
c6b750e1
DJ
10123 echo "$as_me:$LINENO: result: no" >&5
10124echo "${ECHO_T}no" >&6
3a35eeb3 10125 fi
2429c060
PB
10126 elif test $build != $host && test $have_gcc_for_target = yes; then
10127 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10128 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10129 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10130 fi
10131fi
c6b750e1 10132if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10133 # Extract the first word of "objdump", so it can be a program name with args.
10134set dummy objdump; ac_word=$2
c6b750e1
DJ
10135echo "$as_me:$LINENO: checking for $ac_word" >&5
10136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10137if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10139else
c6b750e1
DJ
10140 case $OBJDUMP_FOR_TARGET in
10141 [\\/]* | ?:[\\/]*)
2429c060
PB
10142 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10143 ;;
2429c060 10144 *)
c6b750e1
DJ
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146for as_dir in $gcc_cv_tool_dirs
10147do
10148 IFS=$as_save_IFS
10149 test -z "$as_dir" && as_dir=.
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10152 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10154 break 2
10155 fi
10156done
10157done
10158
2429c060
PB
10159 ;;
10160esac
10161fi
c6b750e1
DJ
10162OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10163
2429c060 10164if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10165 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10166echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10167else
c6b750e1
DJ
10168 echo "$as_me:$LINENO: result: no" >&5
10169echo "${ECHO_T}no" >&6
2429c060
PB
10170fi
10171
10172fi
10173if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10174
10175
10176if test -n "$OBJDUMP_FOR_TARGET"; then
10177 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10178elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10179 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10180fi
10181
10182if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10183 for ncn_progname in objdump; do
10184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10185set dummy ${ncn_progname}; ac_word=$2
10186echo "$as_me:$LINENO: checking for $ac_word" >&5
10187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10188if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190else
10191 if test -n "$OBJDUMP_FOR_TARGET"; then
10192 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10193else
10194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195for as_dir in $PATH
10196do
10197 IFS=$as_save_IFS
10198 test -z "$as_dir" && as_dir=.
10199 for ac_exec_ext in '' $ac_executable_extensions; do
10200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10201 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 break 2
10204 fi
10205done
10206done
10207
10208fi
10209fi
10210OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10211if test -n "$OBJDUMP_FOR_TARGET"; then
10212 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10213echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10214else
10215 echo "$as_me:$LINENO: result: no" >&5
10216echo "${ECHO_T}no" >&6
10217fi
10218
10219 done
10220fi
10221
10222if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10223 for ncn_progname in objdump; do
c6b750e1
DJ
10224 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10225echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10226 if test -x $with_build_time_tools/${ncn_progname}; then
10227 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10228 echo "$as_me:$LINENO: result: yes" >&5
10229echo "${ECHO_T}yes" >&6
2429c060
PB
10230 break
10231 else
c6b750e1
DJ
10232 echo "$as_me:$LINENO: result: no" >&5
10233echo "${ECHO_T}no" >&6
2429c060
PB
10234 fi
10235 done
10236fi
10237
10238if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10239 for ncn_progname in objdump; do
10240 if test -n "$ncn_target_tool_prefix"; then
10241 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10242set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10243echo "$as_me:$LINENO: checking for $ac_word" >&5
10244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10245if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10247else
10248 if test -n "$OBJDUMP_FOR_TARGET"; then
10249 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10250else
c6b750e1
DJ
10251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252for as_dir in $PATH
10253do
10254 IFS=$as_save_IFS
10255 test -z "$as_dir" && as_dir=.
10256 for ac_exec_ext in '' $ac_executable_extensions; do
10257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10258 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10260 break 2
10261 fi
10262done
10263done
10264
5ae72758
DJ
10265fi
10266fi
c6b750e1 10267OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10268if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10269 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10270echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10271else
c6b750e1
DJ
10272 echo "$as_me:$LINENO: result: no" >&5
10273echo "${ECHO_T}no" >&6
5ae72758
DJ
10274fi
10275
2429c060
PB
10276 fi
10277 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10279set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10280echo "$as_me:$LINENO: checking for $ac_word" >&5
10281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10282if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10283 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10284else
10285 if test -n "$OBJDUMP_FOR_TARGET"; then
10286 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10287else
c6b750e1
DJ
10288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289for as_dir in $PATH
10290do
10291 IFS=$as_save_IFS
10292 test -z "$as_dir" && as_dir=.
10293 for ac_exec_ext in '' $ac_executable_extensions; do
10294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10295 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10297 break 2
10298 fi
10299done
10300done
10301
5ae72758
DJ
10302fi
10303fi
c6b750e1 10304OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10305if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10306 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10307echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10308else
c6b750e1
DJ
10309 echo "$as_me:$LINENO: result: no" >&5
10310echo "${ECHO_T}no" >&6
5ae72758 10311fi
c6b750e1 10312
2429c060
PB
10313 fi
10314 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10315 done
10316fi
c6b750e1 10317
5ae72758
DJ
10318if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10319 set dummy objdump
10320 if test $build = $target ; then
10321 OBJDUMP_FOR_TARGET="$2"
10322 else
10323 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10324 fi
d3f5afc4
MS
10325else
10326 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10327fi
10328
3a35eeb3
PB
10329else
10330 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10331fi
10332
10333
10334
10335
10336if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10337 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10338 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10339echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10340 if test -x $with_build_time_tools/ranlib; then
10341 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10342 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10343 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10344echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10345 else
c6b750e1
DJ
10346 echo "$as_me:$LINENO: result: no" >&5
10347echo "${ECHO_T}no" >&6
3a35eeb3 10348 fi
2429c060
PB
10349 elif test $build != $host && test $have_gcc_for_target = yes; then
10350 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10351 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10352 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10353 fi
10354fi
c6b750e1 10355if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10356 # Extract the first word of "ranlib", so it can be a program name with args.
10357set dummy ranlib; ac_word=$2
c6b750e1
DJ
10358echo "$as_me:$LINENO: checking for $ac_word" >&5
10359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10360if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10362else
c6b750e1
DJ
10363 case $RANLIB_FOR_TARGET in
10364 [\\/]* | ?:[\\/]*)
2429c060
PB
10365 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10366 ;;
2429c060 10367 *)
c6b750e1
DJ
10368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369for as_dir in $gcc_cv_tool_dirs
10370do
10371 IFS=$as_save_IFS
10372 test -z "$as_dir" && as_dir=.
10373 for ac_exec_ext in '' $ac_executable_extensions; do
10374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10375 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10377 break 2
10378 fi
10379done
10380done
10381
2429c060
PB
10382 ;;
10383esac
10384fi
c6b750e1
DJ
10385RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10386
2429c060 10387if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10388 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10389echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10390else
c6b750e1
DJ
10391 echo "$as_me:$LINENO: result: no" >&5
10392echo "${ECHO_T}no" >&6
2429c060
PB
10393fi
10394
10395fi
10396if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10397
10398
10399if test -n "$RANLIB_FOR_TARGET"; then
10400 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10401elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10402 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10403fi
10404
10405if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10406 for ncn_progname in ranlib; do
10407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10408set dummy ${ncn_progname}; ac_word=$2
10409echo "$as_me:$LINENO: checking for $ac_word" >&5
10410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10411if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413else
10414 if test -n "$RANLIB_FOR_TARGET"; then
10415 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10416else
10417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418for as_dir in $PATH
10419do
10420 IFS=$as_save_IFS
10421 test -z "$as_dir" && as_dir=.
10422 for ac_exec_ext in '' $ac_executable_extensions; do
10423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10424 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10426 break 2
10427 fi
10428done
10429done
10430
10431fi
10432fi
10433RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10434if test -n "$RANLIB_FOR_TARGET"; then
10435 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10436echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10437else
10438 echo "$as_me:$LINENO: result: no" >&5
10439echo "${ECHO_T}no" >&6
10440fi
10441
10442 done
10443fi
10444
10445if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10446 for ncn_progname in ranlib; do
c6b750e1
DJ
10447 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10448echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10449 if test -x $with_build_time_tools/${ncn_progname}; then
10450 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10451 echo "$as_me:$LINENO: result: yes" >&5
10452echo "${ECHO_T}yes" >&6
2429c060
PB
10453 break
10454 else
c6b750e1
DJ
10455 echo "$as_me:$LINENO: result: no" >&5
10456echo "${ECHO_T}no" >&6
2429c060
PB
10457 fi
10458 done
10459fi
10460
10461if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10462 for ncn_progname in ranlib; do
10463 if test -n "$ncn_target_tool_prefix"; then
10464 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10465set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10466echo "$as_me:$LINENO: checking for $ac_word" >&5
10467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10468if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10470else
55db4b87
PB
10471 if test -n "$RANLIB_FOR_TARGET"; then
10472 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10473else
c6b750e1
DJ
10474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475for as_dir in $PATH
10476do
10477 IFS=$as_save_IFS
10478 test -z "$as_dir" && as_dir=.
10479 for ac_exec_ext in '' $ac_executable_extensions; do
10480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10481 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10483 break 2
10484 fi
10485done
10486done
10487
859789af
AC
10488fi
10489fi
c6b750e1 10490RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10491if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10492 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10493echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10494else
c6b750e1
DJ
10495 echo "$as_me:$LINENO: result: no" >&5
10496echo "${ECHO_T}no" >&6
859789af
AC
10497fi
10498
2429c060
PB
10499 fi
10500 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10502set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10503echo "$as_me:$LINENO: checking for $ac_word" >&5
10504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10505if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10507else
05cbd757
PB
10508 if test -n "$RANLIB_FOR_TARGET"; then
10509 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10510else
c6b750e1
DJ
10511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10512for as_dir in $PATH
10513do
10514 IFS=$as_save_IFS
10515 test -z "$as_dir" && as_dir=.
10516 for ac_exec_ext in '' $ac_executable_extensions; do
10517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10518 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10520 break 2
10521 fi
10522done
10523done
10524
859789af
AC
10525fi
10526fi
c6b750e1 10527RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10528if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10529 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10530echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10531else
c6b750e1
DJ
10532 echo "$as_me:$LINENO: result: no" >&5
10533echo "${ECHO_T}no" >&6
859789af 10534fi
c6b750e1 10535
2429c060
PB
10536 fi
10537 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10538 done
10539fi
c6b750e1 10540
2429c060
PB
10541if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10542 set dummy ranlib
10543 if test $build = $target ; then
10544 RANLIB_FOR_TARGET="$2"
10545 else
10546 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10547 fi
d3f5afc4
MS
10548else
10549 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10550fi
05cbd757 10551
3a35eeb3
PB
10552else
10553 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10554fi
10555
2429c060
PB
10556
10557
10558
10559if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10560 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10561 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10562echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10563 if test -x $with_build_time_tools/strip; then
10564 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10565 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10566 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10567echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10568 else
c6b750e1
DJ
10569 echo "$as_me:$LINENO: result: no" >&5
10570echo "${ECHO_T}no" >&6
3a35eeb3 10571 fi
2429c060
PB
10572 elif test $build != $host && test $have_gcc_for_target = yes; then
10573 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10574 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10575 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10576 fi
10577fi
c6b750e1 10578if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10579 # Extract the first word of "strip", so it can be a program name with args.
10580set dummy strip; ac_word=$2
c6b750e1
DJ
10581echo "$as_me:$LINENO: checking for $ac_word" >&5
10582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10583if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10584 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10585else
c6b750e1
DJ
10586 case $STRIP_FOR_TARGET in
10587 [\\/]* | ?:[\\/]*)
2429c060
PB
10588 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10589 ;;
2429c060 10590 *)
c6b750e1
DJ
10591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592for as_dir in $gcc_cv_tool_dirs
10593do
10594 IFS=$as_save_IFS
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
10597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10598 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 break 2
10601 fi
10602done
10603done
10604
2429c060
PB
10605 ;;
10606esac
10607fi
c6b750e1
DJ
10608STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10609
2429c060 10610if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10611 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10612echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10613else
c6b750e1
DJ
10614 echo "$as_me:$LINENO: result: no" >&5
10615echo "${ECHO_T}no" >&6
2429c060
PB
10616fi
10617
10618fi
10619if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10620
10621
10622if test -n "$STRIP_FOR_TARGET"; then
10623 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10624elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10625 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10626fi
10627
10628if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10629 for ncn_progname in strip; do
10630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10631set dummy ${ncn_progname}; ac_word=$2
10632echo "$as_me:$LINENO: checking for $ac_word" >&5
10633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10634if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10636else
10637 if test -n "$STRIP_FOR_TARGET"; then
10638 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10639else
10640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10641for as_dir in $PATH
10642do
10643 IFS=$as_save_IFS
10644 test -z "$as_dir" && as_dir=.
10645 for ac_exec_ext in '' $ac_executable_extensions; do
10646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10647 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10649 break 2
10650 fi
10651done
10652done
10653
10654fi
10655fi
10656STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10657if test -n "$STRIP_FOR_TARGET"; then
10658 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10659echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10660else
10661 echo "$as_me:$LINENO: result: no" >&5
10662echo "${ECHO_T}no" >&6
10663fi
10664
10665 done
10666fi
10667
10668if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10669 for ncn_progname in strip; do
c6b750e1
DJ
10670 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10671echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10672 if test -x $with_build_time_tools/${ncn_progname}; then
10673 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10674 echo "$as_me:$LINENO: result: yes" >&5
10675echo "${ECHO_T}yes" >&6
2429c060
PB
10676 break
10677 else
c6b750e1
DJ
10678 echo "$as_me:$LINENO: result: no" >&5
10679echo "${ECHO_T}no" >&6
2429c060
PB
10680 fi
10681 done
10682fi
10683
10684if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10685 for ncn_progname in strip; do
10686 if test -n "$ncn_target_tool_prefix"; then
10687 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10688set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10689echo "$as_me:$LINENO: checking for $ac_word" >&5
10690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10691if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10693else
10694 if test -n "$STRIP_FOR_TARGET"; then
10695 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10696else
10697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10698for as_dir in $PATH
10699do
10700 IFS=$as_save_IFS
10701 test -z "$as_dir" && as_dir=.
10702 for ac_exec_ext in '' $ac_executable_extensions; do
10703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10704 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10706 break 2
10707 fi
10708done
10709done
10710
7e0f7140
GK
10711fi
10712fi
c6b750e1 10713STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10714if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10715 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10716echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10717else
c6b750e1
DJ
10718 echo "$as_me:$LINENO: result: no" >&5
10719echo "${ECHO_T}no" >&6
7e0f7140
GK
10720fi
10721
2429c060
PB
10722 fi
10723 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10725set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10726echo "$as_me:$LINENO: checking for $ac_word" >&5
10727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10728if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10730else
10731 if test -n "$STRIP_FOR_TARGET"; then
10732 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10733else
c6b750e1
DJ
10734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10735for as_dir in $PATH
10736do
10737 IFS=$as_save_IFS
10738 test -z "$as_dir" && as_dir=.
10739 for ac_exec_ext in '' $ac_executable_extensions; do
10740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10741 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10743 break 2
10744 fi
10745done
10746done
10747
7e0f7140
GK
10748fi
10749fi
c6b750e1 10750STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10751if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10752 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10753echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10754else
c6b750e1
DJ
10755 echo "$as_me:$LINENO: result: no" >&5
10756echo "${ECHO_T}no" >&6
7e0f7140 10757fi
c6b750e1 10758
2429c060
PB
10759 fi
10760 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10761 done
10762fi
c6b750e1 10763
7e0f7140
GK
10764if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10765 set dummy strip
10766 if test $build = $target ; then
10767 STRIP_FOR_TARGET="$2"
10768 else
10769 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10770 fi
d3f5afc4
MS
10771else
10772 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10773fi
10774
3a35eeb3
PB
10775else
10776 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10777fi
10778
10779
10780
10781
10782if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10783 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10784 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10785echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10786 if test -x $with_build_time_tools/windres; then
10787 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10788 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10789 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10790echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10791 else
c6b750e1
DJ
10792 echo "$as_me:$LINENO: result: no" >&5
10793echo "${ECHO_T}no" >&6
3a35eeb3 10794 fi
2429c060
PB
10795 elif test $build != $host && test $have_gcc_for_target = yes; then
10796 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10797 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10798 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10799 fi
10800fi
c6b750e1 10801if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10802 # Extract the first word of "windres", so it can be a program name with args.
10803set dummy windres; ac_word=$2
c6b750e1
DJ
10804echo "$as_me:$LINENO: checking for $ac_word" >&5
10805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10806if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10808else
c6b750e1
DJ
10809 case $WINDRES_FOR_TARGET in
10810 [\\/]* | ?:[\\/]*)
2429c060
PB
10811 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10812 ;;
2429c060 10813 *)
c6b750e1
DJ
10814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10815for as_dir in $gcc_cv_tool_dirs
10816do
10817 IFS=$as_save_IFS
10818 test -z "$as_dir" && as_dir=.
10819 for ac_exec_ext in '' $ac_executable_extensions; do
10820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10821 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10823 break 2
10824 fi
10825done
10826done
10827
2429c060
PB
10828 ;;
10829esac
10830fi
c6b750e1
DJ
10831WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10832
2429c060 10833if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10834 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10835echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10836else
c6b750e1
DJ
10837 echo "$as_me:$LINENO: result: no" >&5
10838echo "${ECHO_T}no" >&6
2429c060
PB
10839fi
10840
10841fi
10842if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10843
10844
10845if test -n "$WINDRES_FOR_TARGET"; then
10846 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10847elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10848 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10849fi
10850
10851if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10852 for ncn_progname in windres; do
10853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10854set dummy ${ncn_progname}; ac_word=$2
10855echo "$as_me:$LINENO: checking for $ac_word" >&5
10856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10857if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10859else
10860 if test -n "$WINDRES_FOR_TARGET"; then
10861 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10862else
10863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864for as_dir in $PATH
10865do
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10870 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10873 fi
10874done
10875done
10876
10877fi
10878fi
10879WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10880if test -n "$WINDRES_FOR_TARGET"; then
10881 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10882echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10883else
10884 echo "$as_me:$LINENO: result: no" >&5
10885echo "${ECHO_T}no" >&6
10886fi
10887
10888 done
10889fi
10890
10891if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10892 for ncn_progname in windres; do
c6b750e1
DJ
10893 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10894echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10895 if test -x $with_build_time_tools/${ncn_progname}; then
10896 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10897 echo "$as_me:$LINENO: result: yes" >&5
10898echo "${ECHO_T}yes" >&6
2429c060
PB
10899 break
10900 else
c6b750e1
DJ
10901 echo "$as_me:$LINENO: result: no" >&5
10902echo "${ECHO_T}no" >&6
2429c060
PB
10903 fi
10904 done
10905fi
10906
10907if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10908 for ncn_progname in windres; do
10909 if test -n "$ncn_target_tool_prefix"; then
10910 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10911set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10912echo "$as_me:$LINENO: checking for $ac_word" >&5
10913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10914if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10916else
55db4b87
PB
10917 if test -n "$WINDRES_FOR_TARGET"; then
10918 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10919else
c6b750e1
DJ
10920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921for as_dir in $PATH
10922do
10923 IFS=$as_save_IFS
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10927 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10929 break 2
10930 fi
10931done
10932done
10933
859789af
AC
10934fi
10935fi
c6b750e1 10936WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10937if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10938 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10939echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10940else
c6b750e1
DJ
10941 echo "$as_me:$LINENO: result: no" >&5
10942echo "${ECHO_T}no" >&6
859789af
AC
10943fi
10944
2429c060
PB
10945 fi
10946 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10948set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10949echo "$as_me:$LINENO: checking for $ac_word" >&5
10950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10951if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10953else
05cbd757
PB
10954 if test -n "$WINDRES_FOR_TARGET"; then
10955 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10956else
c6b750e1
DJ
10957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10958for as_dir in $PATH
10959do
10960 IFS=$as_save_IFS
10961 test -z "$as_dir" && as_dir=.
10962 for ac_exec_ext in '' $ac_executable_extensions; do
10963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10964 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10966 break 2
10967 fi
10968done
10969done
10970
859789af
AC
10971fi
10972fi
c6b750e1 10973WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 10974if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10975 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10976echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10977else
c6b750e1
DJ
10978 echo "$as_me:$LINENO: result: no" >&5
10979echo "${ECHO_T}no" >&6
859789af 10980fi
c6b750e1 10981
2429c060
PB
10982 fi
10983 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10984 done
10985fi
c6b750e1 10986
05cbd757
PB
10987if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10988 set dummy windres
10989 if test $build = $target ; then
10990 WINDRES_FOR_TARGET="$2"
859789af 10991 else
05cbd757 10992 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10993 fi
d3f5afc4
MS
10994else
10995 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
10996fi
10997
3a35eeb3
PB
10998else
10999 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11000fi
11001
852e5f18 11002
0c24b341
NC
11003
11004
11005if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11006 if test -n "$with_build_time_tools"; then
11007 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11008echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11009 if test -x $with_build_time_tools/windmc; then
11010 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11011 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11012 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11013echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11014 else
11015 echo "$as_me:$LINENO: result: no" >&5
11016echo "${ECHO_T}no" >&6
11017 fi
11018 elif test $build != $host && test $have_gcc_for_target = yes; then
11019 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11020 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11021 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11022 fi
11023fi
11024if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11025 # Extract the first word of "windmc", so it can be a program name with args.
11026set dummy windmc; ac_word=$2
11027echo "$as_me:$LINENO: checking for $ac_word" >&5
11028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11029if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11031else
11032 case $WINDMC_FOR_TARGET in
11033 [\\/]* | ?:[\\/]*)
11034 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11035 ;;
11036 *)
11037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038for as_dir in $gcc_cv_tool_dirs
11039do
11040 IFS=$as_save_IFS
11041 test -z "$as_dir" && as_dir=.
11042 for ac_exec_ext in '' $ac_executable_extensions; do
11043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11044 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11046 break 2
11047 fi
11048done
11049done
11050
11051 ;;
11052esac
11053fi
11054WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11055
11056if test -n "$WINDMC_FOR_TARGET"; then
11057 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11058echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11059else
11060 echo "$as_me:$LINENO: result: no" >&5
11061echo "${ECHO_T}no" >&6
11062fi
11063
11064fi
11065if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11066
11067
11068if test -n "$WINDMC_FOR_TARGET"; then
11069 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11070elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11071 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11072fi
11073
11074if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11075 for ncn_progname in windmc; do
11076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11077set dummy ${ncn_progname}; ac_word=$2
11078echo "$as_me:$LINENO: checking for $ac_word" >&5
11079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11080if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082else
11083 if test -n "$WINDMC_FOR_TARGET"; then
11084 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11085else
11086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087for as_dir in $PATH
11088do
11089 IFS=$as_save_IFS
11090 test -z "$as_dir" && as_dir=.
11091 for ac_exec_ext in '' $ac_executable_extensions; do
11092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11093 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11095 break 2
11096 fi
11097done
11098done
11099
11100fi
11101fi
11102WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11103if test -n "$WINDMC_FOR_TARGET"; then
11104 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11105echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11106else
11107 echo "$as_me:$LINENO: result: no" >&5
11108echo "${ECHO_T}no" >&6
11109fi
11110
11111 done
11112fi
11113
11114if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11115 for ncn_progname in windmc; do
11116 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11117echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11118 if test -x $with_build_time_tools/${ncn_progname}; then
11119 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11120 echo "$as_me:$LINENO: result: yes" >&5
11121echo "${ECHO_T}yes" >&6
11122 break
11123 else
11124 echo "$as_me:$LINENO: result: no" >&5
11125echo "${ECHO_T}no" >&6
11126 fi
11127 done
11128fi
11129
11130if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11131 for ncn_progname in windmc; do
11132 if test -n "$ncn_target_tool_prefix"; then
11133 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11134set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11135echo "$as_me:$LINENO: checking for $ac_word" >&5
11136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11137if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139else
11140 if test -n "$WINDMC_FOR_TARGET"; then
11141 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11142else
11143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11144for as_dir in $PATH
11145do
11146 IFS=$as_save_IFS
11147 test -z "$as_dir" && as_dir=.
11148 for ac_exec_ext in '' $ac_executable_extensions; do
11149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11150 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11152 break 2
11153 fi
11154done
11155done
11156
11157fi
11158fi
11159WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11160if test -n "$WINDMC_FOR_TARGET"; then
11161 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11162echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11163else
11164 echo "$as_me:$LINENO: result: no" >&5
11165echo "${ECHO_T}no" >&6
11166fi
11167
11168 fi
11169 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11171set dummy ${ncn_progname}; ac_word=$2
11172echo "$as_me:$LINENO: checking for $ac_word" >&5
11173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11174if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176else
11177 if test -n "$WINDMC_FOR_TARGET"; then
11178 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11179else
11180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181for as_dir in $PATH
11182do
11183 IFS=$as_save_IFS
11184 test -z "$as_dir" && as_dir=.
11185 for ac_exec_ext in '' $ac_executable_extensions; do
11186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11187 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11189 break 2
11190 fi
11191done
11192done
11193
11194fi
11195fi
11196WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11197if test -n "$WINDMC_FOR_TARGET"; then
11198 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11199echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11200else
11201 echo "$as_me:$LINENO: result: no" >&5
11202echo "${ECHO_T}no" >&6
11203fi
11204
11205 fi
11206 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11207 done
11208fi
11209
11210if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11211 set dummy windmc
11212 if test $build = $target ; then
11213 WINDMC_FOR_TARGET="$2"
11214 else
11215 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11216 fi
11217else
11218 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11219fi
11220
11221else
11222 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11223fi
11224
11225
be01d343
PB
11226RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11227
c6b750e1
DJ
11228echo "$as_me:$LINENO: checking where to find the target ar" >&5
11229echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11230if test "x${build}" != "x${host}" ; then
2429c060
PB
11231 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11232 # We already found the complete path
b8025f34
AS
11233 ac_dir=`dirname $AR_FOR_TARGET`
11234 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11235echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11236 else
11237 # Canadian cross, just use what we found
c6b750e1
DJ
11238 echo "$as_me:$LINENO: result: pre-installed" >&5
11239echo "${ECHO_T}pre-installed" >&6
2429c060 11240 fi
be01d343
PB
11241else
11242 ok=yes
11243 case " ${configdirs} " in
11244 *" binutils "*) ;;
11245 *) ok=no ;;
11246 esac
c6b750e1 11247
be01d343
PB
11248 if test $ok = yes; then
11249 # An in-tree tool is available and we can use it
11250 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11251 echo "$as_me:$LINENO: result: just compiled" >&5
11252echo "${ECHO_T}just compiled" >&6
2429c060
PB
11253 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11254 # We already found the complete path
b8025f34
AS
11255 ac_dir=`dirname $AR_FOR_TARGET`
11256 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11257echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11258 elif test "x$target" = "x$host"; then
11259 # We can use an host tool
11260 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11261 echo "$as_me:$LINENO: result: host tool" >&5
11262echo "${ECHO_T}host tool" >&6
be01d343
PB
11263 else
11264 # We need a cross tool
c6b750e1
DJ
11265 echo "$as_me:$LINENO: result: pre-installed" >&5
11266echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11267 fi
11268fi
4b900473 11269
c6b750e1
DJ
11270echo "$as_me:$LINENO: checking where to find the target as" >&5
11271echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11272if test "x${build}" != "x${host}" ; then
2429c060
PB
11273 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11274 # We already found the complete path
b8025f34
AS
11275 ac_dir=`dirname $AS_FOR_TARGET`
11276 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11277echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11278 else
11279 # Canadian cross, just use what we found
c6b750e1
DJ
11280 echo "$as_me:$LINENO: result: pre-installed" >&5
11281echo "${ECHO_T}pre-installed" >&6
2429c060 11282 fi
be01d343
PB
11283else
11284 ok=yes
11285 case " ${configdirs} " in
11286 *" gas "*) ;;
11287 *) ok=no ;;
11288 esac
c6b750e1 11289
be01d343
PB
11290 if test $ok = yes; then
11291 # An in-tree tool is available and we can use it
11292 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11293 echo "$as_me:$LINENO: result: just compiled" >&5
11294echo "${ECHO_T}just compiled" >&6
2429c060
PB
11295 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11296 # We already found the complete path
b8025f34
AS
11297 ac_dir=`dirname $AS_FOR_TARGET`
11298 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11299echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11300 elif test "x$target" = "x$host"; then
11301 # We can use an host tool
11302 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11303 echo "$as_me:$LINENO: result: host tool" >&5
11304echo "${ECHO_T}host tool" >&6
be01d343
PB
11305 else
11306 # We need a cross tool
c6b750e1
DJ
11307 echo "$as_me:$LINENO: result: pre-installed" >&5
11308echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11309 fi
11310fi
4b900473 11311
c6b750e1
DJ
11312echo "$as_me:$LINENO: checking where to find the target cc" >&5
11313echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11314if test "x${build}" != "x${host}" ; then
2429c060
PB
11315 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11316 # We already found the complete path
b8025f34
AS
11317 ac_dir=`dirname $CC_FOR_TARGET`
11318 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11319echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11320 else
11321 # Canadian cross, just use what we found
c6b750e1
DJ
11322 echo "$as_me:$LINENO: result: pre-installed" >&5
11323echo "${ECHO_T}pre-installed" >&6
2429c060 11324 fi
be01d343
PB
11325else
11326 ok=yes
11327 case " ${configdirs} " in
11328 *" gcc "*) ;;
11329 *) ok=no ;;
11330 esac
c6b750e1 11331
be01d343
PB
11332 if test $ok = yes; then
11333 # An in-tree tool is available and we can use it
11334 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11335 echo "$as_me:$LINENO: result: just compiled" >&5
11336echo "${ECHO_T}just compiled" >&6
2429c060
PB
11337 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11338 # We already found the complete path
b8025f34
AS
11339 ac_dir=`dirname $CC_FOR_TARGET`
11340 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11341echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11342 elif test "x$target" = "x$host"; then
11343 # We can use an host tool
11344 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11345 echo "$as_me:$LINENO: result: host tool" >&5
11346echo "${ECHO_T}host tool" >&6
be01d343
PB
11347 else
11348 # We need a cross tool
c6b750e1
DJ
11349 echo "$as_me:$LINENO: result: pre-installed" >&5
11350echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11351 fi
11352fi
4b900473 11353
c6b750e1
DJ
11354echo "$as_me:$LINENO: checking where to find the target c++" >&5
11355echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11356if test "x${build}" != "x${host}" ; then
2429c060
PB
11357 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11358 # We already found the complete path
b8025f34
AS
11359 ac_dir=`dirname $CXX_FOR_TARGET`
11360 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11361echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11362 else
11363 # Canadian cross, just use what we found
c6b750e1
DJ
11364 echo "$as_me:$LINENO: result: pre-installed" >&5
11365echo "${ECHO_T}pre-installed" >&6
2429c060 11366 fi
be01d343
PB
11367else
11368 ok=yes
11369 case " ${configdirs} " in
11370 *" gcc "*) ;;
11371 *) ok=no ;;
11372 esac
11373 case ,${enable_languages}, in
11374 *,c++,*) ;;
11375 *) ok=no ;;
11376 esac
11377 if test $ok = yes; then
11378 # An in-tree tool is available and we can use it
11379 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
11380 echo "$as_me:$LINENO: result: just compiled" >&5
11381echo "${ECHO_T}just compiled" >&6
2429c060
PB
11382 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11383 # We already found the complete path
b8025f34
AS
11384 ac_dir=`dirname $CXX_FOR_TARGET`
11385 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11386echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11387 elif test "x$target" = "x$host"; then
11388 # We can use an host tool
11389 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11390 echo "$as_me:$LINENO: result: host tool" >&5
11391echo "${ECHO_T}host tool" >&6
be01d343
PB
11392 else
11393 # We need a cross tool
c6b750e1
DJ
11394 echo "$as_me:$LINENO: result: pre-installed" >&5
11395echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11396 fi
11397fi
4b900473 11398
c6b750e1
DJ
11399echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11400echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11401if test "x${build}" != "x${host}" ; then
2429c060
PB
11402 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11403 # We already found the complete path
b8025f34
AS
11404 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11405 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11406echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11407 else
11408 # Canadian cross, just use what we found
c6b750e1
DJ
11409 echo "$as_me:$LINENO: result: pre-installed" >&5
11410echo "${ECHO_T}pre-installed" >&6
2429c060 11411 fi
be01d343
PB
11412else
11413 ok=yes
11414 case " ${configdirs} " in
11415 *" gcc "*) ;;
11416 *) ok=no ;;
11417 esac
11418 case ,${enable_languages}, in
11419 *,c++,*) ;;
11420 *) ok=no ;;
11421 esac
11422 if test $ok = yes; then
11423 # An in-tree tool is available and we can use it
11424 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
11425 echo "$as_me:$LINENO: result: just compiled" >&5
11426echo "${ECHO_T}just compiled" >&6
2429c060
PB
11427 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11428 # We already found the complete path
b8025f34
AS
11429 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11430 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11431echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11432 elif test "x$target" = "x$host"; then
11433 # We can use an host tool
11434 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11435 echo "$as_me:$LINENO: result: host tool" >&5
11436echo "${ECHO_T}host tool" >&6
be01d343
PB
11437 else
11438 # We need a cross tool
c6b750e1
DJ
11439 echo "$as_me:$LINENO: result: pre-installed" >&5
11440echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11441 fi
11442fi
4b900473 11443
c6b750e1
DJ
11444echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11445echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11446if test "x${build}" != "x${host}" ; then
2429c060
PB
11447 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11448 # We already found the complete path
b8025f34
AS
11449 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11450 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11451echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11452 else
11453 # Canadian cross, just use what we found
c6b750e1
DJ
11454 echo "$as_me:$LINENO: result: pre-installed" >&5
11455echo "${ECHO_T}pre-installed" >&6
2429c060 11456 fi
be01d343
PB
11457else
11458 ok=yes
11459 case " ${configdirs} " in
11460 *" binutils "*) ;;
11461 *) ok=no ;;
11462 esac
c6b750e1 11463
be01d343
PB
11464 if test $ok = yes; then
11465 # An in-tree tool is available and we can use it
11466 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11467 echo "$as_me:$LINENO: result: just compiled" >&5
11468echo "${ECHO_T}just compiled" >&6
2429c060
PB
11469 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11470 # We already found the complete path
b8025f34
AS
11471 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11472 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11473echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11474 elif test "x$target" = "x$host"; then
11475 # We can use an host tool
11476 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11477 echo "$as_me:$LINENO: result: host tool" >&5
11478echo "${ECHO_T}host tool" >&6
be01d343
PB
11479 else
11480 # We need a cross tool
c6b750e1
DJ
11481 echo "$as_me:$LINENO: result: pre-installed" >&5
11482echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11483 fi
11484fi
4b900473 11485
c6b750e1
DJ
11486echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11487echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11488if test "x${build}" != "x${host}" ; then
2429c060
PB
11489 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11490 # We already found the complete path
b8025f34
AS
11491 ac_dir=`dirname $GCC_FOR_TARGET`
11492 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11493echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11494 else
11495 # Canadian cross, just use what we found
c6b750e1
DJ
11496 echo "$as_me:$LINENO: result: pre-installed" >&5
11497echo "${ECHO_T}pre-installed" >&6
2429c060 11498 fi
be01d343
PB
11499else
11500 ok=yes
11501 case " ${configdirs} " in
11502 *" gcc "*) ;;
11503 *) ok=no ;;
11504 esac
c6b750e1 11505
be01d343
PB
11506 if test $ok = yes; then
11507 # An in-tree tool is available and we can use it
11508 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11509 echo "$as_me:$LINENO: result: just compiled" >&5
11510echo "${ECHO_T}just compiled" >&6
2429c060
PB
11511 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11512 # We already found the complete path
b8025f34
AS
11513 ac_dir=`dirname $GCC_FOR_TARGET`
11514 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11515echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11516 elif test "x$target" = "x$host"; then
11517 # We can use an host tool
11518 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11519 echo "$as_me:$LINENO: result: host tool" >&5
11520echo "${ECHO_T}host tool" >&6
be01d343
PB
11521 else
11522 # We need a cross tool
c6b750e1
DJ
11523 echo "$as_me:$LINENO: result: pre-installed" >&5
11524echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11525 fi
11526fi
4b900473 11527
c6b750e1
DJ
11528echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11529echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11530if test "x${build}" != "x${host}" ; then
2429c060
PB
11531 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11532 # We already found the complete path
b8025f34
AS
11533 ac_dir=`dirname $GCJ_FOR_TARGET`
11534 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11535echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11536 else
11537 # Canadian cross, just use what we found
c6b750e1
DJ
11538 echo "$as_me:$LINENO: result: pre-installed" >&5
11539echo "${ECHO_T}pre-installed" >&6
2429c060 11540 fi
be01d343
PB
11541else
11542 ok=yes
11543 case " ${configdirs} " in
11544 *" gcc "*) ;;
11545 *) ok=no ;;
11546 esac
11547 case ,${enable_languages}, in
11548 *,java,*) ;;
11549 *) ok=no ;;
11550 esac
11551 if test $ok = yes; then
11552 # An in-tree tool is available and we can use it
11553 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11554 echo "$as_me:$LINENO: result: just compiled" >&5
11555echo "${ECHO_T}just compiled" >&6
2429c060
PB
11556 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11557 # We already found the complete path
b8025f34
AS
11558 ac_dir=`dirname $GCJ_FOR_TARGET`
11559 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11560echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11561 elif test "x$target" = "x$host"; then
11562 # We can use an host tool
11563 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11564 echo "$as_me:$LINENO: result: host tool" >&5
11565echo "${ECHO_T}host tool" >&6
be01d343
PB
11566 else
11567 # We need a cross tool
c6b750e1
DJ
11568 echo "$as_me:$LINENO: result: pre-installed" >&5
11569echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11570 fi
11571fi
4b900473 11572
c6b750e1
DJ
11573echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11574echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11575if test "x${build}" != "x${host}" ; then
2429c060
PB
11576 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11577 # We already found the complete path
b8025f34
AS
11578 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11579 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11580echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11581 else
11582 # Canadian cross, just use what we found
c6b750e1
DJ
11583 echo "$as_me:$LINENO: result: pre-installed" >&5
11584echo "${ECHO_T}pre-installed" >&6
2429c060 11585 fi
be01d343
PB
11586else
11587 ok=yes
11588 case " ${configdirs} " in
11589 *" gcc "*) ;;
11590 *) ok=no ;;
11591 esac
11592 case ,${enable_languages}, in
11593 *,fortran,*) ;;
11594 *) ok=no ;;
11595 esac
11596 if test $ok = yes; then
11597 # An in-tree tool is available and we can use it
11598 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11599 echo "$as_me:$LINENO: result: just compiled" >&5
11600echo "${ECHO_T}just compiled" >&6
2429c060
PB
11601 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11602 # We already found the complete path
b8025f34
AS
11603 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11604 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11605echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11606 elif test "x$target" = "x$host"; then
11607 # We can use an host tool
11608 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11609 echo "$as_me:$LINENO: result: host tool" >&5
11610echo "${ECHO_T}host tool" >&6
be01d343
PB
11611 else
11612 # We need a cross tool
c6b750e1
DJ
11613 echo "$as_me:$LINENO: result: pre-installed" >&5
11614echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11615 fi
11616fi
4b900473 11617
c6b750e1
DJ
11618echo "$as_me:$LINENO: checking where to find the target ld" >&5
11619echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11620if test "x${build}" != "x${host}" ; then
2429c060
PB
11621 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11622 # We already found the complete path
b8025f34
AS
11623 ac_dir=`dirname $LD_FOR_TARGET`
11624 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11625echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11626 else
11627 # Canadian cross, just use what we found
c6b750e1
DJ
11628 echo "$as_me:$LINENO: result: pre-installed" >&5
11629echo "${ECHO_T}pre-installed" >&6
2429c060 11630 fi
be01d343
PB
11631else
11632 ok=yes
11633 case " ${configdirs} " in
11634 *" ld "*) ;;
11635 *) ok=no ;;
11636 esac
c6b750e1 11637
be01d343
PB
11638 if test $ok = yes; then
11639 # An in-tree tool is available and we can use it
11640 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11641 echo "$as_me:$LINENO: result: just compiled" >&5
11642echo "${ECHO_T}just compiled" >&6
2429c060
PB
11643 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11644 # We already found the complete path
b8025f34
AS
11645 ac_dir=`dirname $LD_FOR_TARGET`
11646 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11647echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11648 elif test "x$target" = "x$host"; then
11649 # We can use an host tool
11650 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11651 echo "$as_me:$LINENO: result: host tool" >&5
11652echo "${ECHO_T}host tool" >&6
be01d343
PB
11653 else
11654 # We need a cross tool
c6b750e1
DJ
11655 echo "$as_me:$LINENO: result: pre-installed" >&5
11656echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11657 fi
11658fi
4b900473 11659
c6b750e1
DJ
11660echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11661echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11662if test "x${build}" != "x${host}" ; then
2429c060
PB
11663 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11664 # We already found the complete path
b8025f34
AS
11665 ac_dir=`dirname $LIPO_FOR_TARGET`
11666 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11667echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11668 else
11669 # Canadian cross, just use what we found
c6b750e1
DJ
11670 echo "$as_me:$LINENO: result: pre-installed" >&5
11671echo "${ECHO_T}pre-installed" >&6
2429c060 11672 fi
be01d343 11673else
2429c060
PB
11674 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11675 # We already found the complete path
b8025f34
AS
11676 ac_dir=`dirname $LIPO_FOR_TARGET`
11677 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11678echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11679 elif test "x$target" = "x$host"; then
be01d343
PB
11680 # We can use an host tool
11681 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11682 echo "$as_me:$LINENO: result: host tool" >&5
11683echo "${ECHO_T}host tool" >&6
be01d343
PB
11684 else
11685 # We need a cross tool
c6b750e1
DJ
11686 echo "$as_me:$LINENO: result: pre-installed" >&5
11687echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11688 fi
11689fi
4b900473 11690
c6b750e1
DJ
11691echo "$as_me:$LINENO: checking where to find the target nm" >&5
11692echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11693if test "x${build}" != "x${host}" ; then
2429c060
PB
11694 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11695 # We already found the complete path
b8025f34
AS
11696 ac_dir=`dirname $NM_FOR_TARGET`
11697 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11698echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11699 else
11700 # Canadian cross, just use what we found
c6b750e1
DJ
11701 echo "$as_me:$LINENO: result: pre-installed" >&5
11702echo "${ECHO_T}pre-installed" >&6
2429c060 11703 fi
be01d343
PB
11704else
11705 ok=yes
11706 case " ${configdirs} " in
11707 *" binutils "*) ;;
11708 *) ok=no ;;
11709 esac
c6b750e1 11710
be01d343
PB
11711 if test $ok = yes; then
11712 # An in-tree tool is available and we can use it
11713 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11714 echo "$as_me:$LINENO: result: just compiled" >&5
11715echo "${ECHO_T}just compiled" >&6
2429c060
PB
11716 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11717 # We already found the complete path
b8025f34
AS
11718 ac_dir=`dirname $NM_FOR_TARGET`
11719 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11720echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11721 elif test "x$target" = "x$host"; then
11722 # We can use an host tool
11723 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11724 echo "$as_me:$LINENO: result: host tool" >&5
11725echo "${ECHO_T}host tool" >&6
be01d343
PB
11726 else
11727 # We need a cross tool
c6b750e1
DJ
11728 echo "$as_me:$LINENO: result: pre-installed" >&5
11729echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11730 fi
11731fi
4b900473 11732
c6b750e1
DJ
11733echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11734echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11735if test "x${build}" != "x${host}" ; then
2429c060
PB
11736 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11737 # We already found the complete path
b8025f34
AS
11738 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11739 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11740echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11741 else
11742 # Canadian cross, just use what we found
c6b750e1
DJ
11743 echo "$as_me:$LINENO: result: pre-installed" >&5
11744echo "${ECHO_T}pre-installed" >&6
2429c060 11745 fi
be01d343
PB
11746else
11747 ok=yes
11748 case " ${configdirs} " in
11749 *" binutils "*) ;;
11750 *) ok=no ;;
11751 esac
c6b750e1 11752
be01d343
PB
11753 if test $ok = yes; then
11754 # An in-tree tool is available and we can use it
11755 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11756 echo "$as_me:$LINENO: result: just compiled" >&5
11757echo "${ECHO_T}just compiled" >&6
2429c060
PB
11758 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11759 # We already found the complete path
b8025f34
AS
11760 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11761 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11762echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11763 elif test "x$target" = "x$host"; then
11764 # We can use an host tool
11765 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11766 echo "$as_me:$LINENO: result: host tool" >&5
11767echo "${ECHO_T}host tool" >&6
be01d343
PB
11768 else
11769 # We need a cross tool
c6b750e1
DJ
11770 echo "$as_me:$LINENO: result: pre-installed" >&5
11771echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11772 fi
11773fi
4b900473 11774
c6b750e1
DJ
11775echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11776echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11777if test "x${build}" != "x${host}" ; then
2429c060
PB
11778 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11779 # We already found the complete path
b8025f34
AS
11780 ac_dir=`dirname $RANLIB_FOR_TARGET`
11781 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11782echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11783 else
11784 # Canadian cross, just use what we found
c6b750e1
DJ
11785 echo "$as_me:$LINENO: result: pre-installed" >&5
11786echo "${ECHO_T}pre-installed" >&6
2429c060 11787 fi
be01d343
PB
11788else
11789 ok=yes
11790 case " ${configdirs} " in
11791 *" binutils "*) ;;
11792 *) ok=no ;;
11793 esac
c6b750e1 11794
be01d343
PB
11795 if test $ok = yes; then
11796 # An in-tree tool is available and we can use it
11797 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11798 echo "$as_me:$LINENO: result: just compiled" >&5
11799echo "${ECHO_T}just compiled" >&6
2429c060
PB
11800 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11801 # We already found the complete path
b8025f34
AS
11802 ac_dir=`dirname $RANLIB_FOR_TARGET`
11803 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11804echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11805 elif test "x$target" = "x$host"; then
11806 # We can use an host tool
11807 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11808 echo "$as_me:$LINENO: result: host tool" >&5
11809echo "${ECHO_T}host tool" >&6
be01d343
PB
11810 else
11811 # We need a cross tool
c6b750e1
DJ
11812 echo "$as_me:$LINENO: result: pre-installed" >&5
11813echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11814 fi
11815fi
4b900473 11816
c6b750e1
DJ
11817echo "$as_me:$LINENO: checking where to find the target strip" >&5
11818echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11819if test "x${build}" != "x${host}" ; then
2429c060
PB
11820 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11821 # We already found the complete path
b8025f34
AS
11822 ac_dir=`dirname $STRIP_FOR_TARGET`
11823 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11824echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11825 else
11826 # Canadian cross, just use what we found
c6b750e1
DJ
11827 echo "$as_me:$LINENO: result: pre-installed" >&5
11828echo "${ECHO_T}pre-installed" >&6
2429c060 11829 fi
be01d343
PB
11830else
11831 ok=yes
11832 case " ${configdirs} " in
11833 *" binutils "*) ;;
11834 *) ok=no ;;
11835 esac
c6b750e1 11836
be01d343
PB
11837 if test $ok = yes; then
11838 # An in-tree tool is available and we can use it
11839 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11840 echo "$as_me:$LINENO: result: just compiled" >&5
11841echo "${ECHO_T}just compiled" >&6
2429c060
PB
11842 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11843 # We already found the complete path
b8025f34
AS
11844 ac_dir=`dirname $STRIP_FOR_TARGET`
11845 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11846echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11847 elif test "x$target" = "x$host"; then
11848 # We can use an host tool
11849 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11850 echo "$as_me:$LINENO: result: host tool" >&5
11851echo "${ECHO_T}host tool" >&6
be01d343
PB
11852 else
11853 # We need a cross tool
c6b750e1
DJ
11854 echo "$as_me:$LINENO: result: pre-installed" >&5
11855echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11856 fi
11857fi
4b900473 11858
c6b750e1
DJ
11859echo "$as_me:$LINENO: checking where to find the target windres" >&5
11860echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11861if test "x${build}" != "x${host}" ; then
2429c060
PB
11862 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11863 # We already found the complete path
b8025f34
AS
11864 ac_dir=`dirname $WINDRES_FOR_TARGET`
11865 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11866echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11867 else
11868 # Canadian cross, just use what we found
c6b750e1
DJ
11869 echo "$as_me:$LINENO: result: pre-installed" >&5
11870echo "${ECHO_T}pre-installed" >&6
2429c060 11871 fi
be01d343
PB
11872else
11873 ok=yes
11874 case " ${configdirs} " in
11875 *" binutils "*) ;;
11876 *) ok=no ;;
11877 esac
c6b750e1 11878
be01d343
PB
11879 if test $ok = yes; then
11880 # An in-tree tool is available and we can use it
11881 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11882 echo "$as_me:$LINENO: result: just compiled" >&5
11883echo "${ECHO_T}just compiled" >&6
2429c060
PB
11884 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11885 # We already found the complete path
b8025f34
AS
11886 ac_dir=`dirname $WINDRES_FOR_TARGET`
11887 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11888echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11889 elif test "x$target" = "x$host"; then
11890 # We can use an host tool
11891 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11892 echo "$as_me:$LINENO: result: host tool" >&5
11893echo "${ECHO_T}host tool" >&6
be01d343
PB
11894 else
11895 # We need a cross tool
c6b750e1
DJ
11896 echo "$as_me:$LINENO: result: pre-installed" >&5
11897echo "${ECHO_T}pre-installed" >&6
be01d343 11898 fi
a0da8069 11899fi
54752a6b 11900
0c24b341
NC
11901echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11902echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11903if test "x${build}" != "x${host}" ; then
11904 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11905 # We already found the complete path
11906 ac_dir=`dirname $WINDMC_FOR_TARGET`
11907 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11908echo "${ECHO_T}pre-installed in $ac_dir" >&6
11909 else
11910 # Canadian cross, just use what we found
11911 echo "$as_me:$LINENO: result: pre-installed" >&5
11912echo "${ECHO_T}pre-installed" >&6
11913 fi
11914else
11915 ok=yes
11916 case " ${configdirs} " in
11917 *" binutils "*) ;;
11918 *) ok=no ;;
11919 esac
11920
11921 if test $ok = yes; then
11922 # An in-tree tool is available and we can use it
11923 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11924 echo "$as_me:$LINENO: result: just compiled" >&5
11925echo "${ECHO_T}just compiled" >&6
11926 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11927 # We already found the complete path
11928 ac_dir=`dirname $WINDMC_FOR_TARGET`
11929 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11930echo "${ECHO_T}pre-installed in $ac_dir" >&6
11931 elif test "x$target" = "x$host"; then
11932 # We can use an host tool
11933 WINDMC_FOR_TARGET='$(WINDMC)'
11934 echo "$as_me:$LINENO: result: host tool" >&5
11935echo "${ECHO_T}host tool" >&6
11936 else
11937 # We need a cross tool
11938 echo "$as_me:$LINENO: result: pre-installed" >&5
11939echo "${ECHO_T}pre-installed" >&6
11940 fi
11941fi
11942
54752a6b
NN
11943
11944
be01d343 11945
4b900473 11946
a0da8069
NN
11947# Certain tools may need extra flags.
11948AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11949RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11950NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11951
be01d343
PB
11952# When building target libraries, except in a Canadian cross, we use
11953# the same toolchain as the compiler we just built.
11954COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11955COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11956COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11957if test $host = $build; then
11958 case " $configdirs " in
11959 *" gcc "*)
11960 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11961 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11962 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11963 ;;
11964 esac
11965fi
11966
11967
11968
11969
11970
c6b750e1
DJ
11971echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11972echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
11973# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11974if test "${enable_maintainer_mode+set}" = set; then
11975 enableval="$enable_maintainer_mode"
11976 USE_MAINTAINER_MODE=$enableval
11977else
11978 USE_MAINTAINER_MODE=no
c6b750e1
DJ
11979fi;
11980echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11981echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
11982
11983
11984if test "$USE_MAINTAINER_MODE" = yes; then
11985 MAINTAINER_MODE_TRUE=
11986 MAINTAINER_MODE_FALSE='#'
11987else
11988 MAINTAINER_MODE_TRUE='#'
11989 MAINTAINER_MODE_FALSE=
c6b750e1 11990fi
3d5e36ae
AO
11991MAINT=$MAINTAINER_MODE_TRUE
11992
1d39f329
NN
11993# ---------------------
11994# GCC bootstrap support
11995# ---------------------
11996
11997# Stage specific cflags for build.
11998stage1_cflags="-g"
11999case $build in
12000 vax-*-*)
12001 case ${GCC} in
12002 yes) stage1_cflags="-g -Wa,-J" ;;
12003 *) stage1_cflags="-g -J" ;;
12004 esac ;;
1d39f329
NN
12005esac
12006
1d89b610
PB
12007# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12008if test "$GCC" = yes; then
12009 saved_CFLAGS="$CFLAGS"
12010
12011 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12012 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12013 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12014echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12015 cat >conftest.$ac_ext <<_ACEOF
12016/* confdefs.h. */
12017_ACEOF
12018cat confdefs.h >>conftest.$ac_ext
12019cat >>conftest.$ac_ext <<_ACEOF
12020/* end confdefs.h. */
12021
2038f525
PB
12022#if (__GNUC__ < 3) \
12023 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12024 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12025#error http://gcc.gnu.org/PR29382
12026#endif
12027
c6b750e1
DJ
12028int
12029main ()
12030{
12031
12032 ;
12033 return 0;
12034}
12035_ACEOF
12036rm -f conftest.$ac_objext
12037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12038 (eval $ac_compile) 2>conftest.er1
12039 ac_status=$?
12040 grep -v '^ *+' conftest.er1 >conftest.err
12041 rm -f conftest.er1
12042 cat conftest.err >&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); } &&
12045 { ac_try='test -z "$ac_c_werror_flag"
12046 || test ! -s conftest.err'
12047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048 (eval $ac_try) 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; } &&
12052 { ac_try='test -s conftest.$ac_objext'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; }; then
12058 echo "$as_me:$LINENO: result: yes" >&5
12059echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12060else
12061 echo "$as_me: failed program was:" >&5
12062sed 's/^/| /' conftest.$ac_ext >&5
12063
12064echo "$as_me:$LINENO: result: no" >&5
12065echo "${ECHO_T}no" >&6
12066fi
12067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12068
12069 CFLAGS="$saved_CFLAGS"
12070fi
12071
12072
1d39f329 12073
8a0d8a5c
PB
12074# Enable --enable-checking in stage1 of the compiler.
12075# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12076if test "${enable_stage1_checking+set}" = set; then
12077 enableval="$enable_stage1_checking"
12078 stage1_checking=--enable-checking=${enable_stage1_checking}
12079else
5566c1fa 12080 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12081 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12082else
5566c1fa 12083 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12084fi
c6b750e1 12085fi;
8a0d8a5c
PB
12086
12087
1d39f329 12088# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12089# Check whether --enable-werror or --disable-werror was given.
12090if test "${enable_werror+set}" = set; then
12091 enableval="$enable_werror"
c6b750e1 12092
1d39f329 12093else
a0323144 12094 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12095 enable_werror=yes
79fcd0ec
PB
12096else
12097 enable_werror=no
12098fi
c6b750e1 12099fi;
1a6f2dc7
NN
12100case ${enable_werror} in
12101 yes) stage2_werror_flag="--enable-werror-always" ;;
12102 *) stage2_werror_flag="" ;;
1d39f329
NN
12103esac
12104
12105
108a6f8e 12106# Flags needed to enable html installing and building
c6b750e1 12107
108a6f8e
CD
12108# Check whether --with-datarootdir or --without-datarootdir was given.
12109if test "${with_datarootdir+set}" = set; then
12110 withval="$with_datarootdir"
12111 datarootdir="\${prefix}/${withval}"
12112else
12113 datarootdir="\${prefix}/share"
c6b750e1 12114fi;
108a6f8e
CD
12115
12116
12117# Check whether --with-docdir or --without-docdir was given.
12118if test "${with_docdir+set}" = set; then
12119 withval="$with_docdir"
12120 docdir="\${prefix}/${withval}"
12121else
12122 docdir="\${datarootdir}/doc"
c6b750e1 12123fi;
108a6f8e
CD
12124
12125
a3ca38d2
DD
12126# Check whether --with-pdfdir or --without-pdfdir was given.
12127if test "${with_pdfdir+set}" = set; then
12128 withval="$with_pdfdir"
12129 pdfdir="\${prefix}/${withval}"
12130else
12131 pdfdir="\${docdir}"
12132fi;
12133
12134
108a6f8e
CD
12135# Check whether --with-htmldir or --without-htmldir was given.
12136if test "${with_htmldir+set}" = set; then
12137 withval="$with_htmldir"
12138 htmldir="\${prefix}/${withval}"
12139else
12140 htmldir="\${docdir}"
c6b750e1 12141fi;
108a6f8e
CD
12142
12143
12144
12145
12146
b8025f34 12147
c6b750e1
DJ
12148 ac_config_files="$ac_config_files Makefile"
12149cat >confcache <<\_ACEOF
a0da8069
NN
12150# This file is a shell script that caches the results of configure
12151# tests run on this system so they can be shared between configure
c6b750e1
DJ
12152# scripts and configure runs, see configure's option --config-cache.
12153# It is not useful on other systems. If it contains results you don't
12154# want to keep, you may remove or edit it.
a0da8069 12155#
c6b750e1
DJ
12156# config.status only pays attention to the cache file if you give it
12157# the --recheck option to rerun configure.
a0da8069 12158#
c6b750e1
DJ
12159# `ac_cv_env_foo' variables (set or unset) will be overridden when
12160# loading this file, other *unset* `ac_cv_foo' will be assigned the
12161# following values.
12162
12163_ACEOF
12164
a0da8069
NN
12165# The following way of writing the cache mishandles newlines in values,
12166# but we know of no workaround that is simple, portable, and efficient.
12167# So, don't put newlines in cache variables' values.
12168# Ultrix sh set writes to stderr and can't be redirected directly,
12169# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12170{
12171 (set) 2>&1 |
12172 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12173 *ac_space=\ *)
12174 # `set' does not quote correctly, so add quotes (double-quote
12175 # substitution turns \\\\ into \\, and sed turns \\ into \).
12176 sed -n \
12177 "s/'/'\\\\''/g;
12178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12179 ;;
12180 *)
12181 # `set' quotes correctly as required by POSIX, so do not add quotes.
12182 sed -n \
12183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12184 ;;
12185 esac;
12186} |
12187 sed '
12188 t clear
12189 : clear
12190 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12191 t end
12192 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12193 : end' >>confcache
12194if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12195 if test -w $cache_file; then
c6b750e1
DJ
12196 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12197 cat confcache >$cache_file
a0da8069
NN
12198 else
12199 echo "not updating unwritable cache $cache_file"
12200 fi
852e5f18 12201fi
a0da8069 12202rm -f confcache
852e5f18 12203
a0da8069
NN
12204test "x$prefix" = xNONE && prefix=$ac_default_prefix
12205# Let make expand exec_prefix.
12206test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12207
c6b750e1
DJ
12208# VPATH may cause trouble with some makes, so we remove $(srcdir),
12209# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12210# trailing colons and then remove the whole line if VPATH becomes empty
12211# (actually we leave an empty line to preserve line numbers).
a0da8069 12212if test "x$srcdir" = x.; then
c6b750e1
DJ
12213 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12214s/:*\$(srcdir):*/:/;
12215s/:*\${srcdir}:*/:/;
12216s/:*@srcdir@:*/:/;
12217s/^\([^=]*=[ ]*\):*/\1/;
12218s/:*$//;
12219s/^[^=]*=[ ]*$//;
12220}'
a0da8069 12221fi
252b5132 12222
a0da8069
NN
12223# Transform confdefs.h into DEFS.
12224# Protect against shell expansion while executing Makefile rules.
12225# Protect against Makefile macro expansion.
c6b750e1
DJ
12226#
12227# If the first sed substitution is executed (which looks for macros that
12228# take arguments), then we branch to the quote section. Otherwise,
12229# look for a macro that doesn't take arguments.
12230cat >confdef2opt.sed <<\_ACEOF
12231t clear
12232: clear
12233s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12234t quote
12235s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12236t quote
12237d
12238: quote
12239s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12240s,\[,\\&,g
12241s,\],\\&,g
12242s,\$,$$,g
12243p
12244_ACEOF
12245# We use echo to avoid assuming a particular line-breaking character.
12246# The extra dot is to prevent the shell from consuming trailing
12247# line-breaks from the sub-command output. A line-break within
12248# single-quotes doesn't work because, if this script is created in a
12249# platform that uses two characters for line-breaks (e.g., DOS), tr
12250# would break.
12251ac_LF_and_DOT=`echo; echo .`
12252DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12253rm -f confdef2opt.sed
12254
12255
12256ac_libobjs=
12257ac_ltlibobjs=
12258for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12259 # 1. Remove the extension, and $U if already installed.
12260 ac_i=`echo "$ac_i" |
12261 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12262 # 2. Add them.
12263 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12264 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12265done
12266LIBOBJS=$ac_libobjs
852e5f18 12267
c6b750e1 12268LTLIBOBJS=$ac_ltlibobjs
376a0e54 12269
cac3d6c4 12270
c6b750e1
DJ
12271
12272: ${CONFIG_STATUS=./config.status}
12273ac_clean_files_save=$ac_clean_files
12274ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12275{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12276echo "$as_me: creating $CONFIG_STATUS" >&6;}
12277cat >$CONFIG_STATUS <<_ACEOF
12278#! $SHELL
12279# Generated by $as_me.
a0da8069 12280# Run this file to recreate the current configuration.
a0da8069 12281# Compiler output produced by configure, useful for debugging
c6b750e1 12282# configure, is in config.log if it exists.
376a0e54 12283
c6b750e1
DJ
12284debug=false
12285ac_cs_recheck=false
12286ac_cs_silent=false
12287SHELL=\${CONFIG_SHELL-$SHELL}
12288_ACEOF
12289
12290cat >>$CONFIG_STATUS <<\_ACEOF
12291## --------------------- ##
12292## M4sh Initialization. ##
12293## --------------------- ##
12294
12295# Be Bourne compatible
12296if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12297 emulate sh
12298 NULLCMD=:
12299 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12300 # is contrary to our usage. Disable this feature.
12301 alias -g '${1+"$@"}'='"$@"'
12302elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12303 set -o posix
12304fi
12305DUALCASE=1; export DUALCASE # for MKS sh
12306
12307# Support unset when possible.
12308if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12309 as_unset=unset
12310else
12311 as_unset=false
12312fi
12313
12314
12315# Work around bugs in pre-3.0 UWIN ksh.
12316$as_unset ENV MAIL MAILPATH
12317PS1='$ '
12318PS2='> '
12319PS4='+ '
12320
12321# NLS nuisances.
12322for as_var in \
12323 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12324 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12325 LC_TELEPHONE LC_TIME
12326do
12327 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12328 eval $as_var=C; export $as_var
12329 else
12330 $as_unset $as_var
12331 fi
12332done
12333
12334# Required to use basename.
12335if expr a : '\(a\)' >/dev/null 2>&1; then
12336 as_expr=expr
12337else
12338 as_expr=false
12339fi
12340
12341if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12342 as_basename=basename
12343else
12344 as_basename=false
12345fi
12346
12347
12348# Name of the executable.
12349as_me=`$as_basename "$0" ||
12350$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12351 X"$0" : 'X\(//\)$' \| \
12352 X"$0" : 'X\(/\)$' \| \
12353 . : '\(.\)' 2>/dev/null ||
12354echo X/"$0" |
12355 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12356 /^X\/\(\/\/\)$/{ s//\1/; q; }
12357 /^X\/\(\/\).*/{ s//\1/; q; }
12358 s/.*/./; q'`
12359
12360
12361# PATH needs CR, and LINENO needs CR and PATH.
12362# Avoid depending upon Character Ranges.
12363as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12364as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12365as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12366as_cr_digits='0123456789'
12367as_cr_alnum=$as_cr_Letters$as_cr_digits
12368
12369# The user is always right.
12370if test "${PATH_SEPARATOR+set}" != set; then
12371 echo "#! /bin/sh" >conf$$.sh
12372 echo "exit 0" >>conf$$.sh
12373 chmod +x conf$$.sh
12374 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12375 PATH_SEPARATOR=';'
12376 else
12377 PATH_SEPARATOR=:
12378 fi
12379 rm -f conf$$.sh
12380fi
12381
12382
12383 as_lineno_1=$LINENO
12384 as_lineno_2=$LINENO
12385 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12386 test "x$as_lineno_1" != "x$as_lineno_2" &&
12387 test "x$as_lineno_3" = "x$as_lineno_2" || {
12388 # Find who we are. Look in the path if we contain no path at all
12389 # relative or not.
12390 case $0 in
12391 *[\\/]* ) as_myself=$0 ;;
12392 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393for as_dir in $PATH
12394do
12395 IFS=$as_save_IFS
12396 test -z "$as_dir" && as_dir=.
12397 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12398done
12399
12400 ;;
12401 esac
12402 # We did not find ourselves, most probably we were run as `sh COMMAND'
12403 # in which case we are not to be found in the path.
12404 if test "x$as_myself" = x; then
12405 as_myself=$0
12406 fi
12407 if test ! -f "$as_myself"; then
12408 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12409echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12410 { (exit 1); exit 1; }; }
12411 fi
12412 case $CONFIG_SHELL in
12413 '')
12414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12415for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12416do
12417 IFS=$as_save_IFS
12418 test -z "$as_dir" && as_dir=.
12419 for as_base in sh bash ksh sh5; do
12420 case $as_dir in
12421 /*)
12422 if ("$as_dir/$as_base" -c '
12423 as_lineno_1=$LINENO
12424 as_lineno_2=$LINENO
12425 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12426 test "x$as_lineno_1" != "x$as_lineno_2" &&
12427 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12428 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12429 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12430 CONFIG_SHELL=$as_dir/$as_base
12431 export CONFIG_SHELL
12432 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12433 fi;;
12434 esac
12435 done
12436done
12437;;
12438 esac
12439
12440 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12441 # uniformly replaced by the line number. The first 'sed' inserts a
12442 # line-number line before each line; the second 'sed' does the real
12443 # work. The second script uses 'N' to pair each line-number line
12444 # with the numbered line, and appends trailing '-' during
12445 # substitution so that $LINENO is not a special case at line end.
12446 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12447 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12448 sed '=' <$as_myself |
12449 sed '
12450 N
12451 s,$,-,
12452 : loop
12453 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12454 t loop
12455 s,-$,,
12456 s,^['$as_cr_digits']*\n,,
12457 ' >$as_me.lineno &&
12458 chmod +x $as_me.lineno ||
12459 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12460echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12461 { (exit 1); exit 1; }; }
12462
12463 # Don't try to exec as it changes $[0], causing all sort of problems
12464 # (the dirname of $[0] is not the place where we might find the
12465 # original and so on. Autoconf is especially sensible to this).
12466 . ./$as_me.lineno
12467 # Exit status is that of the last command.
12468 exit
12469}
12470
12471
12472case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12473 *c*,-n*) ECHO_N= ECHO_C='
12474' ECHO_T=' ' ;;
12475 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12476 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12477esac
12478
12479if expr a : '\(a\)' >/dev/null 2>&1; then
12480 as_expr=expr
12481else
12482 as_expr=false
12483fi
12484
12485rm -f conf$$ conf$$.exe conf$$.file
12486echo >conf$$.file
12487if ln -s conf$$.file conf$$ 2>/dev/null; then
12488 # We could just check for DJGPP; but this test a) works b) is more generic
12489 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12490 if test -f conf$$.exe; then
12491 # Don't use ln at all; we don't have any links
12492 as_ln_s='cp -p'
12493 else
12494 as_ln_s='ln -s'
12495 fi
12496elif ln conf$$.file conf$$ 2>/dev/null; then
12497 as_ln_s=ln
12498else
12499 as_ln_s='cp -p'
12500fi
12501rm -f conf$$ conf$$.exe conf$$.file
12502
12503if mkdir -p . 2>/dev/null; then
12504 as_mkdir_p=:
12505else
12506 test -d ./-p && rmdir ./-p
12507 as_mkdir_p=false
12508fi
12509
12510as_executable_p="test -f"
12511
12512# Sed expression to map a string onto a valid CPP name.
12513as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12514
12515# Sed expression to map a string onto a valid variable name.
12516as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12517
12518
12519# IFS
12520# We need space, tab and new line, in precisely that order.
12521as_nl='
12522'
12523IFS=" $as_nl"
12524
12525# CDPATH.
12526$as_unset CDPATH
12527
12528exec 6>&1
12529
12530# Open the log real soon, to keep \$[0] and so on meaningful, and to
12531# report actual input values of CONFIG_FILES etc. instead of their
12532# values after options handling. Logging --version etc. is OK.
12533exec 5>>config.log
12534{
12535 echo
12536 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12537## Running $as_me. ##
12538_ASBOX
12539} >&5
12540cat >&5 <<_CSEOF
12541
12542This file was extended by $as_me, which was
12543generated by GNU Autoconf 2.59. Invocation command line was
12544
12545 CONFIG_FILES = $CONFIG_FILES
12546 CONFIG_HEADERS = $CONFIG_HEADERS
12547 CONFIG_LINKS = $CONFIG_LINKS
12548 CONFIG_COMMANDS = $CONFIG_COMMANDS
12549 $ $0 $@
12550
12551_CSEOF
12552echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12553echo >&5
12554_ACEOF
12555
12556# Files that config.status was made for.
12557if test -n "$ac_config_files"; then
12558 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12559fi
12560
12561if test -n "$ac_config_headers"; then
12562 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12563fi
12564
12565if test -n "$ac_config_links"; then
12566 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12567fi
12568
12569if test -n "$ac_config_commands"; then
12570 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12571fi
12572
12573cat >>$CONFIG_STATUS <<\_ACEOF
12574
12575ac_cs_usage="\
12576\`$as_me' instantiates files from templates according to the
12577current configuration.
12578
12579Usage: $0 [OPTIONS] [FILE]...
12580
12581 -h, --help print this help, then exit
12582 -V, --version print version number, then exit
12583 -q, --quiet do not print progress messages
12584 -d, --debug don't remove temporary files
12585 --recheck update $as_me by reconfiguring in the same conditions
12586 --file=FILE[:TEMPLATE]
12587 instantiate the configuration file FILE
12588
12589Configuration files:
12590$config_files
12591
12592Report bugs to <bug-autoconf@gnu.org>."
12593_ACEOF
12594
12595cat >>$CONFIG_STATUS <<_ACEOF
12596ac_cs_version="\\
12597config.status
12598configured by $0, generated by GNU Autoconf 2.59,
12599 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12600
12601Copyright (C) 2003 Free Software Foundation, Inc.
12602This config.status script is free software; the Free Software Foundation
12603gives unlimited permission to copy, distribute and modify it."
12604srcdir=$srcdir
12605INSTALL="$INSTALL"
12606_ACEOF
12607
12608cat >>$CONFIG_STATUS <<\_ACEOF
12609# If no file are specified by the user, then we need to provide default
12610# value. By we need to know if files were specified by the user.
12611ac_need_defaults=:
12612while test $# != 0
a0da8069 12613do
c6b750e1
DJ
12614 case $1 in
12615 --*=*)
12616 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12617 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12618 ac_shift=:
12619 ;;
12620 -*)
12621 ac_option=$1
12622 ac_optarg=$2
12623 ac_shift=shift
12624 ;;
12625 *) # This is not an option, so the user has probably given explicit
12626 # arguments.
12627 ac_option=$1
12628 ac_need_defaults=false;;
12629 esac
12630
12631 case $ac_option in
12632 # Handling of the options.
12633_ACEOF
12634cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12636 ac_cs_recheck=: ;;
12637 --version | --vers* | -V )
12638 echo "$ac_cs_version"; exit 0 ;;
12639 --he | --h)
12640 # Conflict between --help and --header
12641 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12642Try \`$0 --help' for more information." >&5
12643echo "$as_me: error: ambiguous option: $1
12644Try \`$0 --help' for more information." >&2;}
12645 { (exit 1); exit 1; }; };;
12646 --help | --hel | -h )
12647 echo "$ac_cs_usage"; exit 0 ;;
12648 --debug | --d* | -d )
12649 debug=: ;;
12650 --file | --fil | --fi | --f )
12651 $ac_shift
12652 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12653 ac_need_defaults=false;;
12654 --header | --heade | --head | --hea )
12655 $ac_shift
12656 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12657 ac_need_defaults=false;;
12658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12660 ac_cs_silent=: ;;
12661
12662 # This is an error.
12663 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12664Try \`$0 --help' for more information." >&5
12665echo "$as_me: error: unrecognized option: $1
12666Try \`$0 --help' for more information." >&2;}
12667 { (exit 1); exit 1; }; } ;;
12668
12669 *) ac_config_targets="$ac_config_targets $1" ;;
12670
376a0e54 12671 esac
c6b750e1 12672 shift
376a0e54
CM
12673done
12674
c6b750e1 12675ac_configure_extra_args=
376a0e54 12676
c6b750e1
DJ
12677if $ac_cs_silent; then
12678 exec 6>/dev/null
12679 ac_configure_extra_args="$ac_configure_extra_args --silent"
12680fi
376a0e54 12681
c6b750e1
DJ
12682_ACEOF
12683cat >>$CONFIG_STATUS <<_ACEOF
12684if \$ac_cs_recheck; then
12685 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12686 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12687fi
12688
12689_ACEOF
12690
12691
12692
12693
12694
12695cat >>$CONFIG_STATUS <<\_ACEOF
12696for ac_config_target in $ac_config_targets
12697do
12698 case "$ac_config_target" in
12699 # Handling of arguments.
12700 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12701 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12702echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12703 { (exit 1); exit 1; }; };;
12704 esac
12705done
12706
12707# If the user did not use the arguments to specify the items to instantiate,
12708# then the envvar interface is used. Set only those that are not.
12709# We use the long form for the default assignment because of an extremely
12710# bizarre bug on SunOS 4.1.3.
12711if $ac_need_defaults; then
12712 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12713fi
12714
12715# Have a temporary directory for convenience. Make it in the build tree
12716# simply because there is no reason to put it here, and in addition,
12717# creating and moving files from /tmp can sometimes cause problems.
12718# Create a temporary directory, and hook for its removal unless debugging.
12719$debug ||
12720{
12721 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12722 trap '{ (exit 1); exit 1; }' 1 2 13 15
12723}
12724
12725# Create a (secure) tmp directory for tmp files.
12726
12727{
12728 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12729 test -n "$tmp" && test -d "$tmp"
12730} ||
12731{
12732 tmp=./confstat$$-$RANDOM
12733 (umask 077 && mkdir $tmp)
12734} ||
12735{
12736 echo "$me: cannot create a temporary directory in ." >&2
12737 { (exit 1); exit 1; }
12738}
12739
12740_ACEOF
12741
12742cat >>$CONFIG_STATUS <<_ACEOF
12743
12744#
12745# CONFIG_FILES section.
12746#
12747
12748# No need to generate the scripts if there are no CONFIG_FILES.
12749# This happens for instance when ./config.status config.h
12750if test -n "\$CONFIG_FILES"; then
12751 # Protect against being on the right side of a sed subst in config.status.
12752 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12753 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12754s,@SHELL@,$SHELL,;t t
12755s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12756s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12757s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12758s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12759s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12760s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12761s,@exec_prefix@,$exec_prefix,;t t
12762s,@prefix@,$prefix,;t t
12763s,@program_transform_name@,$program_transform_name,;t t
12764s,@bindir@,$bindir,;t t
12765s,@sbindir@,$sbindir,;t t
12766s,@libexecdir@,$libexecdir,;t t
12767s,@datadir@,$datadir,;t t
12768s,@sysconfdir@,$sysconfdir,;t t
12769s,@sharedstatedir@,$sharedstatedir,;t t
12770s,@localstatedir@,$localstatedir,;t t
12771s,@libdir@,$libdir,;t t
12772s,@includedir@,$includedir,;t t
12773s,@oldincludedir@,$oldincludedir,;t t
12774s,@infodir@,$infodir,;t t
12775s,@mandir@,$mandir,;t t
12776s,@build_alias@,$build_alias,;t t
12777s,@host_alias@,$host_alias,;t t
12778s,@target_alias@,$target_alias,;t t
12779s,@DEFS@,$DEFS,;t t
12780s,@ECHO_C@,$ECHO_C,;t t
12781s,@ECHO_N@,$ECHO_N,;t t
12782s,@ECHO_T@,$ECHO_T,;t t
12783s,@LIBS@,$LIBS,;t t
12784s,@build@,$build,;t t
12785s,@build_cpu@,$build_cpu,;t t
12786s,@build_vendor@,$build_vendor,;t t
12787s,@build_os@,$build_os,;t t
12788s,@build_noncanonical@,$build_noncanonical,;t t
12789s,@host_noncanonical@,$host_noncanonical,;t t
12790s,@target_noncanonical@,$target_noncanonical,;t t
12791s,@host@,$host,;t t
12792s,@host_cpu@,$host_cpu,;t t
12793s,@host_vendor@,$host_vendor,;t t
12794s,@host_os@,$host_os,;t t
12795s,@target@,$target,;t t
12796s,@target_cpu@,$target_cpu,;t t
12797s,@target_vendor@,$target_vendor,;t t
12798s,@target_os@,$target_os,;t t
12799s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12800s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12801s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12802s,@LN@,$LN,;t t
12803s,@LN_S@,$LN_S,;t t
12804s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12805s,@build_libsubdir@,$build_libsubdir,;t t
12806s,@build_subdir@,$build_subdir,;t t
12807s,@host_subdir@,$host_subdir,;t t
12808s,@target_subdir@,$target_subdir,;t t
12809s,@CC@,$CC,;t t
12810s,@CFLAGS@,$CFLAGS,;t t
12811s,@LDFLAGS@,$LDFLAGS,;t t
12812s,@CPPFLAGS@,$CPPFLAGS,;t t
12813s,@ac_ct_CC@,$ac_ct_CC,;t t
12814s,@EXEEXT@,$EXEEXT,;t t
12815s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12816s,@CXX@,$CXX,;t t
12817s,@CXXFLAGS@,$CXXFLAGS,;t t
12818s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12819s,@GNATBIND@,$GNATBIND,;t t
12820s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12821s,@GNATMAKE@,$GNATMAKE,;t t
12822s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12823s,@do_compare@,$do_compare,;t t
12824s,@gmplibs@,$gmplibs,;t t
12825s,@gmpinc@,$gmpinc,;t t
12826s,@stage1_languages@,$stage1_languages,;t t
12827s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12828s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12829s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12830s,@tooldir@,$tooldir,;t t
12831s,@build_tooldir@,$build_tooldir,;t t
12832s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12833s,@GDB_TK@,$GDB_TK,;t t
12834s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12835s,@build_configargs@,$build_configargs,;t t
12836s,@build_configdirs@,$build_configdirs,;t t
12837s,@host_configargs@,$host_configargs,;t t
12838s,@configdirs@,$configdirs,;t t
12839s,@target_configargs@,$target_configargs,;t t
1576798e
PB
12840s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12841s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 12842s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
12843s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12844s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12845s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12846s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12847s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12848s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12849s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12850s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12851s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12852s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12853s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12854s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
12855s,@config_shell@,$config_shell,;t t
12856s,@YACC@,$YACC,;t t
12857s,@BISON@,$BISON,;t t
12858s,@M4@,$M4,;t t
12859s,@LEX@,$LEX,;t t
12860s,@FLEX@,$FLEX,;t t
12861s,@MAKEINFO@,$MAKEINFO,;t t
12862s,@EXPECT@,$EXPECT,;t t
12863s,@RUNTEST@,$RUNTEST,;t t
12864s,@AR@,$AR,;t t
12865s,@AS@,$AS,;t t
12866s,@DLLTOOL@,$DLLTOOL,;t t
12867s,@LD@,$LD,;t t
12868s,@LIPO@,$LIPO,;t t
12869s,@NM@,$NM,;t t
12870s,@RANLIB@,$RANLIB,;t t
12871s,@STRIP@,$STRIP,;t t
12872s,@WINDRES@,$WINDRES,;t t
0c24b341 12873s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12874s,@OBJCOPY@,$OBJCOPY,;t t
12875s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
12876s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12877s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12878s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12879s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12880s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12881s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12882s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12883s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12884s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12885s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12886s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12887s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12888s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12889s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12890s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12891s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12892s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12893s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12894s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12895s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12896s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12897s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12898s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12899s,@MAINT@,$MAINT,;t t
12900s,@stage1_cflags@,$stage1_cflags,;t t
12901s,@stage1_checking@,$stage1_checking,;t t
12902s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12903s,@datarootdir@,$datarootdir,;t t
12904s,@docdir@,$docdir,;t t
a3ca38d2 12905s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12906s,@htmldir@,$htmldir,;t t
12907s,@LIBOBJS@,$LIBOBJS,;t t
12908s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12909/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12910s,@serialization_dependencies@,,;t t
a0da8069 12911/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12912s,@host_makefile_frag@,,;t t
a0da8069 12913/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12914s,@target_makefile_frag@,,;t t
a0da8069 12915/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12916s,@alphaieee_frag@,,;t t
a0da8069 12917/@ospace_frag@/r $ospace_frag
c6b750e1 12918s,@ospace_frag@,,;t t
a0da8069 12919CEOF
252b5132 12920
c6b750e1
DJ
12921_ACEOF
12922
12923 cat >>$CONFIG_STATUS <<\_ACEOF
12924 # Split the substitutions into bite-sized pieces for seds with
12925 # small command number limits, like on Digital OSF/1 and HP-UX.
12926 ac_max_sed_lines=48
12927 ac_sed_frag=1 # Number of current file.
12928 ac_beg=1 # First line for current file.
12929 ac_end=$ac_max_sed_lines # Line after last line for current file.
12930 ac_more_lines=:
12931 ac_sed_cmds=
12932 while $ac_more_lines; do
12933 if test $ac_beg -gt 1; then
12934 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12935 else
12936 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12937 fi
12938 if test ! -s $tmp/subs.frag; then
12939 ac_more_lines=false
a0da8069 12940 else
c6b750e1
DJ
12941 # The purpose of the label and of the branching condition is to
12942 # speed up the sed processing (if there are no `@' at all, there
12943 # is no need to browse any of the substitutions).
12944 # These are the two extra sed commands mentioned above.
12945 (echo ':t
12946 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12947 if test -z "$ac_sed_cmds"; then
12948 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12949 else
12950 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12951 fi
12952 ac_sed_frag=`expr $ac_sed_frag + 1`
12953 ac_beg=$ac_end
12954 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12955 fi
c6b750e1
DJ
12956 done
12957 if test -z "$ac_sed_cmds"; then
12958 ac_sed_cmds=cat
852e5f18 12959 fi
c6b750e1 12960fi # test -n "$CONFIG_FILES"
cac3d6c4 12961
c6b750e1
DJ
12962_ACEOF
12963cat >>$CONFIG_STATUS <<\_ACEOF
12964for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12965 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12966 case $ac_file in
12967 - | *:- | *:-:* ) # input from stdin
12968 cat >$tmp/stdin
12969 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12970 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12971 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12972 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12973 * ) ac_file_in=$ac_file.in ;;
a0da8069 12974 esac
252b5132 12975
c6b750e1
DJ
12976 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12977 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12978$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12979 X"$ac_file" : 'X\(//\)[^/]' \| \
12980 X"$ac_file" : 'X\(//\)$' \| \
12981 X"$ac_file" : 'X\(/\)' \| \
12982 . : '\(.\)' 2>/dev/null ||
12983echo X"$ac_file" |
12984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12986 /^X\(\/\/\)$/{ s//\1/; q; }
12987 /^X\(\/\).*/{ s//\1/; q; }
12988 s/.*/./; q'`
12989 { if $as_mkdir_p; then
12990 mkdir -p "$ac_dir"
cac3d6c4 12991 else
c6b750e1
DJ
12992 as_dir="$ac_dir"
12993 as_dirs=
12994 while test ! -d "$as_dir"; do
12995 as_dirs="$as_dir $as_dirs"
12996 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12997$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12998 X"$as_dir" : 'X\(//\)[^/]' \| \
12999 X"$as_dir" : 'X\(//\)$' \| \
13000 X"$as_dir" : 'X\(/\)' \| \
13001 . : '\(.\)' 2>/dev/null ||
13002echo X"$as_dir" |
13003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13005 /^X\(\/\/\)$/{ s//\1/; q; }
13006 /^X\(\/\).*/{ s//\1/; q; }
13007 s/.*/./; q'`
13008 done
13009 test ! -n "$as_dirs" || mkdir $as_dirs
13010 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13011echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13012 { (exit 1); exit 1; }; }; }
13013
13014 ac_builddir=.
252b5132 13015
c6b750e1
DJ
13016if test "$ac_dir" != .; then
13017 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13018 # A "../" for each directory in $ac_dir_suffix.
13019 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13020else
13021 ac_dir_suffix= ac_top_builddir=
13022fi
13023
13024case $srcdir in
13025 .) # No --srcdir option. We are building in place.
13026 ac_srcdir=.
13027 if test -z "$ac_top_builddir"; then
13028 ac_top_srcdir=.
13029 else
13030 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13031 fi ;;
13032 [\\/]* | ?:[\\/]* ) # Absolute path.
13033 ac_srcdir=$srcdir$ac_dir_suffix;
13034 ac_top_srcdir=$srcdir ;;
a0da8069 13035 *) # Relative path.
c6b750e1
DJ
13036 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13037 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13038esac
252b5132 13039
c6b750e1
DJ
13040# Do not use `cd foo && pwd` to compute absolute paths, because
13041# the directories may not exist.
13042case `pwd` in
13043.) ac_abs_builddir="$ac_dir";;
13044*)
13045 case "$ac_dir" in
13046 .) ac_abs_builddir=`pwd`;;
13047 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13048 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13049 esac;;
13050esac
13051case $ac_abs_builddir in
13052.) ac_abs_top_builddir=${ac_top_builddir}.;;
13053*)
13054 case ${ac_top_builddir}. in
13055 .) ac_abs_top_builddir=$ac_abs_builddir;;
13056 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13057 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13058 esac;;
13059esac
13060case $ac_abs_builddir in
13061.) ac_abs_srcdir=$ac_srcdir;;
13062*)
13063 case $ac_srcdir in
13064 .) ac_abs_srcdir=$ac_abs_builddir;;
13065 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13066 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13067 esac;;
13068esac
13069case $ac_abs_builddir in
13070.) ac_abs_top_srcdir=$ac_top_srcdir;;
13071*)
13072 case $ac_top_srcdir in
13073 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13074 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13075 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13076 esac;;
13077esac
252b5132 13078
c6b750e1
DJ
13079
13080 case $INSTALL in
13081 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13082 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13083 esac
252b5132 13084
c6b750e1
DJ
13085 if test x"$ac_file" != x-; then
13086 { echo "$as_me:$LINENO: creating $ac_file" >&5
13087echo "$as_me: creating $ac_file" >&6;}
13088 rm -f "$ac_file"
13089 fi
13090 # Let's still pretend it is `configure' which instantiates (i.e., don't
13091 # use $as_me), people would be surprised to read:
13092 # /* config.h. Generated by config.status. */
13093 if test x"$ac_file" = x-; then
13094 configure_input=
13095 else
13096 configure_input="$ac_file. "
13097 fi
13098 configure_input=$configure_input"Generated from `echo $ac_file_in |
13099 sed 's,.*/,,'` by configure."
13100
13101 # First look for the input files in the build tree, otherwise in the
13102 # src tree.
13103 ac_file_inputs=`IFS=:
13104 for f in $ac_file_in; do
13105 case $f in
13106 -) echo $tmp/stdin ;;
13107 [\\/$]*)
13108 # Absolute (can't be DOS-style, as IFS=:)
13109 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13110echo "$as_me: error: cannot find input file: $f" >&2;}
13111 { (exit 1); exit 1; }; }
13112 echo "$f";;
13113 *) # Relative
13114 if test -f "$f"; then
13115 # Build tree
13116 echo "$f"
13117 elif test -f "$srcdir/$f"; then
13118 # Source tree
13119 echo "$srcdir/$f"
13120 else
13121 # /dev/null tree
13122 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13123echo "$as_me: error: cannot find input file: $f" >&2;}
13124 { (exit 1); exit 1; }; }
13125 fi;;
13126 esac
13127 done` || { (exit 1); exit 1; }
13128_ACEOF
13129cat >>$CONFIG_STATUS <<_ACEOF
13130 sed "$ac_vpsub
13131$extrasub
13132_ACEOF
13133cat >>$CONFIG_STATUS <<\_ACEOF
13134:t
13135/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13136s,@configure_input@,$configure_input,;t t
13137s,@srcdir@,$ac_srcdir,;t t
13138s,@abs_srcdir@,$ac_abs_srcdir,;t t
13139s,@top_srcdir@,$ac_top_srcdir,;t t
13140s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13141s,@builddir@,$ac_builddir,;t t
13142s,@abs_builddir@,$ac_abs_builddir,;t t
13143s,@top_builddir@,$ac_top_builddir,;t t
13144s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13145s,@INSTALL@,$ac_INSTALL,;t t
13146" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13147 rm -f $tmp/stdin
13148 if test x"$ac_file" != x-; then
13149 mv $tmp/out $ac_file
13150 else
13151 cat $tmp/out
13152 rm -f $tmp/out
13153 fi
c148b4cb 13154
c6b750e1
DJ
13155done
13156_ACEOF
c148b4cb 13157
c6b750e1 13158cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13159
c6b750e1
DJ
13160{ (exit 0); exit 0; }
13161_ACEOF
c148b4cb 13162chmod +x $CONFIG_STATUS
c6b750e1
DJ
13163ac_clean_files=$ac_clean_files_save
13164
13165
13166# configure is writing to config.log, and then calls config.status.
13167# config.status does its own redirection, appending to config.log.
13168# Unfortunately, on DOS this fails, as config.log is still kept open
13169# by configure, so config.status won't be able to write to it; its
13170# output is simply discarded. So we exec the FD to /dev/null,
13171# effectively closing config.log, so it can be properly (re)opened and
13172# appended to by config.status. When coming back to configure, we
13173# need to make the FD available again.
13174if test "$no_create" != yes; then
13175 ac_cs_success=:
13176 ac_config_status_args=
13177 test "$silent" = yes &&
13178 ac_config_status_args="$ac_config_status_args --quiet"
13179 exec 5>/dev/null
13180 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13181 exec 5>>config.log
13182 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13183 # would make configure fail if this is the last instruction.
13184 $ac_cs_success || { (exit 1); exit 1; }
13185fi
c148b4cb 13186
This page took 1.173812 seconds and 4 git commands to generate.