*** empty log message ***
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
c6b750e1 3# Generated by GNU Autoconf 2.59.
a0da8069 4#
c6b750e1 5# Copyright (C) 2003 Free Software Foundation, Inc.
a0da8069
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c6b750e1
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
a0da8069 243
c6b750e1
DJ
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
a0da8069 254ac_default_prefix=/usr/local
c6b750e1
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
1576798e 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
a0da8069
NN
277
278# Initialize some variables set by options.
c6b750e1
DJ
279ac_init_help=
280ac_init_version=false
a0da8069
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
c6b750e1 283cache_file=/dev/null
a0da8069 284exec_prefix=NONE
a0da8069 285no_create=
a0da8069
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
a0da8069
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
c6b750e1
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
252b5132 315
a0da8069
NN
316ac_prev=
317for ac_option
318do
a0da8069
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
252b5132 325
c6b750e1 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
c6b750e1 330 case $ac_option in
a0da8069
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 335 bindir=$ac_optarg ;;
a0da8069
NN
336
337 -build | --build | --buil | --bui | --bu)
c6b750e1 338 ac_prev=build_alias ;;
a0da8069 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 340 build_alias=$ac_optarg ;;
a0da8069
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
a0da8069
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
c6b750e1 356 datadir=$ac_optarg ;;
a0da8069
NN
357
358 -disable-* | --disable-*)
c6b750e1 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 360 # Reject names that are not valid shell variable names.
c6b750e1
DJ
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
a0da8069
NN
366
367 -enable-* | --enable-*)
c6b750e1 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 369 # Reject names that are not valid shell variable names.
c6b750e1
DJ
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
376 *) ac_optarg=yes ;;
377 esac
c6b750e1 378 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
c6b750e1 387 exec_prefix=$ac_optarg ;;
a0da8069
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
c6b750e1
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
a0da8069
NN
399
400 -host | --host | --hos | --ho)
c6b750e1 401 ac_prev=host_alias ;;
a0da8069 402 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 403 host_alias=$ac_optarg ;;
a0da8069
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 410 includedir=$ac_optarg ;;
a0da8069
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 415 infodir=$ac_optarg ;;
a0da8069
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 420 libdir=$ac_optarg ;;
a0da8069
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
c6b750e1 427 libexecdir=$ac_optarg ;;
a0da8069
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 436 localstatedir=$ac_optarg ;;
a0da8069
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 441 mandir=$ac_optarg ;;
a0da8069
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 448 | --no-cr | --no-c | -n)
a0da8069
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 462 oldincludedir=$ac_optarg ;;
a0da8069
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 467 prefix=$ac_optarg ;;
a0da8069
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 474 program_prefix=$ac_optarg ;;
a0da8069
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 481 program_suffix=$ac_optarg ;;
a0da8069
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 498 program_transform_name=$ac_optarg ;;
a0da8069
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
c6b750e1 508 sbindir=$ac_optarg ;;
a0da8069
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
c6b750e1 519 sharedstatedir=$ac_optarg ;;
a0da8069
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
c6b750e1 524 site=$ac_optarg ;;
a0da8069
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 529 srcdir=$ac_optarg ;;
a0da8069
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 536 sysconfdir=$ac_optarg ;;
a0da8069
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 539 ac_prev=target_alias ;;
a0da8069 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 541 target_alias=$ac_optarg ;;
a0da8069
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
c6b750e1
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
a0da8069
NN
548
549 -with-* | --with-*)
c6b750e1 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 551 # Reject names that are not valid shell variable names.
c6b750e1
DJ
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
a0da8069 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
558 *) ac_optarg=yes ;;
559 esac
c6b750e1 560 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
561
562 -without-* | --without-*)
c6b750e1 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 564 # Reject names that are not valid shell variable names.
c6b750e1
DJ
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
a0da8069
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 580 x_includes=$ac_optarg ;;
a0da8069
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 587 x_libraries=$ac_optarg ;;
a0da8069 588
c6b750e1
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
a0da8069
NN
592 ;;
593
c6b750e1
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
a0da8069 604 *)
c6b750e1
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
c6b750e1
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
a0da8069 619fi
a0da8069 620
c6b750e1
DJ
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
a0da8069 631
c6b750e1
DJ
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 635do
c6b750e1
DJ
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
a0da8069
NN
641 esac
642done
643
c6b750e1
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
376a0e54 650
c6b750e1
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
a0da8069 666
a0da8069
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
c6b750e1
DJ
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
a0da8069
NN
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
a0da8069 695 else
c6b750e1
DJ
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
740ac_env_AR_set=${AR+set}
741ac_env_AR_value=$AR
742ac_cv_env_AR_set=${AR+set}
743ac_cv_env_AR_value=$AR
744ac_env_AS_set=${AS+set}
745ac_env_AS_value=$AS
746ac_cv_env_AS_set=${AS+set}
747ac_cv_env_AS_value=$AS
748ac_env_DLLTOOL_set=${DLLTOOL+set}
749ac_env_DLLTOOL_value=$DLLTOOL
750ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751ac_cv_env_DLLTOOL_value=$DLLTOOL
752ac_env_LD_set=${LD+set}
753ac_env_LD_value=$LD
754ac_cv_env_LD_set=${LD+set}
755ac_cv_env_LD_value=$LD
756ac_env_LIPO_set=${LIPO+set}
757ac_env_LIPO_value=$LIPO
758ac_cv_env_LIPO_set=${LIPO+set}
759ac_cv_env_LIPO_value=$LIPO
760ac_env_NM_set=${NM+set}
761ac_env_NM_value=$NM
762ac_cv_env_NM_set=${NM+set}
763ac_cv_env_NM_value=$NM
764ac_env_RANLIB_set=${RANLIB+set}
765ac_env_RANLIB_value=$RANLIB
766ac_cv_env_RANLIB_set=${RANLIB+set}
767ac_cv_env_RANLIB_value=$RANLIB
768ac_env_STRIP_set=${STRIP+set}
769ac_env_STRIP_value=$STRIP
770ac_cv_env_STRIP_set=${STRIP+set}
771ac_cv_env_STRIP_value=$STRIP
772ac_env_WINDRES_set=${WINDRES+set}
773ac_env_WINDRES_value=$WINDRES
774ac_cv_env_WINDRES_set=${WINDRES+set}
775ac_cv_env_WINDRES_value=$WINDRES
0c24b341
NC
776ac_env_WINDMC_set=${WINDMC+set}
777ac_env_WINDMC_value=$WINDMC
778ac_cv_env_WINDMC_set=${WINDMC+set}
779ac_cv_env_WINDMC_value=$WINDMC
9a819804
AO
780ac_env_OBJCOPY_set=${OBJCOPY+set}
781ac_env_OBJCOPY_value=$OBJCOPY
782ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
783ac_cv_env_OBJCOPY_value=$OBJCOPY
784ac_env_OBJDUMP_set=${OBJDUMP+set}
785ac_env_OBJDUMP_value=$OBJDUMP
786ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
787ac_cv_env_OBJDUMP_value=$OBJDUMP
788ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
789ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
790ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
793ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
794ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
797ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
798ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
801ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
802ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
805ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
806ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
809ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
810ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
813ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
814ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
817ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
818ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
821ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
822ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
825ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
826ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
829ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
830ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
833ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
834ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
837ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
838ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
841ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
842ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
845ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
0c24b341
NC
848ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
849ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
850ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
c6b750e1
DJ
852
853#
854# Report the --help message.
855#
856if test "$ac_init_help" = "long"; then
857 # Omit some internal or obsolete options to make the list less imposing.
858 # This message is too long to be a string in the A/UX 3.1 sh.
859 cat <<_ACEOF
860\`configure' configures this package to adapt to many kinds of systems.
861
862Usage: $0 [OPTION]... [VAR=VALUE]...
863
864To assign environment variables (e.g., CC, CFLAGS...), specify them as
865VAR=VALUE. See below for descriptions of some of the useful variables.
866
867Defaults for the options are specified in brackets.
868
869Configuration:
870 -h, --help display this help and exit
871 --help=short display options specific to this package
872 --help=recursive display the short help of all the included packages
873 -V, --version display version information and exit
874 -q, --quiet, --silent do not print \`checking...' messages
875 --cache-file=FILE cache test results in FILE [disabled]
876 -C, --config-cache alias for \`--cache-file=config.cache'
877 -n, --no-create do not create output files
878 --srcdir=DIR find the sources in DIR [configure dir or \`..']
879
880_ACEOF
881
882 cat <<_ACEOF
883Installation directories:
884 --prefix=PREFIX install architecture-independent files in PREFIX
885 [$ac_default_prefix]
886 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
887 [PREFIX]
888
889By default, \`make install' will install all the files in
890\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
891an installation prefix other than \`$ac_default_prefix' using \`--prefix',
892for instance \`--prefix=\$HOME'.
893
894For better control, use the options below.
895
896Fine tuning of the installation directories:
897 --bindir=DIR user executables [EPREFIX/bin]
898 --sbindir=DIR system admin executables [EPREFIX/sbin]
899 --libexecdir=DIR program executables [EPREFIX/libexec]
900 --datadir=DIR read-only architecture-independent data [PREFIX/share]
901 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
902 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
903 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
904 --libdir=DIR object code libraries [EPREFIX/lib]
905 --includedir=DIR C header files [PREFIX/include]
906 --oldincludedir=DIR C header files for non-gcc [/usr/include]
907 --infodir=DIR info documentation [PREFIX/info]
908 --mandir=DIR man documentation [PREFIX/man]
909_ACEOF
910
911 cat <<\_ACEOF
912
913Program names:
914 --program-prefix=PREFIX prepend PREFIX to installed program names
915 --program-suffix=SUFFIX append SUFFIX to installed program names
916 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
917
918System types:
919 --build=BUILD configure for building on BUILD [guessed]
920 --host=HOST cross-compile to build programs to run on HOST [BUILD]
921 --target=TARGET configure for building compilers for TARGET [HOST]
922_ACEOF
a0da8069 923fi
a0da8069 924
c6b750e1
DJ
925if test -n "$ac_init_help"; then
926
927 cat <<\_ACEOF
928
929Optional Features:
930 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
931 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
521ec477
DD
932 --enable-libada build libada directory
933 --enable-libssp build libssp directory
934 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 935 stage1. Mostly useful for compiler development.
521ec477
DD
936 --enable-objc-gc enable use of Boehm's garbage collector with the
937 GNU Objective-C runtime
938 --enable-bootstrap enable bootstrapping [yes if native build]
939 --enable-serial-[{host,target,build}-]configure
940 force sequential configuration of
c6b750e1 941 sub-packages for the host, target or build
521ec477 942 machine, or all sub-packages
c6b750e1
DJ
943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
521ec477
DD
945 --enable-stage1-checking[=all] choose additional checking for stage1
946 of the compiler
c6b750e1
DJ
947 --enable-werror enable -Werror in bootstrap stage2 and later
948
949Optional Packages:
950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
952 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
953 --with-mpfr-dir=PATH this option has been REMOVED
954 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
521ec477
DD
958 specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH specify directory for the installed MPFR library
960 --with-gmp-dir=PATH this option has been REMOVED
961 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
521ec477
DD
964 --with-gmp-include=PATH specify directory for installed GMP include files
965 --with-gmp-lib=PATH specify directory for the installed GMP library
966 --with-build-sysroot=SYSROOT
c6b750e1 967 use sysroot as the system root during the build
8a6ee3ab
JM
968 --with-debug-prefix-map='A=B C=D ...'
969 map A to B, C to D ... in debug information
521ec477 970 --with-build-time-tools=PATH
c6b750e1 971 use given path to find target tools during the build
521ec477
DD
972 --with-datarootdir use datarootdir as the data root directory.
973 --with-docdir install documentation in this directory.
974 --with-pdfdir install pdf in this directory.
975 --with-htmldir install html in this directory.
c6b750e1
DJ
976
977Some influential environment variables:
978 CC C compiler command
979 CFLAGS C compiler flags
980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
981 nonstandard directory <lib dir>
982 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
983 headers in a nonstandard directory <include dir>
18f6b6ee
PB
984 CXX C++ compiler command
985 CXXFLAGS C++ compiler flags
9a819804
AO
986 AR AR for the host
987 AS AS for the host
988 DLLTOOL DLLTOOL for the host
989 LD LD for the host
990 LIPO LIPO for the host
991 NM NM for the host
992 RANLIB RANLIB for the host
993 STRIP STRIP for the host
994 WINDRES WINDRES for the host
0c24b341 995 WINDMC WINDMC for the host
9a819804
AO
996 OBJCOPY OBJCOPY for the host
997 OBJDUMP OBJDUMP for the host
998 CC_FOR_TARGET
999 CC for the target
1000 CXX_FOR_TARGET
1001 CXX for the target
1002 GCC_FOR_TARGET
1003 GCC for the target
1004 GCJ_FOR_TARGET
1005 GCJ for the target
1006 GFORTRAN_FOR_TARGET
1007 GFORTRAN for the target
1008 AR_FOR_TARGET
1009 AR for the target
1010 AS_FOR_TARGET
1011 AS for the target
1012 DLLTOOL_FOR_TARGET
1013 DLLTOOL for the target
1014 LD_FOR_TARGET
1015 LD for the target
1016 LIPO_FOR_TARGET
1017 LIPO for the target
1018 NM_FOR_TARGET
1019 NM for the target
1020 OBJDUMP_FOR_TARGET
1021 OBJDUMP for the target
1022 RANLIB_FOR_TARGET
1023 RANLIB for the target
1024 STRIP_FOR_TARGET
1025 STRIP for the target
1026 WINDRES_FOR_TARGET
1027 WINDRES for the target
0c24b341
NC
1028 WINDMC_FOR_TARGET
1029 WINDMC for the target
c6b750e1
DJ
1030
1031Use these variables to override the choices made by `configure' or to help
1032it to find libraries and programs with nonstandard names/locations.
1033
1034_ACEOF
1035fi
1036
1037if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
1039 ac_popdir=`pwd`
1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1041 test -d $ac_dir || continue
1042 ac_builddir=.
1043
1044if test "$ac_dir" != .; then
1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048else
1049 ac_dir_suffix= ac_top_builddir=
1050fi
1051
1052case $srcdir in
1053 .) # No --srcdir option. We are building in place.
1054 ac_srcdir=.
1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1061 ac_srcdir=$srcdir$ac_dir_suffix;
1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066esac
1067
1068# Do not use `cd foo && pwd` to compute absolute paths, because
1069# the directories may not exist.
1070case `pwd` in
1071.) ac_abs_builddir="$ac_dir";;
1072*)
1073 case "$ac_dir" in
1074 .) ac_abs_builddir=`pwd`;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1077 esac;;
1078esac
1079case $ac_abs_builddir in
1080.) ac_abs_top_builddir=${ac_top_builddir}.;;
1081*)
1082 case ${ac_top_builddir}. in
1083 .) ac_abs_top_builddir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1086 esac;;
1087esac
1088case $ac_abs_builddir in
1089.) ac_abs_srcdir=$ac_srcdir;;
1090*)
1091 case $ac_srcdir in
1092 .) ac_abs_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_srcdir=$ac_top_srcdir;;
1099*)
1100 case $ac_top_srcdir in
1101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1104 esac;;
1105esac
1106
1107 cd $ac_dir
1108 # Check for guested configure; otherwise get Cygnus style configure.
1109 if test -f $ac_srcdir/configure.gnu; then
1110 echo
1111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
1113 echo
1114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
1116 test -f $ac_srcdir/configure.in; then
1117 echo
1118 $ac_configure --help
1119 else
1120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1121 fi
1122 cd $ac_popdir
1123 done
1124fi
1125
1126test -n "$ac_init_help" && exit 0
1127if $ac_init_version; then
1128 cat <<\_ACEOF
1129
1130Copyright (C) 2003 Free Software Foundation, Inc.
1131This configure script is free software; the Free Software Foundation
1132gives unlimited permission to copy, distribute and modify it.
1133_ACEOF
1134 exit 0
1135fi
1136exec 5>config.log
1137cat >&5 <<_ACEOF
1138This file contains any messages produced by compilers while
1139running configure, to aid debugging if configure makes a mistake.
1140
1141It was created by $as_me, which was
1142generated by GNU Autoconf 2.59. Invocation command line was
1143
1144 $ $0 $@
1145
1146_ACEOF
1147{
1148cat <<_ASUNAME
1149## --------- ##
1150## Platform. ##
1151## --------- ##
1152
1153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158
1159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1161
1162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1165hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1169
1170_ASUNAME
1171
1172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173for as_dir in $PATH
1174do
1175 IFS=$as_save_IFS
1176 test -z "$as_dir" && as_dir=.
1177 echo "PATH: $as_dir"
1178done
1179
1180} >&5
1181
1182cat >&5 <<_ACEOF
1183
1184
1185## ----------- ##
1186## Core tests. ##
1187## ----------- ##
1188
1189_ACEOF
1190
1191
1192# Keep a trace of the command line.
1193# Strip out --no-create and --no-recursion so they do not pile up.
1194# Strip out --silent because we don't want to record it for future runs.
1195# Also quote any args containing shell meta-characters.
1196# Make two passes to allow for proper duplicate-argument suppression.
1197ac_configure_args=
1198ac_configure_args0=
1199ac_configure_args1=
1200ac_sep=
1201ac_must_keep_next=false
1202for ac_pass in 1 2
1203do
1204 for ac_arg
1205 do
1206 case $ac_arg in
1207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 continue ;;
1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213 esac
1214 case $ac_pass in
1215 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216 2)
1217 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218 if test $ac_must_keep_next = true; then
1219 ac_must_keep_next=false # Got value, back to normal.
1220 else
1221 case $ac_arg in
1222 *=* | --config-cache | -C | -disable-* | --disable-* \
1223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225 | -with-* | --with-* | -without-* | --without-* | --x)
1226 case "$ac_configure_args0 " in
1227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1228 esac
1229 ;;
1230 -* ) ac_must_keep_next=true ;;
1231 esac
1232 fi
1233 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234 # Get rid of the leading space.
1235 ac_sep=" "
1236 ;;
1237 esac
1238 done
1239done
1240$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1242
1243# When interrupted or exit'd, cleanup temporary files, and complete
1244# config.log. We remove comments because anyway the quotes in there
1245# would cause problems or look ugly.
1246# WARNING: Be sure not to use single quotes in there, as some shells,
1247# such as our DU 5.0 friend, will then `close' the trap.
1248trap 'exit_status=$?
1249 # Save into config.log some information that might help in debugging.
1250 {
1251 echo
1252
1253 cat <<\_ASBOX
1254## ---------------- ##
1255## Cache variables. ##
1256## ---------------- ##
1257_ASBOX
1258 echo
1259 # The following way of writing the cache mishandles newlines in values,
1260{
1261 (set) 2>&1 |
1262 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263 *ac_space=\ *)
1264 sed -n \
1265 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1267 ;;
1268 *)
1269 sed -n \
1270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1271 ;;
1272 esac;
1273}
1274 echo
1275
1276 cat <<\_ASBOX
1277## ----------------- ##
1278## Output variables. ##
1279## ----------------- ##
1280_ASBOX
1281 echo
1282 for ac_var in $ac_subst_vars
1283 do
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1286 done | sort
1287 echo
1288
1289 if test -n "$ac_subst_files"; then
1290 cat <<\_ASBOX
1291## ------------- ##
1292## Output files. ##
1293## ------------- ##
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_files
1297 do
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1300 done | sort
1301 echo
1302 fi
1303
1304 if test -s confdefs.h; then
1305 cat <<\_ASBOX
1306## ----------- ##
1307## confdefs.h. ##
1308## ----------- ##
1309_ASBOX
1310 echo
1311 sed "/^$/d" confdefs.h | sort
1312 echo
1313 fi
1314 test "$ac_signal" != 0 &&
1315 echo "$as_me: caught signal $ac_signal"
1316 echo "$as_me: exit $exit_status"
1317 } >&5
1318 rm -f core *.core &&
1319 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1320 exit $exit_status
1321 ' 0
1322for ac_signal in 1 2 13 15; do
1323 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324done
1325ac_signal=0
1326
1327# confdefs.h avoids OS command line length limits that DEFS can exceed.
1328rm -rf conftest* confdefs.h
1329# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1330echo >confdefs.h
1331
1332# Predefined preprocessor variables.
1333
1334cat >>confdefs.h <<_ACEOF
1335#define PACKAGE_NAME "$PACKAGE_NAME"
1336_ACEOF
1337
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_VERSION "$PACKAGE_VERSION"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_STRING "$PACKAGE_STRING"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356_ACEOF
1357
1358
1359# Let the site file select an alternate cache file if it wants to.
a0da8069 1360# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1361if test -z "$CONFIG_SITE"; then
1362 if test "x$prefix" != xNONE; then
1363 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 else
1365 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1366 fi
1367fi
1368for ac_site_file in $CONFIG_SITE; do
1369 if test -r "$ac_site_file"; then
c6b750e1
DJ
1370 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1371echo "$as_me: loading site script $ac_site_file" >&6;}
1372 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1373 . "$ac_site_file"
1374 fi
1375done
1376
1377if test -r "$cache_file"; then
c6b750e1
DJ
1378 # Some versions of bash will fail to source /dev/null (special
1379 # files actually), so we avoid doing that.
1380 if test -f "$cache_file"; then
1381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1382echo "$as_me: loading cache $cache_file" >&6;}
1383 case $cache_file in
1384 [\\/]* | ?:[\\/]* ) . $cache_file;;
1385 *) . ./$cache_file;;
1386 esac
1387 fi
a0da8069 1388else
c6b750e1
DJ
1389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1390echo "$as_me: creating cache $cache_file" >&6;}
1391 >$cache_file
1392fi
1393
1394# Check that the precious variables saved in the cache have kept the same
1395# value.
1396ac_cache_corrupted=false
1397for ac_var in `(set) 2>&1 |
1398 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400 eval ac_new_set=\$ac_env_${ac_var}_set
1401 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402 eval ac_new_val="\$ac_env_${ac_var}_value"
1403 case $ac_old_set,$ac_new_set in
1404 set,)
1405 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1406echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1408 ,set)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,);;
1413 *)
1414 if test "x$ac_old_val" != "x$ac_new_val"; then
1415 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1416echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1417 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1418echo "$as_me: former value: $ac_old_val" >&2;}
1419 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1420echo "$as_me: current value: $ac_new_val" >&2;}
1421 ac_cache_corrupted=:
1422 fi;;
1423 esac
1424 # Pass precious variables to config.status.
1425 if test "$ac_new_set" = set; then
1426 case $ac_new_val in
1427 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1429 *) ac_arg=$ac_var=$ac_new_val ;;
1430 esac
1431 case " $ac_configure_args " in
1432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1433 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1434 esac
1435 fi
1436done
1437if $ac_cache_corrupted; then
1438 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1439echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1440 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1441echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442 { (exit 1); exit 1; }; }
a0da8069
NN
1443fi
1444
1445ac_ext=c
a0da8069 1446ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449ac_compiler_gnu=$ac_cv_c_compiler_gnu
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
a0da8069
NN
1463
1464
75778ec4 1465
c6b750e1
DJ
1466
1467
1468
1469
1470
1471# Find the build, host, and target systems.
a0da8069 1472ac_aux_dir=
315b3b02 1473for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1474 if test -f $ac_dir/install-sh; then
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
1478 elif test -f $ac_dir/install.sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
c6b750e1
DJ
1482 elif test -f $ac_dir/shtool; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
a0da8069
NN
1486 fi
1487done
1488if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
a0da8069 1492fi
c6b750e1
DJ
1493ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1496
c6b750e1
DJ
1497# Make sure we can run config.sub.
1498$ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1502
1503echo "$as_me:$LINENO: checking build system type" >&5
1504echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
1508 ac_cv_build_alias=$build_alias
1509test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1519
1520fi
1521echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522echo "${ECHO_T}$ac_cv_build" >&6
1523build=$ac_cv_build
1524build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1527
a0da8069 1528
c6b750e1
DJ
1529 case ${build_alias} in
1530 "") build_noncanonical=${build} ;;
1531 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1532esac
1533
1534
cac3d6c4 1535
c6b750e1
DJ
1536 case ${host_alias} in
1537 "") host_noncanonical=${build_noncanonical} ;;
1538 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1539esac
1540
cac3d6c4 1541
c6b750e1
DJ
1542
1543 case ${target_alias} in
1544 "") target_noncanonical=${host_noncanonical} ;;
1545 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1546esac
1547
cac3d6c4 1548
c6b750e1
DJ
1549
1550
1551test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1552 test "$program_prefix$program_suffix$program_transform_name" = \
1553 NONENONEs,x,x, &&
c6b750e1 1554 program_transform_name=s,y,y,
cac3d6c4 1555
c6b750e1
DJ
1556echo "$as_me:$LINENO: checking host system type" >&5
1557echo $ECHO_N "checking host system type... $ECHO_C" >&6
1558if test "${ac_cv_host+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1560else
c6b750e1
DJ
1561 ac_cv_host_alias=$host_alias
1562test -z "$ac_cv_host_alias" &&
1563 ac_cv_host_alias=$ac_cv_build_alias
1564ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1568
1569fi
1570echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1571echo "${ECHO_T}$ac_cv_host" >&6
1572host=$ac_cv_host
1573host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578echo "$as_me:$LINENO: checking target system type" >&5
1579echo $ECHO_N "checking target system type... $ECHO_C" >&6
1580if test "${ac_cv_target+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
1583 ac_cv_target_alias=$target_alias
1584test "x$ac_cv_target_alias" = "x" &&
1585 ac_cv_target_alias=$ac_cv_host_alias
1586ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1590
cac3d6c4 1591fi
c6b750e1
DJ
1592echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1593echo "${ECHO_T}$ac_cv_target" >&6
1594target=$ac_cv_target
1595target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598
1599
1600# The aliases save the names the user supplied, while $host etc.
1601# will get canonicalized.
1602test -n "$target_alias" &&
1603 test "$program_prefix$program_suffix$program_transform_name" = \
1604 NONENONEs,x,x, &&
1605 program_prefix=${target_alias}-
a0da8069 1606test "$program_prefix" != NONE &&
c6b750e1 1607 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1608# Use a double $ so make ignores it.
1609test "$program_suffix" != NONE &&
c6b750e1
DJ
1610 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1611# Double any \ or $. echo might interpret backslashes.
1612# By default was `s,x,x', remove it if useless.
1613cat <<\_ACEOF >conftest.sed
1614s/[\\$]/&&/g;s/;s,x,x,$//
1615_ACEOF
1616program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1617rm conftest.sed
cac3d6c4 1618
a0da8069
NN
1619
1620
e5c3f801
NN
1621# Get 'install' or 'install-sh' and its variants.
1622# Find a good install program. We prefer a C program (faster),
1623# so one script is as good as another. But avoid the broken or
1624# incompatible versions:
1625# SysV /etc/install, /usr/sbin/install
1626# SunOS /usr/etc/install
1627# IRIX /sbin/install
1628# AIX /bin/install
c6b750e1 1629# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1633# OS/2's system install, which has a completely different semantic
e5c3f801 1634# ./install, which can be erroneously created by make from ./install.sh.
c6b750e1
DJ
1635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1637if test -z "$INSTALL"; then
c6b750e1
DJ
1638if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1647case $as_dir/ in
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1651 /usr/ucb/* ) ;;
1652 *)
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1655 # by default.
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1659 if test $ac_prog = install &&
c6b750e1 1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1661 # AIX install. It has an incompatible calling convention.
1662 :
c6b750e1
DJ
1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1666 :
e5c3f801 1667 else
c6b750e1
DJ
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
e5c3f801
NN
1670 fi
1671 fi
1672 done
c6b750e1
DJ
1673 done
1674 ;;
1675esac
1676done
1677
e5c3f801
NN
1678
1679fi
1680 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1681 INSTALL=$ac_cv_path_install
e5c3f801
NN
1682 else
1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
1685 # break other packages using the cache if that directory is
1686 # removed, or if the path is relative.
c6b750e1 1687 INSTALL=$ac_install_sh
e5c3f801
NN
1688 fi
1689fi
c6b750e1
DJ
1690echo "$as_me:$LINENO: result: $INSTALL" >&5
1691echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1692
1693# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694# It thinks the first close brace ends the variable substitution.
1695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1696
c6b750e1 1697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1698
1699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1700
c6b750e1
DJ
1701echo "$as_me:$LINENO: checking whether ln works" >&5
1702echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1703if test "${acx_cv_prog_LN+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1705else
1706 rm -f conftestdata_t
1707echo >conftestdata_f
1708if ln conftestdata_f conftestdata_t 2>/dev/null
1709then
1710 acx_cv_prog_LN=ln
1711else
1712 acx_cv_prog_LN=no
1713fi
1714rm -f conftestdata_f conftestdata_t
1715
1716fi
1717if test $acx_cv_prog_LN = no; then
1718 LN="cp"
c6b750e1
DJ
1719 echo "$as_me:$LINENO: result: no, using $LN" >&5
1720echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1721else
1722 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1723 echo "$as_me:$LINENO: result: yes" >&5
1724echo "${ECHO_T}yes" >&6
656fdd47
PB
1725fi
1726
c6b750e1
DJ
1727echo "$as_me:$LINENO: checking whether ln -s works" >&5
1728echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1729LN_S=$as_ln_s
1730if test "$LN_S" = "ln -s"; then
1731 echo "$as_me:$LINENO: result: yes" >&5
1732echo "${ECHO_T}yes" >&6
cac3d6c4 1733else
c6b750e1
DJ
1734 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1735echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1736fi
1737
e5c3f801 1738
252b5132 1739### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1740### If we are on Windows, search for the shell. This will permit people
1741### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1742### without also having to set CONFIG_SHELL. This code will work when
1743### using bash, which sets OSTYPE.
1744case "${OSTYPE}" in
1745*win32*)
a0da8069
NN
1746 if test x${CONFIG_SHELL} = x ; then
1747 if test ! -f /bin/sh ; then
1748 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1749 CONFIG_SHELL=${SHELL}
1750 export CONFIG_SHELL
1751 else
1752 for prog in sh sh.exe bash bash.exe; do
1753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1754 for dir in $PATH; do
1755 test -z "$dir" && dir=.
1756 if test -f $dir/$prog; then
1757 CONFIG_SHELL=$dir/$prog
1758 export CONFIG_SHELL
1759 break
1760 fi
1761 done
1762 IFS="$save_ifs"
1763 test -n "${CONFIG_SHELL}" && break
1764 done
1765 fi
1766 fi
1767 fi
1768 ;;
1769esac
1770
1771config_shell=${CONFIG_SHELL-/bin/sh}
1772
252b5132
RH
1773progname=$0
1774# if PWD already has a value, it is probably wrong.
a0da8069 1775if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1776
92f01d61
JM
1777# Export original configure arguments for use by sub-configures.
1778# Quote arguments with shell meta charatcers.
1779TOPLEVEL_CONFIGURE_ARGUMENTS=
1780set -- "$progname" "$@"
a4708fba
JM
1781for ac_arg
1782do
92f01d61 1783 case "$ac_arg" in
ffa8bd48 1784 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
92f01d61
JM
1785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1786 # if the argument is of the form -foo=baz, quote the baz part only
1787 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1788 *) ;;
1789 esac
1790 # Add the quoted argument to the list.
1791 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1792done
2444379b
BE
1793if test "$silent" = yes; then
1794 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1795fi
92f01d61
JM
1796# Remove the initial space we just introduced and, as these will be
1797# expanded by make, quote '$'.
1798TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1799
75205f78 1800
a0da8069 1801moveifchange=${srcdir}/move-if-change
252b5132 1802
0fdbe983
DJ
1803srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1804
1805# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1806# a relative path.
1807if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1808 INSTALL="${srcpwd}/install-sh -c"
1809fi
1810
a0da8069
NN
1811# Set srcdir to "." if that's what it is.
1812# This is important for multilib support.
1813pwd=`${PWDCMD-pwd}`
a0da8069
NN
1814if test "${pwd}" = "${srcpwd}" ; then
1815 srcdir=.
252b5132
RH
1816fi
1817
a0da8069 1818topsrcdir=$srcpwd
252b5132 1819
a0da8069 1820extra_host_args=
afefada0 1821
a0da8069
NN
1822### To add a new directory to the tree, first choose whether it is a target
1823### or a host dependent tool. Then put it into the appropriate list
1824### (library or tools, host or target), doing a dependency sort.
252b5132 1825
c6b750e1 1826# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1827# configdirs, or target_configdirs; see the serialization section below.
252b5132 1828
c6b750e1
DJ
1829# Dependency sorting is only needed when *configuration* must be done in
1830# a particular order. In all cases a dependency should be specified in
a0da8069 1831# the Makefile, whether or not it's implicitly specified here.
252b5132 1832
a0da8069
NN
1833# Double entries in build_configdirs, configdirs, or target_configdirs may
1834# cause circular dependencies and break everything horribly.
252b5132 1835
6a9cf61e
PB
1836# these library is used by various programs built for the build
1837# environment
1838#
1839build_libs="build-libiberty"
1840
1841# these tools are built for the build environment
ee025550 1842build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1843
a0da8069
NN
1844# these libraries are used by various programs built for the host environment
1845#
4b900473 1846host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1847
a0da8069
NN
1848# these tools are built for the host environment
1849# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1850# know that we are building the simulator.
1851# binutils, gas and ld appear in that order because it makes sense to run
1852# "make check" in that particular order.
b00612cc 1853host_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
1854
1855# libgcj represents the runtime libraries only used by gcj.
1856libgcj="target-libffi \
a0da8069
NN
1857 target-zlib \
1858 target-qthreads \
1859 target-libjava"
1860
1861# these libraries are built for the target environment, and are built after
1862# the host libraries and the host tools (which may be a cross compiler)
1863#
b1299c4e
DJ
1864target_libraries="target-libgcc \
1865 target-libiberty \
a0da8069
NN
1866 target-libgloss \
1867 target-newlib \
cff87f51 1868 target-libgomp \
b9459e83 1869 target-libstdc++-v3 \
4b1cb4fe 1870 target-libmudflap \
bb780410 1871 target-libssp \
4b1cb4fe 1872 target-libgfortran \
4f0ef2d8 1873 target-boehm-gc \
83326456 1874 ${libgcj} \
a2592b1b 1875 target-libobjc \
cff87f51 1876 target-libada"
a0da8069 1877
9c14acb8
NN
1878# these tools are built using the target libraries, and are intended to
1879# run only in the target environment
a0da8069 1880#
9c14acb8 1881# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1882# list belongs in this list. those programs are also very likely
1883# candidates for the "native_only" list which follows
1884#
a3dd767d 1885target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1886
a0da8069 1887################################################################################
252b5132 1888
a0da8069
NN
1889## All tools belong in one of the four categories, and are assigned above
1890## We assign ${configdirs} this way to remove all embedded newlines. This
1891## is important because configure will choke if they ever get through.
1892## ${configdirs} is directories we build using the host tools.
1893## ${target_configdirs} is directories we build using the target tools.
a0da8069 1894configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1895target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1896build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1897
a0da8069 1898################################################################################
252b5132 1899
a0da8069 1900srcname="gnu development package"
252b5132 1901
a0da8069
NN
1902# This gets set non-empty for some net releases of packages.
1903appdirs=""
252b5132 1904
a0da8069
NN
1905# Define is_cross_compiler to save on calls to 'test'.
1906is_cross_compiler=
1907if test x"${host}" = x"${target}" ; then
1908 is_cross_compiler=no
252b5132 1909else
a0da8069 1910 is_cross_compiler=yes
c6b750e1 1911fi
252b5132 1912
9175bfc0 1913# Find the build and target subdir names.
dd12c3a8 1914
66a79c16
DJ
1915# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1916# have matching libraries, they should use host libraries: Makefile.tpl
1917# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1918# However, they still use the build modules, because the corresponding
1919# host modules (e.g. bison) are only built for the host when bootstrap
1920# finishes. So:
1921# - build_subdir is where we find build modules, and never changes.
1922# - build_libsubdir is where we find build libraries, and can be overridden.
1923
1924# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1925build_subdir="build-${build_noncanonical}"
c6b750e1 1926
66a79c16
DJ
1927# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1928if test "${with_build_libsubdir+set}" = set; then
1929 withval="$with_build_libsubdir"
1930 build_libsubdir="$withval"
1931else
1932 build_libsubdir="$build_subdir"
c6b750e1 1933fi;
b00612cc
PB
1934# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1935if ( test $srcdir = . && test -d gcc ) \
1936 || test -d $srcdir/../host-${host_noncanonical}; then
1937 host_subdir="host-${host_noncanonical}"
1938else
1939 host_subdir=.
1940fi
dd12c3a8
NN
1941# No prefix.
1942target_subdir=${target_noncanonical}
c6b750e1 1943
252b5132 1944
a0da8069
NN
1945# Skipdirs are removed silently.
1946skipdirs=
1947# Noconfigdirs are removed loudly.
1948noconfigdirs=""
252b5132 1949
a0da8069
NN
1950use_gnu_ld=
1951# Make sure we don't let GNU ld be added if we didn't want it.
1952if test x$with_gnu_ld = xno ; then
1953 use_gnu_ld=no
1954 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1955fi
1956
a0da8069
NN
1957use_gnu_as=
1958# Make sure we don't let GNU as be added if we didn't want it.
1959if test x$with_gnu_as = xno ; then
1960 use_gnu_as=no
1961 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1962fi
1963
c6b750e1 1964# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1965# it's not even worth trying to configure, much less build, that tool.
252b5132 1966
a0da8069
NN
1967case ${with_x} in
1968 yes | "") ;; # the default value for this tree is that X11 is available
1969 no)
675c6968 1970 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1971 # We won't be able to build gdbtk without X.
c6b750e1 1972 enable_gdbtk=no
a0da8069
NN
1973 ;;
1974 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1975esac
252b5132 1976
a0da8069 1977# Some tools are only suitable for building in a "native" situation.
c6b750e1 1978# Remove these if host!=target.
701628f5 1979native_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 1980
a0da8069
NN
1981# Similarly, some are only suitable for cross toolchains.
1982# Remove these if host=target.
1983cross_only="target-libgloss target-newlib target-opcodes"
1984
1985case $is_cross_compiler in
1986 no) skipdirs="${skipdirs} ${cross_only}" ;;
1987 yes) skipdirs="${skipdirs} ${native_only}" ;;
1988esac
252b5132 1989
a0da8069
NN
1990# If both --with-headers and --with-libs are specified, default to
1991# --without-newlib.
32be62b5
RS
1992if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1994 if test x"${with_newlib}" = x ; then
1995 with_newlib=no
1996 fi
252b5132
RH
1997fi
1998
a0da8069
NN
1999# Recognize --with-newlib/--without-newlib.
2000case ${with_newlib} in
2001 no) skipdirs="${skipdirs} target-newlib" ;;
2002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2003esac
252b5132 2004
a0da8069 2005# Configure extra directories which are host specific
252b5132 2006
a0da8069
NN
2007case "${host}" in
2008 *-cygwin*)
2009 configdirs="$configdirs libtermcap" ;;
2010esac
252b5132 2011
59f7ec45
HPN
2012# A target can indicate whether a language isn't supported for some reason.
2013# Only spaces may be used in this macro; not newlines or tabs.
2014unsupported_languages=
2015
c6b750e1 2016# Remove more programs from consideration, based on the host or
a0da8069
NN
2017# target this usually means that a port of the program doesn't
2018# exist yet.
252b5132 2019
a0da8069
NN
2020case "${host}" in
2021 hppa*64*-*-*)
2022 noconfigdirs="$noconfigdirs byacc"
2023 ;;
ec11bdc6 2024 i[3456789]86-*-vsta)
675c6968 2025 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2026 ;;
ec11bdc6 2027 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2028 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2029 ;;
2d1e8239
NC
2030 x86_64-*-mingw*)
2031 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2032 ;;
ec11bdc6 2033 i[3456789]86-*-mingw32*)
675c6968 2034 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2036 ;;
ec11bdc6 2037 i[3456789]86-*-beos*)
675c6968 2038 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2039 ;;
a0da8069 2040 *-*-cygwin*)
a92834c8 2041 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2042 ;;
2043 *-*-netbsd*)
a92834c8 2044 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2045 ;;
2046 ppc*-*-pe)
675c6968 2047 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2048 ;;
2049 powerpc-*-beos*)
675c6968 2050 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2051 ;;
a0da8069 2052esac
252b5132 2053
4b1cb4fe 2054
a2592b1b
DD
2055# Check whether --enable-libada or --disable-libada was given.
2056if test "${enable_libada+set}" = set; then
2057 enableval="$enable_libada"
2058 ENABLE_LIBADA=$enableval
2059else
2060 ENABLE_LIBADA=yes
c6b750e1 2061fi;
a2592b1b 2062if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2063 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2064fi
2065
5f128533
KH
2066# Check whether --enable-libssp or --disable-libssp was given.
2067if test "${enable_libssp+set}" = set; then
2068 enableval="$enable_libssp"
2069 ENABLE_LIBSSP=$enableval
2070else
2071 ENABLE_LIBSSP=yes
c6b750e1 2072fi;
5f128533 2073
a0da8069
NN
2074# Save it here so that, even in case of --enable-libgcj, if the Java
2075# front-end isn't enabled, we still get libgcj disabled.
2076libgcj_saved=$libgcj
2077case $enable_libgcj in
2078yes)
2079 # If we reset it here, it won't get added to noconfigdirs in the
2080 # target-specific build rules, so it will be forcibly enabled
2081 # (unless the Java language itself isn't enabled).
2082 libgcj=
2083 ;;
2084no)
2085 # Make sure we get it printed in the list of not supported target libs.
2086 noconfigdirs="$noconfigdirs ${libgcj}"
2087 ;;
2088esac
252b5132 2089
4b1cb4fe 2090
a6df5a19
PB
2091# Disable libmudflap on some systems.
2092if test x$enable_libmudflap = x ; then
3e707e94 2093 case "${target}" in
0ebe98fb 2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2095 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2096 ;;
2097 *-*-freebsd*)
2098 # Enable libmudflap by default in FreeBSD.
2099 ;;
2100 *)
2101 # Disable it by default everywhere else.
2102 noconfigdirs="$noconfigdirs target-libmudflap"
2103 ;;
2104 esac
a6df5a19 2105fi
4b1cb4fe 2106
a6df5a19
PB
2107# Disable libgomp on non POSIX hosted systems.
2108if test x$enable_libgomp = x ; then
b3ded179
PB
2109 # Enable libgomp by default on hosted POSIX systems.
2110 case "${target}" in
2111 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2112 ;;
2113 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2114 ;;
64ce424c 2115 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2116 ;;
2117 *-*-darwin* | *-*-aix*)
2118 ;;
2119 *)
2120 noconfigdirs="$noconfigdirs target-libgomp"
2121 ;;
2122 esac
a6df5a19 2123fi
b3ded179 2124
691bb5a1
DD
2125# Default libgloss CPU subdirectory.
2126libgloss_dir="$target_cpu"
4b1cb4fe 2127
a0da8069
NN
2128case "${target}" in
2129 *-*-chorusos)
54d1c879 2130 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2131 ;;
c9b68031 2132 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
b3f16a9b 2133 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2134 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2135 ;;
04d1ab34 2136 *-*-darwin*)
d320aacb 2137 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2138 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2139 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2140 ;;
a0da8069 2141 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2142 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2143 ;;
de0b4a87 2144 *-*-freebsd*)
4b1cb4fe
DD
2145 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2146 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2147 && test -f /usr/local/include/gmp.h; then
2148 with_gmp=/usr/local
2149 fi
2150
2151 # Skip some stuff that's unsupported on some FreeBSD configurations.
2152 case "${target}" in
2153 i*86-*-*) ;;
2154 alpha*-*-*) ;;
2155 *)
54d1c879 2156 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2157 ;;
2158 esac
2159 ;;
f8a495c8
NC
2160 *-*-kaos*)
2161 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2162 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2163 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2164 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2165 noconfigdirs="$noconfigdirs target-libgloss"
2166 ;;
a0da8069
NN
2167 *-*-netbsd*)
2168 # Skip some stuff on all NetBSD configurations.
2169 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2170
2171 # Skip some stuff that's unsupported on some NetBSD configurations.
2172 case "${target}" in
2173 i*86-*-netbsdelf*) ;;
5b474aa8 2174 arm*-*-netbsdelf*) ;;
a0da8069 2175 *)
54d1c879 2176 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2177 ;;
2178 esac
2179 ;;
2a3124ca 2180 *-*-netware*)
54d1c879 2181 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2182 ;;
2183 *-*-rtems*)
54d1c879 2184 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2185 ;;
1587117a
EC
2186 # The tpf target doesn't support gdb yet.
2187 *-*-tpf*)
54d1c879 2188 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2189 ;;
c1968181 2190 *-*-uclinux*)
54d1c879 2191 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2192 ;;
a0da8069 2193 *-*-vxworks*)
54d1c879 2194 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2195 ;;
2196 alpha*-dec-osf*)
2197 # ld works, but does not support shared libraries.
2198 # newlib is not 64 bit ready. I'm not sure about fileutils.
2199 # gas doesn't generate exception information.
2200 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2201 ;;
2202 alpha*-*-*vms*)
54d1c879 2203 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2204 ;;
2205 alpha*-*-linux*)
2206 # newlib is not 64 bit ready
2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2208 ;;
a0da8069
NN
2209 alpha*-*-*)
2210 # newlib is not 64 bit ready
54d1c879 2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2212 ;;
4a18bd6b 2213 am33_2.0-*-linux*)
54d1c879 2214 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2215 ;;
a0da8069 2216 sh-*-linux*)
54d1c879 2217 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2218 ;;
a0da8069 2219 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2220 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2221 noconfigdirs="$noconfigdirs target-examples"
2222 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2223 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2224 noconfigdirs="$noconfigdirs expect dejagnu"
2225 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2226 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2227 noconfigdirs="$noconfigdirs target-newlib"
2228 case "${host}" in
2229 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2230 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2231 ;;
2232 esac
691bb5a1 2233 libgloss_dir=wince
a0da8069
NN
2234 ;;
2235 arc-*-*)
54d1c879 2236 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2237 ;;
caeba88f 2238 arm-semi-aof )
caeba88f 2239 ;;
a0da8069 2240 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2241 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2242 libgloss_dir=arm
a0da8069 2243 ;;
11b04d1f 2244 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2245 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2246 libgloss_dir=arm
a0da8069 2247 ;;
bd70a46f 2248 arm*-*-linux-gnueabi)
6d18b86b
AH
2249 noconfigdirs="$noconfigdirs target-qthreads"
2250 noconfigdirs="$noconfigdirs target-libobjc"
a5b3b4dd
DD
2251 case ${with_newlib} in
2252 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2253 esac
691bb5a1 2254 libgloss_dir=arm
bd70a46f 2255 ;;
df4a6958 2256 arm*-*-symbianelf*)
54d1c879 2257 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2258 libgloss_dir=arm
df4a6958 2259 ;;
a0da8069 2260 arm-*-pe*)
54d1c879 2261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2262 ;;
a0da8069 2263 thumb-*-coff)
54d1c879 2264 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2265 ;;
2266 thumb-*-elf)
54d1c879 2267 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2268 ;;
a0da8069 2269 thumb-*-pe)
54d1c879 2270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2271 ;;
2272 arm-*-riscix*)
54d1c879 2273 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2274 ;;
2275 avr-*-*)
54d1c879 2276 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2277 ;;
376a0e54 2278 bfin-*-*)
00d89675 2279 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2280 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2281 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2282 fi
2283 ;;
a0da8069 2284 c4x-*-* | tic4x-*-*)
54d1c879 2285 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2286 ;;
2287 c54x*-*-* | tic54x-*-*)
54d1c879 2288 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2289 ;;
c7e66c6d 2290 cris-*-* | crisv32-*-*)
59f7ec45 2291 unsupported_languages="$unsupported_languages java"
c7e66c6d 2292 case "${target}" in
2faa2958 2293 *-*-aout)
096f7d00 2294 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2295 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2296 *-*-elf)
096f7d00 2297 unsupported_languages="$unsupported_languages fortran"
5e818318 2298 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2299 *-*-linux*)
5e818318 2300 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2301 *)
096f7d00 2302 unsupported_languages="$unsupported_languages fortran"
54d1c879 2303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2304 esac
691bb5a1 2305 libgloss_dir=cris
a0da8069 2306 ;;
3e707e94 2307 crx-*-*)
54d1c879 2308 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2309 ;;
a0da8069 2310 d10v-*-*)
54d1c879 2311 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2312 ;;
2313 d30v-*-*)
54d1c879 2314 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2315 ;;
691bb5a1
DD
2316 ep9312-*-elf | ep9312-*-coff)
2317 libgloss_dir=arm
2318 ;;
a0da8069 2319 fr30-*-elf*)
54d1c879 2320 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2321 ;;
2322 frv-*-*)
54d1c879 2323 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2324 ;;
2325 h8300*-*-*)
54d1c879 2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2327 ;;
2328 h8500-*-*)
54d1c879 2329 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2330 ;;
caeba88f 2331 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2332 ;;
a0da8069
NN
2333 hppa*64*-*-linux* | parisc*64*-*-linux*)
2334 # In this case, it's because the hppa64-linux target is for
2335 # the kernel only at this point and has no libc, and thus no
2336 # headers, crt*.o, etc., all of which are needed by these.
2337 noconfigdirs="$noconfigdirs target-zlib"
2338 ;;
5dcac624
DA
2339 parisc*-*-linux* | hppa*-*-linux*)
2340 ;;
a0da8069 2341 hppa*-*-*elf* | \
a0da8069
NN
2342 hppa*-*-lites* | \
2343 hppa*-*-openbsd* | \
2344 hppa*64*-*-*)
54d1c879 2345 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2346 ;;
2347 hppa*-hp-hpux11*)
2348 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2349 ;;
691bb5a1
DD
2350 hppa*-*-pro*)
2351 libgloss_dir=pa
2352 ;;
a0da8069
NN
2353 hppa*-*-*)
2354 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2355 # build on HP-UX 10.20.
54d1c879 2356 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2357 ;;
b07c2aad 2358 i960-*-*)
54d1c879 2359 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2360 ;;
a0da8069
NN
2361 ia64*-*-elf*)
2362 # No gdb support yet.
675c6968 2363 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2364 ;;
2365 ia64*-**-hpux*)
2366 # No gdb or ld support yet.
54d1c879 2367 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2368 ;;
caeba88f 2369 i370-*-opened*)
caeba88f 2370 ;;
ec11bdc6 2371 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2372 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2373 libgloss_dir=i386
a0da8069 2374 ;;
ec11bdc6 2375 i[3456789]86-*-linux*)
a0da8069
NN
2376 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2377 # not build java stuff by default.
2378 case "${target}" in
2379 *-*-*libc1*)
54d1c879 2380 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2381 esac
2382
2383 # This section makes it possible to build newlib natively on linux.
2384 # If we are using a cross compiler then don't configure newlib.
2385 if test x${is_cross_compiler} != xno ; then
bba45b8b 2386 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2387 fi
2388 noconfigdirs="$noconfigdirs target-libgloss"
2389 # If we are not using a cross compiler, do configure newlib.
2390 # Note however, that newlib will only be configured in this situation
2391 # if the --with-newlib option has been given, because otherwise
2392 # 'target-newlib' will appear in skipdirs.
2393 ;;
ec11bdc6 2394 i[3456789]86-*-mingw32*)
45055374
CV
2395 target_configdirs="$target_configdirs target-winsup"
2396 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2397 ;;
2d1e8239
NC
2398 x86_64-*-mingw*)
2399 target_configdirs="$target_configdirs target-winsup"
2400 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2401 ;;
a0da8069
NN
2402 *-*-cygwin*)
2403 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2404 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2405 # always build newlib if winsup directory is present.
45055374 2406 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2407 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2408 elif test -d "$srcdir/newlib"; then
45055374 2409 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2410 fi
c6b750e1 2411 ;;
caeba88f
AL
2412 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2413 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2414 ;;
ec11bdc6 2415 i[3456789]86-*-pe)
54d1c879 2416 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2417 ;;
ec11bdc6 2418 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2419 # The linker does not yet know about weak symbols in COFF,
2420 # and is not configured to handle mixed ELF and COFF.
54d1c879 2421 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2422 ;;
ec11bdc6 2423 i[3456789]86-*-sco*)
54d1c879 2424 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2425 ;;
ec11bdc6 2426 i[3456789]86-*-solaris2*)
a0da8069
NN
2427 noconfigdirs="$noconfigdirs target-libgloss"
2428 ;;
ec11bdc6 2429 i[3456789]86-*-sysv4*)
54d1c879 2430 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2431 ;;
ec11bdc6 2432 i[3456789]86-*-beos*)
54d1c879 2433 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2434 ;;
b59bea8a 2435 i[3456789]86-*-rdos*)
2429c060
PB
2436 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2437 ;;
b07c2aad 2438 m32r-*-*)
54d1c879 2439 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2440 ;;
a0da8069 2441 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2442 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2443 libgloss_dir=m68hc11
a0da8069
NN
2444 ;;
2445 m68k-*-elf*)
54d1c879 2446 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2447 ;;
2448 m68k-*-coff*)
54d1c879 2449 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2450 ;;
691bb5a1
DD
2451 m68*-*-* | fido-*-*)
2452 libgloss_dir=m68k
2453 ;;
a0da8069
NN
2454 mcore-*-pe*)
2455 # The EPOC C++ environment does not support exceptions or rtti,
2456 # and so building libstdc++-v3 tends not to always work.
2457 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2458 ;;
2459 mmix-*-*)
59f7ec45 2460 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2461 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2462 ;;
2463 mn10200-*-*)
54d1c879 2464 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2465 ;;
2466 mn10300-*-*)
54d1c879 2467 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2468 ;;
4970f871 2469 mt-*-*)
cdb9b172
AH
2470 noconfigdirs="$noconfigdirs sim"
2471 ;;
a0da8069
NN
2472 powerpc-*-aix*)
2473 # copied from rs6000-*-* entry
54d1c879 2474 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2475 ;;
2476 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2477 target_configdirs="$target_configdirs target-winsup"
54d1c879 2478 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2479 # always build newlib.
2480 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2481 ;;
2482 # This is temporary until we can link against shared libraries
2483 powerpcle-*-solaris*)
54d1c879 2484 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2485 libgloss_dir=rs6000
a0da8069
NN
2486 ;;
2487 powerpc-*-beos*)
54d1c879 2488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2489 ;;
a0da8069 2490 powerpc-*-eabi)
54d1c879 2491 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2492 libgloss_dir=rs6000
caeba88f
AL
2493 ;;
2494 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2495 libgloss_dir=rs6000
a0da8069 2496 ;;
a0da8069 2497 rs6000-*-lynxos*)
54d1c879 2498 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2499 ;;
2500 rs6000-*-aix*)
54d1c879 2501 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2502 ;;
2503 rs6000-*-*)
54d1c879 2504 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2505 ;;
2506 m68k-apollo-*)
54d1c879 2507 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2508 ;;
5bd8be13
RS
2509 mips*-sde-elf*)
2510 skipdirs="$skipdirs target-libiberty"
2511 noconfigdirs="$noconfigdirs ${libgcj}"
2512 if test x$with_newlib = xyes; then
2513 noconfigdirs="$noconfigdirs gprof"
2514 fi
2515 libgloss_dir=mips
2516 ;;
a0da8069 2517 mips*-*-irix5*)
54d1c879 2518 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2519 ;;
2520 mips*-*-irix6*)
a0da8069
NN
2521 # Linking libjava exceeds command-line length limits on at least
2522 # IRIX 6.2, but not on IRIX 6.5.
2523 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2524 # <oldham@codesourcery.com>
54d1c879 2525 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2526 ;;
a0da8069 2527 mips*-*-bsd*)
54d1c879 2528 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2529 ;;
a0da8069
NN
2530 mips*-*-linux*)
2531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2532 ;;
2533 mips*-*-*)
54d1c879 2534 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2535 libgloss_dir=mips
a0da8069
NN
2536 ;;
2537 romp-*-*)
54d1c879 2538 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2539 ;;
dbf85af7 2540 sh-*-* | sh64-*-*)
a0da8069 2541 case "${host}" in
ec11bdc6
DD
2542 i[3456789]86-*-vsta) ;; # don't add gprof back in
2543 i[3456789]86-*-go32*) ;; # don't add gprof back in
2544 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2545 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2546 esac
54d1c879 2547 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2548 ;;
691bb5a1
DD
2549 sparclet-*-aout* | sparc86x-*-*)
2550 libgloss_dir=sparc
2551 ;;
a0da8069 2552 sparc-*-elf*)
54d1c879 2553 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2554 ;;
2555 sparc64-*-elf*)
54d1c879 2556 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2557 libgloss_dir=sparc
a0da8069
NN
2558 ;;
2559 sparclite-*-*)
54d1c879 2560 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2561 libgloss_dir=sparc
a0da8069
NN
2562 ;;
2563 sparc-*-sunos4*)
54d1c879 2564 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2565 if test x${is_cross_compiler} != xno ; then
2566 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2567 else
2568 use_gnu_ld=no
2569 fi
2570 ;;
e3c770b1 2571 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2572 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2573 ;;
a0da8069
NN
2574 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2575 ;;
2839fe5d
BE
2576 spu-*-*)
2577 skipdirs="target-libssp"
2578 ;;
a0da8069 2579 v810-*-*)
54d1c879 2580 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2581 ;;
2582 v850-*-*)
54d1c879 2583 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2584 ;;
2585 v850e-*-*)
54d1c879 2586 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2587 ;;
2588 v850ea-*-*)
54d1c879 2589 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2590 ;;
2591 vax-*-vms)
54d1c879 2592 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2593 ;;
2594 vax-*-*)
54d1c879 2595 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2596 ;;
fbd1054d 2597 xtensa-*-*)
54d1c879 2598 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2599 ;;
a0da8069 2600 ip2k-*-*)
54d1c879 2601 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2602 ;;
de0b4a87 2603 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2605 ;;
2606 *-*-lynxos*)
54d1c879 2607 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2608 ;;
a0da8069 2609 *-*-*)
54d1c879 2610 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2611 ;;
2612esac
252b5132 2613
a0da8069
NN
2614# If we aren't building newlib, then don't build libgloss, since libgloss
2615# depends upon some newlib header files.
2616case "${noconfigdirs}" in
2617 *target-libgloss*) ;;
2618 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2619esac
2620
a0da8069
NN
2621# Work in distributions that contain no compiler tools, like Autoconf.
2622tentative_cc=""
2623host_makefile_frag=/dev/null
2624if test -d ${srcdir}/config ; then
2625case "${host}" in
2626 m68k-hp-hpux*)
2627 # Avoid "too much defining" errors from HPUX compiler.
2628 tentative_cc="cc -Wp,-H256000"
2629 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2630 # If it's HP/UX ar, this should be harmless.
2631 RANLIB="ar ts"
2632 ;;
2633 m68k-apollo-sysv*)
2634 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2635 ;;
2636 m68k-apollo-bsd*)
2637 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2638 # chokes on bfd, the compiler won't let you assign integers to enums, and
2639 # other problems. Defining CC to gcc is a questionable way to say "don't use
2640 # the apollo compiler" (the preferred version of GCC could be called cc,
2641 # or whatever), but I'm not sure leaving CC as cc is any better...
2642 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2643 # Used to have BISON=yacc.
2644 tentative_cc=gcc
2645 ;;
2646 m88k-dg-dgux*)
2647 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2648 ;;
2649 m88k-harris-cxux*)
2650 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2651 tentative_cc="cc -Xa"
2652 host_makefile_frag="config/mh-cxux"
2653 ;;
2654 m88k-motorola-sysv*)
2655 ;;
2656 mips*-dec-ultrix*)
2657 tentative_cc="cc -Wf,-XNg1000"
2658 host_makefile_frag="config/mh-decstation"
2659 ;;
2660 mips*-nec-sysv4*)
2661 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2662 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2663 host_makefile_frag="config/mh-necv4"
2664 ;;
2665 mips*-sgi-irix4*)
2666 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2667 # environment. Also bump switch table size so that cp-parse will
2668 # compile. Bump string length limit so linker builds.
2669 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2670 ;;
2671 mips*-*-sysv4*)
2672 host_makefile_frag="config/mh-sysv4"
2673 ;;
2674 mips*-*-sysv*)
2675 # This is for a MIPS running RISC/os 4.52C.
2676
2677 # This is needed for GDB, but needs to be in the top-level make because
2678 # if a library is compiled with the bsd headers and gets linked with the
2679 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2680 # a different size).
2681 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2682 # known except to select the sysv environment. Could we use /proc instead?
2683 # These "sysv environments" and "bsd environments" often end up being a pain.
2684 #
2685 # This is not part of CFLAGS because perhaps not all C compilers have this
2686 # option.
2687 tentative_cc="cc -systype sysv"
2688 ;;
2689 i370-ibm-opened*)
2690 tentative_cc="c89"
2691 ;;
ec11bdc6 2692 i[3456789]86-*-sysv5*)
a0da8069
NN
2693 host_makefile_frag="config/mh-sysv5"
2694 ;;
ec11bdc6 2695 i[3456789]86-*-dgux*)
a0da8069
NN
2696 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2697 host_makefile_frag="config/mh-dgux386"
2698 ;;
ec11bdc6 2699 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2700 # The MetaWare compiler will generate a copyright message unless you
2701 # turn it off by adding the -Hnocopyr flag.
2702 tentative_cc="cc -Hnocopyr"
2703 ;;
ec11bdc6 2704 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2705 # for an NCR 3000 (i486/SVR4) system.
2706 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2707 # This compiler not only emits obnoxious copyright messages every time
2708 # you run it, but it chokes and dies on a whole bunch of GNU source
2709 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2710 tentative_cc="/usr/ccs/ATT/cc"
2711 host_makefile_frag="config/mh-ncr3000"
2712 ;;
ec11bdc6 2713 i[3456789]86-*-sco3.2v5*)
a0da8069 2714 ;;
ec11bdc6 2715 i[3456789]86-*-sco*)
a0da8069
NN
2716 # The native C compiler botches some simple uses of const. Unfortunately,
2717 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2718 tentative_cc="cc -Dconst="
2719 host_makefile_frag="config/mh-sco"
2720 ;;
ec11bdc6 2721 i[3456789]86-*-udk*)
a0da8069
NN
2722 host_makefile_frag="config/mh-sysv5"
2723 ;;
ec11bdc6 2724 i[3456789]86-*-solaris2*)
a0da8069
NN
2725 host_makefile_frag="config/mh-sysv4"
2726 ;;
ec11bdc6 2727 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2728 host_makefile_frag="config/mh-djgpp"
2729 ;;
2730 *-cygwin*)
2731 host_makefile_frag="config/mh-cygwin"
2732 ;;
2733 *-mingw32*)
84e7906e 2734 host_makefile_frag="config/mh-mingw"
a0da8069 2735 ;;
2d1e8239 2736 *-mingw64*)
84e7906e 2737 host_makefile_frag="config/mh-mingw"
2d1e8239 2738 ;;
a0da8069
NN
2739 *-interix*)
2740 host_makefile_frag="config/mh-interix"
2741 ;;
2742 vax-*-ultrix2*)
2743 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2744 tentative_cc=gcc
2745 ;;
2746 *-*-solaris2*)
2747 host_makefile_frag="config/mh-solaris"
2748 ;;
2749 m68k-sun-sunos*)
2750 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2751 # without overflowing the jump tables (-J says to use a 32 bit table)
2752 tentative_cc="cc -J"
2753 ;;
2754 *-hp-hpux*)
2755 tentative_cc="cc -Wp,-H256000"
2756 ;;
2757 *-*-hiux*)
2758 tentative_cc="cc -Wp,-H256000"
2759 ;;
2760 rs6000-*-lynxos*)
2761 # /bin/cc is less than useful for our purposes. Always use GCC
2762 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2763 host_makefile_frag="config/mh-lynxrs6k"
2764 ;;
0df3d27f
PB
2765 powerpc-*-darwin*)
2766 host_makefile_frag="config/mh-ppc-darwin"
2767 ;;
f6d183c0
PB
2768 powerpc-*-aix*)
2769 host_makefile_frag="config/mh-ppc-aix"
2770 ;;
2771 rs6000-*-aix*)
2772 host_makefile_frag="config/mh-ppc-aix"
2773 ;;
a0da8069
NN
2774 *-*-lynxos*)
2775 # /bin/cc is less than useful for our purposes. Always use GCC
2776 tentative_cc="/bin/gcc"
2777 ;;
2778 *-*-sysv4*)
2779 host_makefile_frag="config/mh-sysv4"
2780 ;;
fe69863c
DD
2781 # This is placed last to prevent interfering with the cases above.
2782 i[3456789]86-*-*)
2783 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2784 host_makefile_frag="config/mh-x86omitfp"
2785 ;;
a0da8069
NN
2786esac
2787fi
2788
9e07f89d
NN
2789# If we aren't going to be using gcc, see if we can extract a definition
2790# of CC from the fragment.
2791# Actually, use the 'pre-extracted' version above.
2792if test -z "${CC}" && test "${build}" = "${host}" ; then
2793 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2794 found=
2795 for dir in $PATH; do
2796 test -z "$dir" && dir=.
2797 if test -f $dir/gcc; then
2798 found=yes
2799 break
2800 fi
2801 done
2802 IFS="$save_ifs"
2803 if test -z "${found}" && test -n "${tentative_cc}" ; then
2804 CC=$tentative_cc
2805 fi
2806fi
2807
2808if test "${build}" != "${host}" ; then
1576798e
PB
2809 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2810 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2811 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2812 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2813 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2814 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2815 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2816 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2817 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2818 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2819 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2820 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2821else
2822 AR_FOR_BUILD="\$(AR)"
2823 AS_FOR_BUILD="\$(AS)"
512b7dfb 2824 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2825 CXX_FOR_BUILD="\$(CXX)"
2826 GCJ_FOR_BUILD="\$(GCJ)"
2827 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2828 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2829 LD_FOR_BUILD="\$(LD)"
2830 NM_FOR_BUILD="\$(NM)"
2831 RANLIB_FOR_BUILD="\$(RANLIB)"
2832 WINDRES_FOR_BUILD="\$(WINDRES)"
2833 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2834fi
2835
2836ac_ext=c
c6b750e1
DJ
2837ac_cpp='$CPP $CPPFLAGS'
2838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840ac_compiler_gnu=$ac_cv_c_compiler_gnu
2841if test -n "$ac_tool_prefix"; then
2842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2843set dummy ${ac_tool_prefix}gcc; ac_word=$2
2844echo "$as_me:$LINENO: checking for $ac_word" >&5
2845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846if test "${ac_cv_prog_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848else
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863done
2864done
2865
2866fi
2867fi
2868CC=$ac_cv_prog_CC
2869if test -n "$CC"; then
2870 echo "$as_me:$LINENO: result: $CC" >&5
2871echo "${ECHO_T}$CC" >&6
2872else
2873 echo "$as_me:$LINENO: result: no" >&5
2874echo "${ECHO_T}no" >&6
2875fi
2876
2877fi
2878if test -z "$ac_cv_prog_CC"; then
2879 ac_ct_CC=$CC
6a9cf61e 2880 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2881set dummy gcc; ac_word=$2
c6b750e1
DJ
2882echo "$as_me:$LINENO: checking for $ac_word" >&5
2883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2884if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886else
2887 if test -n "$ac_ct_CC"; then
2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889else
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 ac_cv_prog_ac_ct_CC="gcc"
2898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901done
2902done
2903
2904fi
2905fi
2906ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907if test -n "$ac_ct_CC"; then
2908 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2909echo "${ECHO_T}$ac_ct_CC" >&6
2910else
2911 echo "$as_me:$LINENO: result: no" >&5
2912echo "${ECHO_T}no" >&6
2913fi
2914
2915 CC=$ac_ct_CC
2916else
2917 CC="$ac_cv_prog_CC"
2918fi
2919
2920if test -z "$CC"; then
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2923set dummy ${ac_tool_prefix}cc; ac_word=$2
2924echo "$as_me:$LINENO: checking for $ac_word" >&5
2925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2926if test "${ac_cv_prog_CC+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2928else
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2931else
c6b750e1
DJ
2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939 ac_cv_prog_CC="${ac_tool_prefix}cc"
2940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943done
2944done
2945
9e07f89d
NN
2946fi
2947fi
c6b750e1 2948CC=$ac_cv_prog_CC
9e07f89d 2949if test -n "$CC"; then
c6b750e1
DJ
2950 echo "$as_me:$LINENO: result: $CC" >&5
2951echo "${ECHO_T}$CC" >&6
9e07f89d 2952else
c6b750e1
DJ
2953 echo "$as_me:$LINENO: result: no" >&5
2954echo "${ECHO_T}no" >&6
9e07f89d
NN
2955fi
2956
c6b750e1
DJ
2957fi
2958if test -z "$ac_cv_prog_CC"; then
2959 ac_ct_CC=$CC
2960 # Extract the first word of "cc", so it can be a program name with args.
2961set dummy cc; ac_word=$2
2962echo "$as_me:$LINENO: checking for $ac_word" >&5
2963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2964if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2966else
2967 if test -n "$ac_ct_CC"; then
2968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2969else
2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971for as_dir in $PATH
2972do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977 ac_cv_prog_ac_ct_CC="cc"
2978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981done
2982done
2983
2984fi
2985fi
2986ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987if test -n "$ac_ct_CC"; then
2988 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2989echo "${ECHO_T}$ac_ct_CC" >&6
2990else
2991 echo "$as_me:$LINENO: result: no" >&5
2992echo "${ECHO_T}no" >&6
2993fi
2994
2995 CC=$ac_ct_CC
2996else
2997 CC="$ac_cv_prog_CC"
2998fi
2999
3000fi
9e07f89d
NN
3001if test -z "$CC"; then
3002 # Extract the first word of "cc", so it can be a program name with args.
3003set dummy cc; ac_word=$2
c6b750e1
DJ
3004echo "$as_me:$LINENO: checking for $ac_word" >&5
3005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3006if test "${ac_cv_prog_CC+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3008else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011else
9e07f89d 3012 ac_prog_rejected=no
c6b750e1
DJ
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021 ac_prog_rejected=yes
3022 continue
3023 fi
3024 ac_cv_prog_CC="cc"
3025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028done
3029done
3030
9e07f89d
NN
3031if test $ac_prog_rejected = yes; then
3032 # We found a bogon in the path, so make sure we never use it.
3033 set dummy $ac_cv_prog_CC
3034 shift
c6b750e1 3035 if test $# != 0; then
9e07f89d
NN
3036 # We chose a different compiler from the bogus one.
3037 # However, it has the same basename, so the bogon will be chosen
3038 # first if we set CC to just the basename; use the full file name.
3039 shift
c6b750e1 3040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3041 fi
3042fi
3043fi
3044fi
c6b750e1 3045CC=$ac_cv_prog_CC
9e07f89d 3046if test -n "$CC"; then
c6b750e1
DJ
3047 echo "$as_me:$LINENO: result: $CC" >&5
3048echo "${ECHO_T}$CC" >&6
9e07f89d 3049else
c6b750e1
DJ
3050 echo "$as_me:$LINENO: result: no" >&5
3051echo "${ECHO_T}no" >&6
9e07f89d
NN
3052fi
3053
c6b750e1
DJ
3054fi
3055if test -z "$CC"; then
3056 if test -n "$ac_tool_prefix"; then
3057 for ac_prog in cl
3058 do
3059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3060set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3061echo "$as_me:$LINENO: checking for $ac_word" >&5
3062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3063if test "${ac_cv_prog_CC+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3065else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068else
c6b750e1
DJ
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
376a0e54 3079 fi
c6b750e1
DJ
3080done
3081done
cac3d6c4 3082
c6b750e1
DJ
3083fi
3084fi
3085CC=$ac_cv_prog_CC
3086if test -n "$CC"; then
3087 echo "$as_me:$LINENO: result: $CC" >&5
3088echo "${ECHO_T}$CC" >&6
cac3d6c4 3089else
c6b750e1
DJ
3090 echo "$as_me:$LINENO: result: no" >&5
3091echo "${ECHO_T}no" >&6
9e07f89d 3092fi
cac3d6c4 3093
c6b750e1
DJ
3094 test -n "$CC" && break
3095 done
cac3d6c4 3096fi
c6b750e1
DJ
3097if test -z "$CC"; then
3098 ac_ct_CC=$CC
3099 for ac_prog in cl
3100do
3101 # Extract the first word of "$ac_prog", so it can be a program name with args.
3102set dummy $ac_prog; ac_word=$2
3103echo "$as_me:$LINENO: checking for $ac_word" >&5
3104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3105if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3107else
c6b750e1
DJ
3108 if test -n "$ac_ct_CC"; then
3109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3110else
c6b750e1
DJ
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_ac_ct_CC="$ac_prog"
3119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122done
3123done
3124
cac3d6c4
CM
3125fi
3126fi
c6b750e1
DJ
3127ac_ct_CC=$ac_cv_prog_ac_ct_CC
3128if test -n "$ac_ct_CC"; then
3129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3130echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3131else
c6b750e1
DJ
3132 echo "$as_me:$LINENO: result: no" >&5
3133echo "${ECHO_T}no" >&6
cac3d6c4 3134fi
376a0e54 3135
c6b750e1
DJ
3136 test -n "$ac_ct_CC" && break
3137done
3138
3139 CC=$ac_ct_CC
3140fi
3141
3142fi
3143
3144
3145test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3146See \`config.log' for more details." >&5
3147echo "$as_me: error: no acceptable C compiler found in \$PATH
3148See \`config.log' for more details." >&2;}
3149 { (exit 1); exit 1; }; }
3150
3151# Provide some information about the compiler.
3152echo "$as_me:$LINENO:" \
3153 "checking for C compiler version" >&5
3154ac_compiler=`set X $ac_compile; echo $2`
3155{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3156 (eval $ac_compiler --version </dev/null >&5) 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }
3160{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3161 (eval $ac_compiler -v </dev/null >&5) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }
3165{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3166 (eval $ac_compiler -V </dev/null >&5) 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }
3170
3171cat >conftest.$ac_ext <<_ACEOF
3172/* confdefs.h. */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h. */
3177
3178int
3179main ()
3180{
3181
3182 ;
3183 return 0;
3184}
3185_ACEOF
3186ac_clean_files_save=$ac_clean_files
3187ac_clean_files="$ac_clean_files a.out a.exe b.out"
3188# Try to create an executable without -o first, disregard a.out.
3189# It will help us diagnose broken compilers, and finding out an intuition
3190# of exeext.
3191echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3192echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3193ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3194if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3195 (eval $ac_link_default) 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; then
3199 # Find the output, starting from the most likely. This scheme is
3200# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3201# resort.
3202
3203# Be careful to initialize this variable, since it used to be cached.
3204# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3205ac_cv_exeext=
3206# b.out is created by i960 compilers.
3207for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3208do
3209 test -f "$ac_file" || continue
3210 case $ac_file in
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3212 ;;
3213 conftest.$ac_ext )
3214 # This is the source file.
3215 ;;
3216 [ab].out )
3217 # We found the default executable, but exeext='' is most
3218 # certainly right.
3219 break;;
3220 *.* )
3221 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222 # FIXME: I believe we export ac_cv_exeext for Libtool,
3223 # but it would be cool to find out if it's true. Does anybody
3224 # maintain Libtool? --akim.
3225 export ac_cv_exeext
3226 break;;
3227 * )
3228 break;;
3229 esac
3230done
3231else
3232 echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3236See \`config.log' for more details." >&5
3237echo "$as_me: error: C compiler cannot create executables
3238See \`config.log' for more details." >&2;}
3239 { (exit 77); exit 77; }; }
3240fi
3241
3242ac_exeext=$ac_cv_exeext
3243echo "$as_me:$LINENO: result: $ac_file" >&5
3244echo "${ECHO_T}$ac_file" >&6
3245
3246# Check the compiler produces executables we can run. If not, either
3247# the compiler is broken, or we cross compile.
3248echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3249echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3250# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3251# If not cross compiling, check that we can run a simple program.
3252if test "$cross_compiling" != yes; then
3253 if { ac_try='./$ac_file'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 cross_compiling=no
3260 else
3261 if test "$cross_compiling" = maybe; then
3262 cross_compiling=yes
3263 else
3264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3265If you meant to cross compile, use \`--host'.
3266See \`config.log' for more details." >&5
3267echo "$as_me: error: cannot run C compiled programs.
3268If you meant to cross compile, use \`--host'.
3269See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3271 fi
3272 fi
3273fi
3274echo "$as_me:$LINENO: result: yes" >&5
3275echo "${ECHO_T}yes" >&6
3276
3277rm -f a.out a.exe conftest$ac_cv_exeext b.out
3278ac_clean_files=$ac_clean_files_save
3279# Check the compiler produces executables we can run. If not, either
3280# the compiler is broken, or we cross compile.
3281echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3282echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3283echo "$as_me:$LINENO: result: $cross_compiling" >&5
3284echo "${ECHO_T}$cross_compiling" >&6
3285
3286echo "$as_me:$LINENO: checking for suffix of executables" >&5
3287echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3289 (eval $ac_link) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; then
3293 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3294# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3295# work properly (i.e., refer to `conftest.exe'), while it won't with
3296# `rm'.
3297for ac_file in conftest.exe conftest conftest.*; do
3298 test -f "$ac_file" || continue
3299 case $ac_file in
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3301 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3302 export ac_cv_exeext
3303 break;;
3304 * ) break;;
3305 esac
3306done
3307else
3308 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3309See \`config.log' for more details." >&5
3310echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3311See \`config.log' for more details." >&2;}
3312 { (exit 1); exit 1; }; }
3313fi
3314
3315rm -f conftest$ac_cv_exeext
3316echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3317echo "${ECHO_T}$ac_cv_exeext" >&6
3318
3319rm -f conftest.$ac_ext
3320EXEEXT=$ac_cv_exeext
3321ac_exeext=$EXEEXT
3322echo "$as_me:$LINENO: checking for suffix of object files" >&5
3323echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3324if test "${ac_cv_objext+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326else
3327 cat >conftest.$ac_ext <<_ACEOF
3328/* confdefs.h. */
3329_ACEOF
3330cat confdefs.h >>conftest.$ac_ext
3331cat >>conftest.$ac_ext <<_ACEOF
3332/* end confdefs.h. */
3333
3334int
3335main ()
3336{
3337
3338 ;
3339 return 0;
3340}
3341_ACEOF
3342rm -f conftest.o conftest.obj
3343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; then
3348 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3349 case $ac_file in
3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3351 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3352 break;;
3353 esac
3354done
cac3d6c4 3355else
c6b750e1
DJ
3356 echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
3359{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3360See \`config.log' for more details." >&5
3361echo "$as_me: error: cannot compute suffix of object files: cannot compile
3362See \`config.log' for more details." >&2;}
3363 { (exit 1); exit 1; }; }
3364fi
3365
3366rm -f conftest.$ac_cv_objext conftest.$ac_ext
3367fi
3368echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3369echo "${ECHO_T}$ac_cv_objext" >&6
3370OBJEXT=$ac_cv_objext
3371ac_objext=$OBJEXT
3372echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3373echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3374if test "${ac_cv_c_compiler_gnu+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377 cat >conftest.$ac_ext <<_ACEOF
3378/* confdefs.h. */
3379_ACEOF
3380cat confdefs.h >>conftest.$ac_ext
3381cat >>conftest.$ac_ext <<_ACEOF
3382/* end confdefs.h. */
3383
3384int
3385main ()
3386{
3387#ifndef __GNUC__
3388 choke me
3389#endif
3390
3391 ;
3392 return 0;
3393}
3394_ACEOF
3395rm -f conftest.$ac_objext
3396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 ac_compiler_gnu=yes
3418else
3419 echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
3422ac_compiler_gnu=no
3423fi
3424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3425ac_cv_c_compiler_gnu=$ac_compiler_gnu
3426
3427fi
3428echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3429echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3430GCC=`test $ac_compiler_gnu = yes && echo yes`
3431ac_test_CFLAGS=${CFLAGS+set}
3432ac_save_CFLAGS=$CFLAGS
3433CFLAGS="-g"
3434echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3435echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3436if test "${ac_cv_prog_cc_g+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
3439 cat >conftest.$ac_ext <<_ACEOF
3440/* confdefs.h. */
3441_ACEOF
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h. */
3445
3446int
3447main ()
3448{
3449
3450 ;
3451 return 0;
3452}
3453_ACEOF
3454rm -f conftest.$ac_objext
3455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3456 (eval $ac_compile) 2>conftest.er1
3457 ac_status=$?
3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } &&
3463 { ac_try='test -z "$ac_c_werror_flag"
3464 || test ! -s conftest.err'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 (eval $ac_try) 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; } &&
3470 { ac_try='test -s conftest.$ac_objext'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 (eval $ac_try) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; }; then
9e07f89d
NN
3476 ac_cv_prog_cc_g=yes
3477else
c6b750e1
DJ
3478 echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3480
c6b750e1 3481ac_cv_prog_cc_g=no
376a0e54 3482fi
c6b750e1
DJ
3483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3484fi
3485echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3486echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3487if test "$ac_test_CFLAGS" = set; then
c6b750e1 3488 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3489elif test $ac_cv_prog_cc_g = yes; then
3490 if test "$GCC" = yes; then
3491 CFLAGS="-g -O2"
3492 else
3493 CFLAGS="-g"
3494 fi
3495else
3496 if test "$GCC" = yes; then
3497 CFLAGS="-O2"
3498 else
3499 CFLAGS=
3500 fi
3501fi
c6b750e1
DJ
3502echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3503echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3504if test "${ac_cv_prog_cc_stdc+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
3507 ac_cv_prog_cc_stdc=no
3508ac_save_CC=$CC
3509cat >conftest.$ac_ext <<_ACEOF
3510/* confdefs.h. */
3511_ACEOF
3512cat confdefs.h >>conftest.$ac_ext
3513cat >>conftest.$ac_ext <<_ACEOF
3514/* end confdefs.h. */
3515#include <stdarg.h>
3516#include <stdio.h>
3517#include <sys/types.h>
3518#include <sys/stat.h>
3519/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3520struct buf { int x; };
3521FILE * (*rcsopen) (struct buf *, struct stat *, int);
3522static char *e (p, i)
3523 char **p;
3524 int i;
3525{
3526 return p[i];
3527}
3528static char *f (char * (*g) (char **, int), char **p, ...)
3529{
3530 char *s;
3531 va_list v;
3532 va_start (v,p);
3533 s = g (p, va_arg (v,int));
3534 va_end (v);
3535 return s;
3536}
3537
3538/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3539 function prototypes and stuff, but not '\xHH' hex character constants.
3540 These don't provoke an error unfortunately, instead are silently treated
3541 as 'x'. The following induces an error, until -std1 is added to get
3542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3543 array size at least. It's necessary to write '\x00'==0 to get something
3544 that's true only with -std1. */
3545int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3546
3547int test (int i, double x);
3548struct s1 {int (*f) (int a);};
3549struct s2 {int (*f) (double a);};
3550int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3551int argc;
3552char **argv;
3553int
3554main ()
3555{
3556return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3557 ;
3558 return 0;
3559}
3560_ACEOF
3561# Don't try gcc -ansi; that turns off useful extensions and
3562# breaks some systems' header files.
3563# AIX -qlanglvl=ansi
3564# Ultrix and OSF/1 -std1
3565# HP-UX 10.20 and later -Ae
3566# HP-UX older versions -Aa -D_HPUX_SOURCE
3567# SVR4 -Xc -D__EXTENSIONS__
3568for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3569do
3570 CC="$ac_save_CC $ac_arg"
3571 rm -f conftest.$ac_objext
3572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try='test -z "$ac_c_werror_flag"
3581 || test ! -s conftest.err'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 (eval $ac_try) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; } &&
3587 { ac_try='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3593 ac_cv_prog_cc_stdc=$ac_arg
3594break
3595else
3596 echo "$as_me: failed program was:" >&5
3597sed 's/^/| /' conftest.$ac_ext >&5
3598
3599fi
3600rm -f conftest.err conftest.$ac_objext
3601done
3602rm -f conftest.$ac_ext conftest.$ac_objext
3603CC=$ac_save_CC
3604
3605fi
3606
3607case "x$ac_cv_prog_cc_stdc" in
3608 x|xno)
3609 echo "$as_me:$LINENO: result: none needed" >&5
3610echo "${ECHO_T}none needed" >&6 ;;
3611 *)
3612 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3613echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3614 CC="$CC $ac_cv_prog_cc_stdc" ;;
3615esac
3616
3617# Some people use a C++ compiler to compile C. Since we use `exit',
3618# in C++ we need to declare it. In case someone uses the same compiler
3619# for both compiling C and C++ we need to have the C++ compiler decide
3620# the declaration of exit, since it's the most demanding environment.
3621cat >conftest.$ac_ext <<_ACEOF
3622#ifndef __cplusplus
3623 choke me
3624#endif
3625_ACEOF
3626rm -f conftest.$ac_objext
3627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3628 (eval $ac_compile) 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } &&
3635 { ac_try='test -z "$ac_c_werror_flag"
3636 || test ! -s conftest.err'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; } &&
3642 { ac_try='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 for ac_declaration in \
3649 '' \
3650 'extern "C" void std::exit (int) throw (); using std::exit;' \
3651 'extern "C" void std::exit (int); using std::exit;' \
3652 'extern "C" void exit (int) throw ();' \
3653 'extern "C" void exit (int);' \
3654 'void exit (int);'
3655do
3656 cat >conftest.$ac_ext <<_ACEOF
3657/* confdefs.h. */
3658_ACEOF
3659cat confdefs.h >>conftest.$ac_ext
3660cat >>conftest.$ac_ext <<_ACEOF
3661/* end confdefs.h. */
3662$ac_declaration
3663#include <stdlib.h>
3664int
3665main ()
3666{
3667exit (42);
3668 ;
3669 return 0;
3670}
3671_ACEOF
3672rm -f conftest.$ac_objext
3673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3674 (eval $ac_compile) 2>conftest.er1
3675 ac_status=$?
3676 grep -v '^ *+' conftest.er1 >conftest.err
3677 rm -f conftest.er1
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } &&
3681 { ac_try='test -z "$ac_c_werror_flag"
3682 || test ! -s conftest.err'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest.$ac_objext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 :
3695else
3696 echo "$as_me: failed program was:" >&5
3697sed 's/^/| /' conftest.$ac_ext >&5
3698
3699continue
3700fi
3701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702 cat >conftest.$ac_ext <<_ACEOF
3703/* confdefs.h. */
3704_ACEOF
3705cat confdefs.h >>conftest.$ac_ext
3706cat >>conftest.$ac_ext <<_ACEOF
3707/* end confdefs.h. */
3708$ac_declaration
3709int
3710main ()
3711{
3712exit (42);
3713 ;
3714 return 0;
3715}
3716_ACEOF
3717rm -f conftest.$ac_objext
3718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>conftest.er1
3720 ac_status=$?
3721 grep -v '^ *+' conftest.er1 >conftest.err
3722 rm -f conftest.er1
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } &&
3726 { ac_try='test -z "$ac_c_werror_flag"
3727 || test ! -s conftest.err'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; } &&
3733 { ac_try='test -s conftest.$ac_objext'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 break
3740else
3741 echo "$as_me: failed program was:" >&5
3742sed 's/^/| /' conftest.$ac_ext >&5
3743
3744fi
3745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3746done
3747rm -f conftest*
3748if test -n "$ac_declaration"; then
3749 echo '#ifdef __cplusplus' >>confdefs.h
3750 echo $ac_declaration >>confdefs.h
3751 echo '#endif' >>confdefs.h
3752fi
3753
3754else
3755 echo "$as_me: failed program was:" >&5
3756sed 's/^/| /' conftest.$ac_ext >&5
3757
3758fi
3759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3760ac_ext=c
3761ac_cpp='$CPP $CPPFLAGS'
3762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3765
18f6b6ee
PB
3766ac_ext=cc
3767ac_cpp='$CXXCPP $CPPFLAGS'
3768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3771if test -n "$ac_tool_prefix"; then
3772 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3773 do
3774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3775set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3776echo "$as_me:$LINENO: checking for $ac_word" >&5
3777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3778if test "${ac_cv_prog_CXX+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781 if test -n "$CXX"; then
3782 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3783else
3784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785for as_dir in $PATH
3786do
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3791 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 break 2
3794 fi
3795done
3796done
512b7dfb 3797
18f6b6ee
PB
3798fi
3799fi
3800CXX=$ac_cv_prog_CXX
3801if test -n "$CXX"; then
3802 echo "$as_me:$LINENO: result: $CXX" >&5
3803echo "${ECHO_T}$CXX" >&6
3804else
3805 echo "$as_me:$LINENO: result: no" >&5
3806echo "${ECHO_T}no" >&6
3807fi
3808
3809 test -n "$CXX" && break
3810 done
3811fi
3812if test -z "$CXX"; then
3813 ac_ct_CXX=$CXX
3814 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3815do
3816 # Extract the first word of "$ac_prog", so it can be a program name with args.
3817set dummy $ac_prog; ac_word=$2
3818echo "$as_me:$LINENO: checking for $ac_word" >&5
3819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3820if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822else
3823 if test -n "$ac_ct_CXX"; then
3824 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3825else
3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833 ac_cv_prog_ac_ct_CXX="$ac_prog"
3834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 break 2
512b7dfb 3836 fi
18f6b6ee
PB
3837done
3838done
512b7dfb 3839
18f6b6ee
PB
3840fi
3841fi
3842ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3843if test -n "$ac_ct_CXX"; then
3844 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3845echo "${ECHO_T}$ac_ct_CXX" >&6
3846else
3847 echo "$as_me:$LINENO: result: no" >&5
3848echo "${ECHO_T}no" >&6
3849fi
3850
3851 test -n "$ac_ct_CXX" && break
3852done
3853test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3854
3855 CXX=$ac_ct_CXX
3856fi
3857
3858
3859# Provide some information about the compiler.
3860echo "$as_me:$LINENO:" \
3861 "checking for C++ compiler version" >&5
3862ac_compiler=`set X $ac_compile; echo $2`
3863{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3864 (eval $ac_compiler --version </dev/null >&5) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }
3868{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3869 (eval $ac_compiler -v </dev/null >&5) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }
3873{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3874 (eval $ac_compiler -V </dev/null >&5) 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }
3878
3879echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3880echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3881if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884 cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h. */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
3889/* end confdefs.h. */
3890
3891int
3892main ()
3893{
3894#ifndef __GNUC__
3895 choke me
3896#endif
3897
3898 ;
3899 return 0;
3900}
3901_ACEOF
3902rm -f conftest.$ac_objext
3903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3904 (eval $ac_compile) 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -z "$ac_cxx_werror_flag"
3912 || test ! -s conftest.err'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest.$ac_objext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 ac_compiler_gnu=yes
3925else
3926 echo "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
3928
3929ac_compiler_gnu=no
3930fi
3931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3932ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3933
3934fi
3935echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3936echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3937GXX=`test $ac_compiler_gnu = yes && echo yes`
3938ac_test_CXXFLAGS=${CXXFLAGS+set}
3939ac_save_CXXFLAGS=$CXXFLAGS
3940CXXFLAGS="-g"
3941echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3942echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3943if test "${ac_cv_prog_cxx_g+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
3946 cat >conftest.$ac_ext <<_ACEOF
3947/* confdefs.h. */
3948_ACEOF
3949cat confdefs.h >>conftest.$ac_ext
3950cat >>conftest.$ac_ext <<_ACEOF
3951/* end confdefs.h. */
3952
3953int
3954main ()
3955{
3956
3957 ;
3958 return 0;
3959}
3960_ACEOF
3961rm -f conftest.$ac_objext
3962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3963 (eval $ac_compile) 2>conftest.er1
3964 ac_status=$?
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } &&
3970 { ac_try='test -z "$ac_cxx_werror_flag"
3971 || test ! -s conftest.err'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 (eval $ac_try) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; } &&
3977 { ac_try='test -s conftest.$ac_objext'
3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 (eval $ac_try) 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
3983 ac_cv_prog_cxx_g=yes
3984else
3985 echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988ac_cv_prog_cxx_g=no
3989fi
3990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991fi
3992echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3993echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3994if test "$ac_test_CXXFLAGS" = set; then
3995 CXXFLAGS=$ac_save_CXXFLAGS
3996elif test $ac_cv_prog_cxx_g = yes; then
3997 if test "$GXX" = yes; then
3998 CXXFLAGS="-g -O2"
3999 else
4000 CXXFLAGS="-g"
4001 fi
4002else
4003 if test "$GXX" = yes; then
4004 CXXFLAGS="-O2"
4005 else
4006 CXXFLAGS=
4007 fi
4008fi
4009for ac_declaration in \
4010 '' \
4011 'extern "C" void std::exit (int) throw (); using std::exit;' \
4012 'extern "C" void std::exit (int); using std::exit;' \
4013 'extern "C" void exit (int) throw ();' \
4014 'extern "C" void exit (int);' \
4015 'void exit (int);'
4016do
4017 cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h. */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */
4023$ac_declaration
4024#include <stdlib.h>
4025int
4026main ()
4027{
4028exit (42);
4029 ;
4030 return 0;
4031}
4032_ACEOF
4033rm -f conftest.$ac_objext
4034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_cxx_werror_flag"
4043 || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 :
4056else
4057 echo "$as_me: failed program was:" >&5
4058sed 's/^/| /' conftest.$ac_ext >&5
4059
4060continue
4061fi
4062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4063 cat >conftest.$ac_ext <<_ACEOF
4064/* confdefs.h. */
4065_ACEOF
4066cat confdefs.h >>conftest.$ac_ext
4067cat >>conftest.$ac_ext <<_ACEOF
4068/* end confdefs.h. */
4069$ac_declaration
4070int
4071main ()
4072{
4073exit (42);
4074 ;
4075 return 0;
4076}
4077_ACEOF
4078rm -f conftest.$ac_objext
4079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4080 (eval $ac_compile) 2>conftest.er1
4081 ac_status=$?
4082 grep -v '^ *+' conftest.er1 >conftest.err
4083 rm -f conftest.er1
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } &&
4087 { ac_try='test -z "$ac_cxx_werror_flag"
4088 || test ! -s conftest.err'
4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 (eval $ac_try) 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; } &&
4094 { ac_try='test -s conftest.$ac_objext'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 (eval $ac_try) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 break
4101else
4102 echo "$as_me: failed program was:" >&5
4103sed 's/^/| /' conftest.$ac_ext >&5
4104
4105fi
4106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4107done
4108rm -f conftest*
4109if test -n "$ac_declaration"; then
4110 echo '#ifdef __cplusplus' >>confdefs.h
4111 echo $ac_declaration >>confdefs.h
4112 echo '#endif' >>confdefs.h
4113fi
4114
4115ac_ext=c
4116ac_cpp='$CPP $CPPFLAGS'
4117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120
4121
4122# We must set the default linker to the linker used by gcc for the correct
4123# operation of libtool. If LD is not defined and we are using gcc, try to
4124# set the LD default to the ld used by gcc.
4125if test -z "$LD"; then
4126 if test "$GCC" = yes; then
4127 case $build in
4128 *-*-mingw*)
4129 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4130 *)
4131 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4132 esac
4133 case $gcc_prog_ld in
4134 # Accept absolute paths.
4135 [\\/]* | [A-Za-z]:[\\/]*)
4136 LD="$gcc_prog_ld" ;;
4137 esac
4138 fi
512b7dfb
PB
4139fi
4140
4141
4142
4143
c6b750e1 4144if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4145 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4146set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4147echo "$as_me:$LINENO: checking for $ac_word" >&5
4148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4149if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4150 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4151else
512b7dfb
PB
4152 if test -n "$GNATBIND"; then
4153 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4154else
c6b750e1
DJ
4155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4162 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166done
4167done
4168
9e07f89d
NN
4169fi
4170fi
512b7dfb
PB
4171GNATBIND=$ac_cv_prog_GNATBIND
4172if test -n "$GNATBIND"; then
4173 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4174echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4175else
c6b750e1
DJ
4176 echo "$as_me:$LINENO: result: no" >&5
4177echo "${ECHO_T}no" >&6
9e07f89d
NN
4178fi
4179
c6b750e1 4180fi
512b7dfb
PB
4181if test -z "$ac_cv_prog_GNATBIND"; then
4182 ac_ct_GNATBIND=$GNATBIND
4183 # Extract the first word of "gnatbind", so it can be a program name with args.
4184set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4185echo "$as_me:$LINENO: checking for $ac_word" >&5
4186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4187if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4188 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4189else
512b7dfb
PB
4190 if test -n "$ac_ct_GNATBIND"; then
4191 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4192else
c6b750e1
DJ
4193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194for as_dir in $PATH
4195do
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4200 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 break 2
4203 fi
4204done
4205done
4206
512b7dfb 4207 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4208fi
4209fi
512b7dfb
PB
4210ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4211if test -n "$ac_ct_GNATBIND"; then
4212 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4213echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4214else
c6b750e1
DJ
4215 echo "$as_me:$LINENO: result: no" >&5
4216echo "${ECHO_T}no" >&6
9e07f89d
NN
4217fi
4218
512b7dfb 4219 GNATBIND=$ac_ct_GNATBIND
24ff9987 4220else
512b7dfb 4221 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4222fi
4223
7df2cd5d 4224if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4225 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4226set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4227echo "$as_me:$LINENO: checking for $ac_word" >&5
4228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4229if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231else
512b7dfb
PB
4232 if test -n "$GNATMAKE"; then
4233 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4234else
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4242 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4245 fi
4246done
4247done
4248
4249fi
4250fi
512b7dfb
PB
4251GNATMAKE=$ac_cv_prog_GNATMAKE
4252if test -n "$GNATMAKE"; then
4253 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4254echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4255else
4256 echo "$as_me:$LINENO: result: no" >&5
4257echo "${ECHO_T}no" >&6
4258fi
4259
4260fi
512b7dfb
PB
4261if test -z "$ac_cv_prog_GNATMAKE"; then
4262 ac_ct_GNATMAKE=$GNATMAKE
4263 # Extract the first word of "gnatmake", so it can be a program name with args.
4264set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4265echo "$as_me:$LINENO: checking for $ac_word" >&5
4266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4267if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269else
512b7dfb
PB
4270 if test -n "$ac_ct_GNATMAKE"; then
4271 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4272else
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4280 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4283 fi
4284done
4285done
4286
512b7dfb 4287 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4288fi
4289fi
512b7dfb
PB
4290ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4291if test -n "$ac_ct_GNATMAKE"; then
4292 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4293echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4294else
4295 echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6
4297fi
4298
512b7dfb 4299 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4300else
512b7dfb 4301 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4302fi
4303
c6b750e1
DJ
4304echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4305echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4306if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4308else
4309 cat >conftest.adb <<EOF
4310procedure conftest is begin null; end conftest;
4311EOF
4312acx_cv_cc_gcc_supports_ada=no
4313# There is a bug in old released versions of GCC which causes the
4314# driver to exit successfully when the appropriate language module
4315# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4316# Therefore we must check for the error message as well as an
4317# unsuccessful exit.
b8908782
DD
4318# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4319# given a .adb file, but produce no object file. So we must check
4320# if an object file was really produced to guard against this.
9e07f89d 4321errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4322if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4323 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4324fi
4325rm -f conftest.*
4326fi
c6b750e1
DJ
4327echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4328echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4329
512b7dfb 4330if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4331 have_gnat=yes
4332else
4333 have_gnat=no
4334fi
4335
c6b750e1
DJ
4336echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4337echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4338if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4340else
4341 echo abfoo >t1
4342 echo cdfoo >t2
4343 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4344 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4345 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4346 :
4347 else
4348 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4349 fi
4350 fi
b8908782
DD
4351 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4352 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4353 :
b8908782
DD
4354 else
4355 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4356 fi
4357 fi
4358 rm t1 t2
4359
4360fi
c6b750e1
DJ
4361echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4362echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4363do_compare="$gcc_cv_prog_cmp_skip"
4364
4365
9e07f89d 4366
11b04d1f 4367# Check for GMP and MPFR
4b900473 4368gmplibs="-lmpfr -lgmp"
4b1cb4fe 4369gmpinc=
4b900473
PB
4370have_gmp=no
4371
11b04d1f
DD
4372# Specify a location for mpfr
4373# check for this first so it ends up on the link line before gmp.
c6b750e1 4374
11b04d1f
DD
4375# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4376if test "${with_mpfr_dir+set}" = set; then
4377 withval="$with_mpfr_dir"
c6b750e1
DJ
4378 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4379Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4380echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4381Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4382 { (exit 1); exit 1; }; }
4383fi;
11b04d1f
DD
4384
4385
11b04d1f
DD
4386# Check whether --with-mpfr or --without-mpfr was given.
4387if test "${with_mpfr+set}" = set; then
4388 withval="$with_mpfr"
c6b750e1
DJ
4389
4390fi;
11b04d1f 4391
8a0d8a5c
PB
4392# Check whether --with-mpfr_include or --without-mpfr_include was given.
4393if test "${with_mpfr_include+set}" = set; then
4394 withval="$with_mpfr_include"
c6b750e1
DJ
4395
4396fi;
8a0d8a5c
PB
4397
4398# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4399if test "${with_mpfr_lib+set}" = set; then
4400 withval="$with_mpfr_lib"
8a0d8a5c 4401
c6b750e1 4402fi;
11b04d1f
DD
4403
4404if test "x$with_mpfr" != x; then
4405 gmplibs="-L$with_mpfr/lib $gmplibs"
4406 gmpinc="-I$with_mpfr/include"
4407fi
8a0d8a5c
PB
4408if test "x$with_mpfr_include" != x; then
4409 gmpinc="-I$with_mpfr_include"
4410fi
4411if test "x$with_mpfr_lib" != x; then
4412 gmplibs="-L$with_mpfr_lib $gmplibs"
4413fi
4b900473
PB
4414if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4415 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4416 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4417 # Do not test the mpfr version. Assume that it is sufficient, since
4418 # it is in the source tree, and the library has not been built yet
4419 # but it would be included on the link line in the version check below
4420 # hence making the test fail.
4421 have_gmp=yes
4422fi
11b04d1f 4423
4b1cb4fe 4424# Specify a location for gmp
c6b750e1 4425
4b1cb4fe
DD
4426# Check whether --with-gmp-dir or --without-gmp-dir was given.
4427if test "${with_gmp_dir+set}" = set; then
4428 withval="$with_gmp_dir"
c6b750e1
DJ
4429 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4430Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4431echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4432Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4433 { (exit 1); exit 1; }; }
4434fi;
4b1cb4fe
DD
4435
4436
4b1cb4fe
DD
4437# Check whether --with-gmp or --without-gmp was given.
4438if test "${with_gmp+set}" = set; then
4439 withval="$with_gmp"
c6b750e1
DJ
4440
4441fi;
4b1cb4fe 4442
8a0d8a5c
PB
4443# Check whether --with-gmp_include or --without-gmp_include was given.
4444if test "${with_gmp_include+set}" = set; then
4445 withval="$with_gmp_include"
c6b750e1
DJ
4446
4447fi;
8a0d8a5c
PB
4448
4449# Check whether --with-gmp_lib or --without-gmp_lib was given.
4450if test "${with_gmp_lib+set}" = set; then
4451 withval="$with_gmp_lib"
8a0d8a5c 4452
c6b750e1 4453fi;
8a0d8a5c 4454
4b1cb4fe 4455
11b04d1f
DD
4456if test "x$with_gmp" != x; then
4457 gmplibs="-L$with_gmp/lib $gmplibs"
4458 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4459fi
8a0d8a5c
PB
4460if test "x$with_gmp_include" != x; then
4461 gmpinc="-I$with_gmp_include $gmpinc"
4462fi
4463if test "x$with_gmp_lib" != x; then
4464 gmplibs="-L$with_gmp_lib $gmplibs"
4465fi
4b900473
PB
4466if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4467 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4468 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4469 # Do not test the gmp version. Assume that it is sufficient, since
4470 # it is in the source tree, and the library has not been built yet
4471 # but it would be included on the link line in the version check below
4472 # hence making the test fail.
4473 have_gmp=yes
4474fi
4b1cb4fe 4475
ceb92e78 4476if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4477 have_gmp=yes
4478 saved_CFLAGS="$CFLAGS"
4479 CFLAGS="$CFLAGS $gmpinc"
4480 # Check GMP actually works
c6b750e1
DJ
4481 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4482echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4483
4484cat >conftest.$ac_ext <<_ACEOF
4485/* confdefs.h. */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h. */
4b1cb4fe 4490#include "gmp.h"
c6b750e1
DJ
4491int
4492main ()
4493{
4b1cb4fe 4494
4b900473
PB
4495 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4496 choke me
4497 #endif
c6b750e1
DJ
4498
4499 ;
4500 return 0;
4501}
4502_ACEOF
4503rm -f conftest.$ac_objext
4504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>conftest.er1
4506 ac_status=$?
4507 grep -v '^ *+' conftest.er1 >conftest.err
4508 rm -f conftest.er1
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -z "$ac_c_werror_flag"
4513 || test ! -s conftest.err'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; } &&
4519 { ac_try='test -s conftest.$ac_objext'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 (eval $ac_try) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
4525 echo "$as_me:$LINENO: result: yes" >&5
4526echo "${ECHO_T}yes" >&6
4527else
4528 echo "$as_me: failed program was:" >&5
4529sed 's/^/| /' conftest.$ac_ext >&5
4530
4531echo "$as_me:$LINENO: result: no" >&5
4532echo "${ECHO_T}no" >&6; have_gmp=no
4533fi
4534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4535
4b900473
PB
4536 if test x"$have_gmp" = xyes; then
4537 saved_LIBS="$LIBS"
4538 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4539 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4540echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4541 cat >conftest.$ac_ext <<_ACEOF
4542/* confdefs.h. */
4543_ACEOF
4544cat confdefs.h >>conftest.$ac_ext
4545cat >>conftest.$ac_ext <<_ACEOF
4546/* end confdefs.h. */
9b134994 4547#include <gmp.h>
4b900473 4548 #include <mpfr.h>
c6b750e1
DJ
4549int
4550main ()
4551{
9b134994 4552
57c53b2b 4553 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4b900473
PB
4554 choke me
4555 #endif
a3ca38d2
DD
4556 mpfr_t n;
4557 mpfr_t x;
4b900473 4558 int t;
a3ca38d2
DD
4559 mpfr_init (n);
4560 mpfr_init (x);
4b900473
PB
4561 mpfr_atan2 (n, n, x, GMP_RNDN);
4562 mpfr_erfc (n, x, GMP_RNDN);
4563 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4564
4565 ;
4566 return 0;
4567}
4568_ACEOF
4569rm -f conftest.$ac_objext conftest$ac_exeext
4570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4571 (eval $ac_link) 2>conftest.er1
4572 ac_status=$?
4573 grep -v '^ *+' conftest.er1 >conftest.err
4574 rm -f conftest.er1
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } &&
4578 { ac_try='test -z "$ac_c_werror_flag"
4579 || test ! -s conftest.err'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; } &&
4585 { ac_try='test -s conftest$ac_exeext'
4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 (eval $ac_try) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; }; then
4591 cat >conftest.$ac_ext <<_ACEOF
4592/* confdefs.h. */
4593_ACEOF
4594cat confdefs.h >>conftest.$ac_ext
4595cat >>conftest.$ac_ext <<_ACEOF
4596/* end confdefs.h. */
4b1cb4fe 4597#include <gmp.h>
4b900473 4598 #include <mpfr.h>
c6b750e1
DJ
4599int
4600main ()
4601{
9dbaa842 4602
57c53b2b 4603 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4b900473
PB
4604 choke me
4605 #endif
4606 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4607
4608 ;
4609 return 0;
4610}
4611_ACEOF
4612rm -f conftest.$ac_objext conftest$ac_exeext
4613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4614 (eval $ac_link) 2>conftest.er1
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try='test -z "$ac_c_werror_flag"
4622 || test ! -s conftest.err'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 (eval $ac_try) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; } &&
4628 { ac_try='test -s conftest$ac_exeext'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 (eval $ac_try) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 echo "$as_me:$LINENO: result: yes" >&5
4635echo "${ECHO_T}yes" >&6
4636else
4637 echo "$as_me: failed program was:" >&5
4638sed 's/^/| /' conftest.$ac_ext >&5
4639
4640echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4641echo "${ECHO_T}buggy but acceptable" >&6
4642fi
4643rm -f conftest.err conftest.$ac_objext \
4644 conftest$ac_exeext conftest.$ac_ext
4645else
4646 echo "$as_me: failed program was:" >&5
4647sed 's/^/| /' conftest.$ac_ext >&5
4648
4649echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6; have_gmp=no
4651fi
4652rm -f conftest.err conftest.$ac_objext \
4653 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4654 LIBS="$saved_LIBS"
4655 fi
4656 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4657
4b900473 4658 if test x$have_gmp != xyes; then
57c53b2b 4659 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
c6b750e1
DJ
4660Try the --with-gmp and/or --with-mpfr options to specify their locations.
4661Copies of these libraries' source code can be found at their respective
4662hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4663See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4664If you obtained GMP and/or MPFR from a vendor distribution package, make
4665sure that you have installed both the libraries and the header files.
4666They may be located in separate packages." >&5
57c53b2b 4667echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
9dbaa842
DD
4668Try the --with-gmp and/or --with-mpfr options to specify their locations.
4669Copies of these libraries' source code can be found at their respective
4670hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4671See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4672If you obtained GMP and/or MPFR from a vendor distribution package, make
4673sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4674They may be located in separate packages." >&2;}
4675 { (exit 1); exit 1; }; }
4b900473 4676 fi
9dbaa842
DD
4677fi
4678
11b04d1f 4679# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4680
4681
4682
947f426e 4683# By default, C is the only stage 1 language.
9b134994 4684stage1_languages=,c,
1d39f329 4685
9e07f89d
NN
4686# Figure out what language subdirectories are present.
4687# Look if the user specified --enable-languages="..."; if not, use
4688# the environment variable $LANGUAGES if defined. $LANGUAGES might
4689# go away some day.
4690# NB: embedded tabs in this IF block -- do not untabify
4691if test -d ${srcdir}/gcc; then
4692 if test x"${enable_languages+set}" != xset; then
4693 if test x"${LANGUAGES+set}" = xset; then
4694 enable_languages="${LANGUAGES}"
4695 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4696 else
4697 enable_languages=all
4698 fi
4699 else
4700 if test x"${enable_languages}" = x ||
4701 test x"${enable_languages}" = xyes;
4702 then
4703 echo configure.in: --enable-languages needs at least one language argument 1>&2
4704 exit 1
4705 fi
4706 fi
4707 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4708
096f7d00
DE
4709 # 'f95' is the old name for the 'fortran' language. We issue a warning
4710 # and make the substitution.
4711 case ,${enable_languages}, in
4712 *,f95,*)
4713 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4714 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4715 ;;
4716 esac
4717
9e07f89d
NN
4718 # First scan to see if an enabled language requires some other language.
4719 # We assume that a given config-lang.in will list all the language
4720 # front ends it requires, even if some are required indirectly.
4721 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4722 case ${lang_frag} in
4723 ..) ;;
4724 # The odd quoting in the next line works around
4725 # an apparent bug in bash 1.12 on linux.
4726 ${srcdir}/gcc/[*]/config-lang.in) ;;
4727 *)
4728 # From the config-lang.in, get $language, $lang_requires
4729 language=
4730 lang_requires=
4731 . ${lang_frag}
4732 for other in ${lang_requires} ; do
4733 case ,${enable_languages}, in
4734 *,$other,*) ;;
4735 *,all,*) ;;
4736 *,$language,*)
4737 echo " \`$other' language required by \`$language'; enabling" 1>&2
4738 enable_languages="${enable_languages},${other}"
4739 ;;
4740 esac
4741 done
4742 ;;
4743 esac
4744 done
4745
9b134994 4746 new_enable_languages=,c,
9e07f89d 4747 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4748 potential_languages=,c,
9e07f89d
NN
4749
4750 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4751 case ${lang_frag} in
4752 ..) ;;
4753 # The odd quoting in the next line works around
4754 # an apparent bug in bash 1.12 on linux.
4755 ${srcdir}/gcc/[*]/config-lang.in) ;;
4756 *)
c6b750e1 4757 # From the config-lang.in, get $language, $target_libs,
1d39f329 4758 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4759 language=
4760 target_libs=
4761 lang_dirs=
64ce424c 4762 subdir_requires=
9b134994
PB
4763 boot_language=no
4764 build_by_default=yes
9e07f89d 4765 . ${lang_frag}
9b134994
PB
4766 if test x${language} = x; then
4767 echo "${lang_frag} doesn't set \$language." 1>&2
4768 exit 1
4769 fi
4770
4771 case ,${enable_languages}, in
4772 *,${language},*)
9e07f89d
NN
4773 # Language was explicitly selected; include it.
4774 add_this_lang=yes
4775 ;;
9b134994
PB
4776 *,all,*)
4777 # 'all' was selected, select it if it is a default language
4778 add_this_lang=${build_by_default}
9e07f89d
NN
4779 ;;
4780 *)
4781 add_this_lang=no
4782 ;;
4783 esac
4b1cb4fe 4784
64ce424c 4785 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4786 for i in $subdir_requires; do
3d3adb43 4787 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4788 case ,${enable_languages}, in
4789 *,${language},*)
4790 # Specifically requested language; tell them.
c6b750e1
DJ
4791 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4792echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4793 { (exit 1); exit 1; }; }
64ce424c
PB
4794 ;;
4795 *)
4796 # Silently disable.
9b134994 4797 add_this_lang=unsupported
64ce424c
PB
4798 ;;
4799 esac
4800 done
4801
9b134994
PB
4802 # Disable Ada if no preexisting GNAT is available.
4803 case ,${enable_languages},:${language}:${have_gnat} in
4804 *,${language},*:ada:no)
4805 # Specifically requested language; tell them.
c6b750e1
DJ
4806 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4807echo "$as_me: error: GNAT is required to build $language" >&2;}
4808 { (exit 1); exit 1; }; }
9b134994
PB
4809 ;;
4810 *:ada:no)
4811 # Silently disable.
4812 add_this_lang=unsupported
4813 ;;
4814 esac
4815
59f7ec45
HPN
4816 # Disable a language that is unsupported by the target.
4817 case " $unsupported_languages " in
4818 *" $language "*)
9b134994 4819 add_this_lang=unsupported
59f7ec45
HPN
4820 ;;
4821 esac
4822
4b1cb4fe 4823 case $add_this_lang in
9b134994 4824 unsupported)
9e07f89d 4825 # Remove language-dependent dirs.
1d39f329
NN
4826 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4827 ;;
9b134994
PB
4828 no)
4829 # Remove language-dependent dirs; still show language as supported.
4830 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4831 potential_languages="${potential_languages}${language},"
4832 ;;
4833 yes)
4834 new_enable_languages="${new_enable_languages}${language},"
4835 potential_languages="${potential_languages}${language},"
1d39f329
NN
4836 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4837 case ${boot_language} in
4838 yes)
4fa63067 4839 # Add to (comma-separated) list of stage 1 languages.
9b134994 4840 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4841 ;;
4842 esac
4843 ;;
9e07f89d
NN
4844 esac
4845 ;;
4846 esac
4847 done
4848
9b134994
PB
4849 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4850if test "${enable_stage1_languages+set}" = set; then
4851 enableval="$enable_stage1_languages"
4852 case ,${enable_stage1_languages}, in
4853 ,no,|,,)
4854 # Set it to something that will have no effect in the loop below
4855 enable_stage1_languages=c ;;
4856 ,yes,)
4857 enable_stage1_languages=`echo $new_enable_languages | \
4858 sed -e "s/^,//" -e "s/,$//" ` ;;
4859 *,all,*)
4860 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4861 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4862 esac
4863
4864 # Add "good" languages from enable_stage1_languages to stage1_languages,
4865 # while "bad" languages go in missing_languages. Leave no duplicates.
4866 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4867 case $potential_languages in
4868 *,$i,*)
4869 case $stage1_languages in
4870 *,$i,*) ;;
4871 *) stage1_languages="$stage1_languages$i," ;;
4872 esac ;;
4873 *)
4874 case $missing_languages in
4875 *,$i,*) ;;
4876 *) missing_languages="$missing_languages$i," ;;
4877 esac ;;
4878 esac
4879 done
c6b750e1 4880fi;
9b134994
PB
4881
4882 # Remove leading/trailing commas that were added for simplicity
4883 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4884 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4885 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4886 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4887
9e07f89d 4888 if test "x$missing_languages" != x; then
c6b750e1 4889 { { echo "$as_me:$LINENO: error:
27258dd4 4890The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4891Supported languages are: ${potential_languages}" >&5
4892echo "$as_me: error:
4893The following requested languages could not be built: ${missing_languages}
4894Supported languages are: ${potential_languages}" >&2;}
4895 { (exit 1); exit 1; }; }
9e07f89d 4896 fi
9e07f89d
NN
4897 if test "x$new_enable_languages" != "x$enable_languages"; then
4898 echo The following languages will be built: ${new_enable_languages}
9b134994 4899 enable_languages="$new_enable_languages"
9e07f89d 4900 fi
9b134994 4901
c6b750e1 4902
81ec575a 4903 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4904fi
4905
a6df5a19
PB
4906# Handle --disable-<component> generically.
4907for dir in $configdirs $build_configdirs $target_configdirs ; do
4908 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4909 if eval test x\${enable_${dirname}} "=" xno ; then
4910 noconfigdirs="$noconfigdirs $dir"
4911 fi
4912done
4913
4f0ef2d8
CD
4914# Check for Boehm's garbage collector
4915# Check whether --enable-objc-gc or --disable-objc-gc was given.
4916if test "${enable_objc_gc+set}" = set; then
4917 enableval="$enable_objc_gc"
4918 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4919 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4920 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4921echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4922 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4923 ;;
4924esac
c6b750e1 4925fi;
4f0ef2d8
CD
4926
4927# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4928case ,${enable_languages},:${enable_objc_gc} in
4929 *,objc,*:yes)
4f0ef2d8
CD
4930 # Keep target-boehm-gc if requested for Objective-C.
4931 ;;
4f0ef2d8 4932 *)
d42c4017
DA
4933 # Otherwise remove target-boehm-gc depending on target-libjava.
4934 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4935 noconfigdirs="$noconfigdirs target-boehm-gc"
4936 fi
4f0ef2d8
CD
4937 ;;
4938esac
4939
caeba88f
AL
4940# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4941# $build_configdirs and $target_configdirs.
9e07f89d
NN
4942# If we have the source for $noconfigdirs entries, add them to $notsupp.
4943
4944notsupp=""
4945for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4946 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4947 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4948 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4949 if test -r $srcdir/$dirname/configure ; then
4950 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4951 true
4952 else
4953 notsupp="$notsupp $dir"
4954 fi
4955 fi
4956 fi
caeba88f
AL
4957 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4958 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4959 if test -r $srcdir/$dirname/configure ; then
4960 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4961 true
4962 else
4963 notsupp="$notsupp $dir"
4964 fi
4965 fi
4966 fi
9e07f89d
NN
4967 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4968 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4969 if test -r $srcdir/$dirname/configure ; then
4970 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4971 true
4972 else
4973 notsupp="$notsupp $dir"
4974 fi
4975 fi
4976 fi
4977done
4978
4979# Sometimes the tools are distributed with libiberty but with no other
4980# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4981# Don't let libgcc imply libiberty either.
9e07f89d 4982if test -n "${target_configdirs}" ; then
f86e35b8 4983 libgcc=
9e07f89d
NN
4984 others=
4985 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4986 if test "$i" = "libgcc"; then
4987 libgcc=target-libgcc
4988 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4989 if test -r $srcdir/$i/configure ; then
4990 others=yes;
4991 break;
4992 fi
4993 fi
4994 done
4995 if test -z "${others}" ; then
f86e35b8 4996 target_configdirs=$libgcc
9e07f89d
NN
4997 fi
4998fi
4999
5000# Quietly strip out all directories which aren't configurable in this tree.
5001# This relies on all configurable subdirectories being autoconfiscated, which
5002# is now the case.
6a9cf61e
PB
5003build_configdirs_all="$build_configdirs"
5004build_configdirs=
5005for i in ${build_configdirs_all} ; do
c6b750e1 5006 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5007 if test -f ${srcdir}/$j/configure ; then
5008 build_configdirs="${build_configdirs} $i"
5009 fi
5010done
5011
9e07f89d
NN
5012configdirs_all="$configdirs"
5013configdirs=
5014for i in ${configdirs_all} ; do
5015 if test -f ${srcdir}/$i/configure ; then
5016 configdirs="${configdirs} $i"
5017 fi
5018done
6a9cf61e 5019
9e07f89d
NN
5020target_configdirs_all="$target_configdirs"
5021target_configdirs=
5022for i in ${target_configdirs_all} ; do
c6b750e1 5023 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5024 if test -f ${srcdir}/$j/configure ; then
5025 target_configdirs="${target_configdirs} $i"
5026 fi
5027done
5028
5029# Produce a warning message for the subdirs we can't configure.
5030# This isn't especially interesting in the Cygnus tree, but in the individual
5031# FSF releases, it's important to let people know when their machine isn't
5032# supported by the one or two programs in a package.
5033
5034if test -n "${notsupp}" && test -z "${norecursion}" ; then
5035 # If $appdirs is non-empty, at least one of those directories must still
5036 # be configured, or we error out. (E.g., if the gas release supports a
5037 # specified target in some subdirs but not the gas subdir, we shouldn't
5038 # pretend that all is well.)
5039 if test -n "$appdirs" ; then
5040 for dir in $appdirs ; do
5041 if test -r $dir/Makefile.in ; then
5042 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5043 appdirs=""
5044 break
5045 fi
6a9cf61e 5046 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5047 appdirs=""
5048 break
5049 fi
5050 fi
5051 done
5052 if test -n "$appdirs" ; then
5053 echo "*** This configuration is not supported by this package." 1>&2
5054 exit 1
5055 fi
5056 fi
5057 # Okay, some application will build, or we don't care to check. Still
5058 # notify of subdirs not getting built.
5059 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5060 echo " ${notsupp}" 1>&2
5061 echo " (Any other directories should still work fine.)" 1>&2
5062fi
5063
5064case "$host" in
5065 *msdosdjgpp*)
5066 enable_gdbtk=no ;;
5067esac
5068
18f6b6ee
PB
5069# To find our prefix, in gcc_cv_tool_prefix.
5070
5071# The user is always right.
5072if test "${PATH_SEPARATOR+set}" != set; then
5073 echo "#! /bin/sh" >conf$$.sh
5074 echo "exit 0" >>conf$$.sh
5075 chmod +x conf$$.sh
5076 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5077 PATH_SEPARATOR=';'
5078 else
5079 PATH_SEPARATOR=:
5080 fi
5081 rm -f conf$$.sh
5082fi
5083
5084
5085
5086if test "x$exec_prefix" = xNONE; then
5087 if test "x$prefix" = xNONE; then
5088 gcc_cv_tool_prefix=$ac_default_prefix
5089 else
5090 gcc_cv_tool_prefix=$prefix
5091 fi
5092else
5093 gcc_cv_tool_prefix=$exec_prefix
5094fi
5095
5096# If there is no compiler in the tree, use the PATH only. In any
5097# case, if there is no compiler in the tree nobody should use
5098# AS_FOR_TARGET and LD_FOR_TARGET.
5099if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5100 gcc_version=`cat $srcdir/gcc/BASE-VER`
5101 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5102 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5103 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5104 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5105 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5106 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5107else
5108 gcc_cv_tool_dirs=
5109fi
5110
5111if test x$build = x$target && test -n "$md_exec_prefix"; then
5112 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5113fi
5114
5115
5116
9e07f89d
NN
5117copy_dirs=
5118
c6b750e1 5119
a19b6204
MM
5120# Check whether --with-build-sysroot or --without-build-sysroot was given.
5121if test "${with_build_sysroot+set}" = set; then
5122 withval="$with_build_sysroot"
5123 if test x"$withval" != x ; then
5124 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5125 fi
5126else
5127 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5128fi;
a19b6204
MM
5129
5130
8a6ee3ab
JM
5131
5132# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5133if test "${with_debug_prefix_map+set}" = set; then
5134 withval="$with_debug_prefix_map"
5135 if test x"$withval" != x; then
5136 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5137 for debug_map in $withval; do
5138 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5139 done
5140 fi
5141else
5142 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5143fi;
5144
5145
9e07f89d
NN
5146# Handle --with-headers=XXX. If the value is not "yes", the contents of
5147# the named directory are copied to $(tooldir)/sys-include.
5148if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5149 if test x${is_cross_compiler} = xno ; then
5150 echo 1>&2 '***' --with-headers is only supported when cross compiling
5151 exit 1
5152 fi
5153 if test x"${with_headers}" != xyes ; then
18f6b6ee 5154 x=${gcc_cv_tool_prefix}
c6b750e1 5155 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5156 fi
5157fi
5158
5159# Handle --with-libs=XXX. If the value is not "yes", the contents of
5160# the name directories are copied to $(tooldir)/lib. Multiple directories
5161# are permitted.
5162if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5163 if test x${is_cross_compiler} = xno ; then
5164 echo 1>&2 '***' --with-libs is only supported when cross compiling
5165 exit 1
5166 fi
5167 if test x"${with_libs}" != xyes ; then
5168 # Copy the libraries in reverse order, so that files in the first named
5169 # library override files in subsequent libraries.
18f6b6ee 5170 x=${gcc_cv_tool_prefix}
9e07f89d 5171 for l in ${with_libs}; do
c6b750e1 5172 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5173 done
5174 fi
5175fi
5176
2429c060
PB
5177# Set with_gnu_as and with_gnu_ld as appropriate.
5178#
5179# This is done by determining whether or not the appropriate directory
5180# is available, and by checking whether or not specific configurations
5181# have requested that this magic not happen.
c6b750e1
DJ
5182#
5183# The command line options always override the explicit settings in
2429c060
PB
5184# configure.in, and the settings in configure.in override this magic.
5185#
c6b750e1 5186# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5187# want to do that, then you should use the --without-gnu-as and
5188# --without-gnu-ld options for the configure script.
5189
5190if test x${use_gnu_as} = x &&
5191 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5192 with_gnu_as=yes
5193 extra_host_args="$extra_host_args --with-gnu-as"
5194fi
5195
5196if test x${use_gnu_ld} = x &&
5197 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5198 with_gnu_ld=yes
5199 extra_host_args="$extra_host_args --with-gnu-ld"
5200fi
5201
5202# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5203# can detect this case.
5204
5205if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5206 with_newlib=yes
5207 extra_host_args="$extra_host_args --with-newlib"
5208fi
5209
9e07f89d
NN
5210# Handle ${copy_dirs}
5211set fnord ${copy_dirs}
5212shift
5213while test $# != 0 ; do
5214 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5215 :
5216 else
5217 echo Copying $1 to $2
5218
5219 # Use the install script to create the directory and all required
5220 # parent directories.
5221 if test -d $2 ; then
5222 :
5223 else
5224 echo >config.temp
5225 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5226 fi
5227
5228 # Copy the directory, assuming we have tar.
5229 # FIXME: Should we use B in the second tar? Not all systems support it.
5230 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5231
5232 # It is the responsibility of the user to correctly adjust all
5233 # symlinks. If somebody can figure out how to handle them correctly
5234 # here, feel free to add the code.
5235
5236 echo $1 > $2/COPIED
5237 fi
5238 shift; shift
5239done
5240
2429c060
PB
5241# Determine a target-dependent exec_prefix that the installed
5242# gcc will search in. Keep this list sorted by triplet, with
5243# the *-*-osname triplets last.
5244md_exec_prefix=
5245case "${target}" in
5246 alpha*-*-*vms*)
5247 md_exec_prefix=/gnu/lib/gcc-lib
5248 ;;
521ec477 5249 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5250 md_exec_prefix=/dev/env/DJDIR/bin
5251 ;;
521ec477 5252 i[34567]86-*-sco3.2v5*)
2429c060
PB
5253 if test $with_gnu_as = yes; then
5254 md_exec_prefix=/usr/gnu/bin
5255 else
5256 md_exec_prefix=/usr/ccs/bin/elf
5257 fi
5258 ;;
5259
5260 mn10300-*-* | \
5261 powerpc-*-chorusos* | \
5262 powerpc*-*-eabi* | \
5263 powerpc*-*-sysv* | \
5264 powerpc*-*-kaos* | \
5265 s390x-ibm-tpf*)
5266 md_exec_prefix=/usr/ccs/bin
5267 ;;
5268 sparc64-*-elf*)
5269 ;;
5270 v850*-*-*)
5271 md_exec_prefix=/usr/ccs/bin
5272 ;;
5273 xtensa-*-elf*)
5274 ;;
5275
5276 *-*-beos* | \
5277 *-*-elf* | \
5278 *-*-hpux* | \
5279 *-*-netware* | \
5280 *-*-nto-qnx* | \
5281 *-*-rtems* | \
5282 *-*-solaris2* | \
521ec477 5283 *-*-sysv[45]* | \
2429c060
PB
5284 *-*-vxworks* | \
5285 *-wrs-windiss)
5286 md_exec_prefix=/usr/ccs/bin
5287 ;;
5288esac
5289
a0da8069
NN
5290extra_arflags_for_target=
5291extra_nmflags_for_target=
5292extra_ranlibflags_for_target=
5293target_makefile_frag=/dev/null
5294case "${target}" in
4e206d7e
DB
5295 mep*-*-*)
5296 target_makefile_frag="config/mt-mep"
5297 ;;
77d7106f
AM
5298 spu-*-*)
5299 target_makefile_frag="config/mt-spu"
5300 ;;
429acdec
RS
5301 mips*-sde-elf*)
5302 target_makefile_frag="config/mt-sde"
5303 ;;
f3b1e08e
RS
5304 mipsisa*-*-elfoabi*)
5305 target_makefile_frag="config/mt-mips-elfoabi"
5306 ;;
2a3124ca 5307 *-*-netware*)
a0da8069
NN
5308 target_makefile_frag="config/mt-netware"
5309 ;;
3d6dfe0f
NN
5310 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5311 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5312 ;;
5313 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5314 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5315 # commands to handle both 32-bit and 64-bit objects. These flags are
5316 # harmless if we're using GNU nm or ar.
5317 extra_arflags_for_target=" -X32_64"
5318 extra_nmflags_for_target=" -B -X32_64"
5319 ;;
5320 *-*-darwin*)
5321 # ranlib from Darwin requires the -c flag to look at common symbols.
5322 extra_ranlibflags_for_target=" -c"
5323 ;;
5324 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5325 target_makefile_frag="config/mt-wince"
5326 ;;
5327esac
5328
5329alphaieee_frag=/dev/null
5330case $target in
5331 alpha*-*-*)
5332 # This just makes sure to use the -mieee option to build target libs.
5333 # This should probably be set individually by each library.
5334 alphaieee_frag="config/mt-alphaieee"
5335 ;;
5336esac
5337
5338# If --enable-target-optspace always use -Os instead of -O2 to build
5339# the target libraries, similarly if it is not specified, use -Os
5340# on selected platforms.
5341ospace_frag=/dev/null
5342case "${enable_target_optspace}:${target}" in
5343 yes:*)
5344 ospace_frag="config/mt-ospace"
5345 ;;
5346 :d30v-*)
5347 ospace_frag="config/mt-d30v"
5348 ;;
5349 :m32r-* | :d10v-* | :fr30-*)
5350 ospace_frag="config/mt-ospace"
5351 ;;
5352 no:* | :*)
5353 ;;
5354 *)
5355 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5356 ;;
5357esac
5358
a0da8069
NN
5359# Default to using --with-stabs for certain targets.
5360if test x${with_stabs} = x ; then
5361 case "${target}" in
e31d1ea3 5362 mips*-*-irix[56]*)
a0da8069
NN
5363 ;;
5364 mips*-*-* | alpha*-*-osf*)
5365 with_stabs=yes;
5366 extra_host_args="${extra_host_args} --with-stabs"
5367 ;;
5368 esac
5369fi
5370
5371# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5372# them automatically.
5373case "${host}" in
c6b750e1 5374 hppa*64*-*-hpux11*)
a0da8069
NN
5375 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5376 ;;
5377esac
5378
a0da8069
NN
5379# Some systems (e.g., one of the i386-aix systems the gas testers are
5380# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5381tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5382build_tooldir=${tooldir}
5383
a0da8069
NN
5384# Create a .gdbinit file which runs the one in srcdir
5385# and tells GDB to look there for source files.
5386
5387if test -r ${srcdir}/.gdbinit ; then
5388 case ${srcdir} in
5389 .) ;;
5390 *) cat > ./.gdbinit <<EOF
5391# ${NO_EDIT}
5392dir ${srcdir}
5393dir .
5394source ${srcdir}/.gdbinit
5395EOF
5396 ;;
5397 esac
5398fi
5399
a0da8069
NN
5400# Make sure that the compiler is able to generate an executable. If it
5401# can't, we are probably in trouble. We don't care whether we can run the
5402# executable--we might be using a cross compiler--we only care whether it
5403# can be created. At this point the main configure script has set CC.
5404we_are_ok=no
5405echo "int main () { return 0; }" > conftest.c
5406${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5407if test $? = 0 ; then
5408 if test -s conftest || test -s conftest.exe ; then
5409 we_are_ok=yes
5410 fi
c6b750e1 5411fi
a0da8069
NN
5412case $we_are_ok in
5413 no)
5414 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5415 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5416 rm -f conftest*
5417 exit 1
5418 ;;
5419esac
5420rm -f conftest*
5421
5422# The Solaris /usr/ucb/cc compiler does not appear to work.
5423case "${host}" in
5424 sparc-sun-solaris2*)
5425 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5426 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5427 could_use=
5428 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5429 if test -d /opt/cygnus/bin ; then
5430 if test "$could_use" = "" ; then
5431 could_use="/opt/cygnus/bin"
5432 else
5433 could_use="$could_use or /opt/cygnus/bin"
5434 fi
5435 fi
5436 if test "$could_use" = "" ; then
5437 echo "Warning: compilation may fail because you're using"
5438 echo "/usr/ucb/cc. You should change your PATH or CC "
5439 echo "variable and rerun configure."
5440 else
5441 echo "Warning: compilation may fail because you're using"
5442 echo "/usr/ucb/cc, when you should use the C compiler from"
5443 echo "$could_use. You should change your"
5444 echo "PATH or CC variable and rerun configure."
5445 fi
5446 fi
5447 ;;
5448esac
5449
a0da8069
NN
5450case "${host}" in
5451 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5452 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5453 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5454esac
5455
5456# Record target_configdirs and the configure arguments for target and
5457# build configuration in Makefile.
5458target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5459build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5460
a0da8069
NN
5461# Determine whether gdb needs tk/tcl or not.
5462# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5463# and in that case we want gdb to be built without tk. Ugh!
5464# In fact I believe gdb is the *only* package directly dependent on tk,
5465# so we should be able to put the 'maybe's in unconditionally and
5466# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5467# 100% sure that that's safe though.
c180f501 5468
675c6968 5469gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5470case "$enable_gdbtk" in
5471 no)
5472 GDB_TK="" ;;
c180f501
AC
5473 yes)
5474 GDB_TK="${gdb_tk}" ;;
a0da8069 5475 *)
c180f501
AC
5476 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5477 # distro. Eventually someone will fix this and move Insight, nee
5478 # gdbtk to a separate directory.
5479 if test -d ${srcdir}/gdb/gdbtk ; then
5480 GDB_TK="${gdb_tk}"
5481 else
5482 GDB_TK=""
5483 fi
5484 ;;
a0da8069 5485esac
907be67c
DJ
5486CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5487INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5488
6bd3dfaa 5489# Strip out unwanted targets.
dd12c3a8
NN
5490
5491# While at that, we remove Makefiles if we were started for recursive
5492# configuration, so that the top-level Makefile reconfigures them,
5493# like we used to do when configure itself was recursive.
dd12c3a8 5494
6bd3dfaa
PB
5495# Loop over modules. $extrasub must be used with care, limiting as
5496# much as possible the usage of range addresses. That's because autoconf
5497# splits the sed script to overcome limits in the number of commands,
5498# and relying on carefully-timed sed passes may turn out to be very hard
5499# to maintain later. In this particular case, you just have to be careful
5500# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5501
319cab08
PB
5502# Check whether --enable-bootstrap or --disable-bootstrap was given.
5503if test "${enable_bootstrap+set}" = set; then
5504 enableval="$enable_bootstrap"
c6b750e1 5505
319cab08 5506else
9cb3fa6f 5507 enable_bootstrap=default
c6b750e1 5508fi;
319cab08 5509
9cb3fa6f
PB
5510# Issue errors and warnings for invalid/strange bootstrap combinations.
5511case "$configdirs" in
5512 *gcc*) have_compiler=yes ;;
5513 *) have_compiler=no ;;
5514esac
5515
5516case "$have_compiler:$host:$target:$enable_bootstrap" in
5517 *:*:*:no) ;;
5518
0aed8855 5519 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5520 # and we are in a native configuration.
5521 yes:$build:$build:default)
0aed8855 5522 enable_bootstrap=yes ;;
9cb3fa6f
PB
5523
5524 *:*:*:default)
5525 enable_bootstrap=no ;;
5526
5527 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5528 yes:$build:$build:yes)
9cb3fa6f
PB
5529 ;;
5530
5531 # Other configurations, but we have a compiler. Assume the user knows
5532 # what he's doing.
80911fe1 5533 yes:*:*:yes)
c6b750e1
DJ
5534 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5535echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5536 ;;
5537
5538 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5539 no:*:*:yes)
c6b750e1
DJ
5540 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5541echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5542 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5543
5544 # Fail if wrong command line
5545 *)
c6b750e1
DJ
5546 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5547echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5548 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5549 ;;
5550esac
5551
5552# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5553case "$enable_bootstrap" in
5554 yes)
498d4a71 5555 bootstrap_suffix=bootstrap ;;
319cab08 5556 no)
498d4a71 5557 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5558esac
5559
6a9cf61e 5560for module in ${build_configdirs} ; do
498d4a71
CF
5561 if test -z "${no_recursion}" \
5562 && test -f ${build_subdir}/${module}/Makefile; then
5563 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5564 rm -f ${build_subdir}/${module}/Makefile
5565 fi
5566 extrasub="$extrasub
5567/^@if build-$module\$/d
5568/^@endif build-$module\$/d
5569/^@if build-$module-$bootstrap_suffix\$/d
5570/^@endif build-$module-$bootstrap_suffix\$/d"
5571done
5572for module in ${configdirs} ; do
80911fe1 5573 if test -z "${no_recursion}"; then
8cf39b1b 5574 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5575 if test -f ${file}; then
5576 echo 1>&2 "*** removing ${file} to force reconfigure"
5577 rm -f ${file}
5578 fi
5579 done
498d4a71
CF
5580 fi
5581 extrasub="$extrasub
5582/^@if $module\$/d
5583/^@endif $module\$/d
5584/^@if $module-$bootstrap_suffix\$/d
5585/^@endif $module-$bootstrap_suffix\$/d"
5586done
5587for module in ${target_configdirs} ; do
5588 if test -z "${no_recursion}" \
5589 && test -f ${target_subdir}/${module}/Makefile; then
5590 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5591 rm -f ${target_subdir}/${module}/Makefile
5592 fi
5593 extrasub="$extrasub
5594/^@if target-$module\$/d
5595/^@endif target-$module\$/d
5596/^@if target-$module-$bootstrap_suffix\$/d
5597/^@endif target-$module-$bootstrap_suffix\$/d"
5598done
5599
6bd3dfaa
PB
5600extrasub="$extrasub
5601/^@if /,/^@endif /d"
a0da8069
NN
5602
5603# Create the serialization dependencies. This uses a temporary file.
5604
e6bfb94a
AO
5605# Check whether --enable-serial-configure or --disable-serial-configure was given.
5606if test "${enable_serial_configure+set}" = set; then
5607 enableval="$enable_serial_configure"
e6bfb94a 5608
c6b750e1 5609fi;
e6bfb94a 5610
1047cb91
DD
5611case ${enable_serial_configure} in
5612 yes)
5613 enable_serial_build_configure=yes
5614 enable_serial_host_configure=yes
5615 enable_serial_target_configure=yes
5616 ;;
5617esac
5618
a0da8069
NN
5619# These force 'configure's to be done one at a time, to avoid problems
5620# with contention over a shared config.cache.
5621rm -f serdep.tmp
e6bfb94a 5622echo '# serdep.tmp' > serdep.tmp
a0da8069 5623olditem=
1047cb91 5624test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5625for item in ${build_configdirs} ; do
5626 case ${olditem} in
5627 "") ;;
e6bfb94a 5628 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5629 esac
5630 olditem=${item}
5631done
5632olditem=
1047cb91 5633test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5634for item in ${configdirs} ; do
5635 case ${olditem} in
5636 "") ;;
e6bfb94a 5637 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5638 esac
5639 olditem=${item}
5640done
5641olditem=
1047cb91 5642test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5643for item in ${target_configdirs} ; do
5644 case ${olditem} in
5645 "") ;;
e6bfb94a 5646 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5647 esac
5648 olditem=${item}
5649done
5650serialization_dependencies=serdep.tmp
5651
5652
e6bfb94a 5653# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5654# target, nonopt, and variable assignments. These are the ones we
5655# might not want to pass down to subconfigures. Also strip
5656# program-prefix, program-suffix, and program-transform-name, so that
5657# we can pass down a consistent program-transform-name.
5658baseargs=
5659keep_next=no
5660skip_next=no
5661eval "set -- $ac_configure_args"
18f6b6ee
PB
5662for ac_arg
5663do
c6b750e1
DJ
5664 if test X"$skip_next" = X"yes"; then
5665 skip_next=no
5666 continue
5667 fi
5668 if test X"$keep_next" = X"yes"; then
5669 case $ac_arg in
5670 *\'*)
5671 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5672 esac
5673 baseargs="$baseargs '$ac_arg'"
5674 keep_next=no
5675 continue
5676 fi
5677
5678 # Handle separated arguments. Based on the logic generated by
5679 # autoconf 2.59.
5680 case $ac_arg in
5681 *=* | --config-cache | -C | -disable-* | --disable-* \
5682 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5683 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5684 | -with-* | --with-* | -without-* | --without-* | --x)
5685 separate_arg=no
5686 ;;
5687 -*)
5688 separate_arg=yes
5689 ;;
5690 *)
5691 separate_arg=no
5692 ;;
5693 esac
5694
5695 case "$ac_arg" in
5696 --no*)
5697 continue
5698 ;;
5699 --c* | \
5700 --sr* | \
5701 --ho* | \
5702 --bu* | \
5703 --t* | \
5704 --program-* | \
5705 -cache_file* | \
5706 -srcdir* | \
5707 -host* | \
5708 -build* | \
5709 -target* | \
5710 -program-prefix* | \
5711 -program-suffix* | \
5712 -program-transform-name* )
5713 skip_next=$separate_arg
5714 continue
5715 ;;
5716 -*)
5717 # An option. Add it.
5718 case $ac_arg in
5719 *\'*)
5720 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5721 esac
5722 baseargs="$baseargs '$ac_arg'"
5723 keep_next=$separate_arg
5724 ;;
5725 *)
5726 # Either a variable assignment, or a nonopt (triplet). Don't
5727 # pass it down; let the Makefile handle this.
5728 continue
5729 ;;
5730 esac
5731done
5732# Remove the initial space we just introduced and, as these will be
5733# expanded by make, quote '$'.
5734baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5735
f27d4f92
DJ
5736# Add in --program-transform-name, after --program-prefix and
5737# --program-suffix have been applied to it. Autoconf has already
5738# doubled dollar signs and backslashes in program_transform_name; we want
5739# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5740# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5741# Also, because we want to override the logic in subdir configure scripts to
5742# choose program_transform_name, replace any s,x,x, with s,y,y,.
5743sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5744${program_transform_name}
5745EOF_SED
5746gcc_transform_name=`cat conftestsed.out`
5747rm -f conftestsed.out
5748baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5749if test "$silent" = yes; then
5750 baseargs="$baseargs --silent"
5751fi
f27d4f92 5752
a0da8069
NN
5753# For the build-side libraries, we just need to pretend we're native,
5754# and not use the same cache file. Multilibs are neither needed nor
5755# desired.
4b900473 5756build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5757
5758# For host modules, accept cache file option, or specification as blank.
5759case "${cache_file}" in
5760"") # empty
5761 cache_file_option="" ;;
5762/* | [A-Za-z]:[\\/]* ) # absolute path
5763 cache_file_option="--cache-file=${cache_file}" ;;
5764*) # relative path
5765 cache_file_option="--cache-file=../${cache_file}" ;;
5766esac
5767
82252c06
NN
5768# Host dirs don't like to share a cache file either, horribly enough.
5769# This seems to be due to autoconf 2.5x stupidity.
4b900473 5770host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5771
5772target_configargs=${baseargs}
5773
5774# Passing a --with-cross-host argument lets the target libraries know
5775# whether they are being built with a cross-compiler or being built
5776# native. However, it would be better to use other mechanisms to make the
5777# sorts of decisions they want to make on this basis. Please consider
5778# this option to be deprecated. FIXME.
5779if test x${is_cross_compiler} = xyes ; then
c6b750e1 5780 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5781fi
5782
5783# Default to --enable-multilib.
5784if test x${enable_multilib} = x ; then
5785 target_configargs="--enable-multilib ${target_configargs}"
5786fi
5787
5788# Pass --with-newlib if appropriate. Note that target_configdirs has
5789# changed from the earlier setting of with_newlib.
5790if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5791 target_configargs="--with-newlib ${target_configargs}"
5792fi
5793
95036d20
NN
5794# Different target subdirs use different values of certain variables
5795# (notably CXX). Worse, multilibs use *lots* of different values.
5796# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5797# it doesn't automatically accept command-line overrides of them.
5798# This means it's not safe for target subdirs to share a cache file,
5799# which is disgusting, but there you have it. Hopefully this can be
5800# fixed in future. It's still worthwhile to use a cache file for each
5801# directory. I think.
5802
ae380b45
MS
5803# Pass the appropriate --build, --host, --target and --cache-file arguments.
5804# We need to pass --target, as newer autoconf's requires consistency
5805# for target_alias and gcc doesn't manage it consistently.
4b900473 5806target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5807
a0da8069
NN
5808FLAGS_FOR_TARGET=
5809case " $target_configdirs " in
5810 *" newlib "*)
5811 case " $target_configargs " in
5812 *" --with-newlib "*)
5813 case "$target" in
5814 *-cygwin*)
564b43e5 5815 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
5816 esac
5817
5818 # If we're not building GCC, don't discard standard headers.
5819 if test -d ${srcdir}/gcc; then
5820 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5821
5822 if test "${build}" != "${host}"; then
5823 # On Canadian crosses, CC_FOR_TARGET will have already been set
5824 # by `configure', so we won't have an opportunity to add -Bgcc/
5825 # to it. This is right: we don't want to search that directory
5826 # for binaries, but we want the header files in there, so add
5827 # them explicitly.
b00612cc 5828 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5829
5830 # Someone might think of using the pre-installed headers on
5831 # Canadian crosses, in case the installed compiler is not fully
5832 # compatible with the compiler being built. In this case, it
5833 # would be better to flag an error than risking having
5834 # incompatible object files being constructed. We can't
5835 # guarantee that an error will be flagged, but let's hope the
5836 # compiler will do it, when presented with incompatible header
5837 # files.
5838 fi
5839 fi
5840
5841 case "${target}-${is_cross_compiler}" in
ec11bdc6 5842 i[3456789]86-*-linux*-no)
a0da8069
NN
5843 # Here host == target, so we don't need to build gcc,
5844 # so we don't want to discard standard headers.
5845 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5846 ;;
5847 *)
5848 # If we're building newlib, use its generic headers last, but search
5849 # for any libc-related directories first (so make it the last -B
5850 # switch).
5851 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
5852
5853 # If we're building libgloss, find the startup file, simulator library
5854 # and linker script.
5855 case " $target_configdirs " in
5856 *" libgloss "*)
5857 # Look for startup file, simulator library and maybe linker script.
5858 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5859 # Look for libnosys.a in case the target needs it.
5860 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5861 # Most targets have the linker script in the source directory.
5862 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5863 ;;
5864 esac
a0da8069
NN
5865 ;;
5866 esac
5867 ;;
5868 esac
5869 ;;
5870esac
45055374
CV
5871case "$target" in
5872*-mingw*)
5873 # Can't be handled as Cygwin above since Mingw does not use newlib.
5874 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' ;;
5875esac
a0da8069 5876
5fbad20a
DD
5877# Allow the user to override the flags for
5878# our build compiler if desired.
c66487f8
NC
5879if test x"${build}" = x"${host}" ; then
5880 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5881 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
5882 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
5883fi
5fbad20a 5884
a0da8069
NN
5885# On Canadian crosses, we'll be searching the right directories for
5886# the previously-installed cross compiler, so don't bother to add
5887# flags for directories within the install tree of the compiler
5888# being built; programs in there won't even run.
5889if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5890 # Search for pre-installed headers if nothing else fits.
bba45b8b 5891 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
5892fi
5893
5894if test "x${use_gnu_ld}" = x &&
5895 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5896 # Arrange for us to find uninstalled linker scripts.
b00612cc 5897 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5898fi
5899
a481dbb7
DD
5900# Search for other target-specific linker scripts and such.
5901case "${target}" in
4e206d7e
DB
5902 mep*)
5903 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5904 ;;
5905esac
5906
a0da8069 5907# Makefile fragments.
3e707e94
PB
5908for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5909do
5910 eval fragval=\$$frag
5911 if test $fragval != /dev/null; then
5912 eval $frag=${srcdir}/$fragval
5913 fi
5914done
a0da8069
NN
5915
5916
5917
5918
5919
5920# Miscellanea: directories, flags, etc.
5921
5922
5923
5924
5925
5926
5927
6a9cf61e 5928# Build module lists & subconfigure args.
a0da8069
NN
5929
5930
5931
be01d343
PB
5932# Host module lists & subconfigure args.
5933
5934
5935
5936# Target module lists & subconfigure args.
5937
5938
5939
5940# Build tools.
5941
5942
5943
1576798e
PB
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
be01d343
PB
5958# Generate default definitions for YACC, M4, LEX and other programs that run
5959# on the build machine. These are used if the Makefile can't locate these
5960# programs in objdir.
5961MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5962
5963for ac_prog in 'bison -y' byacc yacc
5964do
c6b750e1 5965 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5966set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5967echo "$as_me:$LINENO: checking for $ac_word" >&5
5968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969if test "${ac_cv_prog_YACC+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5971else
5972 if test -n "$YACC"; then
5973 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5974else
c6b750e1
DJ
5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976for as_dir in $PATH
5977do
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_YACC="$ac_prog"
5983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 break 2
5985 fi
5986done
5987done
5988
be01d343
PB
5989fi
5990fi
c6b750e1 5991YACC=$ac_cv_prog_YACC
be01d343 5992if test -n "$YACC"; then
c6b750e1
DJ
5993 echo "$as_me:$LINENO: result: $YACC" >&5
5994echo "${ECHO_T}$YACC" >&6
be01d343 5995else
c6b750e1
DJ
5996 echo "$as_me:$LINENO: result: no" >&5
5997echo "${ECHO_T}no" >&6
be01d343
PB
5998fi
5999
c6b750e1 6000 test -n "$YACC" && break
be01d343
PB
6001done
6002test -n "$YACC" || YACC="$MISSING bison -y"
6003
6004case " $build_configdirs " in
6005 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6006 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6007esac
6008
6009for ac_prog in bison
6010do
c6b750e1 6011 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6012set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6013echo "$as_me:$LINENO: checking for $ac_word" >&5
6014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6015if test "${ac_cv_prog_BISON+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6017else
6018 if test -n "$BISON"; then
6019 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6020else
c6b750e1
DJ
6021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_BISON="$ac_prog"
6029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6031 fi
6032done
6033done
6034
be01d343
PB
6035fi
6036fi
c6b750e1 6037BISON=$ac_cv_prog_BISON
be01d343 6038if test -n "$BISON"; then
c6b750e1
DJ
6039 echo "$as_me:$LINENO: result: $BISON" >&5
6040echo "${ECHO_T}$BISON" >&6
be01d343 6041else
c6b750e1
DJ
6042 echo "$as_me:$LINENO: result: no" >&5
6043echo "${ECHO_T}no" >&6
be01d343
PB
6044fi
6045
c6b750e1 6046 test -n "$BISON" && break
be01d343
PB
6047done
6048test -n "$BISON" || BISON="$MISSING bison"
6049
6050case " $build_configdirs " in
6051 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6052esac
6053
6054for ac_prog in gm4 gnum4 m4
6055do
c6b750e1 6056 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6057set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6058echo "$as_me:$LINENO: checking for $ac_word" >&5
6059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6060if test "${ac_cv_prog_M4+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6062else
6063 if test -n "$M4"; then
6064 ac_cv_prog_M4="$M4" # Let the user override the test.
6065else
c6b750e1
DJ
6066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067for as_dir in $PATH
6068do
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073 ac_cv_prog_M4="$ac_prog"
6074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6076 fi
6077done
6078done
6079
be01d343
PB
6080fi
6081fi
c6b750e1 6082M4=$ac_cv_prog_M4
be01d343 6083if test -n "$M4"; then
c6b750e1
DJ
6084 echo "$as_me:$LINENO: result: $M4" >&5
6085echo "${ECHO_T}$M4" >&6
be01d343 6086else
c6b750e1
DJ
6087 echo "$as_me:$LINENO: result: no" >&5
6088echo "${ECHO_T}no" >&6
be01d343
PB
6089fi
6090
c6b750e1 6091 test -n "$M4" && break
be01d343
PB
6092done
6093test -n "$M4" || M4="$MISSING m4"
6094
6095case " $build_configdirs " in
6096 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6097esac
6098
6099for ac_prog in flex lex
6100do
c6b750e1 6101 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6102set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6103echo "$as_me:$LINENO: checking for $ac_word" >&5
6104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6105if test "${ac_cv_prog_LEX+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6107else
6108 if test -n "$LEX"; then
6109 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6110else
c6b750e1
DJ
6111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112for as_dir in $PATH
6113do
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6118 ac_cv_prog_LEX="$ac_prog"
6119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6121 fi
6122done
6123done
6124
be01d343
PB
6125fi
6126fi
c6b750e1 6127LEX=$ac_cv_prog_LEX
be01d343 6128if test -n "$LEX"; then
c6b750e1
DJ
6129 echo "$as_me:$LINENO: result: $LEX" >&5
6130echo "${ECHO_T}$LEX" >&6
be01d343 6131else
c6b750e1
DJ
6132 echo "$as_me:$LINENO: result: no" >&5
6133echo "${ECHO_T}no" >&6
be01d343
PB
6134fi
6135
c6b750e1 6136 test -n "$LEX" && break
be01d343
PB
6137done
6138test -n "$LEX" || LEX="$MISSING flex"
6139
6140case " $build_configdirs " in
6141 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6142 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6143esac
6144
6145for ac_prog in flex
6146do
c6b750e1 6147 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6148set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6149echo "$as_me:$LINENO: checking for $ac_word" >&5
6150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6151if test "${ac_cv_prog_FLEX+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6153else
6154 if test -n "$FLEX"; then
6155 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6156else
c6b750e1
DJ
6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH
6159do
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164 ac_cv_prog_FLEX="$ac_prog"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6167 fi
6168done
6169done
6170
be01d343
PB
6171fi
6172fi
c6b750e1 6173FLEX=$ac_cv_prog_FLEX
be01d343 6174if test -n "$FLEX"; then
c6b750e1
DJ
6175 echo "$as_me:$LINENO: result: $FLEX" >&5
6176echo "${ECHO_T}$FLEX" >&6
be01d343 6177else
c6b750e1
DJ
6178 echo "$as_me:$LINENO: result: no" >&5
6179echo "${ECHO_T}no" >&6
be01d343
PB
6180fi
6181
c6b750e1 6182 test -n "$FLEX" && break
be01d343
PB
6183done
6184test -n "$FLEX" || FLEX="$MISSING flex"
6185
6186case " $build_configdirs " in
6187 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6188esac
6189
6190for ac_prog in makeinfo
6191do
c6b750e1 6192 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6193set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6194echo "$as_me:$LINENO: checking for $ac_word" >&5
6195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6196if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6198else
6199 if test -n "$MAKEINFO"; then
6200 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6201else
c6b750e1
DJ
6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6209 ac_cv_prog_MAKEINFO="$ac_prog"
6210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6212 fi
6213done
6214done
6215
be01d343
PB
6216fi
6217fi
c6b750e1 6218MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6219if test -n "$MAKEINFO"; then
c6b750e1
DJ
6220 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6221echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6222else
c6b750e1
DJ
6223 echo "$as_me:$LINENO: result: no" >&5
6224echo "${ECHO_T}no" >&6
be01d343
PB
6225fi
6226
c6b750e1 6227 test -n "$MAKEINFO" && break
be01d343
PB
6228done
6229test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6230
6231case " $build_configdirs " in
6232 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6233 *)
6234
625a61cd 6235 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6236 # higher, else we use the "missing" dummy.
6237 if ${MAKEINFO} --version \
625a61cd 6238 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6239 :
6240 else
6241 MAKEINFO="$MISSING makeinfo"
6242 fi
6243 ;;
6244
6245esac
a0da8069 6246
be01d343 6247# FIXME: expect and dejagnu may become build tools?
a0da8069 6248
be01d343
PB
6249for ac_prog in expect
6250do
c6b750e1 6251 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6252set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6253echo "$as_me:$LINENO: checking for $ac_word" >&5
6254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6255if test "${ac_cv_prog_EXPECT+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6257else
6258 if test -n "$EXPECT"; then
6259 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6260else
c6b750e1
DJ
6261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262for as_dir in $PATH
6263do
6264 IFS=$as_save_IFS
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6268 ac_cv_prog_EXPECT="$ac_prog"
6269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 break 2
6271 fi
6272done
6273done
6274
be01d343
PB
6275fi
6276fi
c6b750e1 6277EXPECT=$ac_cv_prog_EXPECT
be01d343 6278if test -n "$EXPECT"; then
c6b750e1
DJ
6279 echo "$as_me:$LINENO: result: $EXPECT" >&5
6280echo "${ECHO_T}$EXPECT" >&6
be01d343 6281else
c6b750e1
DJ
6282 echo "$as_me:$LINENO: result: no" >&5
6283echo "${ECHO_T}no" >&6
be01d343 6284fi
a0da8069 6285
c6b750e1 6286 test -n "$EXPECT" && break
be01d343
PB
6287done
6288test -n "$EXPECT" || EXPECT="expect"
a0da8069 6289
be01d343
PB
6290case " $configdirs " in
6291 *" expect "*)
6292 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6293 ;;
6294esac
a0da8069 6295
be01d343
PB
6296for ac_prog in runtest
6297do
c6b750e1 6298 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6299set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6300echo "$as_me:$LINENO: checking for $ac_word" >&5
6301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6302if test "${ac_cv_prog_RUNTEST+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6304else
6305 if test -n "$RUNTEST"; then
6306 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6307else
c6b750e1
DJ
6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6315 ac_cv_prog_RUNTEST="$ac_prog"
6316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6318 fi
6319done
6320done
6321
be01d343
PB
6322fi
6323fi
c6b750e1 6324RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6325if test -n "$RUNTEST"; then
c6b750e1
DJ
6326 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6327echo "${ECHO_T}$RUNTEST" >&6
be01d343 6328else
c6b750e1
DJ
6329 echo "$as_me:$LINENO: result: no" >&5
6330echo "${ECHO_T}no" >&6
be01d343 6331fi
a0da8069 6332
c6b750e1 6333 test -n "$RUNTEST" && break
be01d343
PB
6334done
6335test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6336
be01d343
PB
6337case " $configdirs " in
6338 *" dejagnu "*)
6b89cc21 6339 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6340 ;;
6341esac
a0da8069
NN
6342
6343
a0da8069 6344# Host tools.
859789af
AC
6345ncn_tool_prefix=
6346test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6347ncn_target_tool_prefix=
6348test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6349
9a819804
AO
6350
6351
6352if test -n "$AR"; then
6353 ac_cv_prog_AR=$AR
6354elif test -n "$ac_cv_prog_AR"; then
6355 AR=$ac_cv_prog_AR
6356fi
6357
6358if test -n "$ac_cv_prog_AR"; then
6359 for ncn_progname in ar; do
6360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6361set dummy ${ncn_progname}; ac_word=$2
6362echo "$as_me:$LINENO: checking for $ac_word" >&5
6363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6364if test "${ac_cv_prog_AR+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6366else
6367 if test -n "$AR"; then
6368 ac_cv_prog_AR="$AR" # Let the user override the test.
6369else
6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH
6372do
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6377 ac_cv_prog_AR="${ncn_progname}"
6378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 break 2
6380 fi
6381done
6382done
6383
6384fi
6385fi
6386AR=$ac_cv_prog_AR
6387if test -n "$AR"; then
6388 echo "$as_me:$LINENO: result: $AR" >&5
6389echo "${ECHO_T}$AR" >&6
6390else
6391 echo "$as_me:$LINENO: result: no" >&5
6392echo "${ECHO_T}no" >&6
6393fi
6394
6395 done
6396fi
6397
6398for ncn_progname in ar; do
05cbd757
PB
6399 if test -n "$ncn_tool_prefix"; then
6400 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6401set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6402echo "$as_me:$LINENO: checking for $ac_word" >&5
6403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6404if test "${ac_cv_prog_AR+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6406else
6407 if test -n "$AR"; then
6408 ac_cv_prog_AR="$AR" # Let the user override the test.
6409else
c6b750e1
DJ
6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411for as_dir in $PATH
6412do
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6417 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 break 2
6420 fi
6421done
6422done
6423
859789af
AC
6424fi
6425fi
c6b750e1 6426AR=$ac_cv_prog_AR
859789af 6427if test -n "$AR"; then
c6b750e1
DJ
6428 echo "$as_me:$LINENO: result: $AR" >&5
6429echo "${ECHO_T}$AR" >&6
859789af 6430else
c6b750e1
DJ
6431 echo "$as_me:$LINENO: result: no" >&5
6432echo "${ECHO_T}no" >&6
859789af
AC
6433fi
6434
05cbd757
PB
6435 fi
6436 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6438set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6439echo "$as_me:$LINENO: checking for $ac_word" >&5
6440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6441if test "${ac_cv_prog_AR+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6443else
05cbd757
PB
6444 if test -n "$AR"; then
6445 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6446else
c6b750e1
DJ
6447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448for as_dir in $PATH
6449do
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6454 ac_cv_prog_AR="${ncn_progname}"
6455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6457 fi
6458done
6459done
6460
859789af
AC
6461fi
6462fi
c6b750e1 6463AR=$ac_cv_prog_AR
05cbd757 6464if test -n "$AR"; then
c6b750e1
DJ
6465 echo "$as_me:$LINENO: result: $AR" >&5
6466echo "${ECHO_T}$AR" >&6
859789af 6467else
c6b750e1
DJ
6468 echo "$as_me:$LINENO: result: no" >&5
6469echo "${ECHO_T}no" >&6
859789af 6470fi
c6b750e1 6471
05cbd757
PB
6472 fi
6473 test -n "$ac_cv_prog_AR" && break
6474done
6475
6476if test -z "$ac_cv_prog_AR" ; then
6477 set dummy ar
6478 if test $build = $host ; then
6479 AR="$2"
859789af 6480 else
05cbd757 6481 AR="${ncn_tool_prefix}$2"
859789af 6482 fi
859789af
AC
6483fi
6484
9a819804
AO
6485
6486
6487if test -n "$AS"; then
6488 ac_cv_prog_AS=$AS
6489elif test -n "$ac_cv_prog_AS"; then
6490 AS=$ac_cv_prog_AS
6491fi
6492
6493if test -n "$ac_cv_prog_AS"; then
6494 for ncn_progname in as; do
6495 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6496set dummy ${ncn_progname}; ac_word=$2
6497echo "$as_me:$LINENO: checking for $ac_word" >&5
6498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6499if test "${ac_cv_prog_AS+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6501else
6502 if test -n "$AS"; then
6503 ac_cv_prog_AS="$AS" # Let the user override the test.
6504else
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512 ac_cv_prog_AS="${ncn_progname}"
6513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516done
6517done
6518
6519fi
6520fi
6521AS=$ac_cv_prog_AS
6522if test -n "$AS"; then
6523 echo "$as_me:$LINENO: result: $AS" >&5
6524echo "${ECHO_T}$AS" >&6
6525else
6526 echo "$as_me:$LINENO: result: no" >&5
6527echo "${ECHO_T}no" >&6
6528fi
6529
6530 done
6531fi
6532
6533for ncn_progname in as; do
05cbd757
PB
6534 if test -n "$ncn_tool_prefix"; then
6535 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6536set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6537echo "$as_me:$LINENO: checking for $ac_word" >&5
6538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6539if test "${ac_cv_prog_AS+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6541else
6542 if test -n "$AS"; then
6543 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6544else
6545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6552 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
6555 fi
6556done
6557done
6558
859789af
AC
6559fi
6560fi
c6b750e1 6561AS=$ac_cv_prog_AS
859789af 6562if test -n "$AS"; then
c6b750e1
DJ
6563 echo "$as_me:$LINENO: result: $AS" >&5
6564echo "${ECHO_T}$AS" >&6
859789af 6565else
c6b750e1
DJ
6566 echo "$as_me:$LINENO: result: no" >&5
6567echo "${ECHO_T}no" >&6
859789af
AC
6568fi
6569
05cbd757
PB
6570 fi
6571 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6573set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6574echo "$as_me:$LINENO: checking for $ac_word" >&5
6575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6576if test "${ac_cv_prog_AS+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6578else
05cbd757
PB
6579 if test -n "$AS"; then
6580 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6581else
c6b750e1
DJ
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589 ac_cv_prog_AS="${ncn_progname}"
6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6592 fi
6593done
6594done
6595
859789af
AC
6596fi
6597fi
c6b750e1 6598AS=$ac_cv_prog_AS
05cbd757 6599if test -n "$AS"; then
c6b750e1
DJ
6600 echo "$as_me:$LINENO: result: $AS" >&5
6601echo "${ECHO_T}$AS" >&6
859789af 6602else
c6b750e1
DJ
6603 echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6
859789af 6605fi
c6b750e1 6606
05cbd757
PB
6607 fi
6608 test -n "$ac_cv_prog_AS" && break
6609done
6610
6611if test -z "$ac_cv_prog_AS" ; then
6612 set dummy as
6613 if test $build = $host ; then
6614 AS="$2"
859789af 6615 else
05cbd757 6616 AS="${ncn_tool_prefix}$2"
859789af 6617 fi
859789af
AC
6618fi
6619
9a819804
AO
6620
6621
6622if test -n "$DLLTOOL"; then
6623 ac_cv_prog_DLLTOOL=$DLLTOOL
6624elif test -n "$ac_cv_prog_DLLTOOL"; then
6625 DLLTOOL=$ac_cv_prog_DLLTOOL
6626fi
6627
6628if test -n "$ac_cv_prog_DLLTOOL"; then
6629 for ncn_progname in dlltool; do
6630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6631set dummy ${ncn_progname}; ac_word=$2
6632echo "$as_me:$LINENO: checking for $ac_word" >&5
6633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6634if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6636else
6637 if test -n "$DLLTOOL"; then
6638 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6639else
6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6647 ac_cv_prog_DLLTOOL="${ncn_progname}"
6648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6650 fi
6651done
6652done
6653
6654fi
6655fi
6656DLLTOOL=$ac_cv_prog_DLLTOOL
6657if test -n "$DLLTOOL"; then
6658 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6659echo "${ECHO_T}$DLLTOOL" >&6
6660else
6661 echo "$as_me:$LINENO: result: no" >&5
6662echo "${ECHO_T}no" >&6
6663fi
6664
6665 done
6666fi
6667
6668for ncn_progname in dlltool; do
05cbd757
PB
6669 if test -n "$ncn_tool_prefix"; then
6670 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6671set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6672echo "$as_me:$LINENO: checking for $ac_word" >&5
6673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6674if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6676else
6677 if test -n "$DLLTOOL"; then
6678 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6679else
c6b750e1
DJ
6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681for as_dir in $PATH
6682do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6690 fi
6691done
6692done
6693
859789af
AC
6694fi
6695fi
c6b750e1 6696DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6697if test -n "$DLLTOOL"; then
c6b750e1
DJ
6698 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6699echo "${ECHO_T}$DLLTOOL" >&6
859789af 6700else
c6b750e1
DJ
6701 echo "$as_me:$LINENO: result: no" >&5
6702echo "${ECHO_T}no" >&6
859789af
AC
6703fi
6704
05cbd757
PB
6705 fi
6706 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6708set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6709echo "$as_me:$LINENO: checking for $ac_word" >&5
6710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6711if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6713else
05cbd757
PB
6714 if test -n "$DLLTOOL"; then
6715 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6716else
c6b750e1
DJ
6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724 ac_cv_prog_DLLTOOL="${ncn_progname}"
6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728done
6729done
6730
859789af
AC
6731fi
6732fi
c6b750e1 6733DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6734if test -n "$DLLTOOL"; then
c6b750e1
DJ
6735 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6736echo "${ECHO_T}$DLLTOOL" >&6
859789af 6737else
c6b750e1
DJ
6738 echo "$as_me:$LINENO: result: no" >&5
6739echo "${ECHO_T}no" >&6
859789af 6740fi
c6b750e1 6741
05cbd757
PB
6742 fi
6743 test -n "$ac_cv_prog_DLLTOOL" && break
6744done
6745
6746if test -z "$ac_cv_prog_DLLTOOL" ; then
6747 set dummy dlltool
6748 if test $build = $host ; then
6749 DLLTOOL="$2"
859789af 6750 else
05cbd757 6751 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6752 fi
859789af
AC
6753fi
6754
9a819804
AO
6755
6756
6757if test -n "$LD"; then
6758 ac_cv_prog_LD=$LD
6759elif test -n "$ac_cv_prog_LD"; then
6760 LD=$ac_cv_prog_LD
6761fi
6762
6763if test -n "$ac_cv_prog_LD"; then
6764 for ncn_progname in ld; do
6765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6766set dummy ${ncn_progname}; ac_word=$2
6767echo "$as_me:$LINENO: checking for $ac_word" >&5
6768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6769if test "${ac_cv_prog_LD+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771else
6772 if test -n "$LD"; then
6773 ac_cv_prog_LD="$LD" # Let the user override the test.
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782 ac_cv_prog_LD="${ncn_progname}"
6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786done
6787done
6788
6789fi
6790fi
6791LD=$ac_cv_prog_LD
6792if test -n "$LD"; then
6793 echo "$as_me:$LINENO: result: $LD" >&5
6794echo "${ECHO_T}$LD" >&6
6795else
6796 echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6
6798fi
6799
6800 done
6801fi
6802
6803for ncn_progname in ld; do
05cbd757
PB
6804 if test -n "$ncn_tool_prefix"; then
6805 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6806set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6807echo "$as_me:$LINENO: checking for $ac_word" >&5
6808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6809if test "${ac_cv_prog_LD+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6811else
6812 if test -n "$LD"; then
6813 ac_cv_prog_LD="$LD" # Let the user override the test.
6814else
c6b750e1
DJ
6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 break 2
6825 fi
6826done
6827done
6828
859789af
AC
6829fi
6830fi
c6b750e1 6831LD=$ac_cv_prog_LD
859789af 6832if test -n "$LD"; then
c6b750e1
DJ
6833 echo "$as_me:$LINENO: result: $LD" >&5
6834echo "${ECHO_T}$LD" >&6
859789af 6835else
c6b750e1
DJ
6836 echo "$as_me:$LINENO: result: no" >&5
6837echo "${ECHO_T}no" >&6
859789af
AC
6838fi
6839
05cbd757
PB
6840 fi
6841 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6843set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6844echo "$as_me:$LINENO: checking for $ac_word" >&5
6845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6846if test "${ac_cv_prog_LD+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6848else
05cbd757
PB
6849 if test -n "$LD"; then
6850 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6851else
c6b750e1
DJ
6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853for as_dir in $PATH
6854do
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6859 ac_cv_prog_LD="${ncn_progname}"
6860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 break 2
6862 fi
6863done
6864done
6865
859789af
AC
6866fi
6867fi
c6b750e1 6868LD=$ac_cv_prog_LD
05cbd757 6869if test -n "$LD"; then
c6b750e1
DJ
6870 echo "$as_me:$LINENO: result: $LD" >&5
6871echo "${ECHO_T}$LD" >&6
859789af 6872else
c6b750e1
DJ
6873 echo "$as_me:$LINENO: result: no" >&5
6874echo "${ECHO_T}no" >&6
859789af 6875fi
c6b750e1 6876
05cbd757
PB
6877 fi
6878 test -n "$ac_cv_prog_LD" && break
6879done
6880
6881if test -z "$ac_cv_prog_LD" ; then
6882 set dummy ld
6883 if test $build = $host ; then
6884 LD="$2"
859789af 6885 else
05cbd757 6886 LD="${ncn_tool_prefix}$2"
859789af 6887 fi
859789af
AC
6888fi
6889
9a819804
AO
6890
6891
6892if test -n "$LIPO"; then
6893 ac_cv_prog_LIPO=$LIPO
6894elif test -n "$ac_cv_prog_LIPO"; then
6895 LIPO=$ac_cv_prog_LIPO
6896fi
6897
6898if test -n "$ac_cv_prog_LIPO"; then
6899 for ncn_progname in lipo; do
6900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6901set dummy ${ncn_progname}; ac_word=$2
6902echo "$as_me:$LINENO: checking for $ac_word" >&5
6903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6904if test "${ac_cv_prog_LIPO+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907 if test -n "$LIPO"; then
6908 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917 ac_cv_prog_LIPO="${ncn_progname}"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921done
6922done
6923
6924fi
6925fi
6926LIPO=$ac_cv_prog_LIPO
6927if test -n "$LIPO"; then
6928 echo "$as_me:$LINENO: result: $LIPO" >&5
6929echo "${ECHO_T}$LIPO" >&6
6930else
6931 echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6
6933fi
6934
6935 done
6936fi
6937
6938for ncn_progname in lipo; do
be01d343
PB
6939 if test -n "$ncn_tool_prefix"; then
6940 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6941set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6942echo "$as_me:$LINENO: checking for $ac_word" >&5
6943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6944if test "${ac_cv_prog_LIPO+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6946else
6947 if test -n "$LIPO"; then
6948 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6949else
c6b750e1
DJ
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6960 fi
6961done
6962done
6963
be01d343
PB
6964fi
6965fi
c6b750e1 6966LIPO=$ac_cv_prog_LIPO
be01d343 6967if test -n "$LIPO"; then
c6b750e1
DJ
6968 echo "$as_me:$LINENO: result: $LIPO" >&5
6969echo "${ECHO_T}$LIPO" >&6
be01d343 6970else
c6b750e1
DJ
6971 echo "$as_me:$LINENO: result: no" >&5
6972echo "${ECHO_T}no" >&6
be01d343
PB
6973fi
6974
6975 fi
6976 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6978set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6979echo "$as_me:$LINENO: checking for $ac_word" >&5
6980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6981if test "${ac_cv_prog_LIPO+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6983else
6984 if test -n "$LIPO"; then
6985 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6986else
c6b750e1
DJ
6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988for as_dir in $PATH
6989do
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994 ac_cv_prog_LIPO="${ncn_progname}"
6995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 break 2
6997 fi
6998done
6999done
7000
be01d343
PB
7001fi
7002fi
c6b750e1 7003LIPO=$ac_cv_prog_LIPO
be01d343 7004if test -n "$LIPO"; then
c6b750e1
DJ
7005 echo "$as_me:$LINENO: result: $LIPO" >&5
7006echo "${ECHO_T}$LIPO" >&6
be01d343 7007else
c6b750e1
DJ
7008 echo "$as_me:$LINENO: result: no" >&5
7009echo "${ECHO_T}no" >&6
be01d343 7010fi
c6b750e1 7011
be01d343
PB
7012 fi
7013 test -n "$ac_cv_prog_LIPO" && break
7014done
7015
7016if test -z "$ac_cv_prog_LIPO" ; then
7017 set dummy lipo
7018 if test $build = $host ; then
7019 LIPO="$2"
7020 else
7021 LIPO="${ncn_tool_prefix}$2"
7022 fi
7023fi
7024
9a819804
AO
7025
7026
7027if test -n "$NM"; then
7028 ac_cv_prog_NM=$NM
7029elif test -n "$ac_cv_prog_NM"; then
7030 NM=$ac_cv_prog_NM
7031fi
7032
7033if test -n "$ac_cv_prog_NM"; then
7034 for ncn_progname in nm; do
7035 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7036set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7037echo "$as_me:$LINENO: checking for $ac_word" >&5
7038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7039if test "${ac_cv_prog_NM+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7041else
7042 if test -n "$NM"; then
7043 ac_cv_prog_NM="$NM" # Let the user override the test.
7044else
c6b750e1
DJ
7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7052 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056done
7057done
7058
859789af
AC
7059fi
7060fi
c6b750e1 7061NM=$ac_cv_prog_NM
859789af 7062if test -n "$NM"; then
c6b750e1
DJ
7063 echo "$as_me:$LINENO: result: $NM" >&5
7064echo "${ECHO_T}$NM" >&6
859789af 7065else
c6b750e1
DJ
7066 echo "$as_me:$LINENO: result: no" >&5
7067echo "${ECHO_T}no" >&6
859789af
AC
7068fi
7069
9a819804
AO
7070 done
7071fi
7072
7073for ncn_progname in nm; do
7074 if test -n "$ncn_tool_prefix"; then
7075 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7076set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7077echo "$as_me:$LINENO: checking for $ac_word" >&5
7078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7079if test "${ac_cv_prog_NM+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7081else
05cbd757
PB
7082 if test -n "$NM"; then
7083 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7084else
c6b750e1
DJ
7085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086for as_dir in $PATH
7087do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7092 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096done
7097done
7098
859789af
AC
7099fi
7100fi
c6b750e1 7101NM=$ac_cv_prog_NM
05cbd757 7102if test -n "$NM"; then
c6b750e1
DJ
7103 echo "$as_me:$LINENO: result: $NM" >&5
7104echo "${ECHO_T}$NM" >&6
859789af 7105else
c6b750e1
DJ
7106 echo "$as_me:$LINENO: result: no" >&5
7107echo "${ECHO_T}no" >&6
859789af 7108fi
c6b750e1 7109
05cbd757 7110 fi
9a819804
AO
7111 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7113set dummy ${ncn_progname}; ac_word=$2
7114echo "$as_me:$LINENO: checking for $ac_word" >&5
7115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7116if test "${ac_cv_prog_NM+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119 if test -n "$NM"; then
7120 ac_cv_prog_NM="$NM" # Let the user override the test.
7121else
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129 ac_cv_prog_NM="${ncn_progname}"
7130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 break 2
7132 fi
7133done
7134done
7135
7136fi
7137fi
7138NM=$ac_cv_prog_NM
7139if test -n "$NM"; then
7140 echo "$as_me:$LINENO: result: $NM" >&5
7141echo "${ECHO_T}$NM" >&6
7142else
7143 echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6
7145fi
7146
7147 fi
7148 test -n "$ac_cv_prog_NM" && break
7149done
7150
7151if test -z "$ac_cv_prog_NM" ; then
7152 set dummy nm
7153 if test $build = $host ; then
7154 NM="$2"
7155 else
7156 NM="${ncn_tool_prefix}$2"
7157 fi
7158fi
7159
7160
7161
7162if test -n "$RANLIB"; then
7163 ac_cv_prog_RANLIB=$RANLIB
7164elif test -n "$ac_cv_prog_RANLIB"; then
7165 RANLIB=$ac_cv_prog_RANLIB
7166fi
7167
7168if test -n "$ac_cv_prog_RANLIB"; then
7169 for ncn_progname in ranlib; do
7170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7171set dummy ${ncn_progname}; ac_word=$2
7172echo "$as_me:$LINENO: checking for $ac_word" >&5
7173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7174if test "${ac_cv_prog_RANLIB+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177 if test -n "$RANLIB"; then
7178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7179else
7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181for as_dir in $PATH
7182do
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187 ac_cv_prog_RANLIB="${ncn_progname}"
7188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 break 2
7190 fi
7191done
7192done
7193
7194fi
7195fi
7196RANLIB=$ac_cv_prog_RANLIB
7197if test -n "$RANLIB"; then
7198 echo "$as_me:$LINENO: result: $RANLIB" >&5
7199echo "${ECHO_T}$RANLIB" >&6
7200else
7201 echo "$as_me:$LINENO: result: no" >&5
7202echo "${ECHO_T}no" >&6
7203fi
7204
7205 done
7206fi
859789af 7207
9a819804 7208for ncn_progname in ranlib; do
05cbd757
PB
7209 if test -n "$ncn_tool_prefix"; then
7210 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7211set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7212echo "$as_me:$LINENO: checking for $ac_word" >&5
7213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7214if test "${ac_cv_prog_RANLIB+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7216else
7217 if test -n "$RANLIB"; then
7218 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7219else
c6b750e1
DJ
7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7227 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 break 2
7230 fi
7231done
7232done
7233
859789af
AC
7234fi
7235fi
c6b750e1 7236RANLIB=$ac_cv_prog_RANLIB
859789af 7237if test -n "$RANLIB"; then
c6b750e1
DJ
7238 echo "$as_me:$LINENO: result: $RANLIB" >&5
7239echo "${ECHO_T}$RANLIB" >&6
859789af 7240else
c6b750e1
DJ
7241 echo "$as_me:$LINENO: result: no" >&5
7242echo "${ECHO_T}no" >&6
859789af
AC
7243fi
7244
05cbd757
PB
7245 fi
7246 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7248set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7249echo "$as_me:$LINENO: checking for $ac_word" >&5
7250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7251if test "${ac_cv_prog_RANLIB+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7253else
05cbd757
PB
7254 if test -n "$RANLIB"; then
7255 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7256else
c6b750e1
DJ
7257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258for as_dir in $PATH
7259do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264 ac_cv_prog_RANLIB="${ncn_progname}"
7265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 break 2
7267 fi
7268done
7269done
7270
859789af
AC
7271fi
7272fi
c6b750e1 7273RANLIB=$ac_cv_prog_RANLIB
05cbd757 7274if test -n "$RANLIB"; then
c6b750e1
DJ
7275 echo "$as_me:$LINENO: result: $RANLIB" >&5
7276echo "${ECHO_T}$RANLIB" >&6
859789af 7277else
c6b750e1
DJ
7278 echo "$as_me:$LINENO: result: no" >&5
7279echo "${ECHO_T}no" >&6
859789af 7280fi
c6b750e1 7281
859789af 7282 fi
05cbd757
PB
7283 test -n "$ac_cv_prog_RANLIB" && break
7284done
7285
7286if test -z "$ac_cv_prog_RANLIB" ; then
7287 RANLIB=":"
859789af
AC
7288fi
7289
9a819804
AO
7290
7291
7292if test -n "$STRIP"; then
7293 ac_cv_prog_STRIP=$STRIP
7294elif test -n "$ac_cv_prog_STRIP"; then
7295 STRIP=$ac_cv_prog_STRIP
7296fi
7297
7298if test -n "$ac_cv_prog_STRIP"; then
7299 for ncn_progname in strip; do
7300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7301set dummy ${ncn_progname}; ac_word=$2
7302echo "$as_me:$LINENO: checking for $ac_word" >&5
7303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7304if test "${ac_cv_prog_STRIP+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7306else
7307 if test -n "$STRIP"; then
7308 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_STRIP="${ncn_progname}"
7318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321done
7322done
7323
7324fi
7325fi
7326STRIP=$ac_cv_prog_STRIP
7327if test -n "$STRIP"; then
7328 echo "$as_me:$LINENO: result: $STRIP" >&5
7329echo "${ECHO_T}$STRIP" >&6
7330else
7331 echo "$as_me:$LINENO: result: no" >&5
7332echo "${ECHO_T}no" >&6
7333fi
7334
7335 done
7336fi
7337
7338for ncn_progname in strip; do
be01d343
PB
7339 if test -n "$ncn_tool_prefix"; then
7340 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7341set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7342echo "$as_me:$LINENO: checking for $ac_word" >&5
7343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7344if test "${ac_cv_prog_STRIP+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7346else
7347 if test -n "$STRIP"; then
7348 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7349else
c6b750e1
DJ
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361done
7362done
7363
be01d343
PB
7364fi
7365fi
c6b750e1 7366STRIP=$ac_cv_prog_STRIP
be01d343 7367if test -n "$STRIP"; then
c6b750e1
DJ
7368 echo "$as_me:$LINENO: result: $STRIP" >&5
7369echo "${ECHO_T}$STRIP" >&6
be01d343 7370else
c6b750e1
DJ
7371 echo "$as_me:$LINENO: result: no" >&5
7372echo "${ECHO_T}no" >&6
be01d343
PB
7373fi
7374
7375 fi
7376 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7378set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7379echo "$as_me:$LINENO: checking for $ac_word" >&5
7380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7381if test "${ac_cv_prog_STRIP+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7383else
7384 if test -n "$STRIP"; then
7385 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7386else
c6b750e1
DJ
7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394 ac_cv_prog_STRIP="${ncn_progname}"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398done
7399done
7400
be01d343
PB
7401fi
7402fi
c6b750e1 7403STRIP=$ac_cv_prog_STRIP
be01d343 7404if test -n "$STRIP"; then
c6b750e1
DJ
7405 echo "$as_me:$LINENO: result: $STRIP" >&5
7406echo "${ECHO_T}$STRIP" >&6
be01d343 7407else
c6b750e1
DJ
7408 echo "$as_me:$LINENO: result: no" >&5
7409echo "${ECHO_T}no" >&6
be01d343 7410fi
c6b750e1 7411
be01d343
PB
7412 fi
7413 test -n "$ac_cv_prog_STRIP" && break
7414done
7415
7416if test -z "$ac_cv_prog_STRIP" ; then
7417 STRIP=":"
7418fi
7419
9a819804
AO
7420
7421
7422if test -n "$WINDRES"; then
7423 ac_cv_prog_WINDRES=$WINDRES
7424elif test -n "$ac_cv_prog_WINDRES"; then
7425 WINDRES=$ac_cv_prog_WINDRES
7426fi
7427
7428if test -n "$ac_cv_prog_WINDRES"; then
7429 for ncn_progname in windres; do
7430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7431set dummy ${ncn_progname}; ac_word=$2
7432echo "$as_me:$LINENO: checking for $ac_word" >&5
7433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7434if test "${ac_cv_prog_WINDRES+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436else
7437 if test -n "$WINDRES"; then
7438 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7439else
7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447 ac_cv_prog_WINDRES="${ncn_progname}"
7448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2
7450 fi
7451done
7452done
7453
7454fi
7455fi
7456WINDRES=$ac_cv_prog_WINDRES
7457if test -n "$WINDRES"; then
7458 echo "$as_me:$LINENO: result: $WINDRES" >&5
7459echo "${ECHO_T}$WINDRES" >&6
7460else
7461 echo "$as_me:$LINENO: result: no" >&5
7462echo "${ECHO_T}no" >&6
7463fi
7464
7465 done
7466fi
7467
7468for ncn_progname in windres; do
05cbd757
PB
7469 if test -n "$ncn_tool_prefix"; then
7470 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7471set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7472echo "$as_me:$LINENO: checking for $ac_word" >&5
7473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7474if test "${ac_cv_prog_WINDRES+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7476else
7477 if test -n "$WINDRES"; then
7478 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7479else
c6b750e1
DJ
7480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7490 fi
7491done
7492done
7493
859789af
AC
7494fi
7495fi
c6b750e1 7496WINDRES=$ac_cv_prog_WINDRES
859789af 7497if test -n "$WINDRES"; then
c6b750e1
DJ
7498 echo "$as_me:$LINENO: result: $WINDRES" >&5
7499echo "${ECHO_T}$WINDRES" >&6
859789af 7500else
c6b750e1
DJ
7501 echo "$as_me:$LINENO: result: no" >&5
7502echo "${ECHO_T}no" >&6
859789af
AC
7503fi
7504
05cbd757
PB
7505 fi
7506 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7508set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7509echo "$as_me:$LINENO: checking for $ac_word" >&5
7510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7511if test "${ac_cv_prog_WINDRES+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7513else
05cbd757
PB
7514 if test -n "$WINDRES"; then
7515 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7516else
c6b750e1
DJ
7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518for as_dir in $PATH
7519do
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_prog_WINDRES="${ncn_progname}"
7525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 break 2
7527 fi
7528done
7529done
7530
859789af
AC
7531fi
7532fi
c6b750e1 7533WINDRES=$ac_cv_prog_WINDRES
05cbd757 7534if test -n "$WINDRES"; then
c6b750e1
DJ
7535 echo "$as_me:$LINENO: result: $WINDRES" >&5
7536echo "${ECHO_T}$WINDRES" >&6
859789af 7537else
c6b750e1
DJ
7538 echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6
859789af 7540fi
c6b750e1 7541
05cbd757
PB
7542 fi
7543 test -n "$ac_cv_prog_WINDRES" && break
7544done
7545
7546if test -z "$ac_cv_prog_WINDRES" ; then
7547 set dummy windres
7548 if test $build = $host ; then
7549 WINDRES="$2"
859789af 7550 else
05cbd757 7551 WINDRES="${ncn_tool_prefix}$2"
859789af 7552 fi
859789af
AC
7553fi
7554
9a819804
AO
7555
7556
0c24b341
NC
7557if test -n "$WINDMC"; then
7558 ac_cv_prog_WINDMC=$WINDMC
7559elif test -n "$ac_cv_prog_WINDMC"; then
7560 WINDMC=$ac_cv_prog_WINDMC
7561fi
7562
7563if test -n "$ac_cv_prog_WINDMC"; then
7564 for ncn_progname in windmc; do
7565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7566set dummy ${ncn_progname}; ac_word=$2
7567echo "$as_me:$LINENO: checking for $ac_word" >&5
7568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7569if test "${ac_cv_prog_WINDMC+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572 if test -n "$WINDMC"; then
7573 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7574else
7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582 ac_cv_prog_WINDMC="${ncn_progname}"
7583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586done
7587done
7588
7589fi
7590fi
7591WINDMC=$ac_cv_prog_WINDMC
7592if test -n "$WINDMC"; then
7593 echo "$as_me:$LINENO: result: $WINDMC" >&5
7594echo "${ECHO_T}$WINDMC" >&6
7595else
7596 echo "$as_me:$LINENO: result: no" >&5
7597echo "${ECHO_T}no" >&6
7598fi
7599
7600 done
7601fi
7602
7603for ncn_progname in windmc; do
7604 if test -n "$ncn_tool_prefix"; then
7605 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7606set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7607echo "$as_me:$LINENO: checking for $ac_word" >&5
7608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7609if test "${ac_cv_prog_WINDMC+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7611else
7612 if test -n "$WINDMC"; then
7613 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7614else
7615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7622 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7625 fi
7626done
7627done
7628
7629fi
7630fi
7631WINDMC=$ac_cv_prog_WINDMC
7632if test -n "$WINDMC"; then
7633 echo "$as_me:$LINENO: result: $WINDMC" >&5
7634echo "${ECHO_T}$WINDMC" >&6
7635else
7636 echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6
7638fi
7639
7640 fi
7641 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7643set dummy ${ncn_progname}; ac_word=$2
7644echo "$as_me:$LINENO: checking for $ac_word" >&5
7645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7646if test "${ac_cv_prog_WINDMC+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7648else
7649 if test -n "$WINDMC"; then
7650 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7651else
7652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653for as_dir in $PATH
7654do
7655 IFS=$as_save_IFS
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659 ac_cv_prog_WINDMC="${ncn_progname}"
7660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 break 2
7662 fi
7663done
7664done
7665
7666fi
7667fi
7668WINDMC=$ac_cv_prog_WINDMC
7669if test -n "$WINDMC"; then
7670 echo "$as_me:$LINENO: result: $WINDMC" >&5
7671echo "${ECHO_T}$WINDMC" >&6
7672else
7673 echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6
7675fi
7676
7677 fi
7678 test -n "$ac_cv_prog_WINDMC" && break
7679done
7680
7681if test -z "$ac_cv_prog_WINDMC" ; then
7682 set dummy windmc
7683 if test $build = $host ; then
7684 WINDMC="$2"
7685 else
7686 WINDMC="${ncn_tool_prefix}$2"
7687 fi
7688fi
7689
7690
7691
9a819804
AO
7692if test -n "$OBJCOPY"; then
7693 ac_cv_prog_OBJCOPY=$OBJCOPY
7694elif test -n "$ac_cv_prog_OBJCOPY"; then
7695 OBJCOPY=$ac_cv_prog_OBJCOPY
7696fi
7697
7698if test -n "$ac_cv_prog_OBJCOPY"; then
7699 for ncn_progname in objcopy; do
7700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7701set dummy ${ncn_progname}; ac_word=$2
7702echo "$as_me:$LINENO: checking for $ac_word" >&5
7703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7704if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706else
7707 if test -n "$OBJCOPY"; then
7708 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7709else
7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711for as_dir in $PATH
7712do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717 ac_cv_prog_OBJCOPY="${ncn_progname}"
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7720 fi
7721done
7722done
7723
7724fi
7725fi
7726OBJCOPY=$ac_cv_prog_OBJCOPY
7727if test -n "$OBJCOPY"; then
7728 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7729echo "${ECHO_T}$OBJCOPY" >&6
7730else
7731 echo "$as_me:$LINENO: result: no" >&5
7732echo "${ECHO_T}no" >&6
7733fi
7734
7735 done
7736fi
7737
7738for ncn_progname in objcopy; do
05cbd757
PB
7739 if test -n "$ncn_tool_prefix"; then
7740 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7741set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7742echo "$as_me:$LINENO: checking for $ac_word" >&5
7743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7744if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7746else
7747 if test -n "$OBJCOPY"; then
7748 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7749else
c6b750e1
DJ
7750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751for as_dir in $PATH
7752do
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7760 fi
7761done
7762done
7763
859789af
AC
7764fi
7765fi
c6b750e1 7766OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7767if test -n "$OBJCOPY"; then
c6b750e1
DJ
7768 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7769echo "${ECHO_T}$OBJCOPY" >&6
859789af 7770else
c6b750e1
DJ
7771 echo "$as_me:$LINENO: result: no" >&5
7772echo "${ECHO_T}no" >&6
859789af
AC
7773fi
7774
05cbd757
PB
7775 fi
7776 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7778set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7779echo "$as_me:$LINENO: checking for $ac_word" >&5
7780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7781if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7783else
05cbd757
PB
7784 if test -n "$OBJCOPY"; then
7785 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7786else
c6b750e1
DJ
7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788for as_dir in $PATH
7789do
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794 ac_cv_prog_OBJCOPY="${ncn_progname}"
7795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 break 2
7797 fi
7798done
7799done
7800
859789af
AC
7801fi
7802fi
c6b750e1 7803OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7804if test -n "$OBJCOPY"; then
c6b750e1
DJ
7805 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7806echo "${ECHO_T}$OBJCOPY" >&6
859789af 7807else
c6b750e1
DJ
7808 echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6
859789af 7810fi
c6b750e1 7811
05cbd757
PB
7812 fi
7813 test -n "$ac_cv_prog_OBJCOPY" && break
7814done
7815
7816if test -z "$ac_cv_prog_OBJCOPY" ; then
7817 set dummy objcopy
7818 if test $build = $host ; then
7819 OBJCOPY="$2"
859789af 7820 else
05cbd757 7821 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7822 fi
859789af
AC
7823fi
7824
9a819804
AO
7825
7826
7827if test -n "$OBJDUMP"; then
7828 ac_cv_prog_OBJDUMP=$OBJDUMP
7829elif test -n "$ac_cv_prog_OBJDUMP"; then
7830 OBJDUMP=$ac_cv_prog_OBJDUMP
7831fi
7832
7833if test -n "$ac_cv_prog_OBJDUMP"; then
7834 for ncn_progname in objdump; do
7835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7836set dummy ${ncn_progname}; ac_word=$2
7837echo "$as_me:$LINENO: checking for $ac_word" >&5
7838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7839if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842 if test -n "$OBJDUMP"; then
7843 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7844else
7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852 ac_cv_prog_OBJDUMP="${ncn_progname}"
7853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856done
7857done
7858
7859fi
7860fi
7861OBJDUMP=$ac_cv_prog_OBJDUMP
7862if test -n "$OBJDUMP"; then
7863 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7864echo "${ECHO_T}$OBJDUMP" >&6
7865else
7866 echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
7868fi
7869
7870 done
7871fi
7872
7873for ncn_progname in objdump; do
05cbd757
PB
7874 if test -n "$ncn_tool_prefix"; then
7875 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7876set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7877echo "$as_me:$LINENO: checking for $ac_word" >&5
7878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7879if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7881else
7882 if test -n "$OBJDUMP"; then
7883 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7884else
c6b750e1
DJ
7885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886for as_dir in $PATH
7887do
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7895 fi
7896done
7897done
7898
859789af
AC
7899fi
7900fi
c6b750e1 7901OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7902if test -n "$OBJDUMP"; then
c6b750e1
DJ
7903 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7904echo "${ECHO_T}$OBJDUMP" >&6
859789af 7905else
c6b750e1
DJ
7906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
859789af
AC
7908fi
7909
05cbd757
PB
7910 fi
7911 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7913set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7914echo "$as_me:$LINENO: checking for $ac_word" >&5
7915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7916if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7918else
05cbd757
PB
7919 if test -n "$OBJDUMP"; then
7920 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7921else
c6b750e1
DJ
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_OBJDUMP="${ncn_progname}"
7930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933done
7934done
7935
859789af
AC
7936fi
7937fi
c6b750e1 7938OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7939if test -n "$OBJDUMP"; then
c6b750e1
DJ
7940 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7941echo "${ECHO_T}$OBJDUMP" >&6
859789af 7942else
c6b750e1
DJ
7943 echo "$as_me:$LINENO: result: no" >&5
7944echo "${ECHO_T}no" >&6
859789af 7945fi
c6b750e1 7946
05cbd757
PB
7947 fi
7948 test -n "$ac_cv_prog_OBJDUMP" && break
7949done
7950
7951if test -z "$ac_cv_prog_OBJDUMP" ; then
7952 set dummy objdump
7953 if test $build = $host ; then
7954 OBJDUMP="$2"
859789af 7955 else
05cbd757 7956 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7957 fi
859789af
AC
7958fi
7959
a0da8069
NN
7960
7961
7962
7963
7964
be01d343 7965# Target tools.
c6b750e1 7966
2429c060
PB
7967# Check whether --with-build-time-tools or --without-build-time-tools was given.
7968if test "${with_build_time_tools+set}" = set; then
7969 withval="$with_build_time_tools"
7970 case x"$withval" in
7971 x/*) ;;
7972 *)
7973 with_build_time_tools=
c6b750e1
DJ
7974 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7975echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7976 ;;
7977 esac
859789af 7978else
2429c060 7979 with_build_time_tools=
c6b750e1 7980fi;
859789af 7981
9a819804
AO
7982
7983
7984if test -n "$CC_FOR_TARGET"; then
7985 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7986elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7987 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7988fi
7989
7990if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7991 for ncn_progname in cc gcc; do
7992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7993set dummy ${ncn_progname}; ac_word=$2
7994echo "$as_me:$LINENO: checking for $ac_word" >&5
7995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7996if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7998else
7999 if test -n "$CC_FOR_TARGET"; then
8000 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8001else
8002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003for as_dir in $PATH
8004do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8009 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8012 fi
8013done
8014done
8015
8016fi
8017fi
8018CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8019if test -n "$CC_FOR_TARGET"; then
8020 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8021echo "${ECHO_T}$CC_FOR_TARGET" >&6
8022else
8023 echo "$as_me:$LINENO: result: no" >&5
8024echo "${ECHO_T}no" >&6
8025fi
8026
8027 done
8028fi
8029
8030if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8031 for ncn_progname in cc gcc; do
c6b750e1
DJ
8032 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8033echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8034 if test -x $with_build_time_tools/${ncn_progname}; then
8035 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8036 echo "$as_me:$LINENO: result: yes" >&5
8037echo "${ECHO_T}yes" >&6
cac3d6c4 8038 break
2429c060 8039 else
c6b750e1
DJ
8040 echo "$as_me:$LINENO: result: no" >&5
8041echo "${ECHO_T}no" >&6
cac3d6c4
CM
8042 fi
8043 done
55db4b87
PB
8044fi
8045
2429c060
PB
8046if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8047 for ncn_progname in cc gcc; do
8048 if test -n "$ncn_target_tool_prefix"; then
8049 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8050set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8051echo "$as_me:$LINENO: checking for $ac_word" >&5
8052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8053if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8055else
8056 if test -n "$CC_FOR_TARGET"; then
8057 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8058else
c6b750e1
DJ
8059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060for as_dir in $PATH
8061do
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8069 fi
8070done
8071done
8072
55db4b87
PB
8073fi
8074fi
c6b750e1 8075CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8076if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8077 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8078echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8079else
c6b750e1
DJ
8080 echo "$as_me:$LINENO: result: no" >&5
8081echo "${ECHO_T}no" >&6
55db4b87
PB
8082fi
8083
2429c060
PB
8084 fi
8085 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8087set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8088echo "$as_me:$LINENO: checking for $ac_word" >&5
8089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8090if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8092else
05cbd757
PB
8093 if test -n "$CC_FOR_TARGET"; then
8094 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8095else
c6b750e1
DJ
8096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097for as_dir in $PATH
8098do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8106 fi
8107done
8108done
8109
55db4b87
PB
8110fi
8111fi
c6b750e1 8112CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8113if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8114 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8115echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8116else
c6b750e1
DJ
8117 echo "$as_me:$LINENO: result: no" >&5
8118echo "${ECHO_T}no" >&6
55db4b87 8119fi
c6b750e1 8120
2429c060
PB
8121 fi
8122 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8123 done
8124fi
c6b750e1 8125
05cbd757
PB
8126if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8127 set dummy cc gcc
8128 if test $build = $target ; then
8129 CC_FOR_TARGET="$2"
55db4b87 8130 else
05cbd757 8131 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8132 fi
d3f5afc4
MS
8133else
8134 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8135fi
8136
9a819804
AO
8137
8138
8139if test -n "$CXX_FOR_TARGET"; then
8140 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8141elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8142 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8143fi
8144
8145if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8146 for ncn_progname in c++ g++ cxx gxx; do
8147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8148set dummy ${ncn_progname}; ac_word=$2
8149echo "$as_me:$LINENO: checking for $ac_word" >&5
8150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8151if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8153else
8154 if test -n "$CXX_FOR_TARGET"; then
8155 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8156else
8157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158for as_dir in $PATH
8159do
8160 IFS=$as_save_IFS
8161 test -z "$as_dir" && as_dir=.
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8164 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 break 2
8167 fi
8168done
8169done
8170
8171fi
8172fi
8173CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8174if test -n "$CXX_FOR_TARGET"; then
8175 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8176echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8177else
8178 echo "$as_me:$LINENO: result: no" >&5
8179echo "${ECHO_T}no" >&6
8180fi
8181
8182 done
8183fi
8184
8185if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8186 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8187 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8188echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8189 if test -x $with_build_time_tools/${ncn_progname}; then
8190 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8191 echo "$as_me:$LINENO: result: yes" >&5
8192echo "${ECHO_T}yes" >&6
2429c060
PB
8193 break
8194 else
c6b750e1
DJ
8195 echo "$as_me:$LINENO: result: no" >&5
8196echo "${ECHO_T}no" >&6
2429c060
PB
8197 fi
8198 done
8199fi
8200
8201if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8202 for ncn_progname in c++ g++ cxx gxx; do
8203 if test -n "$ncn_target_tool_prefix"; then
8204 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8205set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8206echo "$as_me:$LINENO: checking for $ac_word" >&5
8207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8208if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8210else
8211 if test -n "$CXX_FOR_TARGET"; then
8212 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8213else
c6b750e1
DJ
8214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215for as_dir in $PATH
8216do
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8221 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 break 2
8224 fi
8225done
8226done
8227
55db4b87
PB
8228fi
8229fi
c6b750e1 8230CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8231if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8232 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8233echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8234else
c6b750e1
DJ
8235 echo "$as_me:$LINENO: result: no" >&5
8236echo "${ECHO_T}no" >&6
55db4b87
PB
8237fi
8238
2429c060
PB
8239 fi
8240 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8242set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8243echo "$as_me:$LINENO: checking for $ac_word" >&5
8244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8245if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8247else
05cbd757
PB
8248 if test -n "$CXX_FOR_TARGET"; then
8249 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8250else
c6b750e1
DJ
8251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252for as_dir in $PATH
8253do
8254 IFS=$as_save_IFS
8255 test -z "$as_dir" && as_dir=.
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8258 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8260 break 2
8261 fi
8262done
8263done
8264
55db4b87
PB
8265fi
8266fi
c6b750e1 8267CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8268if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8269 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8270echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8271else
c6b750e1
DJ
8272 echo "$as_me:$LINENO: result: no" >&5
8273echo "${ECHO_T}no" >&6
55db4b87 8274fi
c6b750e1 8275
2429c060
PB
8276 fi
8277 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8278 done
8279fi
c6b750e1 8280
05cbd757
PB
8281if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8282 set dummy c++ g++ cxx gxx
8283 if test $build = $target ; then
8284 CXX_FOR_TARGET="$2"
55db4b87 8285 else
05cbd757 8286 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8287 fi
d3f5afc4
MS
8288else
8289 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8290fi
8291
9a819804
AO
8292
8293
8294if test -n "$GCC_FOR_TARGET"; then
8295 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8296elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8297 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8298fi
8299
8300if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8301 for ncn_progname in gcc; do
8302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8303set dummy ${ncn_progname}; ac_word=$2
8304echo "$as_me:$LINENO: checking for $ac_word" >&5
8305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8306if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8308else
8309 if test -n "$GCC_FOR_TARGET"; then
8310 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8311else
8312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313for as_dir in $PATH
8314do
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8319 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8322 fi
8323done
8324done
8325
8326fi
8327fi
8328GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8329if test -n "$GCC_FOR_TARGET"; then
8330 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8331echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8332else
8333 echo "$as_me:$LINENO: result: no" >&5
8334echo "${ECHO_T}no" >&6
8335fi
8336
8337 done
8338fi
8339
8340if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8341 for ncn_progname in gcc; do
c6b750e1
DJ
8342 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8343echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8344 if test -x $with_build_time_tools/${ncn_progname}; then
8345 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8346 echo "$as_me:$LINENO: result: yes" >&5
8347echo "${ECHO_T}yes" >&6
2429c060
PB
8348 break
8349 else
c6b750e1
DJ
8350 echo "$as_me:$LINENO: result: no" >&5
8351echo "${ECHO_T}no" >&6
2429c060
PB
8352 fi
8353 done
8354fi
8355
8356if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8357 for ncn_progname in gcc; do
8358 if test -n "$ncn_target_tool_prefix"; then
8359 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8360set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8361echo "$as_me:$LINENO: checking for $ac_word" >&5
8362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8363if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8365else
2429c060
PB
8366 if test -n "$GCC_FOR_TARGET"; then
8367 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8368else
c6b750e1
DJ
8369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370for as_dir in $PATH
8371do
8372 IFS=$as_save_IFS
8373 test -z "$as_dir" && as_dir=.
8374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8376 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8378 break 2
8379 fi
8380done
8381done
8382
55db4b87
PB
8383fi
8384fi
c6b750e1 8385GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8386if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8387 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8388echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8389else
c6b750e1
DJ
8390 echo "$as_me:$LINENO: result: no" >&5
8391echo "${ECHO_T}no" >&6
55db4b87
PB
8392fi
8393
2429c060
PB
8394 fi
8395 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8397set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8398echo "$as_me:$LINENO: checking for $ac_word" >&5
8399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8400if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8402else
05cbd757
PB
8403 if test -n "$GCC_FOR_TARGET"; then
8404 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8405else
c6b750e1
DJ
8406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407for as_dir in $PATH
8408do
8409 IFS=$as_save_IFS
8410 test -z "$as_dir" && as_dir=.
8411 for ac_exec_ext in '' $ac_executable_extensions; do
8412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8413 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8415 break 2
8416 fi
8417done
8418done
8419
55db4b87
PB
8420fi
8421fi
c6b750e1 8422GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8423if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8424 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8425echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8426else
c6b750e1
DJ
8427 echo "$as_me:$LINENO: result: no" >&5
8428echo "${ECHO_T}no" >&6
55db4b87 8429fi
c6b750e1 8430
2429c060
PB
8431 fi
8432 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8433 done
8434fi
c6b750e1 8435
05cbd757
PB
8436if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8437 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8438else
8439 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8440fi
8441
9a819804
AO
8442
8443
8444if test -n "$GCJ_FOR_TARGET"; then
8445 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8446elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8447 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8448fi
8449
8450if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8451 for ncn_progname in gcj; do
8452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8453set dummy ${ncn_progname}; ac_word=$2
8454echo "$as_me:$LINENO: checking for $ac_word" >&5
8455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8456if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8458else
8459 if test -n "$GCJ_FOR_TARGET"; then
8460 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8461else
8462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463for as_dir in $PATH
8464do
8465 IFS=$as_save_IFS
8466 test -z "$as_dir" && as_dir=.
8467 for ac_exec_ext in '' $ac_executable_extensions; do
8468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8469 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 break 2
8472 fi
8473done
8474done
8475
8476fi
8477fi
8478GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8479if test -n "$GCJ_FOR_TARGET"; then
8480 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8481echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8482else
8483 echo "$as_me:$LINENO: result: no" >&5
8484echo "${ECHO_T}no" >&6
8485fi
8486
8487 done
8488fi
8489
8490if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8491 for ncn_progname in gcj; do
c6b750e1
DJ
8492 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8493echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8494 if test -x $with_build_time_tools/${ncn_progname}; then
8495 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8496 echo "$as_me:$LINENO: result: yes" >&5
8497echo "${ECHO_T}yes" >&6
2429c060
PB
8498 break
8499 else
c6b750e1
DJ
8500 echo "$as_me:$LINENO: result: no" >&5
8501echo "${ECHO_T}no" >&6
2429c060
PB
8502 fi
8503 done
8504fi
8505
8506if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8507 for ncn_progname in gcj; do
8508 if test -n "$ncn_target_tool_prefix"; then
8509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8510set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8511echo "$as_me:$LINENO: checking for $ac_word" >&5
8512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8513if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8515else
8516 if test -n "$GCJ_FOR_TARGET"; then
8517 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8518else
c6b750e1
DJ
8519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520for as_dir in $PATH
8521do
8522 IFS=$as_save_IFS
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8526 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8528 break 2
8529 fi
8530done
8531done
8532
55db4b87
PB
8533fi
8534fi
9a819804
AO
8535GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8536if test -n "$GCJ_FOR_TARGET"; then
8537 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8538echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8539else
8540 echo "$as_me:$LINENO: result: no" >&5
8541echo "${ECHO_T}no" >&6
8542fi
8543
8544 fi
8545 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8547set dummy ${ncn_progname}; ac_word=$2
8548echo "$as_me:$LINENO: checking for $ac_word" >&5
8549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8550if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8552else
8553 if test -n "$GCJ_FOR_TARGET"; then
8554 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8555else
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 break 2
8566 fi
8567done
8568done
8569
8570fi
8571fi
8572GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8573if test -n "$GCJ_FOR_TARGET"; then
8574 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8575echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8576else
8577 echo "$as_me:$LINENO: result: no" >&5
8578echo "${ECHO_T}no" >&6
8579fi
8580
8581 fi
8582 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8583 done
8584fi
8585
8586if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8587 set dummy gcj
8588 if test $build = $target ; then
8589 GCJ_FOR_TARGET="$2"
8590 else
8591 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8592 fi
d3f5afc4
MS
8593else
8594 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8595fi
8596
8597
8598
8599if test -n "$GFORTRAN_FOR_TARGET"; then
8600 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8601elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8602 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8603fi
8604
9a819804
AO
8605if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8606 for ncn_progname in gfortran; do
8607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8608set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8609echo "$as_me:$LINENO: checking for $ac_word" >&5
8610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8611if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8612 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8613else
9a819804
AO
8614 if test -n "$GFORTRAN_FOR_TARGET"; then
8615 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8616else
c6b750e1
DJ
8617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618for as_dir in $PATH
8619do
8620 IFS=$as_save_IFS
8621 test -z "$as_dir" && as_dir=.
8622 for ac_exec_ext in '' $ac_executable_extensions; do
8623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8624 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 break 2
8627 fi
8628done
8629done
8630
55db4b87
PB
8631fi
8632fi
9a819804
AO
8633GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8634if test -n "$GFORTRAN_FOR_TARGET"; then
8635 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8636echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8637else
c6b750e1
DJ
8638 echo "$as_me:$LINENO: result: no" >&5
8639echo "${ECHO_T}no" >&6
55db4b87 8640fi
c6b750e1 8641
2429c060
PB
8642 done
8643fi
c6b750e1 8644
9a819804 8645if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8646 for ncn_progname in gfortran; do
c6b750e1
DJ
8647 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8648echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8649 if test -x $with_build_time_tools/${ncn_progname}; then
8650 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8651 echo "$as_me:$LINENO: result: yes" >&5
8652echo "${ECHO_T}yes" >&6
2429c060
PB
8653 break
8654 else
c6b750e1
DJ
8655 echo "$as_me:$LINENO: result: no" >&5
8656echo "${ECHO_T}no" >&6
2429c060
PB
8657 fi
8658 done
8659fi
8660
8661if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8662 for ncn_progname in gfortran; do
8663 if test -n "$ncn_target_tool_prefix"; then
8664 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8665set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8666echo "$as_me:$LINENO: checking for $ac_word" >&5
8667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8668if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8670else
8671 if test -n "$GFORTRAN_FOR_TARGET"; then
8672 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8673else
c6b750e1
DJ
8674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675for as_dir in $PATH
8676do
8677 IFS=$as_save_IFS
8678 test -z "$as_dir" && as_dir=.
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8681 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8683 break 2
8684 fi
8685done
8686done
8687
55db4b87
PB
8688fi
8689fi
c6b750e1 8690GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8691if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8692 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8693echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8694else
c6b750e1
DJ
8695 echo "$as_me:$LINENO: result: no" >&5
8696echo "${ECHO_T}no" >&6
55db4b87
PB
8697fi
8698
2429c060
PB
8699 fi
8700 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8702set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8703echo "$as_me:$LINENO: checking for $ac_word" >&5
8704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8705if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8707else
05cbd757 8708 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8709 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8710else
8711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712for as_dir in $PATH
8713do
8714 IFS=$as_save_IFS
8715 test -z "$as_dir" && as_dir=.
8716 for ac_exec_ext in '' $ac_executable_extensions; do
8717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8718 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8720 break 2
8721 fi
8722done
8723done
8724
55db4b87
PB
8725fi
8726fi
c6b750e1 8727GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8728if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8729 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8730echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8731else
c6b750e1
DJ
8732 echo "$as_me:$LINENO: result: no" >&5
8733echo "${ECHO_T}no" >&6
55db4b87 8734fi
c6b750e1 8735
2429c060
PB
8736 fi
8737 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8738 done
8739fi
c6b750e1 8740
05cbd757
PB
8741if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8742 set dummy gfortran
8743 if test $build = $target ; then
8744 GFORTRAN_FOR_TARGET="$2"
55db4b87 8745 else
05cbd757 8746 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8747 fi
d3f5afc4
MS
8748else
8749 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8750fi
8751
2429c060
PB
8752
8753
2429c060
PB
8754cat > conftest.c << \EOF
8755#ifdef __GNUC__
8756 gcc_yay;
8757#endif
8758EOF
8759if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8760 have_gcc_for_target=yes
859789af 8761else
2429c060
PB
8762 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8763 have_gcc_for_target=no
859789af 8764fi
2429c060
PB
8765rm conftest.c
8766
8767
8768
859789af 8769
2429c060
PB
8770if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8771 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8772 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8773echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8774 if test -x $with_build_time_tools/ar; then
8775 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8776 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8777 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8778echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8779 else
c6b750e1
DJ
8780 echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
3a35eeb3 8782 fi
2429c060
PB
8783 elif test $build != $host && test $have_gcc_for_target = yes; then
8784 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8785 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8786 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8787 fi
2429c060 8788fi
c6b750e1 8789if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8790 # Extract the first word of "ar", so it can be a program name with args.
8791set dummy ar; ac_word=$2
c6b750e1
DJ
8792echo "$as_me:$LINENO: checking for $ac_word" >&5
8793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8794if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8796else
c6b750e1
DJ
8797 case $AR_FOR_TARGET in
8798 [\\/]* | ?:[\\/]*)
2429c060
PB
8799 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8800 ;;
2429c060 8801 *)
c6b750e1
DJ
8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $gcc_cv_tool_dirs
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8809 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 break 2
8812 fi
8813done
8814done
8815
2429c060
PB
8816 ;;
8817esac
859789af 8818fi
c6b750e1
DJ
8819AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8820
2429c060 8821if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8822 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8823echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8824else
c6b750e1
DJ
8825 echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6
859789af 8827fi
05cbd757 8828
2429c060
PB
8829fi
8830if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8831
8832
8833if test -n "$AR_FOR_TARGET"; then
8834 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8835elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8836 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8837fi
8838
8839if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8840 for ncn_progname in ar; do
8841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8842set dummy ${ncn_progname}; ac_word=$2
8843echo "$as_me:$LINENO: checking for $ac_word" >&5
8844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8845if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847else
8848 if test -n "$AR_FOR_TARGET"; then
8849 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8850else
8851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852for as_dir in $PATH
8853do
8854 IFS=$as_save_IFS
8855 test -z "$as_dir" && as_dir=.
8856 for ac_exec_ext in '' $ac_executable_extensions; do
8857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8858 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8860 break 2
8861 fi
8862done
8863done
8864
8865fi
8866fi
8867AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8868if test -n "$AR_FOR_TARGET"; then
8869 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8870echo "${ECHO_T}$AR_FOR_TARGET" >&6
8871else
8872 echo "$as_me:$LINENO: result: no" >&5
8873echo "${ECHO_T}no" >&6
8874fi
8875
8876 done
8877fi
8878
8879if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8880 for ncn_progname in ar; do
c6b750e1
DJ
8881 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8882echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8883 if test -x $with_build_time_tools/${ncn_progname}; then
8884 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8885 echo "$as_me:$LINENO: result: yes" >&5
8886echo "${ECHO_T}yes" >&6
2429c060
PB
8887 break
8888 else
c6b750e1
DJ
8889 echo "$as_me:$LINENO: result: no" >&5
8890echo "${ECHO_T}no" >&6
2429c060
PB
8891 fi
8892 done
859789af
AC
8893fi
8894
2429c060
PB
8895if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8896 for ncn_progname in ar; do
8897 if test -n "$ncn_target_tool_prefix"; then
8898 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8899set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8900echo "$as_me:$LINENO: checking for $ac_word" >&5
8901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8902if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8904else
2429c060
PB
8905 if test -n "$AR_FOR_TARGET"; then
8906 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8907else
c6b750e1
DJ
8908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909for as_dir in $PATH
8910do
8911 IFS=$as_save_IFS
8912 test -z "$as_dir" && as_dir=.
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8915 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 break 2
8918 fi
8919done
8920done
8921
7e0f7140
GK
8922fi
8923fi
c6b750e1 8924AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8925if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8926 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8927echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8928else
c6b750e1
DJ
8929 echo "$as_me:$LINENO: result: no" >&5
8930echo "${ECHO_T}no" >&6
7e0f7140
GK
8931fi
8932
2429c060
PB
8933 fi
8934 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8936set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8937echo "$as_me:$LINENO: checking for $ac_word" >&5
8938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8939if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8941else
2429c060
PB
8942 if test -n "$AR_FOR_TARGET"; then
8943 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8944else
c6b750e1
DJ
8945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946for as_dir in $PATH
8947do
8948 IFS=$as_save_IFS
8949 test -z "$as_dir" && as_dir=.
8950 for ac_exec_ext in '' $ac_executable_extensions; do
8951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8952 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8954 break 2
8955 fi
8956done
8957done
8958
7e0f7140
GK
8959fi
8960fi
c6b750e1 8961AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8962if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8963 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8964echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8965else
c6b750e1
DJ
8966 echo "$as_me:$LINENO: result: no" >&5
8967echo "${ECHO_T}no" >&6
7e0f7140 8968fi
c6b750e1 8969
2429c060
PB
8970 fi
8971 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8972 done
8973fi
c6b750e1 8974
2429c060
PB
8975if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8976 set dummy ar
7e0f7140 8977 if test $build = $target ; then
2429c060 8978 AR_FOR_TARGET="$2"
7e0f7140 8979 else
2429c060 8980 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 8981 fi
d3f5afc4
MS
8982else
8983 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
8984fi
8985
3a35eeb3
PB
8986else
8987 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
8988fi
8989
8990
8991
8992
8993if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8994 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8995 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8996echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8997 if test -x $with_build_time_tools/as; then
8998 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8999 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9000 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9001echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9002 else
c6b750e1
DJ
9003 echo "$as_me:$LINENO: result: no" >&5
9004echo "${ECHO_T}no" >&6
3a35eeb3 9005 fi
2429c060
PB
9006 elif test $build != $host && test $have_gcc_for_target = yes; then
9007 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9008 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9009 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9010 fi
9011fi
c6b750e1 9012if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9013 # Extract the first word of "as", so it can be a program name with args.
9014set dummy as; ac_word=$2
c6b750e1
DJ
9015echo "$as_me:$LINENO: checking for $ac_word" >&5
9016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9017if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9019else
c6b750e1
DJ
9020 case $AS_FOR_TARGET in
9021 [\\/]* | ?:[\\/]*)
2429c060
PB
9022 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9023 ;;
2429c060 9024 *)
c6b750e1
DJ
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026for as_dir in $gcc_cv_tool_dirs
9027do
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9032 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9035 fi
9036done
9037done
9038
2429c060
PB
9039 ;;
9040esac
9041fi
c6b750e1
DJ
9042AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9043
2429c060 9044if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9045 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9046echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9047else
c6b750e1
DJ
9048 echo "$as_me:$LINENO: result: no" >&5
9049echo "${ECHO_T}no" >&6
2429c060
PB
9050fi
9051
9052fi
9053if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9054
9055
9056if test -n "$AS_FOR_TARGET"; then
9057 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9058elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9059 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9060fi
9061
9062if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9063 for ncn_progname in as; do
9064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9065set dummy ${ncn_progname}; ac_word=$2
9066echo "$as_me:$LINENO: checking for $ac_word" >&5
9067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9068if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9070else
9071 if test -n "$AS_FOR_TARGET"; then
9072 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9073else
9074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075for as_dir in $PATH
9076do
9077 IFS=$as_save_IFS
9078 test -z "$as_dir" && as_dir=.
9079 for ac_exec_ext in '' $ac_executable_extensions; do
9080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9081 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9083 break 2
9084 fi
9085done
9086done
9087
9088fi
9089fi
9090AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9091if test -n "$AS_FOR_TARGET"; then
9092 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9093echo "${ECHO_T}$AS_FOR_TARGET" >&6
9094else
9095 echo "$as_me:$LINENO: result: no" >&5
9096echo "${ECHO_T}no" >&6
9097fi
9098
9099 done
9100fi
9101
9102if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9103 for ncn_progname in as; do
c6b750e1
DJ
9104 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9105echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9106 if test -x $with_build_time_tools/${ncn_progname}; then
9107 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9108 echo "$as_me:$LINENO: result: yes" >&5
9109echo "${ECHO_T}yes" >&6
2429c060
PB
9110 break
9111 else
c6b750e1
DJ
9112 echo "$as_me:$LINENO: result: no" >&5
9113echo "${ECHO_T}no" >&6
2429c060
PB
9114 fi
9115 done
9116fi
9117
9118if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9119 for ncn_progname in as; do
9120 if test -n "$ncn_target_tool_prefix"; then
9121 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9122set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9123echo "$as_me:$LINENO: checking for $ac_word" >&5
9124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9125if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9126 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9127else
9128 if test -n "$AS_FOR_TARGET"; then
9129 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9130else
c6b750e1
DJ
9131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132for as_dir in $PATH
9133do
9134 IFS=$as_save_IFS
9135 test -z "$as_dir" && as_dir=.
9136 for ac_exec_ext in '' $ac_executable_extensions; do
9137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9138 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9140 break 2
9141 fi
9142done
9143done
9144
2429c060
PB
9145fi
9146fi
c6b750e1 9147AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9148if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9149 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9150echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9151else
c6b750e1
DJ
9152 echo "$as_me:$LINENO: result: no" >&5
9153echo "${ECHO_T}no" >&6
2429c060
PB
9154fi
9155
9156 fi
9157 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9159set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9160echo "$as_me:$LINENO: checking for $ac_word" >&5
9161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9162if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9164else
9165 if test -n "$AS_FOR_TARGET"; then
9166 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9167else
c6b750e1
DJ
9168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169for as_dir in $PATH
9170do
9171 IFS=$as_save_IFS
9172 test -z "$as_dir" && as_dir=.
9173 for ac_exec_ext in '' $ac_executable_extensions; do
9174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9175 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9177 break 2
9178 fi
9179done
9180done
9181
2429c060
PB
9182fi
9183fi
c6b750e1 9184AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9185if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9186 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9187echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9188else
c6b750e1
DJ
9189 echo "$as_me:$LINENO: result: no" >&5
9190echo "${ECHO_T}no" >&6
2429c060 9191fi
c6b750e1 9192
2429c060
PB
9193 fi
9194 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9195 done
9196fi
c6b750e1 9197
2429c060
PB
9198if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9199 set dummy as
9200 if test $build = $target ; then
9201 AS_FOR_TARGET="$2"
9202 else
9203 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9204 fi
d3f5afc4
MS
9205else
9206 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9207fi
9208
3a35eeb3
PB
9209else
9210 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9211fi
9212
9213
9214
9215
9216if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9217 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9218 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9219echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9220 if test -x $with_build_time_tools/dlltool; then
9221 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9222 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9223 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9224echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9225 else
c6b750e1
DJ
9226 echo "$as_me:$LINENO: result: no" >&5
9227echo "${ECHO_T}no" >&6
3a35eeb3 9228 fi
2429c060
PB
9229 elif test $build != $host && test $have_gcc_for_target = yes; then
9230 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9231 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9232 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9233 fi
9234fi
c6b750e1 9235if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9236 # Extract the first word of "dlltool", so it can be a program name with args.
9237set dummy dlltool; ac_word=$2
c6b750e1
DJ
9238echo "$as_me:$LINENO: checking for $ac_word" >&5
9239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9240if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9242else
c6b750e1
DJ
9243 case $DLLTOOL_FOR_TARGET in
9244 [\\/]* | ?:[\\/]*)
2429c060
PB
9245 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9246 ;;
2429c060 9247 *)
c6b750e1
DJ
9248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249for as_dir in $gcc_cv_tool_dirs
9250do
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
9253 for ac_exec_ext in '' $ac_executable_extensions; do
9254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9255 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9257 break 2
9258 fi
9259done
9260done
9261
2429c060
PB
9262 ;;
9263esac
9264fi
c6b750e1
DJ
9265DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9266
2429c060 9267if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9268 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9269echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9270else
c6b750e1
DJ
9271 echo "$as_me:$LINENO: result: no" >&5
9272echo "${ECHO_T}no" >&6
2429c060
PB
9273fi
9274
9275fi
9276if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9277
9278
9279if test -n "$DLLTOOL_FOR_TARGET"; then
9280 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9281elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9282 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9283fi
9284
9285if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9286 for ncn_progname in dlltool; do
9287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9288set dummy ${ncn_progname}; ac_word=$2
9289echo "$as_me:$LINENO: checking for $ac_word" >&5
9290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9291if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9293else
9294 if test -n "$DLLTOOL_FOR_TARGET"; then
9295 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9296else
9297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298for as_dir in $PATH
9299do
9300 IFS=$as_save_IFS
9301 test -z "$as_dir" && as_dir=.
9302 for ac_exec_ext in '' $ac_executable_extensions; do
9303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9304 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9306 break 2
9307 fi
9308done
9309done
9310
9311fi
9312fi
9313DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9314if test -n "$DLLTOOL_FOR_TARGET"; then
9315 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9316echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9317else
9318 echo "$as_me:$LINENO: result: no" >&5
9319echo "${ECHO_T}no" >&6
9320fi
9321
9322 done
9323fi
9324
9325if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9326 for ncn_progname in dlltool; do
c6b750e1
DJ
9327 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9328echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9329 if test -x $with_build_time_tools/${ncn_progname}; then
9330 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9331 echo "$as_me:$LINENO: result: yes" >&5
9332echo "${ECHO_T}yes" >&6
2429c060
PB
9333 break
9334 else
c6b750e1
DJ
9335 echo "$as_me:$LINENO: result: no" >&5
9336echo "${ECHO_T}no" >&6
2429c060
PB
9337 fi
9338 done
9339fi
9340
9341if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9342 for ncn_progname in dlltool; do
9343 if test -n "$ncn_target_tool_prefix"; then
9344 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9345set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9346echo "$as_me:$LINENO: checking for $ac_word" >&5
9347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9348if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9350else
9351 if test -n "$DLLTOOL_FOR_TARGET"; then
9352 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9353else
c6b750e1
DJ
9354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355for as_dir in $PATH
9356do
9357 IFS=$as_save_IFS
9358 test -z "$as_dir" && as_dir=.
9359 for ac_exec_ext in '' $ac_executable_extensions; do
9360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9361 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9363 break 2
9364 fi
9365done
9366done
9367
2429c060
PB
9368fi
9369fi
c6b750e1 9370DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9371if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9372 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9373echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9374else
c6b750e1
DJ
9375 echo "$as_me:$LINENO: result: no" >&5
9376echo "${ECHO_T}no" >&6
2429c060
PB
9377fi
9378
9379 fi
9380 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9382set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9383echo "$as_me:$LINENO: checking for $ac_word" >&5
9384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9385if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9387else
9388 if test -n "$DLLTOOL_FOR_TARGET"; then
9389 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9390else
c6b750e1
DJ
9391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392for as_dir in $PATH
9393do
9394 IFS=$as_save_IFS
9395 test -z "$as_dir" && as_dir=.
9396 for ac_exec_ext in '' $ac_executable_extensions; do
9397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9398 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9400 break 2
9401 fi
9402done
9403done
9404
2429c060
PB
9405fi
9406fi
c6b750e1 9407DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9408if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9409 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9410echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9411else
c6b750e1
DJ
9412 echo "$as_me:$LINENO: result: no" >&5
9413echo "${ECHO_T}no" >&6
2429c060 9414fi
c6b750e1 9415
2429c060
PB
9416 fi
9417 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9418 done
9419fi
c6b750e1 9420
2429c060
PB
9421if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9422 set dummy dlltool
9423 if test $build = $target ; then
9424 DLLTOOL_FOR_TARGET="$2"
9425 else
9426 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9427 fi
d3f5afc4
MS
9428else
9429 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9430fi
9431
3a35eeb3
PB
9432else
9433 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9434fi
9435
9436
9437
9438
9439if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9440 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9441 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9442echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9443 if test -x $with_build_time_tools/ld; then
9444 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9445 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9446 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9447echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9448 else
c6b750e1
DJ
9449 echo "$as_me:$LINENO: result: no" >&5
9450echo "${ECHO_T}no" >&6
3a35eeb3 9451 fi
2429c060
PB
9452 elif test $build != $host && test $have_gcc_for_target = yes; then
9453 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9454 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9455 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9456 fi
9457fi
c6b750e1 9458if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9459 # Extract the first word of "ld", so it can be a program name with args.
9460set dummy ld; ac_word=$2
c6b750e1
DJ
9461echo "$as_me:$LINENO: checking for $ac_word" >&5
9462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9463if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9465else
c6b750e1
DJ
9466 case $LD_FOR_TARGET in
9467 [\\/]* | ?:[\\/]*)
2429c060
PB
9468 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9469 ;;
2429c060 9470 *)
c6b750e1
DJ
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472for as_dir in $gcc_cv_tool_dirs
9473do
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9478 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9480 break 2
9481 fi
9482done
9483done
9484
2429c060
PB
9485 ;;
9486esac
9487fi
c6b750e1
DJ
9488LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9489
2429c060 9490if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9491 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9492echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9493else
c6b750e1
DJ
9494 echo "$as_me:$LINENO: result: no" >&5
9495echo "${ECHO_T}no" >&6
2429c060
PB
9496fi
9497
9498fi
9499if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9500
9501
9502if test -n "$LD_FOR_TARGET"; then
9503 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9504elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9505 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9506fi
9507
9508if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9509 for ncn_progname in ld; do
9510 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9511set dummy ${ncn_progname}; ac_word=$2
9512echo "$as_me:$LINENO: checking for $ac_word" >&5
9513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9514if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516else
9517 if test -n "$LD_FOR_TARGET"; then
9518 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9519else
9520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9521for as_dir in $PATH
9522do
9523 IFS=$as_save_IFS
9524 test -z "$as_dir" && as_dir=.
9525 for ac_exec_ext in '' $ac_executable_extensions; do
9526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9527 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9529 break 2
9530 fi
9531done
9532done
9533
9534fi
9535fi
9536LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9537if test -n "$LD_FOR_TARGET"; then
9538 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9539echo "${ECHO_T}$LD_FOR_TARGET" >&6
9540else
9541 echo "$as_me:$LINENO: result: no" >&5
9542echo "${ECHO_T}no" >&6
9543fi
9544
9545 done
9546fi
9547
9548if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9549 for ncn_progname in ld; do
c6b750e1
DJ
9550 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9551echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9552 if test -x $with_build_time_tools/${ncn_progname}; then
9553 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9554 echo "$as_me:$LINENO: result: yes" >&5
9555echo "${ECHO_T}yes" >&6
2429c060
PB
9556 break
9557 else
c6b750e1
DJ
9558 echo "$as_me:$LINENO: result: no" >&5
9559echo "${ECHO_T}no" >&6
2429c060
PB
9560 fi
9561 done
9562fi
9563
9564if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9565 for ncn_progname in ld; do
9566 if test -n "$ncn_target_tool_prefix"; then
9567 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9568set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9569echo "$as_me:$LINENO: checking for $ac_word" >&5
9570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9571if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9573else
9574 if test -n "$LD_FOR_TARGET"; then
9575 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9576else
c6b750e1
DJ
9577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578for as_dir in $PATH
9579do
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9584 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9586 break 2
9587 fi
9588done
9589done
9590
2429c060
PB
9591fi
9592fi
c6b750e1 9593LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9594if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9595 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9596echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9597else
c6b750e1
DJ
9598 echo "$as_me:$LINENO: result: no" >&5
9599echo "${ECHO_T}no" >&6
2429c060
PB
9600fi
9601
9602 fi
9603 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9605set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9606echo "$as_me:$LINENO: checking for $ac_word" >&5
9607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9608if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9610else
9611 if test -n "$LD_FOR_TARGET"; then
9612 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9613else
c6b750e1
DJ
9614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615for as_dir in $PATH
9616do
9617 IFS=$as_save_IFS
9618 test -z "$as_dir" && as_dir=.
9619 for ac_exec_ext in '' $ac_executable_extensions; do
9620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9621 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9623 break 2
9624 fi
9625done
9626done
9627
2429c060
PB
9628fi
9629fi
c6b750e1 9630LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9631if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9632 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9633echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9634else
c6b750e1
DJ
9635 echo "$as_me:$LINENO: result: no" >&5
9636echo "${ECHO_T}no" >&6
2429c060 9637fi
c6b750e1 9638
2429c060
PB
9639 fi
9640 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9641 done
9642fi
c6b750e1 9643
2429c060
PB
9644if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9645 set dummy ld
9646 if test $build = $target ; then
9647 LD_FOR_TARGET="$2"
9648 else
9649 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9650 fi
d3f5afc4
MS
9651else
9652 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9653fi
9654
3a35eeb3
PB
9655else
9656 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9657fi
9658
9659
9660
9661
9662if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9663 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9664 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9665echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9666 if test -x $with_build_time_tools/lipo; then
9667 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9668 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9669 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9670echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9671 else
c6b750e1
DJ
9672 echo "$as_me:$LINENO: result: no" >&5
9673echo "${ECHO_T}no" >&6
3a35eeb3 9674 fi
2429c060
PB
9675 elif test $build != $host && test $have_gcc_for_target = yes; then
9676 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9677 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9678 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9679 fi
9680fi
9a819804
AO
9681if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9682 # Extract the first word of "lipo", so it can be a program name with args.
9683set dummy lipo; ac_word=$2
9684echo "$as_me:$LINENO: checking for $ac_word" >&5
9685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9686if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688else
9689 case $LIPO_FOR_TARGET in
9690 [\\/]* | ?:[\\/]*)
9691 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9692 ;;
9693 *)
9694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $gcc_cv_tool_dirs
9696do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9701 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9704 fi
9705done
9706done
9707
9708 ;;
9709esac
9710fi
9711LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9712
9713if test -n "$LIPO_FOR_TARGET"; then
9714 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9715echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9716else
9717 echo "$as_me:$LINENO: result: no" >&5
9718echo "${ECHO_T}no" >&6
9719fi
9720
9721fi
9722if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9723
9724
9725if test -n "$LIPO_FOR_TARGET"; then
9726 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9727elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9728 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9729fi
9730
9731if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9732 for ncn_progname in lipo; do
9733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9734set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9735echo "$as_me:$LINENO: checking for $ac_word" >&5
9736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9737if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9738 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9739else
9a819804
AO
9740 if test -n "$LIPO_FOR_TARGET"; then
9741 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9742else
9743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744for as_dir in $PATH
c6b750e1
DJ
9745do
9746 IFS=$as_save_IFS
9747 test -z "$as_dir" && as_dir=.
9748 for ac_exec_ext in '' $ac_executable_extensions; do
9749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9750 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9752 break 2
9753 fi
9754done
9755done
9756
2429c060 9757fi
9a819804
AO
9758fi
9759LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9760if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9761 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9762echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9763else
c6b750e1
DJ
9764 echo "$as_me:$LINENO: result: no" >&5
9765echo "${ECHO_T}no" >&6
2429c060
PB
9766fi
9767
9a819804 9768 done
2429c060 9769fi
9a819804
AO
9770
9771if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9772 for ncn_progname in lipo; do
c6b750e1
DJ
9773 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9774echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9775 if test -x $with_build_time_tools/${ncn_progname}; then
9776 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9777 echo "$as_me:$LINENO: result: yes" >&5
9778echo "${ECHO_T}yes" >&6
2429c060
PB
9779 break
9780 else
c6b750e1
DJ
9781 echo "$as_me:$LINENO: result: no" >&5
9782echo "${ECHO_T}no" >&6
2429c060
PB
9783 fi
9784 done
9785fi
9786
9787if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9788 for ncn_progname in lipo; do
9789 if test -n "$ncn_target_tool_prefix"; then
9790 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9791set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9792echo "$as_me:$LINENO: checking for $ac_word" >&5
9793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9794if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9796else
9797 if test -n "$LIPO_FOR_TARGET"; then
9798 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9799else
c6b750e1
DJ
9800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9801for as_dir in $PATH
9802do
9803 IFS=$as_save_IFS
9804 test -z "$as_dir" && as_dir=.
9805 for ac_exec_ext in '' $ac_executable_extensions; do
9806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9807 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9809 break 2
9810 fi
9811done
9812done
9813
2429c060
PB
9814fi
9815fi
c6b750e1 9816LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9817if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9818 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9819echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9820else
c6b750e1
DJ
9821 echo "$as_me:$LINENO: result: no" >&5
9822echo "${ECHO_T}no" >&6
2429c060
PB
9823fi
9824
9825 fi
9826 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9828set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9829echo "$as_me:$LINENO: checking for $ac_word" >&5
9830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9831if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9833else
9834 if test -n "$LIPO_FOR_TARGET"; then
9835 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9836else
c6b750e1
DJ
9837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838for as_dir in $PATH
9839do
9840 IFS=$as_save_IFS
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
9843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9844 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9846 break 2
9847 fi
9848done
9849done
9850
2429c060
PB
9851fi
9852fi
c6b750e1 9853LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9854if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9855 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9856echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9857else
c6b750e1
DJ
9858 echo "$as_me:$LINENO: result: no" >&5
9859echo "${ECHO_T}no" >&6
2429c060 9860fi
c6b750e1 9861
2429c060
PB
9862 fi
9863 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9864 done
9865fi
c6b750e1 9866
2429c060
PB
9867if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9868 set dummy lipo
9869 if test $build = $target ; then
9870 LIPO_FOR_TARGET="$2"
9871 else
9872 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9873 fi
d3f5afc4
MS
9874else
9875 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9876fi
9877
3a35eeb3
PB
9878else
9879 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9880fi
9881
9882
9883
9884
9885if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9886 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9887 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9888echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9889 if test -x $with_build_time_tools/nm; then
9890 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9891 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9892 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9893echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9894 else
c6b750e1
DJ
9895 echo "$as_me:$LINENO: result: no" >&5
9896echo "${ECHO_T}no" >&6
3a35eeb3 9897 fi
2429c060
PB
9898 elif test $build != $host && test $have_gcc_for_target = yes; then
9899 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
9900 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9901 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
9902 fi
9903fi
c6b750e1 9904if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9905 # Extract the first word of "nm", so it can be a program name with args.
9906set dummy nm; ac_word=$2
c6b750e1
DJ
9907echo "$as_me:$LINENO: checking for $ac_word" >&5
9908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9909if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9911else
c6b750e1
DJ
9912 case $NM_FOR_TARGET in
9913 [\\/]* | ?:[\\/]*)
2429c060
PB
9914 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9915 ;;
2429c060 9916 *)
c6b750e1
DJ
9917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918for as_dir in $gcc_cv_tool_dirs
9919do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9924 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 break 2
9927 fi
9928done
9929done
9930
2429c060
PB
9931 ;;
9932esac
9933fi
c6b750e1
DJ
9934NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9935
2429c060 9936if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9937 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9938echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9939else
c6b750e1
DJ
9940 echo "$as_me:$LINENO: result: no" >&5
9941echo "${ECHO_T}no" >&6
2429c060
PB
9942fi
9943
9944fi
9945if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9946
9947
9948if test -n "$NM_FOR_TARGET"; then
9949 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9950elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9951 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9952fi
9953
9954if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9955 for ncn_progname in nm; do
9956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9957set dummy ${ncn_progname}; ac_word=$2
9958echo "$as_me:$LINENO: checking for $ac_word" >&5
9959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9960if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962else
9963 if test -n "$NM_FOR_TARGET"; then
9964 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9965else
9966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967for as_dir in $PATH
9968do
9969 IFS=$as_save_IFS
9970 test -z "$as_dir" && as_dir=.
9971 for ac_exec_ext in '' $ac_executable_extensions; do
9972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9973 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9975 break 2
9976 fi
9977done
9978done
9979
9980fi
9981fi
9982NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9983if test -n "$NM_FOR_TARGET"; then
9984 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9985echo "${ECHO_T}$NM_FOR_TARGET" >&6
9986else
9987 echo "$as_me:$LINENO: result: no" >&5
9988echo "${ECHO_T}no" >&6
9989fi
9990
9991 done
9992fi
9993
9994if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9995 for ncn_progname in nm; do
c6b750e1
DJ
9996 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9997echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9998 if test -x $with_build_time_tools/${ncn_progname}; then
9999 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10000 echo "$as_me:$LINENO: result: yes" >&5
10001echo "${ECHO_T}yes" >&6
2429c060
PB
10002 break
10003 else
c6b750e1
DJ
10004 echo "$as_me:$LINENO: result: no" >&5
10005echo "${ECHO_T}no" >&6
2429c060
PB
10006 fi
10007 done
10008fi
10009
10010if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10011 for ncn_progname in nm; do
10012 if test -n "$ncn_target_tool_prefix"; then
10013 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10014set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10015echo "$as_me:$LINENO: checking for $ac_word" >&5
10016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10017if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10019else
55db4b87
PB
10020 if test -n "$NM_FOR_TARGET"; then
10021 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10022else
c6b750e1
DJ
10023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024for as_dir in $PATH
10025do
10026 IFS=$as_save_IFS
10027 test -z "$as_dir" && as_dir=.
10028 for ac_exec_ext in '' $ac_executable_extensions; do
10029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10030 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10032 break 2
10033 fi
10034done
10035done
10036
859789af
AC
10037fi
10038fi
c6b750e1 10039NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10040if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10041 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10042echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10043else
c6b750e1
DJ
10044 echo "$as_me:$LINENO: result: no" >&5
10045echo "${ECHO_T}no" >&6
859789af
AC
10046fi
10047
2429c060
PB
10048 fi
10049 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10050 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10051set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10052echo "$as_me:$LINENO: checking for $ac_word" >&5
10053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10054if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10056else
05cbd757
PB
10057 if test -n "$NM_FOR_TARGET"; then
10058 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10059else
c6b750e1
DJ
10060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061for as_dir in $PATH
10062do
10063 IFS=$as_save_IFS
10064 test -z "$as_dir" && as_dir=.
10065 for ac_exec_ext in '' $ac_executable_extensions; do
10066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10067 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10069 break 2
10070 fi
10071done
10072done
10073
859789af
AC
10074fi
10075fi
c6b750e1 10076NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10077if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10078 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10079echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10080else
c6b750e1
DJ
10081 echo "$as_me:$LINENO: result: no" >&5
10082echo "${ECHO_T}no" >&6
859789af 10083fi
c6b750e1 10084
2429c060
PB
10085 fi
10086 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10087 done
10088fi
c6b750e1 10089
05cbd757
PB
10090if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10091 set dummy nm
10092 if test $build = $target ; then
10093 NM_FOR_TARGET="$2"
859789af 10094 else
05cbd757 10095 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10096 fi
d3f5afc4
MS
10097else
10098 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10099fi
10100
3a35eeb3
PB
10101else
10102 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10103fi
10104
10105
10106
10107
10108if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10109 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10110 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10111echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10112 if test -x $with_build_time_tools/objdump; then
10113 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10114 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10115 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10116echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10117 else
c6b750e1
DJ
10118 echo "$as_me:$LINENO: result: no" >&5
10119echo "${ECHO_T}no" >&6
3a35eeb3 10120 fi
2429c060
PB
10121 elif test $build != $host && test $have_gcc_for_target = yes; then
10122 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10123 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10124 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10125 fi
10126fi
c6b750e1 10127if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10128 # Extract the first word of "objdump", so it can be a program name with args.
10129set dummy objdump; ac_word=$2
c6b750e1
DJ
10130echo "$as_me:$LINENO: checking for $ac_word" >&5
10131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10132if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10134else
c6b750e1
DJ
10135 case $OBJDUMP_FOR_TARGET in
10136 [\\/]* | ?:[\\/]*)
2429c060
PB
10137 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10138 ;;
2429c060 10139 *)
c6b750e1
DJ
10140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141for as_dir in $gcc_cv_tool_dirs
10142do
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
10145 for ac_exec_ext in '' $ac_executable_extensions; do
10146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10147 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10149 break 2
10150 fi
10151done
10152done
10153
2429c060
PB
10154 ;;
10155esac
10156fi
c6b750e1
DJ
10157OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10158
2429c060 10159if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10160 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10161echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10162else
c6b750e1
DJ
10163 echo "$as_me:$LINENO: result: no" >&5
10164echo "${ECHO_T}no" >&6
2429c060
PB
10165fi
10166
10167fi
10168if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10169
10170
10171if test -n "$OBJDUMP_FOR_TARGET"; then
10172 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10173elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10174 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10175fi
10176
10177if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10178 for ncn_progname in objdump; do
10179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10180set dummy ${ncn_progname}; ac_word=$2
10181echo "$as_me:$LINENO: checking for $ac_word" >&5
10182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10183if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10185else
10186 if test -n "$OBJDUMP_FOR_TARGET"; then
10187 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10188else
10189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190for as_dir in $PATH
10191do
10192 IFS=$as_save_IFS
10193 test -z "$as_dir" && as_dir=.
10194 for ac_exec_ext in '' $ac_executable_extensions; do
10195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10196 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10198 break 2
10199 fi
10200done
10201done
10202
10203fi
10204fi
10205OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10206if test -n "$OBJDUMP_FOR_TARGET"; then
10207 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10208echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10209else
10210 echo "$as_me:$LINENO: result: no" >&5
10211echo "${ECHO_T}no" >&6
10212fi
10213
10214 done
10215fi
10216
10217if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10218 for ncn_progname in objdump; do
c6b750e1
DJ
10219 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10220echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10221 if test -x $with_build_time_tools/${ncn_progname}; then
10222 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10223 echo "$as_me:$LINENO: result: yes" >&5
10224echo "${ECHO_T}yes" >&6
2429c060
PB
10225 break
10226 else
c6b750e1
DJ
10227 echo "$as_me:$LINENO: result: no" >&5
10228echo "${ECHO_T}no" >&6
2429c060
PB
10229 fi
10230 done
10231fi
10232
10233if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10234 for ncn_progname in objdump; do
10235 if test -n "$ncn_target_tool_prefix"; then
10236 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10237set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10238echo "$as_me:$LINENO: checking for $ac_word" >&5
10239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10240if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10242else
10243 if test -n "$OBJDUMP_FOR_TARGET"; then
10244 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10245else
c6b750e1
DJ
10246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247for as_dir in $PATH
10248do
10249 IFS=$as_save_IFS
10250 test -z "$as_dir" && as_dir=.
10251 for ac_exec_ext in '' $ac_executable_extensions; do
10252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10253 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10255 break 2
10256 fi
10257done
10258done
10259
5ae72758
DJ
10260fi
10261fi
c6b750e1 10262OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10263if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10264 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10265echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10266else
c6b750e1
DJ
10267 echo "$as_me:$LINENO: result: no" >&5
10268echo "${ECHO_T}no" >&6
5ae72758
DJ
10269fi
10270
2429c060
PB
10271 fi
10272 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10274set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10275echo "$as_me:$LINENO: checking for $ac_word" >&5
10276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10277if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10279else
10280 if test -n "$OBJDUMP_FOR_TARGET"; then
10281 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10282else
c6b750e1
DJ
10283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284for as_dir in $PATH
10285do
10286 IFS=$as_save_IFS
10287 test -z "$as_dir" && as_dir=.
10288 for ac_exec_ext in '' $ac_executable_extensions; do
10289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10290 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 break 2
10293 fi
10294done
10295done
10296
5ae72758
DJ
10297fi
10298fi
c6b750e1 10299OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10300if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10301 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10302echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10303else
c6b750e1
DJ
10304 echo "$as_me:$LINENO: result: no" >&5
10305echo "${ECHO_T}no" >&6
5ae72758 10306fi
c6b750e1 10307
2429c060
PB
10308 fi
10309 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10310 done
10311fi
c6b750e1 10312
5ae72758
DJ
10313if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10314 set dummy objdump
10315 if test $build = $target ; then
10316 OBJDUMP_FOR_TARGET="$2"
10317 else
10318 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10319 fi
d3f5afc4
MS
10320else
10321 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10322fi
10323
3a35eeb3
PB
10324else
10325 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10326fi
10327
10328
10329
10330
10331if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10332 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10333 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10334echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10335 if test -x $with_build_time_tools/ranlib; then
10336 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10337 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10338 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10339echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10340 else
c6b750e1
DJ
10341 echo "$as_me:$LINENO: result: no" >&5
10342echo "${ECHO_T}no" >&6
3a35eeb3 10343 fi
2429c060
PB
10344 elif test $build != $host && test $have_gcc_for_target = yes; then
10345 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10346 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10347 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10348 fi
10349fi
c6b750e1 10350if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10351 # Extract the first word of "ranlib", so it can be a program name with args.
10352set dummy ranlib; ac_word=$2
c6b750e1
DJ
10353echo "$as_me:$LINENO: checking for $ac_word" >&5
10354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10355if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10357else
c6b750e1
DJ
10358 case $RANLIB_FOR_TARGET in
10359 [\\/]* | ?:[\\/]*)
2429c060
PB
10360 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10361 ;;
2429c060 10362 *)
c6b750e1
DJ
10363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364for as_dir in $gcc_cv_tool_dirs
10365do
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10370 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 break 2
10373 fi
10374done
10375done
10376
2429c060
PB
10377 ;;
10378esac
10379fi
c6b750e1
DJ
10380RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10381
2429c060 10382if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10383 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10384echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10385else
c6b750e1
DJ
10386 echo "$as_me:$LINENO: result: no" >&5
10387echo "${ECHO_T}no" >&6
2429c060
PB
10388fi
10389
10390fi
10391if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10392
10393
10394if test -n "$RANLIB_FOR_TARGET"; then
10395 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10396elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10397 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10398fi
10399
10400if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10401 for ncn_progname in ranlib; do
10402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10403set dummy ${ncn_progname}; ac_word=$2
10404echo "$as_me:$LINENO: checking for $ac_word" >&5
10405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10406if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10408else
10409 if test -n "$RANLIB_FOR_TARGET"; then
10410 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10411else
10412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10413for as_dir in $PATH
10414do
10415 IFS=$as_save_IFS
10416 test -z "$as_dir" && as_dir=.
10417 for ac_exec_ext in '' $ac_executable_extensions; do
10418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10419 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10421 break 2
10422 fi
10423done
10424done
10425
10426fi
10427fi
10428RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10429if test -n "$RANLIB_FOR_TARGET"; then
10430 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10431echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10432else
10433 echo "$as_me:$LINENO: result: no" >&5
10434echo "${ECHO_T}no" >&6
10435fi
10436
10437 done
10438fi
10439
10440if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10441 for ncn_progname in ranlib; do
c6b750e1
DJ
10442 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10443echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10444 if test -x $with_build_time_tools/${ncn_progname}; then
10445 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10446 echo "$as_me:$LINENO: result: yes" >&5
10447echo "${ECHO_T}yes" >&6
2429c060
PB
10448 break
10449 else
c6b750e1
DJ
10450 echo "$as_me:$LINENO: result: no" >&5
10451echo "${ECHO_T}no" >&6
2429c060
PB
10452 fi
10453 done
10454fi
10455
10456if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10457 for ncn_progname in ranlib; do
10458 if test -n "$ncn_target_tool_prefix"; then
10459 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10460set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10461echo "$as_me:$LINENO: checking for $ac_word" >&5
10462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10463if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10465else
55db4b87
PB
10466 if test -n "$RANLIB_FOR_TARGET"; then
10467 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10468else
c6b750e1
DJ
10469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470for as_dir in $PATH
10471do
10472 IFS=$as_save_IFS
10473 test -z "$as_dir" && as_dir=.
10474 for ac_exec_ext in '' $ac_executable_extensions; do
10475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10476 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10478 break 2
10479 fi
10480done
10481done
10482
859789af
AC
10483fi
10484fi
c6b750e1 10485RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10486if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10487 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10488echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10489else
c6b750e1
DJ
10490 echo "$as_me:$LINENO: result: no" >&5
10491echo "${ECHO_T}no" >&6
859789af
AC
10492fi
10493
2429c060
PB
10494 fi
10495 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10497set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10498echo "$as_me:$LINENO: checking for $ac_word" >&5
10499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10500if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10502else
05cbd757
PB
10503 if test -n "$RANLIB_FOR_TARGET"; then
10504 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10505else
c6b750e1
DJ
10506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10507for as_dir in $PATH
10508do
10509 IFS=$as_save_IFS
10510 test -z "$as_dir" && as_dir=.
10511 for ac_exec_ext in '' $ac_executable_extensions; do
10512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10513 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10515 break 2
10516 fi
10517done
10518done
10519
859789af
AC
10520fi
10521fi
c6b750e1 10522RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10523if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10524 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10525echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10526else
c6b750e1
DJ
10527 echo "$as_me:$LINENO: result: no" >&5
10528echo "${ECHO_T}no" >&6
859789af 10529fi
c6b750e1 10530
2429c060
PB
10531 fi
10532 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10533 done
10534fi
c6b750e1 10535
2429c060
PB
10536if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10537 set dummy ranlib
10538 if test $build = $target ; then
10539 RANLIB_FOR_TARGET="$2"
10540 else
10541 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10542 fi
d3f5afc4
MS
10543else
10544 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10545fi
05cbd757 10546
3a35eeb3
PB
10547else
10548 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10549fi
10550
2429c060
PB
10551
10552
10553
10554if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10555 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10556 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10557echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10558 if test -x $with_build_time_tools/strip; then
10559 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10560 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10561 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10562echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10563 else
c6b750e1
DJ
10564 echo "$as_me:$LINENO: result: no" >&5
10565echo "${ECHO_T}no" >&6
3a35eeb3 10566 fi
2429c060
PB
10567 elif test $build != $host && test $have_gcc_for_target = yes; then
10568 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10569 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10570 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10571 fi
10572fi
c6b750e1 10573if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10574 # Extract the first word of "strip", so it can be a program name with args.
10575set dummy strip; ac_word=$2
c6b750e1
DJ
10576echo "$as_me:$LINENO: checking for $ac_word" >&5
10577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10578if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10580else
c6b750e1
DJ
10581 case $STRIP_FOR_TARGET in
10582 [\\/]* | ?:[\\/]*)
2429c060
PB
10583 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10584 ;;
2429c060 10585 *)
c6b750e1
DJ
10586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587for as_dir in $gcc_cv_tool_dirs
10588do
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10593 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10595 break 2
10596 fi
10597done
10598done
10599
2429c060
PB
10600 ;;
10601esac
10602fi
c6b750e1
DJ
10603STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10604
2429c060 10605if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10606 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10607echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10608else
c6b750e1
DJ
10609 echo "$as_me:$LINENO: result: no" >&5
10610echo "${ECHO_T}no" >&6
2429c060
PB
10611fi
10612
10613fi
10614if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10615
10616
10617if test -n "$STRIP_FOR_TARGET"; then
10618 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10619elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10620 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10621fi
10622
10623if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10624 for ncn_progname in strip; do
10625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10626set dummy ${ncn_progname}; ac_word=$2
10627echo "$as_me:$LINENO: checking for $ac_word" >&5
10628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10629if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631else
10632 if test -n "$STRIP_FOR_TARGET"; then
10633 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10634else
10635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10636for as_dir in $PATH
10637do
10638 IFS=$as_save_IFS
10639 test -z "$as_dir" && as_dir=.
10640 for ac_exec_ext in '' $ac_executable_extensions; do
10641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10642 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10644 break 2
10645 fi
10646done
10647done
10648
10649fi
10650fi
10651STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10652if test -n "$STRIP_FOR_TARGET"; then
10653 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10654echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10655else
10656 echo "$as_me:$LINENO: result: no" >&5
10657echo "${ECHO_T}no" >&6
10658fi
10659
10660 done
10661fi
10662
10663if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10664 for ncn_progname in strip; do
c6b750e1
DJ
10665 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10666echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10667 if test -x $with_build_time_tools/${ncn_progname}; then
10668 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10669 echo "$as_me:$LINENO: result: yes" >&5
10670echo "${ECHO_T}yes" >&6
2429c060
PB
10671 break
10672 else
c6b750e1
DJ
10673 echo "$as_me:$LINENO: result: no" >&5
10674echo "${ECHO_T}no" >&6
2429c060
PB
10675 fi
10676 done
10677fi
10678
10679if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10680 for ncn_progname in strip; do
10681 if test -n "$ncn_target_tool_prefix"; then
10682 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10683set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10684echo "$as_me:$LINENO: checking for $ac_word" >&5
10685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10686if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10688else
10689 if test -n "$STRIP_FOR_TARGET"; then
10690 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10691else
10692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693for as_dir in $PATH
10694do
10695 IFS=$as_save_IFS
10696 test -z "$as_dir" && as_dir=.
10697 for ac_exec_ext in '' $ac_executable_extensions; do
10698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10699 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10701 break 2
10702 fi
10703done
10704done
10705
7e0f7140
GK
10706fi
10707fi
c6b750e1 10708STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10709if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10710 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10711echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10712else
c6b750e1
DJ
10713 echo "$as_me:$LINENO: result: no" >&5
10714echo "${ECHO_T}no" >&6
7e0f7140
GK
10715fi
10716
2429c060
PB
10717 fi
10718 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10720set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10721echo "$as_me:$LINENO: checking for $ac_word" >&5
10722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10723if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10725else
10726 if test -n "$STRIP_FOR_TARGET"; then
10727 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10728else
c6b750e1
DJ
10729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730for as_dir in $PATH
10731do
10732 IFS=$as_save_IFS
10733 test -z "$as_dir" && as_dir=.
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10736 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 break 2
10739 fi
10740done
10741done
10742
7e0f7140
GK
10743fi
10744fi
c6b750e1 10745STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10746if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10747 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10748echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10749else
c6b750e1
DJ
10750 echo "$as_me:$LINENO: result: no" >&5
10751echo "${ECHO_T}no" >&6
7e0f7140 10752fi
c6b750e1 10753
2429c060
PB
10754 fi
10755 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10756 done
10757fi
c6b750e1 10758
7e0f7140
GK
10759if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10760 set dummy strip
10761 if test $build = $target ; then
10762 STRIP_FOR_TARGET="$2"
10763 else
10764 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10765 fi
d3f5afc4
MS
10766else
10767 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10768fi
10769
3a35eeb3
PB
10770else
10771 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10772fi
10773
10774
10775
10776
10777if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10778 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10779 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10780echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10781 if test -x $with_build_time_tools/windres; then
10782 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10783 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10784 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10785echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10786 else
c6b750e1
DJ
10787 echo "$as_me:$LINENO: result: no" >&5
10788echo "${ECHO_T}no" >&6
3a35eeb3 10789 fi
2429c060
PB
10790 elif test $build != $host && test $have_gcc_for_target = yes; then
10791 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10792 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10793 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10794 fi
10795fi
c6b750e1 10796if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10797 # Extract the first word of "windres", so it can be a program name with args.
10798set dummy windres; ac_word=$2
c6b750e1
DJ
10799echo "$as_me:$LINENO: checking for $ac_word" >&5
10800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10801if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10803else
c6b750e1
DJ
10804 case $WINDRES_FOR_TARGET in
10805 [\\/]* | ?:[\\/]*)
2429c060
PB
10806 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10807 ;;
2429c060 10808 *)
c6b750e1
DJ
10809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810for as_dir in $gcc_cv_tool_dirs
10811do
10812 IFS=$as_save_IFS
10813 test -z "$as_dir" && as_dir=.
10814 for ac_exec_ext in '' $ac_executable_extensions; do
10815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10816 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 break 2
10819 fi
10820done
10821done
10822
2429c060
PB
10823 ;;
10824esac
10825fi
c6b750e1
DJ
10826WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10827
2429c060 10828if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10829 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10830echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10831else
c6b750e1
DJ
10832 echo "$as_me:$LINENO: result: no" >&5
10833echo "${ECHO_T}no" >&6
2429c060
PB
10834fi
10835
10836fi
10837if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10838
10839
10840if test -n "$WINDRES_FOR_TARGET"; then
10841 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10842elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10843 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10844fi
10845
10846if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10847 for ncn_progname in windres; do
10848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10849set dummy ${ncn_progname}; ac_word=$2
10850echo "$as_me:$LINENO: checking for $ac_word" >&5
10851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10852if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10854else
10855 if test -n "$WINDRES_FOR_TARGET"; then
10856 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10857else
10858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859for as_dir in $PATH
10860do
10861 IFS=$as_save_IFS
10862 test -z "$as_dir" && as_dir=.
10863 for ac_exec_ext in '' $ac_executable_extensions; do
10864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10865 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10867 break 2
10868 fi
10869done
10870done
10871
10872fi
10873fi
10874WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10875if test -n "$WINDRES_FOR_TARGET"; then
10876 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10877echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10878else
10879 echo "$as_me:$LINENO: result: no" >&5
10880echo "${ECHO_T}no" >&6
10881fi
10882
10883 done
10884fi
10885
10886if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10887 for ncn_progname in windres; do
c6b750e1
DJ
10888 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10889echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10890 if test -x $with_build_time_tools/${ncn_progname}; then
10891 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10892 echo "$as_me:$LINENO: result: yes" >&5
10893echo "${ECHO_T}yes" >&6
2429c060
PB
10894 break
10895 else
c6b750e1
DJ
10896 echo "$as_me:$LINENO: result: no" >&5
10897echo "${ECHO_T}no" >&6
2429c060
PB
10898 fi
10899 done
10900fi
10901
10902if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10903 for ncn_progname in windres; do
10904 if test -n "$ncn_target_tool_prefix"; then
10905 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10906set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10907echo "$as_me:$LINENO: checking for $ac_word" >&5
10908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10909if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10911else
55db4b87
PB
10912 if test -n "$WINDRES_FOR_TARGET"; then
10913 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10914else
c6b750e1
DJ
10915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10916for as_dir in $PATH
10917do
10918 IFS=$as_save_IFS
10919 test -z "$as_dir" && as_dir=.
10920 for ac_exec_ext in '' $ac_executable_extensions; do
10921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10922 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10924 break 2
10925 fi
10926done
10927done
10928
859789af
AC
10929fi
10930fi
c6b750e1 10931WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10932if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10933 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10934echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10935else
c6b750e1
DJ
10936 echo "$as_me:$LINENO: result: no" >&5
10937echo "${ECHO_T}no" >&6
859789af
AC
10938fi
10939
2429c060
PB
10940 fi
10941 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10942 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10943set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10944echo "$as_me:$LINENO: checking for $ac_word" >&5
10945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10946if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10948else
05cbd757
PB
10949 if test -n "$WINDRES_FOR_TARGET"; then
10950 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10951else
c6b750e1
DJ
10952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953for as_dir in $PATH
10954do
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10959 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 break 2
10962 fi
10963done
10964done
10965
859789af
AC
10966fi
10967fi
c6b750e1 10968WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 10969if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10970 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10971echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10972else
c6b750e1
DJ
10973 echo "$as_me:$LINENO: result: no" >&5
10974echo "${ECHO_T}no" >&6
859789af 10975fi
c6b750e1 10976
2429c060
PB
10977 fi
10978 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10979 done
10980fi
c6b750e1 10981
05cbd757
PB
10982if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10983 set dummy windres
10984 if test $build = $target ; then
10985 WINDRES_FOR_TARGET="$2"
859789af 10986 else
05cbd757 10987 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10988 fi
d3f5afc4
MS
10989else
10990 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
10991fi
10992
3a35eeb3
PB
10993else
10994 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
10995fi
10996
852e5f18 10997
0c24b341
NC
10998
10999
11000if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11001 if test -n "$with_build_time_tools"; then
11002 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11003echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11004 if test -x $with_build_time_tools/windmc; then
11005 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11006 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11007 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11008echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11009 else
11010 echo "$as_me:$LINENO: result: no" >&5
11011echo "${ECHO_T}no" >&6
11012 fi
11013 elif test $build != $host && test $have_gcc_for_target = yes; then
11014 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11015 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11016 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11017 fi
11018fi
11019if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11020 # Extract the first word of "windmc", so it can be a program name with args.
11021set dummy windmc; ac_word=$2
11022echo "$as_me:$LINENO: checking for $ac_word" >&5
11023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11024if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11026else
11027 case $WINDMC_FOR_TARGET in
11028 [\\/]* | ?:[\\/]*)
11029 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11030 ;;
11031 *)
11032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033for as_dir in $gcc_cv_tool_dirs
11034do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11039 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11042 fi
11043done
11044done
11045
11046 ;;
11047esac
11048fi
11049WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11050
11051if test -n "$WINDMC_FOR_TARGET"; then
11052 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11053echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11054else
11055 echo "$as_me:$LINENO: result: no" >&5
11056echo "${ECHO_T}no" >&6
11057fi
11058
11059fi
11060if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11061
11062
11063if test -n "$WINDMC_FOR_TARGET"; then
11064 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11065elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11066 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11067fi
11068
11069if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11070 for ncn_progname in windmc; do
11071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11072set dummy ${ncn_progname}; ac_word=$2
11073echo "$as_me:$LINENO: checking for $ac_word" >&5
11074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11075if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11077else
11078 if test -n "$WINDMC_FOR_TARGET"; then
11079 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11080else
11081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082for as_dir in $PATH
11083do
11084 IFS=$as_save_IFS
11085 test -z "$as_dir" && as_dir=.
11086 for ac_exec_ext in '' $ac_executable_extensions; do
11087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11088 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11090 break 2
11091 fi
11092done
11093done
11094
11095fi
11096fi
11097WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11098if test -n "$WINDMC_FOR_TARGET"; then
11099 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11100echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11101else
11102 echo "$as_me:$LINENO: result: no" >&5
11103echo "${ECHO_T}no" >&6
11104fi
11105
11106 done
11107fi
11108
11109if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11110 for ncn_progname in windmc; do
11111 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11112echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11113 if test -x $with_build_time_tools/${ncn_progname}; then
11114 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11115 echo "$as_me:$LINENO: result: yes" >&5
11116echo "${ECHO_T}yes" >&6
11117 break
11118 else
11119 echo "$as_me:$LINENO: result: no" >&5
11120echo "${ECHO_T}no" >&6
11121 fi
11122 done
11123fi
11124
11125if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11126 for ncn_progname in windmc; do
11127 if test -n "$ncn_target_tool_prefix"; then
11128 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11129set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11130echo "$as_me:$LINENO: checking for $ac_word" >&5
11131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11132if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11134else
11135 if test -n "$WINDMC_FOR_TARGET"; then
11136 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11137else
11138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139for as_dir in $PATH
11140do
11141 IFS=$as_save_IFS
11142 test -z "$as_dir" && as_dir=.
11143 for ac_exec_ext in '' $ac_executable_extensions; do
11144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11145 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11147 break 2
11148 fi
11149done
11150done
11151
11152fi
11153fi
11154WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11155if test -n "$WINDMC_FOR_TARGET"; then
11156 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11157echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11158else
11159 echo "$as_me:$LINENO: result: no" >&5
11160echo "${ECHO_T}no" >&6
11161fi
11162
11163 fi
11164 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11166set dummy ${ncn_progname}; ac_word=$2
11167echo "$as_me:$LINENO: checking for $ac_word" >&5
11168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11169if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11171else
11172 if test -n "$WINDMC_FOR_TARGET"; then
11173 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11174else
11175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176for as_dir in $PATH
11177do
11178 IFS=$as_save_IFS
11179 test -z "$as_dir" && as_dir=.
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11182 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 break 2
11185 fi
11186done
11187done
11188
11189fi
11190fi
11191WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11192if test -n "$WINDMC_FOR_TARGET"; then
11193 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11194echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11195else
11196 echo "$as_me:$LINENO: result: no" >&5
11197echo "${ECHO_T}no" >&6
11198fi
11199
11200 fi
11201 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11202 done
11203fi
11204
11205if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11206 set dummy windmc
11207 if test $build = $target ; then
11208 WINDMC_FOR_TARGET="$2"
11209 else
11210 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11211 fi
11212else
11213 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11214fi
11215
11216else
11217 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11218fi
11219
11220
be01d343
PB
11221RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11222
c6b750e1
DJ
11223echo "$as_me:$LINENO: checking where to find the target ar" >&5
11224echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11225if test "x${build}" != "x${host}" ; then
2429c060
PB
11226 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11227 # We already found the complete path
b8025f34
AS
11228 ac_dir=`dirname $AR_FOR_TARGET`
11229 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11230echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11231 else
11232 # Canadian cross, just use what we found
c6b750e1
DJ
11233 echo "$as_me:$LINENO: result: pre-installed" >&5
11234echo "${ECHO_T}pre-installed" >&6
2429c060 11235 fi
be01d343
PB
11236else
11237 ok=yes
11238 case " ${configdirs} " in
11239 *" binutils "*) ;;
11240 *) ok=no ;;
11241 esac
c6b750e1 11242
be01d343
PB
11243 if test $ok = yes; then
11244 # An in-tree tool is available and we can use it
11245 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11246 echo "$as_me:$LINENO: result: just compiled" >&5
11247echo "${ECHO_T}just compiled" >&6
2429c060
PB
11248 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11249 # We already found the complete path
b8025f34
AS
11250 ac_dir=`dirname $AR_FOR_TARGET`
11251 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11252echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11253 elif test "x$target" = "x$host"; then
11254 # We can use an host tool
11255 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11256 echo "$as_me:$LINENO: result: host tool" >&5
11257echo "${ECHO_T}host tool" >&6
be01d343
PB
11258 else
11259 # We need a cross tool
c6b750e1
DJ
11260 echo "$as_me:$LINENO: result: pre-installed" >&5
11261echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11262 fi
11263fi
4b900473 11264
c6b750e1
DJ
11265echo "$as_me:$LINENO: checking where to find the target as" >&5
11266echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11267if test "x${build}" != "x${host}" ; then
2429c060
PB
11268 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11269 # We already found the complete path
b8025f34
AS
11270 ac_dir=`dirname $AS_FOR_TARGET`
11271 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11272echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11273 else
11274 # Canadian cross, just use what we found
c6b750e1
DJ
11275 echo "$as_me:$LINENO: result: pre-installed" >&5
11276echo "${ECHO_T}pre-installed" >&6
2429c060 11277 fi
be01d343
PB
11278else
11279 ok=yes
11280 case " ${configdirs} " in
11281 *" gas "*) ;;
11282 *) ok=no ;;
11283 esac
c6b750e1 11284
be01d343
PB
11285 if test $ok = yes; then
11286 # An in-tree tool is available and we can use it
11287 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11288 echo "$as_me:$LINENO: result: just compiled" >&5
11289echo "${ECHO_T}just compiled" >&6
2429c060
PB
11290 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11291 # We already found the complete path
b8025f34
AS
11292 ac_dir=`dirname $AS_FOR_TARGET`
11293 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11294echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11295 elif test "x$target" = "x$host"; then
11296 # We can use an host tool
11297 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11298 echo "$as_me:$LINENO: result: host tool" >&5
11299echo "${ECHO_T}host tool" >&6
be01d343
PB
11300 else
11301 # We need a cross tool
c6b750e1
DJ
11302 echo "$as_me:$LINENO: result: pre-installed" >&5
11303echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11304 fi
11305fi
4b900473 11306
c6b750e1
DJ
11307echo "$as_me:$LINENO: checking where to find the target cc" >&5
11308echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11309if test "x${build}" != "x${host}" ; then
2429c060
PB
11310 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11311 # We already found the complete path
b8025f34
AS
11312 ac_dir=`dirname $CC_FOR_TARGET`
11313 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11314echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11315 else
11316 # Canadian cross, just use what we found
c6b750e1
DJ
11317 echo "$as_me:$LINENO: result: pre-installed" >&5
11318echo "${ECHO_T}pre-installed" >&6
2429c060 11319 fi
be01d343
PB
11320else
11321 ok=yes
11322 case " ${configdirs} " in
11323 *" gcc "*) ;;
11324 *) ok=no ;;
11325 esac
c6b750e1 11326
be01d343
PB
11327 if test $ok = yes; then
11328 # An in-tree tool is available and we can use it
11329 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11330 echo "$as_me:$LINENO: result: just compiled" >&5
11331echo "${ECHO_T}just compiled" >&6
2429c060
PB
11332 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11333 # We already found the complete path
b8025f34
AS
11334 ac_dir=`dirname $CC_FOR_TARGET`
11335 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11336echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11337 elif test "x$target" = "x$host"; then
11338 # We can use an host tool
11339 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11340 echo "$as_me:$LINENO: result: host tool" >&5
11341echo "${ECHO_T}host tool" >&6
be01d343
PB
11342 else
11343 # We need a cross tool
c6b750e1
DJ
11344 echo "$as_me:$LINENO: result: pre-installed" >&5
11345echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11346 fi
11347fi
4b900473 11348
c6b750e1
DJ
11349echo "$as_me:$LINENO: checking where to find the target c++" >&5
11350echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11351if test "x${build}" != "x${host}" ; then
2429c060
PB
11352 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11353 # We already found the complete path
b8025f34
AS
11354 ac_dir=`dirname $CXX_FOR_TARGET`
11355 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11356echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11357 else
11358 # Canadian cross, just use what we found
c6b750e1
DJ
11359 echo "$as_me:$LINENO: result: pre-installed" >&5
11360echo "${ECHO_T}pre-installed" >&6
2429c060 11361 fi
be01d343
PB
11362else
11363 ok=yes
11364 case " ${configdirs} " in
11365 *" gcc "*) ;;
11366 *) ok=no ;;
11367 esac
11368 case ,${enable_languages}, in
11369 *,c++,*) ;;
11370 *) ok=no ;;
11371 esac
11372 if test $ok = yes; then
11373 # An in-tree tool is available and we can use it
11374 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
11375 echo "$as_me:$LINENO: result: just compiled" >&5
11376echo "${ECHO_T}just compiled" >&6
2429c060
PB
11377 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11378 # We already found the complete path
b8025f34
AS
11379 ac_dir=`dirname $CXX_FOR_TARGET`
11380 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11381echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11382 elif test "x$target" = "x$host"; then
11383 # We can use an host tool
11384 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11385 echo "$as_me:$LINENO: result: host tool" >&5
11386echo "${ECHO_T}host tool" >&6
be01d343
PB
11387 else
11388 # We need a cross tool
c6b750e1
DJ
11389 echo "$as_me:$LINENO: result: pre-installed" >&5
11390echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11391 fi
11392fi
4b900473 11393
c6b750e1
DJ
11394echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11395echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11396if test "x${build}" != "x${host}" ; then
2429c060
PB
11397 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11398 # We already found the complete path
b8025f34
AS
11399 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11400 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11401echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11402 else
11403 # Canadian cross, just use what we found
c6b750e1
DJ
11404 echo "$as_me:$LINENO: result: pre-installed" >&5
11405echo "${ECHO_T}pre-installed" >&6
2429c060 11406 fi
be01d343
PB
11407else
11408 ok=yes
11409 case " ${configdirs} " in
11410 *" gcc "*) ;;
11411 *) ok=no ;;
11412 esac
11413 case ,${enable_languages}, in
11414 *,c++,*) ;;
11415 *) ok=no ;;
11416 esac
11417 if test $ok = yes; then
11418 # An in-tree tool is available and we can use it
11419 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
11420 echo "$as_me:$LINENO: result: just compiled" >&5
11421echo "${ECHO_T}just compiled" >&6
2429c060
PB
11422 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11423 # We already found the complete path
b8025f34
AS
11424 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11425 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11426echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11427 elif test "x$target" = "x$host"; then
11428 # We can use an host tool
11429 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11430 echo "$as_me:$LINENO: result: host tool" >&5
11431echo "${ECHO_T}host tool" >&6
be01d343
PB
11432 else
11433 # We need a cross tool
c6b750e1
DJ
11434 echo "$as_me:$LINENO: result: pre-installed" >&5
11435echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11436 fi
11437fi
4b900473 11438
c6b750e1
DJ
11439echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11440echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11441if test "x${build}" != "x${host}" ; then
2429c060
PB
11442 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11443 # We already found the complete path
b8025f34
AS
11444 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11445 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11446echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11447 else
11448 # Canadian cross, just use what we found
c6b750e1
DJ
11449 echo "$as_me:$LINENO: result: pre-installed" >&5
11450echo "${ECHO_T}pre-installed" >&6
2429c060 11451 fi
be01d343
PB
11452else
11453 ok=yes
11454 case " ${configdirs} " in
11455 *" binutils "*) ;;
11456 *) ok=no ;;
11457 esac
c6b750e1 11458
be01d343
PB
11459 if test $ok = yes; then
11460 # An in-tree tool is available and we can use it
11461 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11462 echo "$as_me:$LINENO: result: just compiled" >&5
11463echo "${ECHO_T}just compiled" >&6
2429c060
PB
11464 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11465 # We already found the complete path
b8025f34
AS
11466 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11467 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11468echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11469 elif test "x$target" = "x$host"; then
11470 # We can use an host tool
11471 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11472 echo "$as_me:$LINENO: result: host tool" >&5
11473echo "${ECHO_T}host tool" >&6
be01d343
PB
11474 else
11475 # We need a cross tool
c6b750e1
DJ
11476 echo "$as_me:$LINENO: result: pre-installed" >&5
11477echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11478 fi
11479fi
4b900473 11480
c6b750e1
DJ
11481echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11482echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11483if test "x${build}" != "x${host}" ; then
2429c060
PB
11484 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11485 # We already found the complete path
b8025f34
AS
11486 ac_dir=`dirname $GCC_FOR_TARGET`
11487 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11488echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11489 else
11490 # Canadian cross, just use what we found
c6b750e1
DJ
11491 echo "$as_me:$LINENO: result: pre-installed" >&5
11492echo "${ECHO_T}pre-installed" >&6
2429c060 11493 fi
be01d343
PB
11494else
11495 ok=yes
11496 case " ${configdirs} " in
11497 *" gcc "*) ;;
11498 *) ok=no ;;
11499 esac
c6b750e1 11500
be01d343
PB
11501 if test $ok = yes; then
11502 # An in-tree tool is available and we can use it
11503 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11504 echo "$as_me:$LINENO: result: just compiled" >&5
11505echo "${ECHO_T}just compiled" >&6
2429c060
PB
11506 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11507 # We already found the complete path
b8025f34
AS
11508 ac_dir=`dirname $GCC_FOR_TARGET`
11509 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11510echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11511 elif test "x$target" = "x$host"; then
11512 # We can use an host tool
11513 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11514 echo "$as_me:$LINENO: result: host tool" >&5
11515echo "${ECHO_T}host tool" >&6
be01d343
PB
11516 else
11517 # We need a cross tool
c6b750e1
DJ
11518 echo "$as_me:$LINENO: result: pre-installed" >&5
11519echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11520 fi
11521fi
4b900473 11522
c6b750e1
DJ
11523echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11524echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11525if test "x${build}" != "x${host}" ; then
2429c060
PB
11526 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11527 # We already found the complete path
b8025f34
AS
11528 ac_dir=`dirname $GCJ_FOR_TARGET`
11529 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11530echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11531 else
11532 # Canadian cross, just use what we found
c6b750e1
DJ
11533 echo "$as_me:$LINENO: result: pre-installed" >&5
11534echo "${ECHO_T}pre-installed" >&6
2429c060 11535 fi
be01d343
PB
11536else
11537 ok=yes
11538 case " ${configdirs} " in
11539 *" gcc "*) ;;
11540 *) ok=no ;;
11541 esac
11542 case ,${enable_languages}, in
11543 *,java,*) ;;
11544 *) ok=no ;;
11545 esac
11546 if test $ok = yes; then
11547 # An in-tree tool is available and we can use it
11548 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11549 echo "$as_me:$LINENO: result: just compiled" >&5
11550echo "${ECHO_T}just compiled" >&6
2429c060
PB
11551 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11552 # We already found the complete path
b8025f34
AS
11553 ac_dir=`dirname $GCJ_FOR_TARGET`
11554 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11555echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11556 elif test "x$target" = "x$host"; then
11557 # We can use an host tool
11558 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11559 echo "$as_me:$LINENO: result: host tool" >&5
11560echo "${ECHO_T}host tool" >&6
be01d343
PB
11561 else
11562 # We need a cross tool
c6b750e1
DJ
11563 echo "$as_me:$LINENO: result: pre-installed" >&5
11564echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11565 fi
11566fi
4b900473 11567
c6b750e1
DJ
11568echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11569echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11570if test "x${build}" != "x${host}" ; then
2429c060
PB
11571 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11572 # We already found the complete path
b8025f34
AS
11573 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11574 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11575echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11576 else
11577 # Canadian cross, just use what we found
c6b750e1
DJ
11578 echo "$as_me:$LINENO: result: pre-installed" >&5
11579echo "${ECHO_T}pre-installed" >&6
2429c060 11580 fi
be01d343
PB
11581else
11582 ok=yes
11583 case " ${configdirs} " in
11584 *" gcc "*) ;;
11585 *) ok=no ;;
11586 esac
11587 case ,${enable_languages}, in
11588 *,fortran,*) ;;
11589 *) ok=no ;;
11590 esac
11591 if test $ok = yes; then
11592 # An in-tree tool is available and we can use it
11593 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11594 echo "$as_me:$LINENO: result: just compiled" >&5
11595echo "${ECHO_T}just compiled" >&6
2429c060
PB
11596 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11597 # We already found the complete path
b8025f34
AS
11598 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11599 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11600echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11601 elif test "x$target" = "x$host"; then
11602 # We can use an host tool
11603 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11604 echo "$as_me:$LINENO: result: host tool" >&5
11605echo "${ECHO_T}host tool" >&6
be01d343
PB
11606 else
11607 # We need a cross tool
c6b750e1
DJ
11608 echo "$as_me:$LINENO: result: pre-installed" >&5
11609echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11610 fi
11611fi
4b900473 11612
c6b750e1
DJ
11613echo "$as_me:$LINENO: checking where to find the target ld" >&5
11614echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11615if test "x${build}" != "x${host}" ; then
2429c060
PB
11616 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11617 # We already found the complete path
b8025f34
AS
11618 ac_dir=`dirname $LD_FOR_TARGET`
11619 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11620echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11621 else
11622 # Canadian cross, just use what we found
c6b750e1
DJ
11623 echo "$as_me:$LINENO: result: pre-installed" >&5
11624echo "${ECHO_T}pre-installed" >&6
2429c060 11625 fi
be01d343
PB
11626else
11627 ok=yes
11628 case " ${configdirs} " in
11629 *" ld "*) ;;
11630 *) ok=no ;;
11631 esac
c6b750e1 11632
be01d343
PB
11633 if test $ok = yes; then
11634 # An in-tree tool is available and we can use it
11635 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11636 echo "$as_me:$LINENO: result: just compiled" >&5
11637echo "${ECHO_T}just compiled" >&6
2429c060
PB
11638 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11639 # We already found the complete path
b8025f34
AS
11640 ac_dir=`dirname $LD_FOR_TARGET`
11641 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11642echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11643 elif test "x$target" = "x$host"; then
11644 # We can use an host tool
11645 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11646 echo "$as_me:$LINENO: result: host tool" >&5
11647echo "${ECHO_T}host tool" >&6
be01d343
PB
11648 else
11649 # We need a cross tool
c6b750e1
DJ
11650 echo "$as_me:$LINENO: result: pre-installed" >&5
11651echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11652 fi
11653fi
4b900473 11654
c6b750e1
DJ
11655echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11656echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11657if test "x${build}" != "x${host}" ; then
2429c060
PB
11658 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11659 # We already found the complete path
b8025f34
AS
11660 ac_dir=`dirname $LIPO_FOR_TARGET`
11661 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11662echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11663 else
11664 # Canadian cross, just use what we found
c6b750e1
DJ
11665 echo "$as_me:$LINENO: result: pre-installed" >&5
11666echo "${ECHO_T}pre-installed" >&6
2429c060 11667 fi
be01d343 11668else
2429c060
PB
11669 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11670 # We already found the complete path
b8025f34
AS
11671 ac_dir=`dirname $LIPO_FOR_TARGET`
11672 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11673echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11674 elif test "x$target" = "x$host"; then
be01d343
PB
11675 # We can use an host tool
11676 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11677 echo "$as_me:$LINENO: result: host tool" >&5
11678echo "${ECHO_T}host tool" >&6
be01d343
PB
11679 else
11680 # We need a cross tool
c6b750e1
DJ
11681 echo "$as_me:$LINENO: result: pre-installed" >&5
11682echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11683 fi
11684fi
4b900473 11685
c6b750e1
DJ
11686echo "$as_me:$LINENO: checking where to find the target nm" >&5
11687echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11688if test "x${build}" != "x${host}" ; then
2429c060
PB
11689 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11690 # We already found the complete path
b8025f34
AS
11691 ac_dir=`dirname $NM_FOR_TARGET`
11692 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11693echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11694 else
11695 # Canadian cross, just use what we found
c6b750e1
DJ
11696 echo "$as_me:$LINENO: result: pre-installed" >&5
11697echo "${ECHO_T}pre-installed" >&6
2429c060 11698 fi
be01d343
PB
11699else
11700 ok=yes
11701 case " ${configdirs} " in
11702 *" binutils "*) ;;
11703 *) ok=no ;;
11704 esac
c6b750e1 11705
be01d343
PB
11706 if test $ok = yes; then
11707 # An in-tree tool is available and we can use it
11708 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11709 echo "$as_me:$LINENO: result: just compiled" >&5
11710echo "${ECHO_T}just compiled" >&6
2429c060
PB
11711 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11712 # We already found the complete path
b8025f34
AS
11713 ac_dir=`dirname $NM_FOR_TARGET`
11714 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11715echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11716 elif test "x$target" = "x$host"; then
11717 # We can use an host tool
11718 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11719 echo "$as_me:$LINENO: result: host tool" >&5
11720echo "${ECHO_T}host tool" >&6
be01d343
PB
11721 else
11722 # We need a cross tool
c6b750e1
DJ
11723 echo "$as_me:$LINENO: result: pre-installed" >&5
11724echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11725 fi
11726fi
4b900473 11727
c6b750e1
DJ
11728echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11729echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11730if test "x${build}" != "x${host}" ; then
2429c060
PB
11731 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11732 # We already found the complete path
b8025f34
AS
11733 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11734 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11735echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11736 else
11737 # Canadian cross, just use what we found
c6b750e1
DJ
11738 echo "$as_me:$LINENO: result: pre-installed" >&5
11739echo "${ECHO_T}pre-installed" >&6
2429c060 11740 fi
be01d343
PB
11741else
11742 ok=yes
11743 case " ${configdirs} " in
11744 *" binutils "*) ;;
11745 *) ok=no ;;
11746 esac
c6b750e1 11747
be01d343
PB
11748 if test $ok = yes; then
11749 # An in-tree tool is available and we can use it
11750 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11751 echo "$as_me:$LINENO: result: just compiled" >&5
11752echo "${ECHO_T}just compiled" >&6
2429c060
PB
11753 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11754 # We already found the complete path
b8025f34
AS
11755 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11756 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11757echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11758 elif test "x$target" = "x$host"; then
11759 # We can use an host tool
11760 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11761 echo "$as_me:$LINENO: result: host tool" >&5
11762echo "${ECHO_T}host tool" >&6
be01d343
PB
11763 else
11764 # We need a cross tool
c6b750e1
DJ
11765 echo "$as_me:$LINENO: result: pre-installed" >&5
11766echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11767 fi
11768fi
4b900473 11769
c6b750e1
DJ
11770echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11771echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11772if test "x${build}" != "x${host}" ; then
2429c060
PB
11773 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11774 # We already found the complete path
b8025f34
AS
11775 ac_dir=`dirname $RANLIB_FOR_TARGET`
11776 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11777echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11778 else
11779 # Canadian cross, just use what we found
c6b750e1
DJ
11780 echo "$as_me:$LINENO: result: pre-installed" >&5
11781echo "${ECHO_T}pre-installed" >&6
2429c060 11782 fi
be01d343
PB
11783else
11784 ok=yes
11785 case " ${configdirs} " in
11786 *" binutils "*) ;;
11787 *) ok=no ;;
11788 esac
c6b750e1 11789
be01d343
PB
11790 if test $ok = yes; then
11791 # An in-tree tool is available and we can use it
11792 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11793 echo "$as_me:$LINENO: result: just compiled" >&5
11794echo "${ECHO_T}just compiled" >&6
2429c060
PB
11795 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11796 # We already found the complete path
b8025f34
AS
11797 ac_dir=`dirname $RANLIB_FOR_TARGET`
11798 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11799echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11800 elif test "x$target" = "x$host"; then
11801 # We can use an host tool
11802 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11803 echo "$as_me:$LINENO: result: host tool" >&5
11804echo "${ECHO_T}host tool" >&6
be01d343
PB
11805 else
11806 # We need a cross tool
c6b750e1
DJ
11807 echo "$as_me:$LINENO: result: pre-installed" >&5
11808echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11809 fi
11810fi
4b900473 11811
c6b750e1
DJ
11812echo "$as_me:$LINENO: checking where to find the target strip" >&5
11813echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11814if test "x${build}" != "x${host}" ; then
2429c060
PB
11815 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11816 # We already found the complete path
b8025f34
AS
11817 ac_dir=`dirname $STRIP_FOR_TARGET`
11818 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11819echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11820 else
11821 # Canadian cross, just use what we found
c6b750e1
DJ
11822 echo "$as_me:$LINENO: result: pre-installed" >&5
11823echo "${ECHO_T}pre-installed" >&6
2429c060 11824 fi
be01d343
PB
11825else
11826 ok=yes
11827 case " ${configdirs} " in
11828 *" binutils "*) ;;
11829 *) ok=no ;;
11830 esac
c6b750e1 11831
be01d343
PB
11832 if test $ok = yes; then
11833 # An in-tree tool is available and we can use it
11834 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11835 echo "$as_me:$LINENO: result: just compiled" >&5
11836echo "${ECHO_T}just compiled" >&6
2429c060
PB
11837 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11838 # We already found the complete path
b8025f34
AS
11839 ac_dir=`dirname $STRIP_FOR_TARGET`
11840 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11841echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11842 elif test "x$target" = "x$host"; then
11843 # We can use an host tool
11844 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11845 echo "$as_me:$LINENO: result: host tool" >&5
11846echo "${ECHO_T}host tool" >&6
be01d343
PB
11847 else
11848 # We need a cross tool
c6b750e1
DJ
11849 echo "$as_me:$LINENO: result: pre-installed" >&5
11850echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11851 fi
11852fi
4b900473 11853
c6b750e1
DJ
11854echo "$as_me:$LINENO: checking where to find the target windres" >&5
11855echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11856if test "x${build}" != "x${host}" ; then
2429c060
PB
11857 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11858 # We already found the complete path
b8025f34
AS
11859 ac_dir=`dirname $WINDRES_FOR_TARGET`
11860 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11861echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11862 else
11863 # Canadian cross, just use what we found
c6b750e1
DJ
11864 echo "$as_me:$LINENO: result: pre-installed" >&5
11865echo "${ECHO_T}pre-installed" >&6
2429c060 11866 fi
be01d343
PB
11867else
11868 ok=yes
11869 case " ${configdirs} " in
11870 *" binutils "*) ;;
11871 *) ok=no ;;
11872 esac
c6b750e1 11873
be01d343
PB
11874 if test $ok = yes; then
11875 # An in-tree tool is available and we can use it
11876 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11877 echo "$as_me:$LINENO: result: just compiled" >&5
11878echo "${ECHO_T}just compiled" >&6
2429c060
PB
11879 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11880 # We already found the complete path
b8025f34
AS
11881 ac_dir=`dirname $WINDRES_FOR_TARGET`
11882 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11883echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11884 elif test "x$target" = "x$host"; then
11885 # We can use an host tool
11886 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11887 echo "$as_me:$LINENO: result: host tool" >&5
11888echo "${ECHO_T}host tool" >&6
be01d343
PB
11889 else
11890 # We need a cross tool
c6b750e1
DJ
11891 echo "$as_me:$LINENO: result: pre-installed" >&5
11892echo "${ECHO_T}pre-installed" >&6
be01d343 11893 fi
a0da8069 11894fi
54752a6b 11895
0c24b341
NC
11896echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11897echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11898if test "x${build}" != "x${host}" ; then
11899 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11900 # We already found the complete path
11901 ac_dir=`dirname $WINDMC_FOR_TARGET`
11902 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11903echo "${ECHO_T}pre-installed in $ac_dir" >&6
11904 else
11905 # Canadian cross, just use what we found
11906 echo "$as_me:$LINENO: result: pre-installed" >&5
11907echo "${ECHO_T}pre-installed" >&6
11908 fi
11909else
11910 ok=yes
11911 case " ${configdirs} " in
11912 *" binutils "*) ;;
11913 *) ok=no ;;
11914 esac
11915
11916 if test $ok = yes; then
11917 # An in-tree tool is available and we can use it
11918 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11919 echo "$as_me:$LINENO: result: just compiled" >&5
11920echo "${ECHO_T}just compiled" >&6
11921 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11922 # We already found the complete path
11923 ac_dir=`dirname $WINDMC_FOR_TARGET`
11924 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11925echo "${ECHO_T}pre-installed in $ac_dir" >&6
11926 elif test "x$target" = "x$host"; then
11927 # We can use an host tool
11928 WINDMC_FOR_TARGET='$(WINDMC)'
11929 echo "$as_me:$LINENO: result: host tool" >&5
11930echo "${ECHO_T}host tool" >&6
11931 else
11932 # We need a cross tool
11933 echo "$as_me:$LINENO: result: pre-installed" >&5
11934echo "${ECHO_T}pre-installed" >&6
11935 fi
11936fi
11937
54752a6b
NN
11938
11939
be01d343 11940
4b900473 11941
a0da8069
NN
11942# Certain tools may need extra flags.
11943AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11944RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11945NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11946
be01d343
PB
11947# When building target libraries, except in a Canadian cross, we use
11948# the same toolchain as the compiler we just built.
11949COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11950COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11951COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11952if test $host = $build; then
11953 case " $configdirs " in
11954 *" gcc "*)
11955 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11956 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11957 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11958 ;;
11959 esac
11960fi
11961
11962
11963
11964
11965
c6b750e1
DJ
11966echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11967echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
11968# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11969if test "${enable_maintainer_mode+set}" = set; then
11970 enableval="$enable_maintainer_mode"
11971 USE_MAINTAINER_MODE=$enableval
11972else
11973 USE_MAINTAINER_MODE=no
c6b750e1
DJ
11974fi;
11975echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11976echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
11977
11978
11979if test "$USE_MAINTAINER_MODE" = yes; then
11980 MAINTAINER_MODE_TRUE=
11981 MAINTAINER_MODE_FALSE='#'
11982else
11983 MAINTAINER_MODE_TRUE='#'
11984 MAINTAINER_MODE_FALSE=
c6b750e1 11985fi
3d5e36ae
AO
11986MAINT=$MAINTAINER_MODE_TRUE
11987
1d39f329
NN
11988# ---------------------
11989# GCC bootstrap support
11990# ---------------------
11991
11992# Stage specific cflags for build.
11993stage1_cflags="-g"
11994case $build in
11995 vax-*-*)
11996 case ${GCC} in
11997 yes) stage1_cflags="-g -Wa,-J" ;;
11998 *) stage1_cflags="-g -J" ;;
11999 esac ;;
1d39f329
NN
12000esac
12001
1d89b610
PB
12002# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12003if test "$GCC" = yes; then
12004 saved_CFLAGS="$CFLAGS"
12005
12006 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12007 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12008 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12009echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12010 cat >conftest.$ac_ext <<_ACEOF
12011/* confdefs.h. */
12012_ACEOF
12013cat confdefs.h >>conftest.$ac_ext
12014cat >>conftest.$ac_ext <<_ACEOF
12015/* end confdefs.h. */
12016
2038f525
PB
12017#if (__GNUC__ < 3) \
12018 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12019 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12020#error http://gcc.gnu.org/PR29382
12021#endif
12022
c6b750e1
DJ
12023int
12024main ()
12025{
12026
12027 ;
12028 return 0;
12029}
12030_ACEOF
12031rm -f conftest.$ac_objext
12032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12033 (eval $ac_compile) 2>conftest.er1
12034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } &&
12040 { ac_try='test -z "$ac_c_werror_flag"
12041 || test ! -s conftest.err'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try='test -s conftest.$ac_objext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 echo "$as_me:$LINENO: result: yes" >&5
12054echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12055else
12056 echo "$as_me: failed program was:" >&5
12057sed 's/^/| /' conftest.$ac_ext >&5
12058
12059echo "$as_me:$LINENO: result: no" >&5
12060echo "${ECHO_T}no" >&6
12061fi
12062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12063
12064 CFLAGS="$saved_CFLAGS"
12065fi
12066
12067
1d39f329 12068
8a0d8a5c
PB
12069# Enable --enable-checking in stage1 of the compiler.
12070# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12071if test "${enable_stage1_checking+set}" = set; then
12072 enableval="$enable_stage1_checking"
12073 stage1_checking=--enable-checking=${enable_stage1_checking}
12074else
5566c1fa 12075 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12076 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12077else
5566c1fa 12078 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12079fi
c6b750e1 12080fi;
8a0d8a5c
PB
12081
12082
1d39f329 12083# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12084# Check whether --enable-werror or --disable-werror was given.
12085if test "${enable_werror+set}" = set; then
12086 enableval="$enable_werror"
c6b750e1 12087
1d39f329 12088else
a0323144 12089 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12090 enable_werror=yes
79fcd0ec
PB
12091else
12092 enable_werror=no
12093fi
c6b750e1 12094fi;
1a6f2dc7
NN
12095case ${enable_werror} in
12096 yes) stage2_werror_flag="--enable-werror-always" ;;
12097 *) stage2_werror_flag="" ;;
1d39f329
NN
12098esac
12099
12100
108a6f8e 12101# Flags needed to enable html installing and building
c6b750e1 12102
108a6f8e
CD
12103# Check whether --with-datarootdir or --without-datarootdir was given.
12104if test "${with_datarootdir+set}" = set; then
12105 withval="$with_datarootdir"
12106 datarootdir="\${prefix}/${withval}"
12107else
12108 datarootdir="\${prefix}/share"
c6b750e1 12109fi;
108a6f8e
CD
12110
12111
12112# Check whether --with-docdir or --without-docdir was given.
12113if test "${with_docdir+set}" = set; then
12114 withval="$with_docdir"
12115 docdir="\${prefix}/${withval}"
12116else
12117 docdir="\${datarootdir}/doc"
c6b750e1 12118fi;
108a6f8e
CD
12119
12120
a3ca38d2
DD
12121# Check whether --with-pdfdir or --without-pdfdir was given.
12122if test "${with_pdfdir+set}" = set; then
12123 withval="$with_pdfdir"
12124 pdfdir="\${prefix}/${withval}"
12125else
12126 pdfdir="\${docdir}"
12127fi;
12128
12129
108a6f8e
CD
12130# Check whether --with-htmldir or --without-htmldir was given.
12131if test "${with_htmldir+set}" = set; then
12132 withval="$with_htmldir"
12133 htmldir="\${prefix}/${withval}"
12134else
12135 htmldir="\${docdir}"
c6b750e1 12136fi;
108a6f8e
CD
12137
12138
12139
12140
12141
b8025f34 12142
c6b750e1
DJ
12143 ac_config_files="$ac_config_files Makefile"
12144cat >confcache <<\_ACEOF
a0da8069
NN
12145# This file is a shell script that caches the results of configure
12146# tests run on this system so they can be shared between configure
c6b750e1
DJ
12147# scripts and configure runs, see configure's option --config-cache.
12148# It is not useful on other systems. If it contains results you don't
12149# want to keep, you may remove or edit it.
a0da8069 12150#
c6b750e1
DJ
12151# config.status only pays attention to the cache file if you give it
12152# the --recheck option to rerun configure.
a0da8069 12153#
c6b750e1
DJ
12154# `ac_cv_env_foo' variables (set or unset) will be overridden when
12155# loading this file, other *unset* `ac_cv_foo' will be assigned the
12156# following values.
12157
12158_ACEOF
12159
a0da8069
NN
12160# The following way of writing the cache mishandles newlines in values,
12161# but we know of no workaround that is simple, portable, and efficient.
12162# So, don't put newlines in cache variables' values.
12163# Ultrix sh set writes to stderr and can't be redirected directly,
12164# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12165{
12166 (set) 2>&1 |
12167 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12168 *ac_space=\ *)
12169 # `set' does not quote correctly, so add quotes (double-quote
12170 # substitution turns \\\\ into \\, and sed turns \\ into \).
12171 sed -n \
12172 "s/'/'\\\\''/g;
12173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12174 ;;
12175 *)
12176 # `set' quotes correctly as required by POSIX, so do not add quotes.
12177 sed -n \
12178 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12179 ;;
12180 esac;
12181} |
12182 sed '
12183 t clear
12184 : clear
12185 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12186 t end
12187 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12188 : end' >>confcache
12189if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12190 if test -w $cache_file; then
c6b750e1
DJ
12191 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12192 cat confcache >$cache_file
a0da8069
NN
12193 else
12194 echo "not updating unwritable cache $cache_file"
12195 fi
852e5f18 12196fi
a0da8069 12197rm -f confcache
852e5f18 12198
a0da8069
NN
12199test "x$prefix" = xNONE && prefix=$ac_default_prefix
12200# Let make expand exec_prefix.
12201test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12202
c6b750e1
DJ
12203# VPATH may cause trouble with some makes, so we remove $(srcdir),
12204# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12205# trailing colons and then remove the whole line if VPATH becomes empty
12206# (actually we leave an empty line to preserve line numbers).
a0da8069 12207if test "x$srcdir" = x.; then
c6b750e1
DJ
12208 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12209s/:*\$(srcdir):*/:/;
12210s/:*\${srcdir}:*/:/;
12211s/:*@srcdir@:*/:/;
12212s/^\([^=]*=[ ]*\):*/\1/;
12213s/:*$//;
12214s/^[^=]*=[ ]*$//;
12215}'
a0da8069 12216fi
252b5132 12217
a0da8069
NN
12218# Transform confdefs.h into DEFS.
12219# Protect against shell expansion while executing Makefile rules.
12220# Protect against Makefile macro expansion.
c6b750e1
DJ
12221#
12222# If the first sed substitution is executed (which looks for macros that
12223# take arguments), then we branch to the quote section. Otherwise,
12224# look for a macro that doesn't take arguments.
12225cat >confdef2opt.sed <<\_ACEOF
12226t clear
12227: clear
12228s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12229t quote
12230s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12231t quote
12232d
12233: quote
12234s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12235s,\[,\\&,g
12236s,\],\\&,g
12237s,\$,$$,g
12238p
12239_ACEOF
12240# We use echo to avoid assuming a particular line-breaking character.
12241# The extra dot is to prevent the shell from consuming trailing
12242# line-breaks from the sub-command output. A line-break within
12243# single-quotes doesn't work because, if this script is created in a
12244# platform that uses two characters for line-breaks (e.g., DOS), tr
12245# would break.
12246ac_LF_and_DOT=`echo; echo .`
12247DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12248rm -f confdef2opt.sed
12249
12250
12251ac_libobjs=
12252ac_ltlibobjs=
12253for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12254 # 1. Remove the extension, and $U if already installed.
12255 ac_i=`echo "$ac_i" |
12256 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12257 # 2. Add them.
12258 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12259 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12260done
12261LIBOBJS=$ac_libobjs
852e5f18 12262
c6b750e1 12263LTLIBOBJS=$ac_ltlibobjs
376a0e54 12264
cac3d6c4 12265
c6b750e1
DJ
12266
12267: ${CONFIG_STATUS=./config.status}
12268ac_clean_files_save=$ac_clean_files
12269ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12270{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12271echo "$as_me: creating $CONFIG_STATUS" >&6;}
12272cat >$CONFIG_STATUS <<_ACEOF
12273#! $SHELL
12274# Generated by $as_me.
a0da8069 12275# Run this file to recreate the current configuration.
a0da8069 12276# Compiler output produced by configure, useful for debugging
c6b750e1 12277# configure, is in config.log if it exists.
376a0e54 12278
c6b750e1
DJ
12279debug=false
12280ac_cs_recheck=false
12281ac_cs_silent=false
12282SHELL=\${CONFIG_SHELL-$SHELL}
12283_ACEOF
12284
12285cat >>$CONFIG_STATUS <<\_ACEOF
12286## --------------------- ##
12287## M4sh Initialization. ##
12288## --------------------- ##
12289
12290# Be Bourne compatible
12291if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12292 emulate sh
12293 NULLCMD=:
12294 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12295 # is contrary to our usage. Disable this feature.
12296 alias -g '${1+"$@"}'='"$@"'
12297elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12298 set -o posix
12299fi
12300DUALCASE=1; export DUALCASE # for MKS sh
12301
12302# Support unset when possible.
12303if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12304 as_unset=unset
12305else
12306 as_unset=false
12307fi
12308
12309
12310# Work around bugs in pre-3.0 UWIN ksh.
12311$as_unset ENV MAIL MAILPATH
12312PS1='$ '
12313PS2='> '
12314PS4='+ '
12315
12316# NLS nuisances.
12317for as_var in \
12318 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12319 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12320 LC_TELEPHONE LC_TIME
12321do
12322 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12323 eval $as_var=C; export $as_var
12324 else
12325 $as_unset $as_var
12326 fi
12327done
12328
12329# Required to use basename.
12330if expr a : '\(a\)' >/dev/null 2>&1; then
12331 as_expr=expr
12332else
12333 as_expr=false
12334fi
12335
12336if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12337 as_basename=basename
12338else
12339 as_basename=false
12340fi
12341
12342
12343# Name of the executable.
12344as_me=`$as_basename "$0" ||
12345$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12346 X"$0" : 'X\(//\)$' \| \
12347 X"$0" : 'X\(/\)$' \| \
12348 . : '\(.\)' 2>/dev/null ||
12349echo X/"$0" |
12350 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12351 /^X\/\(\/\/\)$/{ s//\1/; q; }
12352 /^X\/\(\/\).*/{ s//\1/; q; }
12353 s/.*/./; q'`
12354
12355
12356# PATH needs CR, and LINENO needs CR and PATH.
12357# Avoid depending upon Character Ranges.
12358as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12359as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12360as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12361as_cr_digits='0123456789'
12362as_cr_alnum=$as_cr_Letters$as_cr_digits
12363
12364# The user is always right.
12365if test "${PATH_SEPARATOR+set}" != set; then
12366 echo "#! /bin/sh" >conf$$.sh
12367 echo "exit 0" >>conf$$.sh
12368 chmod +x conf$$.sh
12369 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12370 PATH_SEPARATOR=';'
12371 else
12372 PATH_SEPARATOR=:
12373 fi
12374 rm -f conf$$.sh
12375fi
12376
12377
12378 as_lineno_1=$LINENO
12379 as_lineno_2=$LINENO
12380 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12381 test "x$as_lineno_1" != "x$as_lineno_2" &&
12382 test "x$as_lineno_3" = "x$as_lineno_2" || {
12383 # Find who we are. Look in the path if we contain no path at all
12384 # relative or not.
12385 case $0 in
12386 *[\\/]* ) as_myself=$0 ;;
12387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388for as_dir in $PATH
12389do
12390 IFS=$as_save_IFS
12391 test -z "$as_dir" && as_dir=.
12392 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12393done
12394
12395 ;;
12396 esac
12397 # We did not find ourselves, most probably we were run as `sh COMMAND'
12398 # in which case we are not to be found in the path.
12399 if test "x$as_myself" = x; then
12400 as_myself=$0
12401 fi
12402 if test ! -f "$as_myself"; then
12403 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12404echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12405 { (exit 1); exit 1; }; }
12406 fi
12407 case $CONFIG_SHELL in
12408 '')
12409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12411do
12412 IFS=$as_save_IFS
12413 test -z "$as_dir" && as_dir=.
12414 for as_base in sh bash ksh sh5; do
12415 case $as_dir in
12416 /*)
12417 if ("$as_dir/$as_base" -c '
12418 as_lineno_1=$LINENO
12419 as_lineno_2=$LINENO
12420 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12421 test "x$as_lineno_1" != "x$as_lineno_2" &&
12422 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12423 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12424 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12425 CONFIG_SHELL=$as_dir/$as_base
12426 export CONFIG_SHELL
12427 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12428 fi;;
12429 esac
12430 done
12431done
12432;;
12433 esac
12434
12435 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12436 # uniformly replaced by the line number. The first 'sed' inserts a
12437 # line-number line before each line; the second 'sed' does the real
12438 # work. The second script uses 'N' to pair each line-number line
12439 # with the numbered line, and appends trailing '-' during
12440 # substitution so that $LINENO is not a special case at line end.
12441 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12442 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12443 sed '=' <$as_myself |
12444 sed '
12445 N
12446 s,$,-,
12447 : loop
12448 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12449 t loop
12450 s,-$,,
12451 s,^['$as_cr_digits']*\n,,
12452 ' >$as_me.lineno &&
12453 chmod +x $as_me.lineno ||
12454 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12455echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12456 { (exit 1); exit 1; }; }
12457
12458 # Don't try to exec as it changes $[0], causing all sort of problems
12459 # (the dirname of $[0] is not the place where we might find the
12460 # original and so on. Autoconf is especially sensible to this).
12461 . ./$as_me.lineno
12462 # Exit status is that of the last command.
12463 exit
12464}
12465
12466
12467case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12468 *c*,-n*) ECHO_N= ECHO_C='
12469' ECHO_T=' ' ;;
12470 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12471 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12472esac
12473
12474if expr a : '\(a\)' >/dev/null 2>&1; then
12475 as_expr=expr
12476else
12477 as_expr=false
12478fi
12479
12480rm -f conf$$ conf$$.exe conf$$.file
12481echo >conf$$.file
12482if ln -s conf$$.file conf$$ 2>/dev/null; then
12483 # We could just check for DJGPP; but this test a) works b) is more generic
12484 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12485 if test -f conf$$.exe; then
12486 # Don't use ln at all; we don't have any links
12487 as_ln_s='cp -p'
12488 else
12489 as_ln_s='ln -s'
12490 fi
12491elif ln conf$$.file conf$$ 2>/dev/null; then
12492 as_ln_s=ln
12493else
12494 as_ln_s='cp -p'
12495fi
12496rm -f conf$$ conf$$.exe conf$$.file
12497
12498if mkdir -p . 2>/dev/null; then
12499 as_mkdir_p=:
12500else
12501 test -d ./-p && rmdir ./-p
12502 as_mkdir_p=false
12503fi
12504
12505as_executable_p="test -f"
12506
12507# Sed expression to map a string onto a valid CPP name.
12508as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12509
12510# Sed expression to map a string onto a valid variable name.
12511as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12512
12513
12514# IFS
12515# We need space, tab and new line, in precisely that order.
12516as_nl='
12517'
12518IFS=" $as_nl"
12519
12520# CDPATH.
12521$as_unset CDPATH
12522
12523exec 6>&1
12524
12525# Open the log real soon, to keep \$[0] and so on meaningful, and to
12526# report actual input values of CONFIG_FILES etc. instead of their
12527# values after options handling. Logging --version etc. is OK.
12528exec 5>>config.log
12529{
12530 echo
12531 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12532## Running $as_me. ##
12533_ASBOX
12534} >&5
12535cat >&5 <<_CSEOF
12536
12537This file was extended by $as_me, which was
12538generated by GNU Autoconf 2.59. Invocation command line was
12539
12540 CONFIG_FILES = $CONFIG_FILES
12541 CONFIG_HEADERS = $CONFIG_HEADERS
12542 CONFIG_LINKS = $CONFIG_LINKS
12543 CONFIG_COMMANDS = $CONFIG_COMMANDS
12544 $ $0 $@
12545
12546_CSEOF
12547echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12548echo >&5
12549_ACEOF
12550
12551# Files that config.status was made for.
12552if test -n "$ac_config_files"; then
12553 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12554fi
12555
12556if test -n "$ac_config_headers"; then
12557 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12558fi
12559
12560if test -n "$ac_config_links"; then
12561 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12562fi
12563
12564if test -n "$ac_config_commands"; then
12565 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12566fi
12567
12568cat >>$CONFIG_STATUS <<\_ACEOF
12569
12570ac_cs_usage="\
12571\`$as_me' instantiates files from templates according to the
12572current configuration.
12573
12574Usage: $0 [OPTIONS] [FILE]...
12575
12576 -h, --help print this help, then exit
12577 -V, --version print version number, then exit
12578 -q, --quiet do not print progress messages
12579 -d, --debug don't remove temporary files
12580 --recheck update $as_me by reconfiguring in the same conditions
12581 --file=FILE[:TEMPLATE]
12582 instantiate the configuration file FILE
12583
12584Configuration files:
12585$config_files
12586
12587Report bugs to <bug-autoconf@gnu.org>."
12588_ACEOF
12589
12590cat >>$CONFIG_STATUS <<_ACEOF
12591ac_cs_version="\\
12592config.status
12593configured by $0, generated by GNU Autoconf 2.59,
12594 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12595
12596Copyright (C) 2003 Free Software Foundation, Inc.
12597This config.status script is free software; the Free Software Foundation
12598gives unlimited permission to copy, distribute and modify it."
12599srcdir=$srcdir
12600INSTALL="$INSTALL"
12601_ACEOF
12602
12603cat >>$CONFIG_STATUS <<\_ACEOF
12604# If no file are specified by the user, then we need to provide default
12605# value. By we need to know if files were specified by the user.
12606ac_need_defaults=:
12607while test $# != 0
a0da8069 12608do
c6b750e1
DJ
12609 case $1 in
12610 --*=*)
12611 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12612 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12613 ac_shift=:
12614 ;;
12615 -*)
12616 ac_option=$1
12617 ac_optarg=$2
12618 ac_shift=shift
12619 ;;
12620 *) # This is not an option, so the user has probably given explicit
12621 # arguments.
12622 ac_option=$1
12623 ac_need_defaults=false;;
12624 esac
12625
12626 case $ac_option in
12627 # Handling of the options.
12628_ACEOF
12629cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12630 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12631 ac_cs_recheck=: ;;
12632 --version | --vers* | -V )
12633 echo "$ac_cs_version"; exit 0 ;;
12634 --he | --h)
12635 # Conflict between --help and --header
12636 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12637Try \`$0 --help' for more information." >&5
12638echo "$as_me: error: ambiguous option: $1
12639Try \`$0 --help' for more information." >&2;}
12640 { (exit 1); exit 1; }; };;
12641 --help | --hel | -h )
12642 echo "$ac_cs_usage"; exit 0 ;;
12643 --debug | --d* | -d )
12644 debug=: ;;
12645 --file | --fil | --fi | --f )
12646 $ac_shift
12647 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12648 ac_need_defaults=false;;
12649 --header | --heade | --head | --hea )
12650 $ac_shift
12651 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12652 ac_need_defaults=false;;
12653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12654 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12655 ac_cs_silent=: ;;
12656
12657 # This is an error.
12658 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12659Try \`$0 --help' for more information." >&5
12660echo "$as_me: error: unrecognized option: $1
12661Try \`$0 --help' for more information." >&2;}
12662 { (exit 1); exit 1; }; } ;;
12663
12664 *) ac_config_targets="$ac_config_targets $1" ;;
12665
376a0e54 12666 esac
c6b750e1 12667 shift
376a0e54
CM
12668done
12669
c6b750e1 12670ac_configure_extra_args=
376a0e54 12671
c6b750e1
DJ
12672if $ac_cs_silent; then
12673 exec 6>/dev/null
12674 ac_configure_extra_args="$ac_configure_extra_args --silent"
12675fi
376a0e54 12676
c6b750e1
DJ
12677_ACEOF
12678cat >>$CONFIG_STATUS <<_ACEOF
12679if \$ac_cs_recheck; then
12680 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12681 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12682fi
12683
12684_ACEOF
12685
12686
12687
12688
12689
12690cat >>$CONFIG_STATUS <<\_ACEOF
12691for ac_config_target in $ac_config_targets
12692do
12693 case "$ac_config_target" in
12694 # Handling of arguments.
12695 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12696 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12697echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12698 { (exit 1); exit 1; }; };;
12699 esac
12700done
12701
12702# If the user did not use the arguments to specify the items to instantiate,
12703# then the envvar interface is used. Set only those that are not.
12704# We use the long form for the default assignment because of an extremely
12705# bizarre bug on SunOS 4.1.3.
12706if $ac_need_defaults; then
12707 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12708fi
12709
12710# Have a temporary directory for convenience. Make it in the build tree
12711# simply because there is no reason to put it here, and in addition,
12712# creating and moving files from /tmp can sometimes cause problems.
12713# Create a temporary directory, and hook for its removal unless debugging.
12714$debug ||
12715{
12716 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12717 trap '{ (exit 1); exit 1; }' 1 2 13 15
12718}
12719
12720# Create a (secure) tmp directory for tmp files.
12721
12722{
12723 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12724 test -n "$tmp" && test -d "$tmp"
12725} ||
12726{
12727 tmp=./confstat$$-$RANDOM
12728 (umask 077 && mkdir $tmp)
12729} ||
12730{
12731 echo "$me: cannot create a temporary directory in ." >&2
12732 { (exit 1); exit 1; }
12733}
12734
12735_ACEOF
12736
12737cat >>$CONFIG_STATUS <<_ACEOF
12738
12739#
12740# CONFIG_FILES section.
12741#
12742
12743# No need to generate the scripts if there are no CONFIG_FILES.
12744# This happens for instance when ./config.status config.h
12745if test -n "\$CONFIG_FILES"; then
12746 # Protect against being on the right side of a sed subst in config.status.
12747 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12748 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12749s,@SHELL@,$SHELL,;t t
12750s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12751s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12752s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12753s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12754s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12755s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12756s,@exec_prefix@,$exec_prefix,;t t
12757s,@prefix@,$prefix,;t t
12758s,@program_transform_name@,$program_transform_name,;t t
12759s,@bindir@,$bindir,;t t
12760s,@sbindir@,$sbindir,;t t
12761s,@libexecdir@,$libexecdir,;t t
12762s,@datadir@,$datadir,;t t
12763s,@sysconfdir@,$sysconfdir,;t t
12764s,@sharedstatedir@,$sharedstatedir,;t t
12765s,@localstatedir@,$localstatedir,;t t
12766s,@libdir@,$libdir,;t t
12767s,@includedir@,$includedir,;t t
12768s,@oldincludedir@,$oldincludedir,;t t
12769s,@infodir@,$infodir,;t t
12770s,@mandir@,$mandir,;t t
12771s,@build_alias@,$build_alias,;t t
12772s,@host_alias@,$host_alias,;t t
12773s,@target_alias@,$target_alias,;t t
12774s,@DEFS@,$DEFS,;t t
12775s,@ECHO_C@,$ECHO_C,;t t
12776s,@ECHO_N@,$ECHO_N,;t t
12777s,@ECHO_T@,$ECHO_T,;t t
12778s,@LIBS@,$LIBS,;t t
12779s,@build@,$build,;t t
12780s,@build_cpu@,$build_cpu,;t t
12781s,@build_vendor@,$build_vendor,;t t
12782s,@build_os@,$build_os,;t t
12783s,@build_noncanonical@,$build_noncanonical,;t t
12784s,@host_noncanonical@,$host_noncanonical,;t t
12785s,@target_noncanonical@,$target_noncanonical,;t t
12786s,@host@,$host,;t t
12787s,@host_cpu@,$host_cpu,;t t
12788s,@host_vendor@,$host_vendor,;t t
12789s,@host_os@,$host_os,;t t
12790s,@target@,$target,;t t
12791s,@target_cpu@,$target_cpu,;t t
12792s,@target_vendor@,$target_vendor,;t t
12793s,@target_os@,$target_os,;t t
12794s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12795s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12796s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12797s,@LN@,$LN,;t t
12798s,@LN_S@,$LN_S,;t t
12799s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12800s,@build_libsubdir@,$build_libsubdir,;t t
12801s,@build_subdir@,$build_subdir,;t t
12802s,@host_subdir@,$host_subdir,;t t
12803s,@target_subdir@,$target_subdir,;t t
12804s,@CC@,$CC,;t t
12805s,@CFLAGS@,$CFLAGS,;t t
12806s,@LDFLAGS@,$LDFLAGS,;t t
12807s,@CPPFLAGS@,$CPPFLAGS,;t t
12808s,@ac_ct_CC@,$ac_ct_CC,;t t
12809s,@EXEEXT@,$EXEEXT,;t t
12810s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12811s,@CXX@,$CXX,;t t
12812s,@CXXFLAGS@,$CXXFLAGS,;t t
12813s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12814s,@GNATBIND@,$GNATBIND,;t t
12815s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12816s,@GNATMAKE@,$GNATMAKE,;t t
12817s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12818s,@do_compare@,$do_compare,;t t
12819s,@gmplibs@,$gmplibs,;t t
12820s,@gmpinc@,$gmpinc,;t t
12821s,@stage1_languages@,$stage1_languages,;t t
12822s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12823s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12824s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12825s,@tooldir@,$tooldir,;t t
12826s,@build_tooldir@,$build_tooldir,;t t
12827s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12828s,@GDB_TK@,$GDB_TK,;t t
12829s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12830s,@build_configargs@,$build_configargs,;t t
12831s,@build_configdirs@,$build_configdirs,;t t
12832s,@host_configargs@,$host_configargs,;t t
12833s,@configdirs@,$configdirs,;t t
12834s,@target_configargs@,$target_configargs,;t t
1576798e
PB
12835s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12836s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 12837s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
12838s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12839s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12840s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12841s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12842s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12843s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12844s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12845s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12846s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12847s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12848s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12849s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
12850s,@config_shell@,$config_shell,;t t
12851s,@YACC@,$YACC,;t t
12852s,@BISON@,$BISON,;t t
12853s,@M4@,$M4,;t t
12854s,@LEX@,$LEX,;t t
12855s,@FLEX@,$FLEX,;t t
12856s,@MAKEINFO@,$MAKEINFO,;t t
12857s,@EXPECT@,$EXPECT,;t t
12858s,@RUNTEST@,$RUNTEST,;t t
12859s,@AR@,$AR,;t t
12860s,@AS@,$AS,;t t
12861s,@DLLTOOL@,$DLLTOOL,;t t
12862s,@LD@,$LD,;t t
12863s,@LIPO@,$LIPO,;t t
12864s,@NM@,$NM,;t t
12865s,@RANLIB@,$RANLIB,;t t
12866s,@STRIP@,$STRIP,;t t
12867s,@WINDRES@,$WINDRES,;t t
0c24b341 12868s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12869s,@OBJCOPY@,$OBJCOPY,;t t
12870s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
12871s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12872s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12873s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12874s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12875s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12876s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12877s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12878s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12879s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12880s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12881s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12882s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12883s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12884s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12885s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12886s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12887s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12888s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12889s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12890s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12891s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12892s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12893s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12894s,@MAINT@,$MAINT,;t t
12895s,@stage1_cflags@,$stage1_cflags,;t t
12896s,@stage1_checking@,$stage1_checking,;t t
12897s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12898s,@datarootdir@,$datarootdir,;t t
12899s,@docdir@,$docdir,;t t
a3ca38d2 12900s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12901s,@htmldir@,$htmldir,;t t
12902s,@LIBOBJS@,$LIBOBJS,;t t
12903s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12904/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12905s,@serialization_dependencies@,,;t t
a0da8069 12906/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12907s,@host_makefile_frag@,,;t t
a0da8069 12908/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12909s,@target_makefile_frag@,,;t t
a0da8069 12910/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12911s,@alphaieee_frag@,,;t t
a0da8069 12912/@ospace_frag@/r $ospace_frag
c6b750e1 12913s,@ospace_frag@,,;t t
a0da8069 12914CEOF
252b5132 12915
c6b750e1
DJ
12916_ACEOF
12917
12918 cat >>$CONFIG_STATUS <<\_ACEOF
12919 # Split the substitutions into bite-sized pieces for seds with
12920 # small command number limits, like on Digital OSF/1 and HP-UX.
12921 ac_max_sed_lines=48
12922 ac_sed_frag=1 # Number of current file.
12923 ac_beg=1 # First line for current file.
12924 ac_end=$ac_max_sed_lines # Line after last line for current file.
12925 ac_more_lines=:
12926 ac_sed_cmds=
12927 while $ac_more_lines; do
12928 if test $ac_beg -gt 1; then
12929 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12930 else
12931 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12932 fi
12933 if test ! -s $tmp/subs.frag; then
12934 ac_more_lines=false
a0da8069 12935 else
c6b750e1
DJ
12936 # The purpose of the label and of the branching condition is to
12937 # speed up the sed processing (if there are no `@' at all, there
12938 # is no need to browse any of the substitutions).
12939 # These are the two extra sed commands mentioned above.
12940 (echo ':t
12941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12942 if test -z "$ac_sed_cmds"; then
12943 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12944 else
12945 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12946 fi
12947 ac_sed_frag=`expr $ac_sed_frag + 1`
12948 ac_beg=$ac_end
12949 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12950 fi
c6b750e1
DJ
12951 done
12952 if test -z "$ac_sed_cmds"; then
12953 ac_sed_cmds=cat
852e5f18 12954 fi
c6b750e1 12955fi # test -n "$CONFIG_FILES"
cac3d6c4 12956
c6b750e1
DJ
12957_ACEOF
12958cat >>$CONFIG_STATUS <<\_ACEOF
12959for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12960 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12961 case $ac_file in
12962 - | *:- | *:-:* ) # input from stdin
12963 cat >$tmp/stdin
12964 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12965 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12966 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12967 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12968 * ) ac_file_in=$ac_file.in ;;
a0da8069 12969 esac
252b5132 12970
c6b750e1
DJ
12971 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12972 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12973$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12974 X"$ac_file" : 'X\(//\)[^/]' \| \
12975 X"$ac_file" : 'X\(//\)$' \| \
12976 X"$ac_file" : 'X\(/\)' \| \
12977 . : '\(.\)' 2>/dev/null ||
12978echo X"$ac_file" |
12979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12981 /^X\(\/\/\)$/{ s//\1/; q; }
12982 /^X\(\/\).*/{ s//\1/; q; }
12983 s/.*/./; q'`
12984 { if $as_mkdir_p; then
12985 mkdir -p "$ac_dir"
cac3d6c4 12986 else
c6b750e1
DJ
12987 as_dir="$ac_dir"
12988 as_dirs=
12989 while test ! -d "$as_dir"; do
12990 as_dirs="$as_dir $as_dirs"
12991 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12992$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12993 X"$as_dir" : 'X\(//\)[^/]' \| \
12994 X"$as_dir" : 'X\(//\)$' \| \
12995 X"$as_dir" : 'X\(/\)' \| \
12996 . : '\(.\)' 2>/dev/null ||
12997echo X"$as_dir" |
12998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13000 /^X\(\/\/\)$/{ s//\1/; q; }
13001 /^X\(\/\).*/{ s//\1/; q; }
13002 s/.*/./; q'`
13003 done
13004 test ! -n "$as_dirs" || mkdir $as_dirs
13005 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13006echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13007 { (exit 1); exit 1; }; }; }
13008
13009 ac_builddir=.
252b5132 13010
c6b750e1
DJ
13011if test "$ac_dir" != .; then
13012 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13013 # A "../" for each directory in $ac_dir_suffix.
13014 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13015else
13016 ac_dir_suffix= ac_top_builddir=
13017fi
13018
13019case $srcdir in
13020 .) # No --srcdir option. We are building in place.
13021 ac_srcdir=.
13022 if test -z "$ac_top_builddir"; then
13023 ac_top_srcdir=.
13024 else
13025 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13026 fi ;;
13027 [\\/]* | ?:[\\/]* ) # Absolute path.
13028 ac_srcdir=$srcdir$ac_dir_suffix;
13029 ac_top_srcdir=$srcdir ;;
a0da8069 13030 *) # Relative path.
c6b750e1
DJ
13031 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13032 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13033esac
252b5132 13034
c6b750e1
DJ
13035# Do not use `cd foo && pwd` to compute absolute paths, because
13036# the directories may not exist.
13037case `pwd` in
13038.) ac_abs_builddir="$ac_dir";;
13039*)
13040 case "$ac_dir" in
13041 .) ac_abs_builddir=`pwd`;;
13042 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13043 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13044 esac;;
13045esac
13046case $ac_abs_builddir in
13047.) ac_abs_top_builddir=${ac_top_builddir}.;;
13048*)
13049 case ${ac_top_builddir}. in
13050 .) ac_abs_top_builddir=$ac_abs_builddir;;
13051 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13052 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13053 esac;;
13054esac
13055case $ac_abs_builddir in
13056.) ac_abs_srcdir=$ac_srcdir;;
13057*)
13058 case $ac_srcdir in
13059 .) ac_abs_srcdir=$ac_abs_builddir;;
13060 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13061 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13062 esac;;
13063esac
13064case $ac_abs_builddir in
13065.) ac_abs_top_srcdir=$ac_top_srcdir;;
13066*)
13067 case $ac_top_srcdir in
13068 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13069 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13070 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13071 esac;;
13072esac
252b5132 13073
c6b750e1
DJ
13074
13075 case $INSTALL in
13076 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13077 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13078 esac
252b5132 13079
c6b750e1
DJ
13080 if test x"$ac_file" != x-; then
13081 { echo "$as_me:$LINENO: creating $ac_file" >&5
13082echo "$as_me: creating $ac_file" >&6;}
13083 rm -f "$ac_file"
13084 fi
13085 # Let's still pretend it is `configure' which instantiates (i.e., don't
13086 # use $as_me), people would be surprised to read:
13087 # /* config.h. Generated by config.status. */
13088 if test x"$ac_file" = x-; then
13089 configure_input=
13090 else
13091 configure_input="$ac_file. "
13092 fi
13093 configure_input=$configure_input"Generated from `echo $ac_file_in |
13094 sed 's,.*/,,'` by configure."
13095
13096 # First look for the input files in the build tree, otherwise in the
13097 # src tree.
13098 ac_file_inputs=`IFS=:
13099 for f in $ac_file_in; do
13100 case $f in
13101 -) echo $tmp/stdin ;;
13102 [\\/$]*)
13103 # Absolute (can't be DOS-style, as IFS=:)
13104 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13105echo "$as_me: error: cannot find input file: $f" >&2;}
13106 { (exit 1); exit 1; }; }
13107 echo "$f";;
13108 *) # Relative
13109 if test -f "$f"; then
13110 # Build tree
13111 echo "$f"
13112 elif test -f "$srcdir/$f"; then
13113 # Source tree
13114 echo "$srcdir/$f"
13115 else
13116 # /dev/null tree
13117 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13118echo "$as_me: error: cannot find input file: $f" >&2;}
13119 { (exit 1); exit 1; }; }
13120 fi;;
13121 esac
13122 done` || { (exit 1); exit 1; }
13123_ACEOF
13124cat >>$CONFIG_STATUS <<_ACEOF
13125 sed "$ac_vpsub
13126$extrasub
13127_ACEOF
13128cat >>$CONFIG_STATUS <<\_ACEOF
13129:t
13130/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13131s,@configure_input@,$configure_input,;t t
13132s,@srcdir@,$ac_srcdir,;t t
13133s,@abs_srcdir@,$ac_abs_srcdir,;t t
13134s,@top_srcdir@,$ac_top_srcdir,;t t
13135s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13136s,@builddir@,$ac_builddir,;t t
13137s,@abs_builddir@,$ac_abs_builddir,;t t
13138s,@top_builddir@,$ac_top_builddir,;t t
13139s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13140s,@INSTALL@,$ac_INSTALL,;t t
13141" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13142 rm -f $tmp/stdin
13143 if test x"$ac_file" != x-; then
13144 mv $tmp/out $ac_file
13145 else
13146 cat $tmp/out
13147 rm -f $tmp/out
13148 fi
c148b4cb 13149
c6b750e1
DJ
13150done
13151_ACEOF
c148b4cb 13152
c6b750e1 13153cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13154
c6b750e1
DJ
13155{ (exit 0); exit 0; }
13156_ACEOF
c148b4cb 13157chmod +x $CONFIG_STATUS
c6b750e1
DJ
13158ac_clean_files=$ac_clean_files_save
13159
13160
13161# configure is writing to config.log, and then calls config.status.
13162# config.status does its own redirection, appending to config.log.
13163# Unfortunately, on DOS this fails, as config.log is still kept open
13164# by configure, so config.status won't be able to write to it; its
13165# output is simply discarded. So we exec the FD to /dev/null,
13166# effectively closing config.log, so it can be properly (re)opened and
13167# appended to by config.status. When coming back to configure, we
13168# need to make the FD available again.
13169if test "$no_create" != yes; then
13170 ac_cs_success=:
13171 ac_config_status_args=
13172 test "$silent" = yes &&
13173 ac_config_status_args="$ac_config_status_args --quiet"
13174 exec 5>/dev/null
13175 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13176 exec 5>>config.log
13177 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13178 # would make configure fail if this is the last instruction.
13179 $ac_cs_success || { (exit 1); exit 1; }
13180fi
c148b4cb 13181
This page took 1.15803 seconds and 4 git commands to generate.