* Makefile.tpl: Fix comment errors.
[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"
7f6ef0c0 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 CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
a0da8069
NN
277
278# Initialize some variables set by options.
c6b750e1
DJ
279ac_init_help=
280ac_init_version=false
a0da8069
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
c6b750e1 283cache_file=/dev/null
a0da8069 284exec_prefix=NONE
a0da8069 285no_create=
a0da8069
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
a0da8069
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
c6b750e1
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
252b5132 315
a0da8069
NN
316ac_prev=
317for ac_option
318do
a0da8069
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
252b5132 325
c6b750e1 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
c6b750e1 330 case $ac_option in
a0da8069
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 335 bindir=$ac_optarg ;;
a0da8069
NN
336
337 -build | --build | --buil | --bui | --bu)
c6b750e1 338 ac_prev=build_alias ;;
a0da8069 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 340 build_alias=$ac_optarg ;;
a0da8069
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
a0da8069
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
c6b750e1 356 datadir=$ac_optarg ;;
a0da8069
NN
357
358 -disable-* | --disable-*)
c6b750e1 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 360 # Reject names that are not valid shell variable names.
c6b750e1
DJ
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
a0da8069
NN
366
367 -enable-* | --enable-*)
c6b750e1 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 369 # Reject names that are not valid shell variable names.
c6b750e1
DJ
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
376 *) ac_optarg=yes ;;
377 esac
c6b750e1 378 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
c6b750e1 387 exec_prefix=$ac_optarg ;;
a0da8069
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
c6b750e1
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
a0da8069
NN
399
400 -host | --host | --hos | --ho)
c6b750e1 401 ac_prev=host_alias ;;
a0da8069 402 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 403 host_alias=$ac_optarg ;;
a0da8069
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 410 includedir=$ac_optarg ;;
a0da8069
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 415 infodir=$ac_optarg ;;
a0da8069
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 420 libdir=$ac_optarg ;;
a0da8069
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
c6b750e1 427 libexecdir=$ac_optarg ;;
a0da8069
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 436 localstatedir=$ac_optarg ;;
a0da8069
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 441 mandir=$ac_optarg ;;
a0da8069
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 448 | --no-cr | --no-c | -n)
a0da8069
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 462 oldincludedir=$ac_optarg ;;
a0da8069
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 467 prefix=$ac_optarg ;;
a0da8069
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 474 program_prefix=$ac_optarg ;;
a0da8069
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 481 program_suffix=$ac_optarg ;;
a0da8069
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 498 program_transform_name=$ac_optarg ;;
a0da8069
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
c6b750e1 508 sbindir=$ac_optarg ;;
a0da8069
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
c6b750e1 519 sharedstatedir=$ac_optarg ;;
a0da8069
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
c6b750e1 524 site=$ac_optarg ;;
a0da8069
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 529 srcdir=$ac_optarg ;;
a0da8069
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 536 sysconfdir=$ac_optarg ;;
a0da8069
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 539 ac_prev=target_alias ;;
a0da8069 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 541 target_alias=$ac_optarg ;;
a0da8069
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
c6b750e1
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
a0da8069
NN
548
549 -with-* | --with-*)
c6b750e1 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 551 # Reject names that are not valid shell variable names.
c6b750e1
DJ
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
a0da8069 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
558 *) ac_optarg=yes ;;
559 esac
c6b750e1 560 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
561
562 -without-* | --without-*)
c6b750e1 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 564 # Reject names that are not valid shell variable names.
c6b750e1
DJ
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
a0da8069
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 580 x_includes=$ac_optarg ;;
a0da8069
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 587 x_libraries=$ac_optarg ;;
a0da8069 588
c6b750e1
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
a0da8069
NN
592 ;;
593
c6b750e1
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
a0da8069 604 *)
c6b750e1
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
c6b750e1
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
a0da8069 619fi
a0da8069 620
c6b750e1
DJ
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
a0da8069 631
c6b750e1
DJ
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 635do
c6b750e1
DJ
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
a0da8069
NN
641 esac
642done
643
c6b750e1
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
376a0e54 650
c6b750e1
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
a0da8069 666
a0da8069
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
c6b750e1
DJ
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
a0da8069
NN
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
a0da8069 695 else
c6b750e1
DJ
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
9cc8ae67
PB
716ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
717
c6b750e1
DJ
718ac_env_CC_set=${CC+set}
719ac_env_CC_value=$CC
720ac_cv_env_CC_set=${CC+set}
721ac_cv_env_CC_value=$CC
722ac_env_CFLAGS_set=${CFLAGS+set}
723ac_env_CFLAGS_value=$CFLAGS
724ac_cv_env_CFLAGS_set=${CFLAGS+set}
725ac_cv_env_CFLAGS_value=$CFLAGS
726ac_env_LDFLAGS_set=${LDFLAGS+set}
727ac_env_LDFLAGS_value=$LDFLAGS
728ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
729ac_cv_env_LDFLAGS_value=$LDFLAGS
730ac_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_env_CPPFLAGS_value=$CPPFLAGS
732ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
733ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
734ac_env_CXX_set=${CXX+set}
735ac_env_CXX_value=$CXX
736ac_cv_env_CXX_set=${CXX+set}
737ac_cv_env_CXX_value=$CXX
738ac_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_env_CXXFLAGS_value=$CXXFLAGS
740ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
741ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
742ac_env_AR_set=${AR+set}
743ac_env_AR_value=$AR
744ac_cv_env_AR_set=${AR+set}
745ac_cv_env_AR_value=$AR
746ac_env_AS_set=${AS+set}
747ac_env_AS_value=$AS
748ac_cv_env_AS_set=${AS+set}
749ac_cv_env_AS_value=$AS
750ac_env_DLLTOOL_set=${DLLTOOL+set}
751ac_env_DLLTOOL_value=$DLLTOOL
752ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
753ac_cv_env_DLLTOOL_value=$DLLTOOL
754ac_env_LD_set=${LD+set}
755ac_env_LD_value=$LD
756ac_cv_env_LD_set=${LD+set}
757ac_cv_env_LD_value=$LD
758ac_env_LIPO_set=${LIPO+set}
759ac_env_LIPO_value=$LIPO
760ac_cv_env_LIPO_set=${LIPO+set}
761ac_cv_env_LIPO_value=$LIPO
762ac_env_NM_set=${NM+set}
763ac_env_NM_value=$NM
764ac_cv_env_NM_set=${NM+set}
765ac_cv_env_NM_value=$NM
766ac_env_RANLIB_set=${RANLIB+set}
767ac_env_RANLIB_value=$RANLIB
768ac_cv_env_RANLIB_set=${RANLIB+set}
769ac_cv_env_RANLIB_value=$RANLIB
770ac_env_STRIP_set=${STRIP+set}
771ac_env_STRIP_value=$STRIP
772ac_cv_env_STRIP_set=${STRIP+set}
773ac_cv_env_STRIP_value=$STRIP
774ac_env_WINDRES_set=${WINDRES+set}
775ac_env_WINDRES_value=$WINDRES
776ac_cv_env_WINDRES_set=${WINDRES+set}
777ac_cv_env_WINDRES_value=$WINDRES
0c24b341
NC
778ac_env_WINDMC_set=${WINDMC+set}
779ac_env_WINDMC_value=$WINDMC
780ac_cv_env_WINDMC_set=${WINDMC+set}
781ac_cv_env_WINDMC_value=$WINDMC
9a819804
AO
782ac_env_OBJCOPY_set=${OBJCOPY+set}
783ac_env_OBJCOPY_value=$OBJCOPY
784ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
785ac_cv_env_OBJCOPY_value=$OBJCOPY
786ac_env_OBJDUMP_set=${OBJDUMP+set}
787ac_env_OBJDUMP_value=$OBJDUMP
788ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
789ac_cv_env_OBJDUMP_value=$OBJDUMP
790ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
793ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
794ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
797ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
798ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
801ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
802ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
805ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
806ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
809ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
810ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
813ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
814ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
817ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
818ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
821ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
822ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
825ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
826ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
829ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
830ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
833ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
834ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
837ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
838ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
841ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
842ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
845ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
846ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
848ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
849ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
0c24b341
NC
850ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
852ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
853ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
c6b750e1
DJ
854
855#
856# Report the --help message.
857#
858if test "$ac_init_help" = "long"; then
859 # Omit some internal or obsolete options to make the list less imposing.
860 # This message is too long to be a string in the A/UX 3.1 sh.
861 cat <<_ACEOF
862\`configure' configures this package to adapt to many kinds of systems.
863
864Usage: $0 [OPTION]... [VAR=VALUE]...
865
866To assign environment variables (e.g., CC, CFLAGS...), specify them as
867VAR=VALUE. See below for descriptions of some of the useful variables.
868
869Defaults for the options are specified in brackets.
870
871Configuration:
872 -h, --help display this help and exit
873 --help=short display options specific to this package
874 --help=recursive display the short help of all the included packages
875 -V, --version display version information and exit
876 -q, --quiet, --silent do not print \`checking...' messages
877 --cache-file=FILE cache test results in FILE [disabled]
878 -C, --config-cache alias for \`--cache-file=config.cache'
879 -n, --no-create do not create output files
880 --srcdir=DIR find the sources in DIR [configure dir or \`..']
881
882_ACEOF
883
884 cat <<_ACEOF
885Installation directories:
886 --prefix=PREFIX install architecture-independent files in PREFIX
887 [$ac_default_prefix]
888 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
889 [PREFIX]
890
891By default, \`make install' will install all the files in
892\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
893an installation prefix other than \`$ac_default_prefix' using \`--prefix',
894for instance \`--prefix=\$HOME'.
895
896For better control, use the options below.
897
898Fine tuning of the installation directories:
899 --bindir=DIR user executables [EPREFIX/bin]
900 --sbindir=DIR system admin executables [EPREFIX/sbin]
901 --libexecdir=DIR program executables [EPREFIX/libexec]
902 --datadir=DIR read-only architecture-independent data [PREFIX/share]
903 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
904 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
905 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
906 --libdir=DIR object code libraries [EPREFIX/lib]
907 --includedir=DIR C header files [PREFIX/include]
908 --oldincludedir=DIR C header files for non-gcc [/usr/include]
909 --infodir=DIR info documentation [PREFIX/info]
910 --mandir=DIR man documentation [PREFIX/man]
911_ACEOF
912
913 cat <<\_ACEOF
914
915Program names:
916 --program-prefix=PREFIX prepend PREFIX to installed program names
917 --program-suffix=SUFFIX append SUFFIX to installed program names
918 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
919
920System types:
921 --build=BUILD configure for building on BUILD [guessed]
922 --host=HOST cross-compile to build programs to run on HOST [BUILD]
923 --target=TARGET configure for building compilers for TARGET [HOST]
924_ACEOF
a0da8069 925fi
a0da8069 926
c6b750e1
DJ
927if test -n "$ac_init_help"; then
928
929 cat <<\_ACEOF
930
931Optional Features:
932 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
933 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
93f9b408 934 --enable-gold use gold instead of ld
521ec477
DD
935 --enable-libada build libada directory
936 --enable-libssp build libssp directory
937 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 938 stage1. Mostly useful for compiler development.
521ec477
DD
939 --enable-objc-gc enable use of Boehm's garbage collector with the
940 GNU Objective-C runtime
941 --enable-bootstrap enable bootstrapping [yes if native build]
942 --enable-serial-[{host,target,build}-]configure
943 force sequential configuration of
c6b750e1 944 sub-packages for the host, target or build
521ec477 945 machine, or all sub-packages
c6b750e1
DJ
946 --enable-maintainer-mode enable make rules and dependencies not useful
947 (and sometimes confusing) to the casual installer
521ec477
DD
948 --enable-stage1-checking[=all] choose additional checking for stage1
949 of the compiler
c6b750e1
DJ
950 --enable-werror enable -Werror in bootstrap stage2 and later
951
952Optional Packages:
953 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
954 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
955 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
956 --with-mpfr-dir=PATH this option has been REMOVED
957 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
958 Equivalent to --with-mpfr-include=PATH/include
959 plus --with-mpfr-lib=PATH/lib
960 --with-mpfr-include=PATH
521ec477
DD
961 specify directory for installed MPFR include files
962 --with-mpfr-lib=PATH specify directory for the installed MPFR library
963 --with-gmp-dir=PATH this option has been REMOVED
964 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
965 Equivalent to --with-gmp-include=PATH/include
966 plus --with-gmp-lib=PATH/lib
521ec477
DD
967 --with-gmp-include=PATH specify directory for installed GMP include files
968 --with-gmp-lib=PATH specify directory for the installed GMP library
969 --with-build-sysroot=SYSROOT
c6b750e1 970 use sysroot as the system root during the build
8a6ee3ab
JM
971 --with-debug-prefix-map='A=B C=D ...'
972 map A to B, C to D ... in debug information
521ec477 973 --with-build-time-tools=PATH
c6b750e1 974 use given path to find target tools during the build
521ec477
DD
975 --with-datarootdir use datarootdir as the data root directory.
976 --with-docdir install documentation in this directory.
977 --with-pdfdir install pdf in this directory.
978 --with-htmldir install html in this directory.
c6b750e1
DJ
979
980Some influential environment variables:
981 CC C compiler command
982 CFLAGS C compiler flags
983 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
984 nonstandard directory <lib dir>
985 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
986 headers in a nonstandard directory <include dir>
18f6b6ee
PB
987 CXX C++ compiler command
988 CXXFLAGS C++ compiler flags
9a819804
AO
989 AR AR for the host
990 AS AS for the host
991 DLLTOOL DLLTOOL for the host
992 LD LD for the host
993 LIPO LIPO for the host
994 NM NM for the host
995 RANLIB RANLIB for the host
996 STRIP STRIP for the host
997 WINDRES WINDRES for the host
0c24b341 998 WINDMC WINDMC for the host
9a819804
AO
999 OBJCOPY OBJCOPY for the host
1000 OBJDUMP OBJDUMP for the host
1001 CC_FOR_TARGET
1002 CC for the target
1003 CXX_FOR_TARGET
1004 CXX for the target
1005 GCC_FOR_TARGET
1006 GCC for the target
1007 GCJ_FOR_TARGET
1008 GCJ for the target
1009 GFORTRAN_FOR_TARGET
1010 GFORTRAN for the target
1011 AR_FOR_TARGET
1012 AR for the target
1013 AS_FOR_TARGET
1014 AS for the target
1015 DLLTOOL_FOR_TARGET
1016 DLLTOOL for the target
1017 LD_FOR_TARGET
1018 LD for the target
1019 LIPO_FOR_TARGET
1020 LIPO for the target
1021 NM_FOR_TARGET
1022 NM for the target
1023 OBJDUMP_FOR_TARGET
1024 OBJDUMP for the target
1025 RANLIB_FOR_TARGET
1026 RANLIB for the target
1027 STRIP_FOR_TARGET
1028 STRIP for the target
1029 WINDRES_FOR_TARGET
1030 WINDRES for the target
0c24b341
NC
1031 WINDMC_FOR_TARGET
1032 WINDMC for the target
c6b750e1
DJ
1033
1034Use these variables to override the choices made by `configure' or to help
1035it to find libraries and programs with nonstandard names/locations.
1036
1037_ACEOF
1038fi
1039
1040if test "$ac_init_help" = "recursive"; then
1041 # If there are subdirs, report their specific --help.
1042 ac_popdir=`pwd`
1043 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1044 test -d $ac_dir || continue
1045 ac_builddir=.
1046
1047if test "$ac_dir" != .; then
1048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1049 # A "../" for each directory in $ac_dir_suffix.
1050 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1051else
1052 ac_dir_suffix= ac_top_builddir=
1053fi
1054
1055case $srcdir in
1056 .) # No --srcdir option. We are building in place.
1057 ac_srcdir=.
1058 if test -z "$ac_top_builddir"; then
1059 ac_top_srcdir=.
1060 else
1061 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1062 fi ;;
1063 [\\/]* | ?:[\\/]* ) # Absolute path.
1064 ac_srcdir=$srcdir$ac_dir_suffix;
1065 ac_top_srcdir=$srcdir ;;
1066 *) # Relative path.
1067 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1068 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1069esac
1070
1071# Do not use `cd foo && pwd` to compute absolute paths, because
1072# the directories may not exist.
1073case `pwd` in
1074.) ac_abs_builddir="$ac_dir";;
1075*)
1076 case "$ac_dir" in
1077 .) ac_abs_builddir=`pwd`;;
1078 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1079 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1080 esac;;
1081esac
1082case $ac_abs_builddir in
1083.) ac_abs_top_builddir=${ac_top_builddir}.;;
1084*)
1085 case ${ac_top_builddir}. in
1086 .) ac_abs_top_builddir=$ac_abs_builddir;;
1087 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1089 esac;;
1090esac
1091case $ac_abs_builddir in
1092.) ac_abs_srcdir=$ac_srcdir;;
1093*)
1094 case $ac_srcdir in
1095 .) ac_abs_srcdir=$ac_abs_builddir;;
1096 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1097 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1098 esac;;
1099esac
1100case $ac_abs_builddir in
1101.) ac_abs_top_srcdir=$ac_top_srcdir;;
1102*)
1103 case $ac_top_srcdir in
1104 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1105 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1107 esac;;
1108esac
1109
1110 cd $ac_dir
1111 # Check for guested configure; otherwise get Cygnus style configure.
1112 if test -f $ac_srcdir/configure.gnu; then
1113 echo
1114 $SHELL $ac_srcdir/configure.gnu --help=recursive
1115 elif test -f $ac_srcdir/configure; then
1116 echo
1117 $SHELL $ac_srcdir/configure --help=recursive
1118 elif test -f $ac_srcdir/configure.ac ||
1119 test -f $ac_srcdir/configure.in; then
1120 echo
1121 $ac_configure --help
1122 else
1123 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1124 fi
1125 cd $ac_popdir
1126 done
1127fi
1128
1129test -n "$ac_init_help" && exit 0
1130if $ac_init_version; then
1131 cat <<\_ACEOF
1132
1133Copyright (C) 2003 Free Software Foundation, Inc.
1134This configure script is free software; the Free Software Foundation
1135gives unlimited permission to copy, distribute and modify it.
1136_ACEOF
1137 exit 0
1138fi
1139exec 5>config.log
1140cat >&5 <<_ACEOF
1141This file contains any messages produced by compilers while
1142running configure, to aid debugging if configure makes a mistake.
1143
1144It was created by $as_me, which was
1145generated by GNU Autoconf 2.59. Invocation command line was
1146
1147 $ $0 $@
1148
1149_ACEOF
1150{
1151cat <<_ASUNAME
1152## --------- ##
1153## Platform. ##
1154## --------- ##
1155
1156hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1157uname -m = `(uname -m) 2>/dev/null || echo unknown`
1158uname -r = `(uname -r) 2>/dev/null || echo unknown`
1159uname -s = `(uname -s) 2>/dev/null || echo unknown`
1160uname -v = `(uname -v) 2>/dev/null || echo unknown`
1161
1162/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1163/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1164
1165/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1166/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1167/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1168hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1169/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1170/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1171/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1172
1173_ASUNAME
1174
1175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1176for as_dir in $PATH
1177do
1178 IFS=$as_save_IFS
1179 test -z "$as_dir" && as_dir=.
1180 echo "PATH: $as_dir"
1181done
1182
1183} >&5
1184
1185cat >&5 <<_ACEOF
1186
1187
1188## ----------- ##
1189## Core tests. ##
1190## ----------- ##
1191
1192_ACEOF
1193
1194
1195# Keep a trace of the command line.
1196# Strip out --no-create and --no-recursion so they do not pile up.
1197# Strip out --silent because we don't want to record it for future runs.
1198# Also quote any args containing shell meta-characters.
1199# Make two passes to allow for proper duplicate-argument suppression.
1200ac_configure_args=
1201ac_configure_args0=
1202ac_configure_args1=
1203ac_sep=
1204ac_must_keep_next=false
1205for ac_pass in 1 2
1206do
1207 for ac_arg
1208 do
1209 case $ac_arg in
1210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212 | -silent | --silent | --silen | --sile | --sil)
1213 continue ;;
1214 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1215 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1216 esac
1217 case $ac_pass in
1218 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1219 2)
1220 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1221 if test $ac_must_keep_next = true; then
1222 ac_must_keep_next=false # Got value, back to normal.
1223 else
1224 case $ac_arg in
1225 *=* | --config-cache | -C | -disable-* | --disable-* \
1226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1228 | -with-* | --with-* | -without-* | --without-* | --x)
1229 case "$ac_configure_args0 " in
1230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1231 esac
1232 ;;
1233 -* ) ac_must_keep_next=true ;;
1234 esac
1235 fi
1236 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1237 # Get rid of the leading space.
1238 ac_sep=" "
1239 ;;
1240 esac
1241 done
1242done
1243$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1244$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1245
1246# When interrupted or exit'd, cleanup temporary files, and complete
1247# config.log. We remove comments because anyway the quotes in there
1248# would cause problems or look ugly.
1249# WARNING: Be sure not to use single quotes in there, as some shells,
1250# such as our DU 5.0 friend, will then `close' the trap.
1251trap 'exit_status=$?
1252 # Save into config.log some information that might help in debugging.
1253 {
1254 echo
1255
1256 cat <<\_ASBOX
1257## ---------------- ##
1258## Cache variables. ##
1259## ---------------- ##
1260_ASBOX
1261 echo
1262 # The following way of writing the cache mishandles newlines in values,
1263{
1264 (set) 2>&1 |
1265 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1266 *ac_space=\ *)
1267 sed -n \
1268 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1270 ;;
1271 *)
1272 sed -n \
1273 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1274 ;;
1275 esac;
1276}
1277 echo
1278
1279 cat <<\_ASBOX
1280## ----------------- ##
1281## Output variables. ##
1282## ----------------- ##
1283_ASBOX
1284 echo
1285 for ac_var in $ac_subst_vars
1286 do
1287 eval ac_val=$`echo $ac_var`
1288 echo "$ac_var='"'"'$ac_val'"'"'"
1289 done | sort
1290 echo
1291
1292 if test -n "$ac_subst_files"; then
1293 cat <<\_ASBOX
1294## ------------- ##
1295## Output files. ##
1296## ------------- ##
1297_ASBOX
1298 echo
1299 for ac_var in $ac_subst_files
1300 do
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1305 fi
1306
1307 if test -s confdefs.h; then
1308 cat <<\_ASBOX
1309## ----------- ##
1310## confdefs.h. ##
1311## ----------- ##
1312_ASBOX
1313 echo
1314 sed "/^$/d" confdefs.h | sort
1315 echo
1316 fi
1317 test "$ac_signal" != 0 &&
1318 echo "$as_me: caught signal $ac_signal"
1319 echo "$as_me: exit $exit_status"
1320 } >&5
1321 rm -f core *.core &&
1322 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1323 exit $exit_status
1324 ' 0
1325for ac_signal in 1 2 13 15; do
1326 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1327done
1328ac_signal=0
1329
1330# confdefs.h avoids OS command line length limits that DEFS can exceed.
1331rm -rf conftest* confdefs.h
1332# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1333echo >confdefs.h
1334
1335# Predefined preprocessor variables.
1336
1337cat >>confdefs.h <<_ACEOF
1338#define PACKAGE_NAME "$PACKAGE_NAME"
1339_ACEOF
1340
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_VERSION "$PACKAGE_VERSION"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_STRING "$PACKAGE_STRING"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1359_ACEOF
1360
1361
1362# Let the site file select an alternate cache file if it wants to.
a0da8069 1363# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1364if test -z "$CONFIG_SITE"; then
1365 if test "x$prefix" != xNONE; then
1366 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1367 else
1368 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1369 fi
1370fi
1371for ac_site_file in $CONFIG_SITE; do
1372 if test -r "$ac_site_file"; then
c6b750e1
DJ
1373 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1374echo "$as_me: loading site script $ac_site_file" >&6;}
1375 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1376 . "$ac_site_file"
1377 fi
1378done
1379
1380if test -r "$cache_file"; then
c6b750e1
DJ
1381 # Some versions of bash will fail to source /dev/null (special
1382 # files actually), so we avoid doing that.
1383 if test -f "$cache_file"; then
1384 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1385echo "$as_me: loading cache $cache_file" >&6;}
1386 case $cache_file in
1387 [\\/]* | ?:[\\/]* ) . $cache_file;;
1388 *) . ./$cache_file;;
1389 esac
1390 fi
a0da8069 1391else
c6b750e1
DJ
1392 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1393echo "$as_me: creating cache $cache_file" >&6;}
1394 >$cache_file
1395fi
1396
1397# Check that the precious variables saved in the cache have kept the same
1398# value.
1399ac_cache_corrupted=false
1400for ac_var in `(set) 2>&1 |
1401 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1402 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1403 eval ac_new_set=\$ac_env_${ac_var}_set
1404 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1405 eval ac_new_val="\$ac_env_${ac_var}_value"
1406 case $ac_old_set,$ac_new_set in
1407 set,)
1408 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1409echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1410 ac_cache_corrupted=: ;;
1411 ,set)
1412 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1413echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1414 ac_cache_corrupted=: ;;
1415 ,);;
1416 *)
1417 if test "x$ac_old_val" != "x$ac_new_val"; then
266df637
PB
1418 # differences in whitespace do not lead to failure.
1419 ac_old_val_w=`echo x $ac_old_val`
1420 ac_new_val_w=`echo x $ac_new_val`
1421 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1422 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
c6b750e1 1423echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
266df637
PB
1424 ac_cache_corrupted=:
1425 else
1426 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1427echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1428 eval $ac_var=\$ac_old_val
1429 fi
1430 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1431echo "$as_me: former value: \`$ac_old_val'" >&2;}
1432 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1433echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
1434 fi;;
1435 esac
1436 # Pass precious variables to config.status.
1437 if test "$ac_new_set" = set; then
1438 case $ac_new_val in
1439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1440 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1441 *) ac_arg=$ac_var=$ac_new_val ;;
1442 esac
1443 case " $ac_configure_args " in
1444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1445 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1446 esac
1447 fi
1448done
1449if $ac_cache_corrupted; then
1450 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1451echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1452 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1453echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1454 { (exit 1); exit 1; }; }
a0da8069
NN
1455fi
1456
1457ac_ext=c
a0da8069 1458ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1461ac_compiler_gnu=$ac_cv_c_compiler_gnu
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
a0da8069
NN
1475
1476
75778ec4 1477
c6b750e1
DJ
1478
1479
1480
1481
1482
1483# Find the build, host, and target systems.
a0da8069 1484ac_aux_dir=
315b3b02 1485for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1486 if test -f $ac_dir/install-sh; then
1487 ac_aux_dir=$ac_dir
1488 ac_install_sh="$ac_aux_dir/install-sh -c"
1489 break
1490 elif test -f $ac_dir/install.sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install.sh -c"
1493 break
c6b750e1
DJ
1494 elif test -f $ac_dir/shtool; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/shtool install -c"
1497 break
a0da8069
NN
1498 fi
1499done
1500if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1501 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1502echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1503 { (exit 1); exit 1; }; }
a0da8069 1504fi
c6b750e1
DJ
1505ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1506ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1507ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1508
c6b750e1
DJ
1509# Make sure we can run config.sub.
1510$ac_config_sub sun4 >/dev/null 2>&1 ||
1511 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1512echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1513 { (exit 1); exit 1; }; }
1514
1515echo "$as_me:$LINENO: checking build system type" >&5
1516echo $ECHO_N "checking build system type... $ECHO_C" >&6
1517if test "${ac_cv_build+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1519else
1520 ac_cv_build_alias=$build_alias
1521test -z "$ac_cv_build_alias" &&
1522 ac_cv_build_alias=`$ac_config_guess`
1523test -z "$ac_cv_build_alias" &&
1524 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1525echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1526 { (exit 1); exit 1; }; }
1527ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1528 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1529echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1530 { (exit 1); exit 1; }; }
1531
1532fi
1533echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1534echo "${ECHO_T}$ac_cv_build" >&6
1535build=$ac_cv_build
1536build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1537build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1538build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1539
a0da8069 1540
c6b750e1
DJ
1541 case ${build_alias} in
1542 "") build_noncanonical=${build} ;;
1543 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1544esac
1545
1546
cac3d6c4 1547
c6b750e1
DJ
1548 case ${host_alias} in
1549 "") host_noncanonical=${build_noncanonical} ;;
1550 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1551esac
1552
cac3d6c4 1553
c6b750e1
DJ
1554
1555 case ${target_alias} in
1556 "") target_noncanonical=${host_noncanonical} ;;
1557 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1558esac
1559
cac3d6c4 1560
c6b750e1
DJ
1561
1562
1563test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1564 test "$program_prefix$program_suffix$program_transform_name" = \
1565 NONENONEs,x,x, &&
c6b750e1 1566 program_transform_name=s,y,y,
cac3d6c4 1567
c6b750e1
DJ
1568echo "$as_me:$LINENO: checking host system type" >&5
1569echo $ECHO_N "checking host system type... $ECHO_C" >&6
1570if test "${ac_cv_host+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1572else
c6b750e1
DJ
1573 ac_cv_host_alias=$host_alias
1574test -z "$ac_cv_host_alias" &&
1575 ac_cv_host_alias=$ac_cv_build_alias
1576ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1577 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1578echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1579 { (exit 1); exit 1; }; }
1580
1581fi
1582echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1583echo "${ECHO_T}$ac_cv_host" >&6
1584host=$ac_cv_host
1585host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1586host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1587host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1588
1589
1590echo "$as_me:$LINENO: checking target system type" >&5
1591echo $ECHO_N "checking target system type... $ECHO_C" >&6
1592if test "${ac_cv_target+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594else
1595 ac_cv_target_alias=$target_alias
1596test "x$ac_cv_target_alias" = "x" &&
1597 ac_cv_target_alias=$ac_cv_host_alias
1598ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1599 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1600echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1601 { (exit 1); exit 1; }; }
1602
cac3d6c4 1603fi
c6b750e1
DJ
1604echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1605echo "${ECHO_T}$ac_cv_target" >&6
1606target=$ac_cv_target
1607target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1608target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1609target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1610
1611
1612# The aliases save the names the user supplied, while $host etc.
1613# will get canonicalized.
1614test -n "$target_alias" &&
1615 test "$program_prefix$program_suffix$program_transform_name" = \
1616 NONENONEs,x,x, &&
1617 program_prefix=${target_alias}-
a0da8069 1618test "$program_prefix" != NONE &&
c6b750e1 1619 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1620# Use a double $ so make ignores it.
1621test "$program_suffix" != NONE &&
c6b750e1
DJ
1622 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1623# Double any \ or $. echo might interpret backslashes.
1624# By default was `s,x,x', remove it if useless.
1625cat <<\_ACEOF >conftest.sed
1626s/[\\$]/&&/g;s/;s,x,x,$//
1627_ACEOF
1628program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1629rm conftest.sed
cac3d6c4 1630
a0da8069
NN
1631
1632
e5c3f801
NN
1633# Get 'install' or 'install-sh' and its variants.
1634# Find a good install program. We prefer a C program (faster),
1635# so one script is as good as another. But avoid the broken or
1636# incompatible versions:
1637# SysV /etc/install, /usr/sbin/install
1638# SunOS /usr/etc/install
1639# IRIX /sbin/install
1640# AIX /bin/install
c6b750e1 1641# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1642# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1643# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1644# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1645# OS/2's system install, which has a completely different semantic
e5c3f801 1646# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 1647# Reject install programs that cannot install multiple files.
c6b750e1
DJ
1648echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1649echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1650if test -z "$INSTALL"; then
c6b750e1
DJ
1651if test "${ac_cv_path_install+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655for as_dir in $PATH
1656do
1657 IFS=$as_save_IFS
1658 test -z "$as_dir" && as_dir=.
1659 # Account for people who put trailing slashes in PATH elements.
1660case $as_dir/ in
1661 ./ | .// | /cC/* | \
1662 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1663 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1664 /usr/ucb/* ) ;;
1665 *)
1666 # OSF1 and SCO ODT 3.0 have their own names for install.
1667 # Don't use installbsd from OSF since it installs stuff as root
1668 # by default.
1669 for ac_prog in ginstall scoinst install; do
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1672 if test $ac_prog = install &&
c6b750e1 1673 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1674 # AIX install. It has an incompatible calling convention.
1675 :
c6b750e1
DJ
1676 elif test $ac_prog = install &&
1677 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1678 # program-specific install script used by HP pwplus--don't use.
1679 :
e5c3f801 1680 else
58c85be7
RW
1681 rm -rf conftest.one conftest.two conftest.dir
1682 echo one > conftest.one
1683 echo two > conftest.two
1684 mkdir conftest.dir
1685 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1686 test -s conftest.one && test -s conftest.two &&
1687 test -s conftest.dir/conftest.one &&
1688 test -s conftest.dir/conftest.two
1689 then
1690 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1691 break 3
1692 fi
e5c3f801
NN
1693 fi
1694 fi
1695 done
c6b750e1
DJ
1696 done
1697 ;;
1698esac
1699done
1700
58c85be7 1701rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
1702
1703fi
1704 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1705 INSTALL=$ac_cv_path_install
e5c3f801 1706 else
58c85be7
RW
1707 # As a last resort, use the slow shell script. Don't cache a
1708 # value for INSTALL within a source directory, because that will
e5c3f801 1709 # break other packages using the cache if that directory is
58c85be7 1710 # removed, or if the value is a relative name.
c6b750e1 1711 INSTALL=$ac_install_sh
e5c3f801
NN
1712 fi
1713fi
c6b750e1
DJ
1714echo "$as_me:$LINENO: result: $INSTALL" >&5
1715echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1716
1717# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1718# It thinks the first close brace ends the variable substitution.
1719test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1720
c6b750e1 1721test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1722
1723test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1724
c6b750e1
DJ
1725echo "$as_me:$LINENO: checking whether ln works" >&5
1726echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1727if test "${acx_cv_prog_LN+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1729else
1730 rm -f conftestdata_t
1731echo >conftestdata_f
1732if ln conftestdata_f conftestdata_t 2>/dev/null
1733then
1734 acx_cv_prog_LN=ln
1735else
1736 acx_cv_prog_LN=no
1737fi
1738rm -f conftestdata_f conftestdata_t
1739
1740fi
1741if test $acx_cv_prog_LN = no; then
1742 LN="cp"
c6b750e1
DJ
1743 echo "$as_me:$LINENO: result: no, using $LN" >&5
1744echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1745else
1746 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1747 echo "$as_me:$LINENO: result: yes" >&5
1748echo "${ECHO_T}yes" >&6
656fdd47
PB
1749fi
1750
c6b750e1
DJ
1751echo "$as_me:$LINENO: checking whether ln -s works" >&5
1752echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1753LN_S=$as_ln_s
1754if test "$LN_S" = "ln -s"; then
1755 echo "$as_me:$LINENO: result: yes" >&5
1756echo "${ECHO_T}yes" >&6
cac3d6c4 1757else
c6b750e1
DJ
1758 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1759echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1760fi
1761
e5c3f801 1762
252b5132 1763### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1764### If we are on Windows, search for the shell. This will permit people
1765### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1766### without also having to set CONFIG_SHELL. This code will work when
1767### using bash, which sets OSTYPE.
1768case "${OSTYPE}" in
1769*win32*)
a0da8069
NN
1770 if test x${CONFIG_SHELL} = x ; then
1771 if test ! -f /bin/sh ; then
1772 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1773 CONFIG_SHELL=${SHELL}
1774 export CONFIG_SHELL
1775 else
1776 for prog in sh sh.exe bash bash.exe; do
1777 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1778 for dir in $PATH; do
1779 test -z "$dir" && dir=.
1780 if test -f $dir/$prog; then
1781 CONFIG_SHELL=$dir/$prog
1782 export CONFIG_SHELL
1783 break
1784 fi
1785 done
1786 IFS="$save_ifs"
1787 test -n "${CONFIG_SHELL}" && break
1788 done
1789 fi
1790 fi
1791 fi
1792 ;;
1793esac
1794
1795config_shell=${CONFIG_SHELL-/bin/sh}
1796
252b5132
RH
1797progname=$0
1798# if PWD already has a value, it is probably wrong.
a0da8069 1799if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1800
92f01d61
JM
1801# Export original configure arguments for use by sub-configures.
1802# Quote arguments with shell meta charatcers.
1803TOPLEVEL_CONFIGURE_ARGUMENTS=
1804set -- "$progname" "$@"
a4708fba
JM
1805for ac_arg
1806do
92f01d61 1807 case "$ac_arg" in
ffa8bd48 1808 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
92f01d61
JM
1809 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1810 # if the argument is of the form -foo=baz, quote the baz part only
1811 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1812 *) ;;
1813 esac
1814 # Add the quoted argument to the list.
1815 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1816done
2444379b
BE
1817if test "$silent" = yes; then
1818 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1819fi
92f01d61
JM
1820# Remove the initial space we just introduced and, as these will be
1821# expanded by make, quote '$'.
1822TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1823
75205f78 1824
a0da8069 1825moveifchange=${srcdir}/move-if-change
252b5132 1826
0fdbe983
DJ
1827srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1828
1829# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1830# a relative path.
1831if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1832 INSTALL="${srcpwd}/install-sh -c"
1833fi
1834
a0da8069
NN
1835# Set srcdir to "." if that's what it is.
1836# This is important for multilib support.
1837pwd=`${PWDCMD-pwd}`
a0da8069
NN
1838if test "${pwd}" = "${srcpwd}" ; then
1839 srcdir=.
252b5132
RH
1840fi
1841
a0da8069 1842topsrcdir=$srcpwd
252b5132 1843
a0da8069 1844extra_host_args=
afefada0 1845
a0da8069
NN
1846### To add a new directory to the tree, first choose whether it is a target
1847### or a host dependent tool. Then put it into the appropriate list
1848### (library or tools, host or target), doing a dependency sort.
252b5132 1849
c6b750e1 1850# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1851# configdirs, or target_configdirs; see the serialization section below.
252b5132 1852
c6b750e1
DJ
1853# Dependency sorting is only needed when *configuration* must be done in
1854# a particular order. In all cases a dependency should be specified in
a0da8069 1855# the Makefile, whether or not it's implicitly specified here.
252b5132 1856
a0da8069
NN
1857# Double entries in build_configdirs, configdirs, or target_configdirs may
1858# cause circular dependencies and break everything horribly.
252b5132 1859
6a9cf61e
PB
1860# these library is used by various programs built for the build
1861# environment
1862#
1863build_libs="build-libiberty"
1864
1865# these tools are built for the build environment
ee025550 1866build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1867
a0da8069
NN
1868# these libraries are used by various programs built for the host environment
1869#
4b900473 1870host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1871
a0da8069
NN
1872# these tools are built for the host environment
1873# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1874# know that we are building the simulator.
1875# binutils, gas and ld appear in that order because it makes sense to run
1876# "make check" in that particular order.
93f9b408 1877# If --enable-gold is used, "gold" will replace "ld".
b00612cc 1878host_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
1879
1880# libgcj represents the runtime libraries only used by gcj.
1881libgcj="target-libffi \
a0da8069
NN
1882 target-zlib \
1883 target-qthreads \
1884 target-libjava"
1885
1886# these libraries are built for the target environment, and are built after
1887# the host libraries and the host tools (which may be a cross compiler)
1888#
b1299c4e
DJ
1889target_libraries="target-libgcc \
1890 target-libiberty \
a0da8069
NN
1891 target-libgloss \
1892 target-newlib \
cff87f51 1893 target-libgomp \
b9459e83 1894 target-libstdc++-v3 \
4b1cb4fe 1895 target-libmudflap \
bb780410 1896 target-libssp \
4b1cb4fe 1897 target-libgfortran \
4f0ef2d8 1898 target-boehm-gc \
83326456 1899 ${libgcj} \
a2592b1b 1900 target-libobjc \
cff87f51 1901 target-libada"
a0da8069 1902
9c14acb8
NN
1903# these tools are built using the target libraries, and are intended to
1904# run only in the target environment
a0da8069 1905#
9c14acb8 1906# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1907# list belongs in this list. those programs are also very likely
1908# candidates for the "native_only" list which follows
1909#
a3dd767d 1910target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1911
a0da8069 1912################################################################################
252b5132 1913
a0da8069
NN
1914## All tools belong in one of the four categories, and are assigned above
1915## We assign ${configdirs} this way to remove all embedded newlines. This
1916## is important because configure will choke if they ever get through.
1917## ${configdirs} is directories we build using the host tools.
1918## ${target_configdirs} is directories we build using the target tools.
a0da8069 1919configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1920target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1921build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1922
9cc8ae67
PB
1923
1924
a0da8069 1925################################################################################
252b5132 1926
a0da8069 1927srcname="gnu development package"
252b5132 1928
a0da8069
NN
1929# This gets set non-empty for some net releases of packages.
1930appdirs=""
252b5132 1931
a0da8069
NN
1932# Define is_cross_compiler to save on calls to 'test'.
1933is_cross_compiler=
1934if test x"${host}" = x"${target}" ; then
1935 is_cross_compiler=no
252b5132 1936else
a0da8069 1937 is_cross_compiler=yes
c6b750e1 1938fi
252b5132 1939
9175bfc0 1940# Find the build and target subdir names.
dd12c3a8 1941
66a79c16
DJ
1942# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1943# have matching libraries, they should use host libraries: Makefile.tpl
1944# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1945# However, they still use the build modules, because the corresponding
1946# host modules (e.g. bison) are only built for the host when bootstrap
1947# finishes. So:
1948# - build_subdir is where we find build modules, and never changes.
1949# - build_libsubdir is where we find build libraries, and can be overridden.
1950
1951# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1952build_subdir="build-${build_noncanonical}"
c6b750e1 1953
66a79c16
DJ
1954# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1955if test "${with_build_libsubdir+set}" = set; then
1956 withval="$with_build_libsubdir"
1957 build_libsubdir="$withval"
1958else
1959 build_libsubdir="$build_subdir"
c6b750e1 1960fi;
b00612cc
PB
1961# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1962if ( test $srcdir = . && test -d gcc ) \
1963 || test -d $srcdir/../host-${host_noncanonical}; then
1964 host_subdir="host-${host_noncanonical}"
1965else
1966 host_subdir=.
1967fi
dd12c3a8
NN
1968# No prefix.
1969target_subdir=${target_noncanonical}
c6b750e1 1970
252b5132 1971
a0da8069
NN
1972# Skipdirs are removed silently.
1973skipdirs=
1974# Noconfigdirs are removed loudly.
1975noconfigdirs=""
252b5132 1976
a0da8069
NN
1977use_gnu_ld=
1978# Make sure we don't let GNU ld be added if we didn't want it.
1979if test x$with_gnu_ld = xno ; then
1980 use_gnu_ld=no
93f9b408 1981 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
1982fi
1983
a0da8069
NN
1984use_gnu_as=
1985# Make sure we don't let GNU as be added if we didn't want it.
1986if test x$with_gnu_as = xno ; then
1987 use_gnu_as=no
1988 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1989fi
1990
c6b750e1 1991# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1992# it's not even worth trying to configure, much less build, that tool.
252b5132 1993
a0da8069
NN
1994case ${with_x} in
1995 yes | "") ;; # the default value for this tree is that X11 is available
1996 no)
675c6968 1997 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1998 # We won't be able to build gdbtk without X.
c6b750e1 1999 enable_gdbtk=no
a0da8069
NN
2000 ;;
2001 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2002esac
252b5132 2003
a0da8069 2004# Some tools are only suitable for building in a "native" situation.
c6b750e1 2005# Remove these if host!=target.
701628f5 2006native_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 2007
a0da8069
NN
2008# Similarly, some are only suitable for cross toolchains.
2009# Remove these if host=target.
2010cross_only="target-libgloss target-newlib target-opcodes"
2011
2012case $is_cross_compiler in
2013 no) skipdirs="${skipdirs} ${cross_only}" ;;
2014 yes) skipdirs="${skipdirs} ${native_only}" ;;
2015esac
252b5132 2016
a0da8069
NN
2017# If both --with-headers and --with-libs are specified, default to
2018# --without-newlib.
32be62b5
RS
2019if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2020 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2021 if test x"${with_newlib}" = x ; then
2022 with_newlib=no
2023 fi
252b5132
RH
2024fi
2025
a0da8069
NN
2026# Recognize --with-newlib/--without-newlib.
2027case ${with_newlib} in
2028 no) skipdirs="${skipdirs} target-newlib" ;;
2029 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2030esac
252b5132 2031
93f9b408
ILT
2032# Handle --enable-gold.
2033
2034# Check whether --enable-gold or --disable-gold was given.
2035if test "${enable_gold+set}" = set; then
2036 enableval="$enable_gold"
2037 ENABLE_GOLD=$enableval
2038else
2039 ENABLE_GOLD=no
2040fi;
2041if test "${ENABLE_GOLD}" = "yes"; then
2042 # Check for ELF target.
2043 is_elf=no
2044 case "${target}" in
2045 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2046 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2047 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2048 case "${target}" in
2049 *-*-linux*aout* | *-*-linux*oldld*)
2050 ;;
2051 *)
2052 is_elf=yes
2053 ;;
2054 esac
2055 esac
2056
2057 if test "$is_elf" = "yes"; then
2058 # Check for target supported by gold.
2059 case "${target}" in
310213e8 2060 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*)
93f9b408
ILT
2061 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2062 ;;
2063 esac
2064 fi
2065fi
2066
a0da8069 2067# Configure extra directories which are host specific
252b5132 2068
a0da8069
NN
2069case "${host}" in
2070 *-cygwin*)
2071 configdirs="$configdirs libtermcap" ;;
2072esac
252b5132 2073
59f7ec45
HPN
2074# A target can indicate whether a language isn't supported for some reason.
2075# Only spaces may be used in this macro; not newlines or tabs.
2076unsupported_languages=
2077
c6b750e1 2078# Remove more programs from consideration, based on the host or
a0da8069
NN
2079# target this usually means that a port of the program doesn't
2080# exist yet.
252b5132 2081
a0da8069
NN
2082case "${host}" in
2083 hppa*64*-*-*)
2084 noconfigdirs="$noconfigdirs byacc"
2085 ;;
ec11bdc6 2086 i[3456789]86-*-vsta)
675c6968 2087 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2088 ;;
ec11bdc6 2089 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2090 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2091 ;;
2d1e8239
NC
2092 x86_64-*-mingw*)
2093 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2094 ;;
ec11bdc6 2095 i[3456789]86-*-mingw32*)
675c6968 2096 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2097 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2098 ;;
ec11bdc6 2099 i[3456789]86-*-beos*)
675c6968 2100 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2101 ;;
a0da8069 2102 *-*-cygwin*)
a92834c8 2103 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2104 ;;
2105 *-*-netbsd*)
a92834c8 2106 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2107 ;;
2108 ppc*-*-pe)
675c6968 2109 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2110 ;;
2111 powerpc-*-beos*)
675c6968 2112 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2113 ;;
a0da8069 2114esac
252b5132 2115
4b1cb4fe 2116
a2592b1b
DD
2117# Check whether --enable-libada or --disable-libada was given.
2118if test "${enable_libada+set}" = set; then
2119 enableval="$enable_libada"
2120 ENABLE_LIBADA=$enableval
2121else
2122 ENABLE_LIBADA=yes
c6b750e1 2123fi;
a2592b1b 2124if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2125 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2126fi
2127
5f128533
KH
2128# Check whether --enable-libssp or --disable-libssp was given.
2129if test "${enable_libssp+set}" = set; then
2130 enableval="$enable_libssp"
2131 ENABLE_LIBSSP=$enableval
2132else
2133 ENABLE_LIBSSP=yes
c6b750e1 2134fi;
5f128533 2135
a0da8069
NN
2136# Save it here so that, even in case of --enable-libgcj, if the Java
2137# front-end isn't enabled, we still get libgcj disabled.
2138libgcj_saved=$libgcj
2139case $enable_libgcj in
2140yes)
2141 # If we reset it here, it won't get added to noconfigdirs in the
2142 # target-specific build rules, so it will be forcibly enabled
2143 # (unless the Java language itself isn't enabled).
2144 libgcj=
2145 ;;
2146no)
2147 # Make sure we get it printed in the list of not supported target libs.
2148 noconfigdirs="$noconfigdirs ${libgcj}"
2149 ;;
2150esac
252b5132 2151
4b1cb4fe 2152
a6df5a19
PB
2153# Disable libmudflap on some systems.
2154if test x$enable_libmudflap = x ; then
3e707e94 2155 case "${target}" in
0ebe98fb 2156 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2157 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2158 ;;
2159 *-*-freebsd*)
2160 # Enable libmudflap by default in FreeBSD.
2161 ;;
2162 *)
2163 # Disable it by default everywhere else.
2164 noconfigdirs="$noconfigdirs target-libmudflap"
2165 ;;
2166 esac
a6df5a19 2167fi
4b1cb4fe 2168
a6df5a19
PB
2169# Disable libgomp on non POSIX hosted systems.
2170if test x$enable_libgomp = x ; then
b3ded179
PB
2171 # Enable libgomp by default on hosted POSIX systems.
2172 case "${target}" in
2173 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2174 ;;
2175 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2176 ;;
64ce424c 2177 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2178 ;;
2179 *-*-darwin* | *-*-aix*)
2180 ;;
2181 *)
2182 noconfigdirs="$noconfigdirs target-libgomp"
2183 ;;
2184 esac
a6df5a19 2185fi
b3ded179 2186
691bb5a1
DD
2187# Default libgloss CPU subdirectory.
2188libgloss_dir="$target_cpu"
4b1cb4fe 2189
a0da8069
NN
2190case "${target}" in
2191 *-*-chorusos)
54d1c879 2192 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2193 ;;
c9b68031 2194 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
b3f16a9b 2195 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2196 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2197 ;;
04d1ab34 2198 *-*-darwin*)
d320aacb 2199 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2200 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2201 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2202 ;;
a0da8069 2203 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2204 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2205 ;;
de0b4a87 2206 *-*-freebsd*)
4b1cb4fe
DD
2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2208 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2209 && test -f /usr/local/include/gmp.h; then
2210 with_gmp=/usr/local
2211 fi
2212
2213 # Skip some stuff that's unsupported on some FreeBSD configurations.
2214 case "${target}" in
2215 i*86-*-*) ;;
2216 alpha*-*-*) ;;
2217 *)
54d1c879 2218 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2219 ;;
2220 esac
2221 ;;
f8a495c8
NC
2222 *-*-kaos*)
2223 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2224 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2225 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2226 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2227 noconfigdirs="$noconfigdirs target-libgloss"
2228 ;;
a0da8069
NN
2229 *-*-netbsd*)
2230 # Skip some stuff on all NetBSD configurations.
2231 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2232
2233 # Skip some stuff that's unsupported on some NetBSD configurations.
2234 case "${target}" in
2235 i*86-*-netbsdelf*) ;;
5b474aa8 2236 arm*-*-netbsdelf*) ;;
a0da8069 2237 *)
54d1c879 2238 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2239 ;;
2240 esac
2241 ;;
2a3124ca 2242 *-*-netware*)
54d1c879 2243 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2244 ;;
2245 *-*-rtems*)
54d1c879 2246 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2247 ;;
1587117a
EC
2248 # The tpf target doesn't support gdb yet.
2249 *-*-tpf*)
54d1c879 2250 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2251 ;;
c1968181 2252 *-*-uclinux*)
54d1c879 2253 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2254 ;;
a0da8069 2255 *-*-vxworks*)
54d1c879 2256 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2257 ;;
2258 alpha*-dec-osf*)
2259 # ld works, but does not support shared libraries.
2260 # newlib is not 64 bit ready. I'm not sure about fileutils.
2261 # gas doesn't generate exception information.
2262 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2263 ;;
2264 alpha*-*-*vms*)
54d1c879 2265 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2266 ;;
2267 alpha*-*-linux*)
2268 # newlib is not 64 bit ready
2269 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2270 ;;
a0da8069
NN
2271 alpha*-*-*)
2272 # newlib is not 64 bit ready
54d1c879 2273 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2274 ;;
4a18bd6b 2275 am33_2.0-*-linux*)
54d1c879 2276 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2277 ;;
a0da8069 2278 sh-*-linux*)
54d1c879 2279 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2280 ;;
a0da8069 2281 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2282 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2283 noconfigdirs="$noconfigdirs target-examples"
2284 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2285 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2286 noconfigdirs="$noconfigdirs expect dejagnu"
2287 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2288 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2289 noconfigdirs="$noconfigdirs target-newlib"
2290 case "${host}" in
2291 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2292 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2293 ;;
2294 esac
691bb5a1 2295 libgloss_dir=wince
a0da8069
NN
2296 ;;
2297 arc-*-*)
54d1c879 2298 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2299 ;;
caeba88f 2300 arm-semi-aof )
caeba88f 2301 ;;
a0da8069 2302 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2303 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2304 libgloss_dir=arm
a0da8069 2305 ;;
11b04d1f 2306 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2307 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2308 libgloss_dir=arm
a0da8069 2309 ;;
bd70a46f 2310 arm*-*-linux-gnueabi)
6d18b86b 2311 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
2312 case ${with_newlib} in
2313 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2314 esac
691bb5a1 2315 libgloss_dir=arm
bd70a46f 2316 ;;
df4a6958 2317 arm*-*-symbianelf*)
54d1c879 2318 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2319 libgloss_dir=arm
df4a6958 2320 ;;
a0da8069 2321 arm-*-pe*)
54d1c879 2322 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2323 ;;
a0da8069 2324 thumb-*-coff)
54d1c879 2325 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2326 ;;
2327 thumb-*-elf)
54d1c879 2328 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2329 ;;
a0da8069 2330 thumb-*-pe)
54d1c879 2331 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2332 ;;
2333 arm-*-riscix*)
54d1c879 2334 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2335 ;;
2336 avr-*-*)
266df637 2337 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 2338 ;;
376a0e54 2339 bfin-*-*)
00d89675 2340 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2341 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2342 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2343 fi
2344 ;;
a0da8069 2345 c4x-*-* | tic4x-*-*)
54d1c879 2346 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2347 ;;
2348 c54x*-*-* | tic54x-*-*)
54d1c879 2349 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2350 ;;
52310858
NC
2351 cr16-*-*)
2352 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2353 ;;
c7e66c6d 2354 cris-*-* | crisv32-*-*)
59f7ec45 2355 unsupported_languages="$unsupported_languages java"
c7e66c6d 2356 case "${target}" in
2faa2958 2357 *-*-aout)
096f7d00 2358 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2359 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2360 *-*-elf)
5e818318 2361 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2362 *-*-linux*)
5e818318 2363 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2364 *)
096f7d00 2365 unsupported_languages="$unsupported_languages fortran"
54d1c879 2366 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2367 esac
691bb5a1 2368 libgloss_dir=cris
a0da8069 2369 ;;
3e707e94 2370 crx-*-*)
54d1c879 2371 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2372 ;;
a0da8069 2373 d10v-*-*)
54d1c879 2374 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2375 ;;
2376 d30v-*-*)
54d1c879 2377 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2378 ;;
691bb5a1
DD
2379 ep9312-*-elf | ep9312-*-coff)
2380 libgloss_dir=arm
2381 ;;
a0da8069 2382 fr30-*-elf*)
54d1c879 2383 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2384 ;;
2385 frv-*-*)
54d1c879 2386 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2387 ;;
2388 h8300*-*-*)
54d1c879 2389 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2390 ;;
2391 h8500-*-*)
54d1c879 2392 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2393 ;;
caeba88f 2394 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2395 ;;
a0da8069
NN
2396 hppa*64*-*-linux* | parisc*64*-*-linux*)
2397 # In this case, it's because the hppa64-linux target is for
2398 # the kernel only at this point and has no libc, and thus no
2399 # headers, crt*.o, etc., all of which are needed by these.
2400 noconfigdirs="$noconfigdirs target-zlib"
2401 ;;
5dcac624
DA
2402 parisc*-*-linux* | hppa*-*-linux*)
2403 ;;
a0da8069 2404 hppa*-*-*elf* | \
a0da8069
NN
2405 hppa*-*-lites* | \
2406 hppa*-*-openbsd* | \
2407 hppa*64*-*-*)
54d1c879 2408 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2409 ;;
2410 hppa*-hp-hpux11*)
2411 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2412 ;;
691bb5a1
DD
2413 hppa*-*-pro*)
2414 libgloss_dir=pa
2415 ;;
a0da8069
NN
2416 hppa*-*-*)
2417 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2418 # build on HP-UX 10.20.
54d1c879 2419 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2420 ;;
b07c2aad 2421 i960-*-*)
54d1c879 2422 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2423 ;;
a0da8069
NN
2424 ia64*-*-elf*)
2425 # No gdb support yet.
675c6968 2426 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2427 ;;
2428 ia64*-**-hpux*)
2429 # No gdb or ld support yet.
54d1c879 2430 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2431 ;;
caeba88f 2432 i370-*-opened*)
caeba88f 2433 ;;
ec11bdc6 2434 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2435 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2436 libgloss_dir=i386
a0da8069 2437 ;;
ec11bdc6 2438 i[3456789]86-*-linux*)
a0da8069
NN
2439 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2440 # not build java stuff by default.
2441 case "${target}" in
2442 *-*-*libc1*)
54d1c879 2443 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2444 esac
2445
2446 # This section makes it possible to build newlib natively on linux.
2447 # If we are using a cross compiler then don't configure newlib.
2448 if test x${is_cross_compiler} != xno ; then
bba45b8b 2449 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2450 fi
2451 noconfigdirs="$noconfigdirs target-libgloss"
2452 # If we are not using a cross compiler, do configure newlib.
2453 # Note however, that newlib will only be configured in this situation
2454 # if the --with-newlib option has been given, because otherwise
2455 # 'target-newlib' will appear in skipdirs.
2456 ;;
ec11bdc6 2457 i[3456789]86-*-mingw32*)
45055374
CV
2458 target_configdirs="$target_configdirs target-winsup"
2459 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2460 ;;
2d1e8239
NC
2461 x86_64-*-mingw*)
2462 target_configdirs="$target_configdirs target-winsup"
2463 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2464 ;;
a0da8069
NN
2465 *-*-cygwin*)
2466 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2467 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2468 # always build newlib if winsup directory is present.
45055374 2469 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2470 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2471 elif test -d "$srcdir/newlib"; then
45055374 2472 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2473 fi
c6b750e1 2474 ;;
caeba88f
AL
2475 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2476 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2477 ;;
ec11bdc6 2478 i[3456789]86-*-pe)
54d1c879 2479 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2480 ;;
ec11bdc6 2481 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2482 # The linker does not yet know about weak symbols in COFF,
2483 # and is not configured to handle mixed ELF and COFF.
54d1c879 2484 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2485 ;;
ec11bdc6 2486 i[3456789]86-*-sco*)
54d1c879 2487 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2488 ;;
ec11bdc6 2489 i[3456789]86-*-solaris2*)
a0da8069
NN
2490 noconfigdirs="$noconfigdirs target-libgloss"
2491 ;;
ec11bdc6 2492 i[3456789]86-*-sysv4*)
54d1c879 2493 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2494 ;;
ec11bdc6 2495 i[3456789]86-*-beos*)
54d1c879 2496 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2497 ;;
b59bea8a 2498 i[3456789]86-*-rdos*)
2429c060
PB
2499 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2500 ;;
b07c2aad 2501 m32r-*-*)
54d1c879 2502 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2503 ;;
a0da8069 2504 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2505 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2506 libgloss_dir=m68hc11
a0da8069
NN
2507 ;;
2508 m68k-*-elf*)
54d1c879 2509 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2510 ;;
2511 m68k-*-coff*)
54d1c879 2512 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2513 ;;
691bb5a1
DD
2514 m68*-*-* | fido-*-*)
2515 libgloss_dir=m68k
2516 ;;
a0da8069
NN
2517 mcore-*-pe*)
2518 # The EPOC C++ environment does not support exceptions or rtti,
2519 # and so building libstdc++-v3 tends not to always work.
2520 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2521 ;;
2522 mmix-*-*)
59f7ec45 2523 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2524 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2525 ;;
2526 mn10200-*-*)
54d1c879 2527 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2528 ;;
2529 mn10300-*-*)
54d1c879 2530 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2531 ;;
4970f871 2532 mt-*-*)
cdb9b172
AH
2533 noconfigdirs="$noconfigdirs sim"
2534 ;;
a0da8069
NN
2535 powerpc-*-aix*)
2536 # copied from rs6000-*-* entry
54d1c879 2537 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2538 ;;
2539 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2540 target_configdirs="$target_configdirs target-winsup"
54d1c879 2541 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2542 # always build newlib.
2543 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2544 ;;
2545 # This is temporary until we can link against shared libraries
2546 powerpcle-*-solaris*)
54d1c879 2547 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2548 libgloss_dir=rs6000
a0da8069
NN
2549 ;;
2550 powerpc-*-beos*)
54d1c879 2551 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2552 ;;
a0da8069 2553 powerpc-*-eabi)
54d1c879 2554 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2555 libgloss_dir=rs6000
caeba88f
AL
2556 ;;
2557 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2558 libgloss_dir=rs6000
a0da8069 2559 ;;
a0da8069 2560 rs6000-*-lynxos*)
54d1c879 2561 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2562 ;;
2563 rs6000-*-aix*)
54d1c879 2564 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2565 ;;
2566 rs6000-*-*)
54d1c879 2567 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2568 ;;
2569 m68k-apollo-*)
54d1c879 2570 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2571 ;;
5bd8be13
RS
2572 mips*-sde-elf*)
2573 skipdirs="$skipdirs target-libiberty"
2574 noconfigdirs="$noconfigdirs ${libgcj}"
2575 if test x$with_newlib = xyes; then
2576 noconfigdirs="$noconfigdirs gprof"
2577 fi
2578 libgloss_dir=mips
2579 ;;
a0da8069 2580 mips*-*-irix5*)
54d1c879 2581 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2582 ;;
2583 mips*-*-irix6*)
a0da8069
NN
2584 # Linking libjava exceeds command-line length limits on at least
2585 # IRIX 6.2, but not on IRIX 6.5.
2586 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2587 # <oldham@codesourcery.com>
54d1c879 2588 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2589 ;;
a0da8069 2590 mips*-*-bsd*)
54d1c879 2591 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2592 ;;
a0da8069
NN
2593 mips*-*-linux*)
2594 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2595 ;;
2596 mips*-*-*)
54d1c879 2597 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2598 libgloss_dir=mips
a0da8069
NN
2599 ;;
2600 romp-*-*)
54d1c879 2601 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2602 ;;
dbf85af7 2603 sh-*-* | sh64-*-*)
a0da8069 2604 case "${host}" in
ec11bdc6
DD
2605 i[3456789]86-*-vsta) ;; # don't add gprof back in
2606 i[3456789]86-*-go32*) ;; # don't add gprof back in
2607 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2608 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2609 esac
54d1c879 2610 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2611 ;;
691bb5a1
DD
2612 sparclet-*-aout* | sparc86x-*-*)
2613 libgloss_dir=sparc
2614 ;;
a0da8069 2615 sparc-*-elf*)
54d1c879 2616 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2617 ;;
2618 sparc64-*-elf*)
54d1c879 2619 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2620 libgloss_dir=sparc
a0da8069
NN
2621 ;;
2622 sparclite-*-*)
54d1c879 2623 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2624 libgloss_dir=sparc
a0da8069
NN
2625 ;;
2626 sparc-*-sunos4*)
54d1c879 2627 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2628 if test x${is_cross_compiler} != xno ; then
2629 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2630 else
2631 use_gnu_ld=no
2632 fi
2633 ;;
e3c770b1 2634 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2635 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2636 ;;
a0da8069
NN
2637 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2638 ;;
2839fe5d
BE
2639 spu-*-*)
2640 skipdirs="target-libssp"
2641 ;;
a0da8069 2642 v810-*-*)
54d1c879 2643 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2644 ;;
2645 v850-*-*)
54d1c879 2646 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2647 ;;
2648 v850e-*-*)
54d1c879 2649 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2650 ;;
2651 v850ea-*-*)
54d1c879 2652 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2653 ;;
2654 vax-*-vms)
54d1c879 2655 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2656 ;;
2657 vax-*-*)
54d1c879 2658 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2659 ;;
8b66833e 2660 xtensa*-*-*)
54d1c879 2661 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2662 ;;
a0da8069 2663 ip2k-*-*)
54d1c879 2664 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2665 ;;
de0b4a87 2666 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2667 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2668 ;;
2669 *-*-lynxos*)
54d1c879 2670 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2671 ;;
a0da8069 2672 *-*-*)
54d1c879 2673 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2674 ;;
2675esac
252b5132 2676
a0da8069
NN
2677# If we aren't building newlib, then don't build libgloss, since libgloss
2678# depends upon some newlib header files.
2679case "${noconfigdirs}" in
2680 *target-libgloss*) ;;
2681 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2682esac
2683
a0da8069
NN
2684# Work in distributions that contain no compiler tools, like Autoconf.
2685tentative_cc=""
2686host_makefile_frag=/dev/null
2687if test -d ${srcdir}/config ; then
2688case "${host}" in
2689 m68k-hp-hpux*)
2690 # Avoid "too much defining" errors from HPUX compiler.
2691 tentative_cc="cc -Wp,-H256000"
2692 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2693 # If it's HP/UX ar, this should be harmless.
2694 RANLIB="ar ts"
2695 ;;
2696 m68k-apollo-sysv*)
2697 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2698 ;;
2699 m68k-apollo-bsd*)
2700 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2701 # chokes on bfd, the compiler won't let you assign integers to enums, and
2702 # other problems. Defining CC to gcc is a questionable way to say "don't use
2703 # the apollo compiler" (the preferred version of GCC could be called cc,
2704 # or whatever), but I'm not sure leaving CC as cc is any better...
2705 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2706 # Used to have BISON=yacc.
2707 tentative_cc=gcc
2708 ;;
2709 m88k-dg-dgux*)
2710 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2711 ;;
2712 m88k-harris-cxux*)
2713 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2714 tentative_cc="cc -Xa"
2715 host_makefile_frag="config/mh-cxux"
2716 ;;
2717 m88k-motorola-sysv*)
2718 ;;
2719 mips*-dec-ultrix*)
2720 tentative_cc="cc -Wf,-XNg1000"
2721 host_makefile_frag="config/mh-decstation"
2722 ;;
2723 mips*-nec-sysv4*)
2724 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2725 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2726 host_makefile_frag="config/mh-necv4"
2727 ;;
2728 mips*-sgi-irix4*)
2729 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2730 # environment. Also bump switch table size so that cp-parse will
2731 # compile. Bump string length limit so linker builds.
2732 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2733 ;;
2734 mips*-*-sysv4*)
2735 host_makefile_frag="config/mh-sysv4"
2736 ;;
2737 mips*-*-sysv*)
2738 # This is for a MIPS running RISC/os 4.52C.
2739
2740 # This is needed for GDB, but needs to be in the top-level make because
2741 # if a library is compiled with the bsd headers and gets linked with the
2742 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2743 # a different size).
2744 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2745 # known except to select the sysv environment. Could we use /proc instead?
2746 # These "sysv environments" and "bsd environments" often end up being a pain.
2747 #
2748 # This is not part of CFLAGS because perhaps not all C compilers have this
2749 # option.
2750 tentative_cc="cc -systype sysv"
2751 ;;
2752 i370-ibm-opened*)
2753 tentative_cc="c89"
2754 ;;
ec11bdc6 2755 i[3456789]86-*-sysv5*)
a0da8069
NN
2756 host_makefile_frag="config/mh-sysv5"
2757 ;;
ec11bdc6 2758 i[3456789]86-*-dgux*)
a0da8069
NN
2759 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2760 host_makefile_frag="config/mh-dgux386"
2761 ;;
ec11bdc6 2762 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2763 # The MetaWare compiler will generate a copyright message unless you
2764 # turn it off by adding the -Hnocopyr flag.
2765 tentative_cc="cc -Hnocopyr"
2766 ;;
ec11bdc6 2767 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2768 # for an NCR 3000 (i486/SVR4) system.
2769 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2770 # This compiler not only emits obnoxious copyright messages every time
2771 # you run it, but it chokes and dies on a whole bunch of GNU source
2772 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2773 tentative_cc="/usr/ccs/ATT/cc"
2774 host_makefile_frag="config/mh-ncr3000"
2775 ;;
ec11bdc6 2776 i[3456789]86-*-sco3.2v5*)
a0da8069 2777 ;;
ec11bdc6 2778 i[3456789]86-*-sco*)
a0da8069
NN
2779 # The native C compiler botches some simple uses of const. Unfortunately,
2780 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2781 tentative_cc="cc -Dconst="
2782 host_makefile_frag="config/mh-sco"
2783 ;;
ec11bdc6 2784 i[3456789]86-*-udk*)
a0da8069
NN
2785 host_makefile_frag="config/mh-sysv5"
2786 ;;
ec11bdc6 2787 i[3456789]86-*-solaris2*)
a0da8069
NN
2788 host_makefile_frag="config/mh-sysv4"
2789 ;;
ec11bdc6 2790 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2791 host_makefile_frag="config/mh-djgpp"
2792 ;;
2793 *-cygwin*)
e33b51a6
NC
2794
2795echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2796echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2797echo a >cygwin-cat-check
2798if test `cat cygwin-cat-check` == a ; then
8ade07e9 2799 rm cygwin-cat-check
e33b51a6
NC
2800 echo "$as_me:$LINENO: result: yes" >&5
2801echo "${ECHO_T}yes" >&6
2802else
8ade07e9 2803 rm cygwin-cat-check
e33b51a6
NC
2804 echo "$as_me:$LINENO: result: no" >&5
2805echo "${ECHO_T}no" >&6
2806 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2807 Please either mount the build directory in binary mode or run the following
2808 commands before running any configure script:
2809set -o igncr
2810export SHELLOPTS
2811 " >&5
2812echo "$as_me: error: The cat command does not ignore carriage return characters.
2813 Please either mount the build directory in binary mode or run the following
2814 commands before running any configure script:
2815set -o igncr
2816export SHELLOPTS
2817 " >&2;}
2818 { (exit 1); exit 1; }; }
2819fi
e33b51a6 2820
a0da8069
NN
2821 host_makefile_frag="config/mh-cygwin"
2822 ;;
8a1599ab 2823 *-mingw*)
84e7906e 2824 host_makefile_frag="config/mh-mingw"
2d1e8239 2825 ;;
a0da8069
NN
2826 *-interix*)
2827 host_makefile_frag="config/mh-interix"
2828 ;;
2829 vax-*-ultrix2*)
2830 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2831 tentative_cc=gcc
2832 ;;
2833 *-*-solaris2*)
2834 host_makefile_frag="config/mh-solaris"
2835 ;;
2836 m68k-sun-sunos*)
2837 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2838 # without overflowing the jump tables (-J says to use a 32 bit table)
2839 tentative_cc="cc -J"
2840 ;;
2841 *-hp-hpux*)
2842 tentative_cc="cc -Wp,-H256000"
2843 ;;
2844 *-*-hiux*)
2845 tentative_cc="cc -Wp,-H256000"
2846 ;;
2847 rs6000-*-lynxos*)
2848 # /bin/cc is less than useful for our purposes. Always use GCC
2849 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2850 host_makefile_frag="config/mh-lynxrs6k"
2851 ;;
0df3d27f
PB
2852 powerpc-*-darwin*)
2853 host_makefile_frag="config/mh-ppc-darwin"
2854 ;;
f6d183c0
PB
2855 powerpc-*-aix*)
2856 host_makefile_frag="config/mh-ppc-aix"
2857 ;;
2858 rs6000-*-aix*)
2859 host_makefile_frag="config/mh-ppc-aix"
2860 ;;
a0da8069
NN
2861 *-*-lynxos*)
2862 # /bin/cc is less than useful for our purposes. Always use GCC
2863 tentative_cc="/bin/gcc"
2864 ;;
2865 *-*-sysv4*)
2866 host_makefile_frag="config/mh-sysv4"
2867 ;;
fe69863c
DD
2868 # This is placed last to prevent interfering with the cases above.
2869 i[3456789]86-*-*)
2870 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2871 host_makefile_frag="config/mh-x86omitfp"
2872 ;;
a0da8069
NN
2873esac
2874fi
2875
9e07f89d
NN
2876# If we aren't going to be using gcc, see if we can extract a definition
2877# of CC from the fragment.
2878# Actually, use the 'pre-extracted' version above.
2879if test -z "${CC}" && test "${build}" = "${host}" ; then
2880 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2881 found=
2882 for dir in $PATH; do
2883 test -z "$dir" && dir=.
2884 if test -f $dir/gcc; then
2885 found=yes
2886 break
2887 fi
2888 done
2889 IFS="$save_ifs"
2890 if test -z "${found}" && test -n "${tentative_cc}" ; then
2891 CC=$tentative_cc
2892 fi
2893fi
2894
2895if test "${build}" != "${host}" ; then
1576798e
PB
2896 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2897 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2898 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2899 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2900 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2901 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2902 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2903 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2904 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2905 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2906 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2907 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2908else
2909 AR_FOR_BUILD="\$(AR)"
2910 AS_FOR_BUILD="\$(AS)"
512b7dfb 2911 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2912 CXX_FOR_BUILD="\$(CXX)"
2913 GCJ_FOR_BUILD="\$(GCJ)"
2914 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2915 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2916 LD_FOR_BUILD="\$(LD)"
2917 NM_FOR_BUILD="\$(NM)"
2918 RANLIB_FOR_BUILD="\$(RANLIB)"
2919 WINDRES_FOR_BUILD="\$(WINDRES)"
2920 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2921fi
2922
2923ac_ext=c
c6b750e1
DJ
2924ac_cpp='$CPP $CPPFLAGS'
2925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928if test -n "$ac_tool_prefix"; then
2929 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2930set dummy ${ac_tool_prefix}gcc; ac_word=$2
2931echo "$as_me:$LINENO: checking for $ac_word" >&5
2932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2933if test "${ac_cv_prog_CC+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2935else
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950done
2951done
2952
2953fi
2954fi
2955CC=$ac_cv_prog_CC
2956if test -n "$CC"; then
2957 echo "$as_me:$LINENO: result: $CC" >&5
2958echo "${ECHO_T}$CC" >&6
2959else
2960 echo "$as_me:$LINENO: result: no" >&5
2961echo "${ECHO_T}no" >&6
2962fi
2963
2964fi
2965if test -z "$ac_cv_prog_CC"; then
2966 ac_ct_CC=$CC
6a9cf61e 2967 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2968set dummy gcc; ac_word=$2
c6b750e1
DJ
2969echo "$as_me:$LINENO: checking for $ac_word" >&5
2970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2971if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973else
2974 if test -n "$ac_ct_CC"; then
2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976else
2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978for as_dir in $PATH
2979do
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_ac_ct_CC="gcc"
2985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988done
2989done
2990
2991fi
2992fi
2993ac_ct_CC=$ac_cv_prog_ac_ct_CC
2994if test -n "$ac_ct_CC"; then
2995 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2996echo "${ECHO_T}$ac_ct_CC" >&6
2997else
2998 echo "$as_me:$LINENO: result: no" >&5
2999echo "${ECHO_T}no" >&6
3000fi
3001
3002 CC=$ac_ct_CC
3003else
3004 CC="$ac_cv_prog_CC"
3005fi
3006
3007if test -z "$CC"; then
3008 if test -n "$ac_tool_prefix"; then
3009 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3010set dummy ${ac_tool_prefix}cc; ac_word=$2
3011echo "$as_me:$LINENO: checking for $ac_word" >&5
3012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3013if test "${ac_cv_prog_CC+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3015else
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3018else
c6b750e1
DJ
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026 ac_cv_prog_CC="${ac_tool_prefix}cc"
3027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3029 fi
3030done
3031done
3032
9e07f89d
NN
3033fi
3034fi
c6b750e1 3035CC=$ac_cv_prog_CC
9e07f89d 3036if test -n "$CC"; then
c6b750e1
DJ
3037 echo "$as_me:$LINENO: result: $CC" >&5
3038echo "${ECHO_T}$CC" >&6
9e07f89d 3039else
c6b750e1
DJ
3040 echo "$as_me:$LINENO: result: no" >&5
3041echo "${ECHO_T}no" >&6
9e07f89d
NN
3042fi
3043
c6b750e1
DJ
3044fi
3045if test -z "$ac_cv_prog_CC"; then
3046 ac_ct_CC=$CC
3047 # Extract the first word of "cc", so it can be a program name with args.
3048set dummy cc; ac_word=$2
3049echo "$as_me:$LINENO: checking for $ac_word" >&5
3050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3051if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3053else
3054 if test -n "$ac_ct_CC"; then
3055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3056else
3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058for as_dir in $PATH
3059do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_ac_ct_CC="cc"
3065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3067 fi
3068done
3069done
3070
3071fi
3072fi
3073ac_ct_CC=$ac_cv_prog_ac_ct_CC
3074if test -n "$ac_ct_CC"; then
3075 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3076echo "${ECHO_T}$ac_ct_CC" >&6
3077else
3078 echo "$as_me:$LINENO: result: no" >&5
3079echo "${ECHO_T}no" >&6
3080fi
3081
3082 CC=$ac_ct_CC
3083else
3084 CC="$ac_cv_prog_CC"
3085fi
3086
3087fi
9e07f89d
NN
3088if test -z "$CC"; then
3089 # Extract the first word of "cc", so it can be a program name with args.
3090set dummy cc; ac_word=$2
c6b750e1
DJ
3091echo "$as_me:$LINENO: checking for $ac_word" >&5
3092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3093if test "${ac_cv_prog_CC+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3095else
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3098else
9e07f89d 3099 ac_prog_rejected=no
c6b750e1
DJ
3100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101for as_dir in $PATH
3102do
3103 IFS=$as_save_IFS
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3108 ac_prog_rejected=yes
3109 continue
3110 fi
3111 ac_cv_prog_CC="cc"
3112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115done
3116done
3117
9e07f89d
NN
3118if test $ac_prog_rejected = yes; then
3119 # We found a bogon in the path, so make sure we never use it.
3120 set dummy $ac_cv_prog_CC
3121 shift
c6b750e1 3122 if test $# != 0; then
9e07f89d
NN
3123 # We chose a different compiler from the bogus one.
3124 # However, it has the same basename, so the bogon will be chosen
3125 # first if we set CC to just the basename; use the full file name.
3126 shift
c6b750e1 3127 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3128 fi
3129fi
3130fi
3131fi
c6b750e1 3132CC=$ac_cv_prog_CC
9e07f89d 3133if test -n "$CC"; then
c6b750e1
DJ
3134 echo "$as_me:$LINENO: result: $CC" >&5
3135echo "${ECHO_T}$CC" >&6
9e07f89d 3136else
c6b750e1
DJ
3137 echo "$as_me:$LINENO: result: no" >&5
3138echo "${ECHO_T}no" >&6
9e07f89d
NN
3139fi
3140
c6b750e1
DJ
3141fi
3142if test -z "$CC"; then
3143 if test -n "$ac_tool_prefix"; then
3144 for ac_prog in cl
3145 do
3146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3147set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3148echo "$as_me:$LINENO: checking for $ac_word" >&5
3149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3150if test "${ac_cv_prog_CC+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3152else
3153 if test -n "$CC"; then
3154 ac_cv_prog_CC="$CC" # Let the user override the test.
3155else
c6b750e1
DJ
3156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157for as_dir in $PATH
3158do
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
376a0e54 3166 fi
c6b750e1
DJ
3167done
3168done
cac3d6c4 3169
c6b750e1
DJ
3170fi
3171fi
3172CC=$ac_cv_prog_CC
3173if test -n "$CC"; then
3174 echo "$as_me:$LINENO: result: $CC" >&5
3175echo "${ECHO_T}$CC" >&6
cac3d6c4 3176else
c6b750e1
DJ
3177 echo "$as_me:$LINENO: result: no" >&5
3178echo "${ECHO_T}no" >&6
9e07f89d 3179fi
cac3d6c4 3180
c6b750e1
DJ
3181 test -n "$CC" && break
3182 done
cac3d6c4 3183fi
c6b750e1
DJ
3184if test -z "$CC"; then
3185 ac_ct_CC=$CC
3186 for ac_prog in cl
3187do
3188 # Extract the first word of "$ac_prog", so it can be a program name with args.
3189set dummy $ac_prog; ac_word=$2
3190echo "$as_me:$LINENO: checking for $ac_word" >&5
3191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3192if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3194else
c6b750e1
DJ
3195 if test -n "$ac_ct_CC"; then
3196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3197else
c6b750e1
DJ
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205 ac_cv_prog_ac_ct_CC="$ac_prog"
3206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3208 fi
3209done
3210done
3211
cac3d6c4
CM
3212fi
3213fi
c6b750e1
DJ
3214ac_ct_CC=$ac_cv_prog_ac_ct_CC
3215if test -n "$ac_ct_CC"; then
3216 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3217echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3218else
c6b750e1
DJ
3219 echo "$as_me:$LINENO: result: no" >&5
3220echo "${ECHO_T}no" >&6
cac3d6c4 3221fi
376a0e54 3222
c6b750e1
DJ
3223 test -n "$ac_ct_CC" && break
3224done
3225
3226 CC=$ac_ct_CC
3227fi
3228
3229fi
3230
3231
3232test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3233See \`config.log' for more details." >&5
3234echo "$as_me: error: no acceptable C compiler found in \$PATH
3235See \`config.log' for more details." >&2;}
3236 { (exit 1); exit 1; }; }
3237
3238# Provide some information about the compiler.
3239echo "$as_me:$LINENO:" \
3240 "checking for C compiler version" >&5
3241ac_compiler=`set X $ac_compile; echo $2`
3242{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3243 (eval $ac_compiler --version </dev/null >&5) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }
3247{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3248 (eval $ac_compiler -v </dev/null >&5) 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }
3252{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3253 (eval $ac_compiler -V </dev/null >&5) 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }
3257
3258cat >conftest.$ac_ext <<_ACEOF
3259/* confdefs.h. */
3260_ACEOF
3261cat confdefs.h >>conftest.$ac_ext
3262cat >>conftest.$ac_ext <<_ACEOF
3263/* end confdefs.h. */
3264
3265int
3266main ()
3267{
3268
3269 ;
3270 return 0;
3271}
3272_ACEOF
3273ac_clean_files_save=$ac_clean_files
3274ac_clean_files="$ac_clean_files a.out a.exe b.out"
3275# Try to create an executable without -o first, disregard a.out.
3276# It will help us diagnose broken compilers, and finding out an intuition
3277# of exeext.
3278echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3279echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3280ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3281if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3282 (eval $ac_link_default) 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; then
3286 # Find the output, starting from the most likely. This scheme is
3287# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3288# resort.
3289
3290# Be careful to initialize this variable, since it used to be cached.
3291# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3292ac_cv_exeext=
3293# b.out is created by i960 compilers.
3294for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3295do
3296 test -f "$ac_file" || continue
3297 case $ac_file in
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3299 ;;
3300 conftest.$ac_ext )
3301 # This is the source file.
3302 ;;
3303 [ab].out )
3304 # We found the default executable, but exeext='' is most
3305 # certainly right.
3306 break;;
3307 *.* )
3308 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3309 # FIXME: I believe we export ac_cv_exeext for Libtool,
3310 # but it would be cool to find out if it's true. Does anybody
3311 # maintain Libtool? --akim.
3312 export ac_cv_exeext
3313 break;;
3314 * )
3315 break;;
3316 esac
3317done
3318else
3319 echo "$as_me: failed program was:" >&5
3320sed 's/^/| /' conftest.$ac_ext >&5
3321
3322{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3323See \`config.log' for more details." >&5
3324echo "$as_me: error: C compiler cannot create executables
3325See \`config.log' for more details." >&2;}
3326 { (exit 77); exit 77; }; }
3327fi
3328
3329ac_exeext=$ac_cv_exeext
3330echo "$as_me:$LINENO: result: $ac_file" >&5
3331echo "${ECHO_T}$ac_file" >&6
3332
3333# Check the compiler produces executables we can run. If not, either
3334# the compiler is broken, or we cross compile.
3335echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3336echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3337# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3338# If not cross compiling, check that we can run a simple program.
3339if test "$cross_compiling" != yes; then
3340 if { ac_try='./$ac_file'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 cross_compiling=no
3347 else
3348 if test "$cross_compiling" = maybe; then
3349 cross_compiling=yes
3350 else
3351 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3352If you meant to cross compile, use \`--host'.
3353See \`config.log' for more details." >&5
3354echo "$as_me: error: cannot run C compiled programs.
3355If you meant to cross compile, use \`--host'.
3356See \`config.log' for more details." >&2;}
3357 { (exit 1); exit 1; }; }
3358 fi
3359 fi
3360fi
3361echo "$as_me:$LINENO: result: yes" >&5
3362echo "${ECHO_T}yes" >&6
3363
3364rm -f a.out a.exe conftest$ac_cv_exeext b.out
3365ac_clean_files=$ac_clean_files_save
3366# Check the compiler produces executables we can run. If not, either
3367# the compiler is broken, or we cross compile.
3368echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3369echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3370echo "$as_me:$LINENO: result: $cross_compiling" >&5
3371echo "${ECHO_T}$cross_compiling" >&6
3372
3373echo "$as_me:$LINENO: checking for suffix of executables" >&5
3374echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3376 (eval $ac_link) 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; then
3380 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3381# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3382# work properly (i.e., refer to `conftest.exe'), while it won't with
3383# `rm'.
3384for ac_file in conftest.exe conftest conftest.*; do
3385 test -f "$ac_file" || continue
3386 case $ac_file in
3387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3388 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3389 export ac_cv_exeext
3390 break;;
3391 * ) break;;
3392 esac
3393done
3394else
3395 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3396See \`config.log' for more details." >&5
3397echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3398See \`config.log' for more details." >&2;}
3399 { (exit 1); exit 1; }; }
3400fi
3401
3402rm -f conftest$ac_cv_exeext
3403echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3404echo "${ECHO_T}$ac_cv_exeext" >&6
3405
3406rm -f conftest.$ac_ext
3407EXEEXT=$ac_cv_exeext
3408ac_exeext=$EXEEXT
3409echo "$as_me:$LINENO: checking for suffix of object files" >&5
3410echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3411if test "${ac_cv_objext+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
3419/* end confdefs.h. */
3420
3421int
3422main ()
3423{
3424
3425 ;
3426 return 0;
3427}
3428_ACEOF
3429rm -f conftest.o conftest.obj
3430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3431 (eval $ac_compile) 2>&5
3432 ac_status=$?
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; then
3435 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3436 case $ac_file in
3437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3438 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3439 break;;
3440 esac
3441done
cac3d6c4 3442else
c6b750e1
DJ
3443 echo "$as_me: failed program was:" >&5
3444sed 's/^/| /' conftest.$ac_ext >&5
3445
3446{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3447See \`config.log' for more details." >&5
3448echo "$as_me: error: cannot compute suffix of object files: cannot compile
3449See \`config.log' for more details." >&2;}
3450 { (exit 1); exit 1; }; }
3451fi
3452
3453rm -f conftest.$ac_cv_objext conftest.$ac_ext
3454fi
3455echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3456echo "${ECHO_T}$ac_cv_objext" >&6
3457OBJEXT=$ac_cv_objext
3458ac_objext=$OBJEXT
3459echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3460echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3461if test "${ac_cv_c_compiler_gnu+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463else
3464 cat >conftest.$ac_ext <<_ACEOF
3465/* confdefs.h. */
3466_ACEOF
3467cat confdefs.h >>conftest.$ac_ext
3468cat >>conftest.$ac_ext <<_ACEOF
3469/* end confdefs.h. */
3470
3471int
3472main ()
3473{
3474#ifndef __GNUC__
3475 choke me
3476#endif
3477
3478 ;
3479 return 0;
3480}
3481_ACEOF
3482rm -f conftest.$ac_objext
3483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3484 (eval $ac_compile) 2>conftest.er1
3485 ac_status=$?
3486 grep -v '^ *+' conftest.er1 >conftest.err
3487 rm -f conftest.er1
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } &&
3491 { ac_try='test -z "$ac_c_werror_flag"
3492 || test ! -s conftest.err'
3493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 (eval $ac_try) 2>&5
3495 ac_status=$?
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; } &&
3498 { ac_try='test -s conftest.$ac_objext'
3499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 (eval $ac_try) 2>&5
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; }; then
3504 ac_compiler_gnu=yes
3505else
3506 echo "$as_me: failed program was:" >&5
3507sed 's/^/| /' conftest.$ac_ext >&5
3508
3509ac_compiler_gnu=no
3510fi
3511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3512ac_cv_c_compiler_gnu=$ac_compiler_gnu
3513
3514fi
3515echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3516echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3517GCC=`test $ac_compiler_gnu = yes && echo yes`
3518ac_test_CFLAGS=${CFLAGS+set}
3519ac_save_CFLAGS=$CFLAGS
3520CFLAGS="-g"
3521echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3522echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3523if test "${ac_cv_prog_cc_g+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3525else
3526 cat >conftest.$ac_ext <<_ACEOF
3527/* confdefs.h. */
3528_ACEOF
3529cat confdefs.h >>conftest.$ac_ext
3530cat >>conftest.$ac_ext <<_ACEOF
3531/* end confdefs.h. */
3532
3533int
3534main ()
3535{
3536
3537 ;
3538 return 0;
3539}
3540_ACEOF
3541rm -f conftest.$ac_objext
3542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543 (eval $ac_compile) 2>conftest.er1
3544 ac_status=$?
3545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } &&
3550 { ac_try='test -z "$ac_c_werror_flag"
3551 || test ! -s conftest.err'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; } &&
3557 { ac_try='test -s conftest.$ac_objext'
3558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 (eval $ac_try) 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
9e07f89d
NN
3563 ac_cv_prog_cc_g=yes
3564else
c6b750e1
DJ
3565 echo "$as_me: failed program was:" >&5
3566sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3567
c6b750e1 3568ac_cv_prog_cc_g=no
376a0e54 3569fi
c6b750e1
DJ
3570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3571fi
3572echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3573echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3574if test "$ac_test_CFLAGS" = set; then
c6b750e1 3575 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3576elif test $ac_cv_prog_cc_g = yes; then
3577 if test "$GCC" = yes; then
3578 CFLAGS="-g -O2"
3579 else
3580 CFLAGS="-g"
3581 fi
3582else
3583 if test "$GCC" = yes; then
3584 CFLAGS="-O2"
3585 else
3586 CFLAGS=
3587 fi
3588fi
c6b750e1
DJ
3589echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3590echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3591if test "${ac_cv_prog_cc_stdc+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3593else
3594 ac_cv_prog_cc_stdc=no
3595ac_save_CC=$CC
3596cat >conftest.$ac_ext <<_ACEOF
3597/* confdefs.h. */
3598_ACEOF
3599cat confdefs.h >>conftest.$ac_ext
3600cat >>conftest.$ac_ext <<_ACEOF
3601/* end confdefs.h. */
3602#include <stdarg.h>
3603#include <stdio.h>
3604#include <sys/types.h>
3605#include <sys/stat.h>
3606/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3607struct buf { int x; };
3608FILE * (*rcsopen) (struct buf *, struct stat *, int);
3609static char *e (p, i)
3610 char **p;
3611 int i;
3612{
3613 return p[i];
3614}
3615static char *f (char * (*g) (char **, int), char **p, ...)
3616{
3617 char *s;
3618 va_list v;
3619 va_start (v,p);
3620 s = g (p, va_arg (v,int));
3621 va_end (v);
3622 return s;
3623}
3624
3625/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3626 function prototypes and stuff, but not '\xHH' hex character constants.
3627 These don't provoke an error unfortunately, instead are silently treated
3628 as 'x'. The following induces an error, until -std1 is added to get
3629 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3630 array size at least. It's necessary to write '\x00'==0 to get something
3631 that's true only with -std1. */
3632int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3633
3634int test (int i, double x);
3635struct s1 {int (*f) (int a);};
3636struct s2 {int (*f) (double a);};
3637int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3638int argc;
3639char **argv;
3640int
3641main ()
3642{
3643return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3644 ;
3645 return 0;
3646}
3647_ACEOF
3648# Don't try gcc -ansi; that turns off useful extensions and
3649# breaks some systems' header files.
3650# AIX -qlanglvl=ansi
3651# Ultrix and OSF/1 -std1
3652# HP-UX 10.20 and later -Ae
3653# HP-UX older versions -Aa -D_HPUX_SOURCE
3654# SVR4 -Xc -D__EXTENSIONS__
3655for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3656do
3657 CC="$ac_save_CC $ac_arg"
3658 rm -f conftest.$ac_objext
3659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try='test -z "$ac_c_werror_flag"
3668 || test ! -s conftest.err'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try='test -s conftest.$ac_objext'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 (eval $ac_try) 2>&5
3677 ac_status=$?
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3680 ac_cv_prog_cc_stdc=$ac_arg
3681break
3682else
3683 echo "$as_me: failed program was:" >&5
3684sed 's/^/| /' conftest.$ac_ext >&5
3685
3686fi
3687rm -f conftest.err conftest.$ac_objext
3688done
3689rm -f conftest.$ac_ext conftest.$ac_objext
3690CC=$ac_save_CC
3691
3692fi
3693
3694case "x$ac_cv_prog_cc_stdc" in
3695 x|xno)
3696 echo "$as_me:$LINENO: result: none needed" >&5
3697echo "${ECHO_T}none needed" >&6 ;;
3698 *)
3699 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3700echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3701 CC="$CC $ac_cv_prog_cc_stdc" ;;
3702esac
3703
3704# Some people use a C++ compiler to compile C. Since we use `exit',
3705# in C++ we need to declare it. In case someone uses the same compiler
3706# for both compiling C and C++ we need to have the C++ compiler decide
3707# the declaration of exit, since it's the most demanding environment.
3708cat >conftest.$ac_ext <<_ACEOF
3709#ifndef __cplusplus
3710 choke me
3711#endif
3712_ACEOF
3713rm -f conftest.$ac_objext
3714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3715 (eval $ac_compile) 2>conftest.er1
3716 ac_status=$?
3717 grep -v '^ *+' conftest.er1 >conftest.err
3718 rm -f conftest.er1
3719 cat conftest.err >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } &&
3722 { ac_try='test -z "$ac_c_werror_flag"
3723 || test ! -s conftest.err'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 (eval $ac_try) 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; } &&
3729 { ac_try='test -s conftest.$ac_objext'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 (eval $ac_try) 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 for ac_declaration in \
3736 '' \
3737 'extern "C" void std::exit (int) throw (); using std::exit;' \
3738 'extern "C" void std::exit (int); using std::exit;' \
3739 'extern "C" void exit (int) throw ();' \
3740 'extern "C" void exit (int);' \
3741 'void exit (int);'
3742do
3743 cat >conftest.$ac_ext <<_ACEOF
3744/* confdefs.h. */
3745_ACEOF
3746cat confdefs.h >>conftest.$ac_ext
3747cat >>conftest.$ac_ext <<_ACEOF
3748/* end confdefs.h. */
3749$ac_declaration
3750#include <stdlib.h>
3751int
3752main ()
3753{
3754exit (42);
3755 ;
3756 return 0;
3757}
3758_ACEOF
3759rm -f conftest.$ac_objext
3760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3761 (eval $ac_compile) 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -z "$ac_c_werror_flag"
3769 || test ! -s conftest.err'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 (eval $ac_try) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; } &&
3775 { ac_try='test -s conftest.$ac_objext'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3781 :
3782else
3783 echo "$as_me: failed program was:" >&5
3784sed 's/^/| /' conftest.$ac_ext >&5
3785
3786continue
3787fi
3788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3789 cat >conftest.$ac_ext <<_ACEOF
3790/* confdefs.h. */
3791_ACEOF
3792cat confdefs.h >>conftest.$ac_ext
3793cat >>conftest.$ac_ext <<_ACEOF
3794/* end confdefs.h. */
3795$ac_declaration
3796int
3797main ()
3798{
3799exit (42);
3800 ;
3801 return 0;
3802}
3803_ACEOF
3804rm -f conftest.$ac_objext
3805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3806 (eval $ac_compile) 2>conftest.er1
3807 ac_status=$?
3808 grep -v '^ *+' conftest.er1 >conftest.err
3809 rm -f conftest.er1
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } &&
3813 { ac_try='test -z "$ac_c_werror_flag"
3814 || test ! -s conftest.err'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 (eval $ac_try) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; } &&
3820 { ac_try='test -s conftest.$ac_objext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 break
3827else
3828 echo "$as_me: failed program was:" >&5
3829sed 's/^/| /' conftest.$ac_ext >&5
3830
3831fi
3832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3833done
3834rm -f conftest*
3835if test -n "$ac_declaration"; then
3836 echo '#ifdef __cplusplus' >>confdefs.h
3837 echo $ac_declaration >>confdefs.h
3838 echo '#endif' >>confdefs.h
3839fi
3840
3841else
3842 echo "$as_me: failed program was:" >&5
3843sed 's/^/| /' conftest.$ac_ext >&5
3844
3845fi
3846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3847ac_ext=c
3848ac_cpp='$CPP $CPPFLAGS'
3849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3852
18f6b6ee
PB
3853ac_ext=cc
3854ac_cpp='$CXXCPP $CPPFLAGS'
3855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3858if test -n "$ac_tool_prefix"; then
3859 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3860 do
3861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3862set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3863echo "$as_me:$LINENO: checking for $ac_word" >&5
3864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3865if test "${ac_cv_prog_CXX+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868 if test -n "$CXX"; then
3869 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3870else
3871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872for as_dir in $PATH
3873do
3874 IFS=$as_save_IFS
3875 test -z "$as_dir" && as_dir=.
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 break 2
3881 fi
3882done
3883done
512b7dfb 3884
18f6b6ee
PB
3885fi
3886fi
3887CXX=$ac_cv_prog_CXX
3888if test -n "$CXX"; then
3889 echo "$as_me:$LINENO: result: $CXX" >&5
3890echo "${ECHO_T}$CXX" >&6
3891else
3892 echo "$as_me:$LINENO: result: no" >&5
3893echo "${ECHO_T}no" >&6
3894fi
3895
3896 test -n "$CXX" && break
3897 done
3898fi
3899if test -z "$CXX"; then
3900 ac_ct_CXX=$CXX
3901 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3902do
3903 # Extract the first word of "$ac_prog", so it can be a program name with args.
3904set dummy $ac_prog; ac_word=$2
3905echo "$as_me:$LINENO: checking for $ac_word" >&5
3906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3909else
3910 if test -n "$ac_ct_CXX"; then
3911 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3912else
3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_prog_ac_ct_CXX="$ac_prog"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
512b7dfb 3923 fi
18f6b6ee
PB
3924done
3925done
512b7dfb 3926
18f6b6ee
PB
3927fi
3928fi
3929ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3930if test -n "$ac_ct_CXX"; then
3931 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3932echo "${ECHO_T}$ac_ct_CXX" >&6
3933else
3934 echo "$as_me:$LINENO: result: no" >&5
3935echo "${ECHO_T}no" >&6
3936fi
3937
3938 test -n "$ac_ct_CXX" && break
3939done
3940test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3941
3942 CXX=$ac_ct_CXX
3943fi
3944
3945
3946# Provide some information about the compiler.
3947echo "$as_me:$LINENO:" \
3948 "checking for C++ compiler version" >&5
3949ac_compiler=`set X $ac_compile; echo $2`
3950{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3951 (eval $ac_compiler --version </dev/null >&5) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }
3955{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3956 (eval $ac_compiler -v </dev/null >&5) 2>&5
3957 ac_status=$?
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }
3960{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3961 (eval $ac_compiler -V </dev/null >&5) 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }
3965
3966echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3967echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3968if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970else
3971 cat >conftest.$ac_ext <<_ACEOF
3972/* confdefs.h. */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
3976/* end confdefs.h. */
3977
3978int
3979main ()
3980{
3981#ifndef __GNUC__
3982 choke me
3983#endif
3984
3985 ;
3986 return 0;
3987}
3988_ACEOF
3989rm -f conftest.$ac_objext
3990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3991 (eval $ac_compile) 2>conftest.er1
3992 ac_status=$?
3993 grep -v '^ *+' conftest.er1 >conftest.err
3994 rm -f conftest.er1
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } &&
3998 { ac_try='test -z "$ac_cxx_werror_flag"
3999 || test ! -s conftest.err'
4000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 (eval $ac_try) 2>&5
4002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); }; } &&
4005 { ac_try='test -s conftest.$ac_objext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_compiler_gnu=yes
4012else
4013 echo "$as_me: failed program was:" >&5
4014sed 's/^/| /' conftest.$ac_ext >&5
4015
4016ac_compiler_gnu=no
4017fi
4018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4019ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4020
4021fi
4022echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4023echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4024GXX=`test $ac_compiler_gnu = yes && echo yes`
4025ac_test_CXXFLAGS=${CXXFLAGS+set}
4026ac_save_CXXFLAGS=$CXXFLAGS
4027CXXFLAGS="-g"
4028echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4029echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4030if test "${ac_cv_prog_cxx_g+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032else
4033 cat >conftest.$ac_ext <<_ACEOF
4034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
4039
4040int
4041main ()
4042{
4043
4044 ;
4045 return 0;
4046}
4047_ACEOF
4048rm -f conftest.$ac_objext
4049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050 (eval $ac_compile) 2>conftest.er1
4051 ac_status=$?
4052 grep -v '^ *+' conftest.er1 >conftest.err
4053 rm -f conftest.er1
4054 cat conftest.err >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } &&
4057 { ac_try='test -z "$ac_cxx_werror_flag"
4058 || test ! -s conftest.err'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060 (eval $ac_try) 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; } &&
4064 { ac_try='test -s conftest.$ac_objext'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 (eval $ac_try) 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4070 ac_cv_prog_cxx_g=yes
4071else
4072 echo "$as_me: failed program was:" >&5
4073sed 's/^/| /' conftest.$ac_ext >&5
4074
4075ac_cv_prog_cxx_g=no
4076fi
4077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4078fi
4079echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4080echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4081if test "$ac_test_CXXFLAGS" = set; then
4082 CXXFLAGS=$ac_save_CXXFLAGS
4083elif test $ac_cv_prog_cxx_g = yes; then
4084 if test "$GXX" = yes; then
4085 CXXFLAGS="-g -O2"
4086 else
4087 CXXFLAGS="-g"
4088 fi
4089else
4090 if test "$GXX" = yes; then
4091 CXXFLAGS="-O2"
4092 else
4093 CXXFLAGS=
4094 fi
4095fi
4096for ac_declaration in \
4097 '' \
4098 'extern "C" void std::exit (int) throw (); using std::exit;' \
4099 'extern "C" void std::exit (int); using std::exit;' \
4100 'extern "C" void exit (int) throw ();' \
4101 'extern "C" void exit (int);' \
4102 'void exit (int);'
4103do
4104 cat >conftest.$ac_ext <<_ACEOF
4105/* confdefs.h. */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h. */
4110$ac_declaration
4111#include <stdlib.h>
4112int
4113main ()
4114{
4115exit (42);
4116 ;
4117 return 0;
4118}
4119_ACEOF
4120rm -f conftest.$ac_objext
4121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>conftest.er1
4123 ac_status=$?
4124 grep -v '^ *+' conftest.er1 >conftest.err
4125 rm -f conftest.er1
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } &&
4129 { ac_try='test -z "$ac_cxx_werror_flag"
4130 || test ! -s conftest.err'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 (eval $ac_try) 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138 (eval $ac_try) 2>&5
4139 ac_status=$?
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
4142 :
4143else
4144 echo "$as_me: failed program was:" >&5
4145sed 's/^/| /' conftest.$ac_ext >&5
4146
4147continue
4148fi
4149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4150 cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h. */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h. */
4156$ac_declaration
4157int
4158main ()
4159{
4160exit (42);
4161 ;
4162 return 0;
4163}
4164_ACEOF
4165rm -f conftest.$ac_objext
4166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4167 (eval $ac_compile) 2>conftest.er1
4168 ac_status=$?
4169 grep -v '^ *+' conftest.er1 >conftest.err
4170 rm -f conftest.er1
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -z "$ac_cxx_werror_flag"
4175 || test ! -s conftest.err'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 (eval $ac_try) 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 (eval $ac_try) 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4187 break
4188else
4189 echo "$as_me: failed program was:" >&5
4190sed 's/^/| /' conftest.$ac_ext >&5
4191
4192fi
4193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4194done
4195rm -f conftest*
4196if test -n "$ac_declaration"; then
4197 echo '#ifdef __cplusplus' >>confdefs.h
4198 echo $ac_declaration >>confdefs.h
4199 echo '#endif' >>confdefs.h
4200fi
4201
4202ac_ext=c
4203ac_cpp='$CPP $CPPFLAGS'
4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207
4208
4209# We must set the default linker to the linker used by gcc for the correct
4210# operation of libtool. If LD is not defined and we are using gcc, try to
4211# set the LD default to the ld used by gcc.
4212if test -z "$LD"; then
4213 if test "$GCC" = yes; then
4214 case $build in
4215 *-*-mingw*)
4216 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4217 *)
4218 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4219 esac
4220 case $gcc_prog_ld in
4221 # Accept absolute paths.
4222 [\\/]* | [A-Za-z]:[\\/]*)
4223 LD="$gcc_prog_ld" ;;
4224 esac
4225 fi
512b7dfb
PB
4226fi
4227
4228
4229
4230
c6b750e1 4231if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4232 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4233set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4234echo "$as_me:$LINENO: checking for $ac_word" >&5
4235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4236if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4237 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4238else
512b7dfb
PB
4239 if test -n "$GNATBIND"; then
4240 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4241else
c6b750e1
DJ
4242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4249 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4252 fi
4253done
4254done
4255
9e07f89d
NN
4256fi
4257fi
512b7dfb
PB
4258GNATBIND=$ac_cv_prog_GNATBIND
4259if test -n "$GNATBIND"; then
4260 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4261echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4262else
c6b750e1
DJ
4263 echo "$as_me:$LINENO: result: no" >&5
4264echo "${ECHO_T}no" >&6
9e07f89d
NN
4265fi
4266
c6b750e1 4267fi
512b7dfb
PB
4268if test -z "$ac_cv_prog_GNATBIND"; then
4269 ac_ct_GNATBIND=$GNATBIND
4270 # Extract the first word of "gnatbind", so it can be a program name with args.
4271set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4272echo "$as_me:$LINENO: checking for $ac_word" >&5
4273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4274if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4275 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4276else
512b7dfb
PB
4277 if test -n "$ac_ct_GNATBIND"; then
4278 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4279else
c6b750e1
DJ
4280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281for as_dir in $PATH
4282do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4287 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4290 fi
4291done
4292done
4293
512b7dfb 4294 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4295fi
4296fi
512b7dfb
PB
4297ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4298if test -n "$ac_ct_GNATBIND"; then
4299 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4300echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4301else
c6b750e1
DJ
4302 echo "$as_me:$LINENO: result: no" >&5
4303echo "${ECHO_T}no" >&6
9e07f89d
NN
4304fi
4305
512b7dfb 4306 GNATBIND=$ac_ct_GNATBIND
24ff9987 4307else
512b7dfb 4308 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4309fi
4310
7df2cd5d 4311if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4312 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4313set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4314echo "$as_me:$LINENO: checking for $ac_word" >&5
4315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4316if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4318else
512b7dfb
PB
4319 if test -n "$GNATMAKE"; then
4320 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4321else
4322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323for as_dir in $PATH
4324do
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4329 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 break 2
4332 fi
4333done
4334done
4335
4336fi
4337fi
512b7dfb
PB
4338GNATMAKE=$ac_cv_prog_GNATMAKE
4339if test -n "$GNATMAKE"; then
4340 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4341echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4342else
4343 echo "$as_me:$LINENO: result: no" >&5
4344echo "${ECHO_T}no" >&6
4345fi
4346
4347fi
512b7dfb
PB
4348if test -z "$ac_cv_prog_GNATMAKE"; then
4349 ac_ct_GNATMAKE=$GNATMAKE
4350 # Extract the first word of "gnatmake", so it can be a program name with args.
4351set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4352echo "$as_me:$LINENO: checking for $ac_word" >&5
4353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4354if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
512b7dfb
PB
4357 if test -n "$ac_ct_GNATMAKE"; then
4358 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4359else
4360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361for as_dir in $PATH
4362do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4367 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4370 fi
4371done
4372done
4373
512b7dfb 4374 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4375fi
4376fi
512b7dfb
PB
4377ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4378if test -n "$ac_ct_GNATMAKE"; then
4379 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4380echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4381else
4382 echo "$as_me:$LINENO: result: no" >&5
4383echo "${ECHO_T}no" >&6
4384fi
4385
512b7dfb 4386 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4387else
512b7dfb 4388 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4389fi
4390
c6b750e1
DJ
4391echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4392echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4393if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4395else
4396 cat >conftest.adb <<EOF
4397procedure conftest is begin null; end conftest;
4398EOF
4399acx_cv_cc_gcc_supports_ada=no
4400# There is a bug in old released versions of GCC which causes the
4401# driver to exit successfully when the appropriate language module
4402# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4403# Therefore we must check for the error message as well as an
4404# unsuccessful exit.
b8908782
DD
4405# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4406# given a .adb file, but produce no object file. So we must check
4407# if an object file was really produced to guard against this.
9e07f89d 4408errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4409if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4410 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4411fi
4412rm -f conftest.*
4413fi
c6b750e1
DJ
4414echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4415echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4416
512b7dfb 4417if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4418 have_gnat=yes
4419else
4420 have_gnat=no
4421fi
4422
c6b750e1
DJ
4423echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4424echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4425if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4427else
4428 echo abfoo >t1
4429 echo cdfoo >t2
4430 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4431 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4432 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4433 :
4434 else
4435 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4436 fi
4437 fi
b8908782
DD
4438 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4439 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4440 :
b8908782
DD
4441 else
4442 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4443 fi
4444 fi
4445 rm t1 t2
4446
4447fi
c6b750e1
DJ
4448echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4449echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4450do_compare="$gcc_cv_prog_cmp_skip"
4451
4452
9e07f89d 4453
11b04d1f 4454# Check for GMP and MPFR
4b900473 4455gmplibs="-lmpfr -lgmp"
4b1cb4fe 4456gmpinc=
4b900473
PB
4457have_gmp=no
4458
11b04d1f
DD
4459# Specify a location for mpfr
4460# check for this first so it ends up on the link line before gmp.
c6b750e1 4461
11b04d1f
DD
4462# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4463if test "${with_mpfr_dir+set}" = set; then
4464 withval="$with_mpfr_dir"
c6b750e1
DJ
4465 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4466Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4467echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4468Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4469 { (exit 1); exit 1; }; }
4470fi;
11b04d1f
DD
4471
4472
11b04d1f
DD
4473# Check whether --with-mpfr or --without-mpfr was given.
4474if test "${with_mpfr+set}" = set; then
4475 withval="$with_mpfr"
c6b750e1
DJ
4476
4477fi;
11b04d1f 4478
8a0d8a5c
PB
4479# Check whether --with-mpfr_include or --without-mpfr_include was given.
4480if test "${with_mpfr_include+set}" = set; then
4481 withval="$with_mpfr_include"
c6b750e1
DJ
4482
4483fi;
8a0d8a5c
PB
4484
4485# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4486if test "${with_mpfr_lib+set}" = set; then
4487 withval="$with_mpfr_lib"
8a0d8a5c 4488
c6b750e1 4489fi;
11b04d1f
DD
4490
4491if test "x$with_mpfr" != x; then
4492 gmplibs="-L$with_mpfr/lib $gmplibs"
4493 gmpinc="-I$with_mpfr/include"
4494fi
8a0d8a5c
PB
4495if test "x$with_mpfr_include" != x; then
4496 gmpinc="-I$with_mpfr_include"
4497fi
4498if test "x$with_mpfr_lib" != x; then
4499 gmplibs="-L$with_mpfr_lib $gmplibs"
4500fi
4b900473
PB
4501if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4502 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4503 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4504 # Do not test the mpfr version. Assume that it is sufficient, since
4505 # it is in the source tree, and the library has not been built yet
4506 # but it would be included on the link line in the version check below
4507 # hence making the test fail.
4508 have_gmp=yes
4509fi
11b04d1f 4510
4b1cb4fe 4511# Specify a location for gmp
c6b750e1 4512
4b1cb4fe
DD
4513# Check whether --with-gmp-dir or --without-gmp-dir was given.
4514if test "${with_gmp_dir+set}" = set; then
4515 withval="$with_gmp_dir"
c6b750e1
DJ
4516 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4517Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4518echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4519Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4520 { (exit 1); exit 1; }; }
4521fi;
4b1cb4fe
DD
4522
4523
4b1cb4fe
DD
4524# Check whether --with-gmp or --without-gmp was given.
4525if test "${with_gmp+set}" = set; then
4526 withval="$with_gmp"
c6b750e1
DJ
4527
4528fi;
4b1cb4fe 4529
8a0d8a5c
PB
4530# Check whether --with-gmp_include or --without-gmp_include was given.
4531if test "${with_gmp_include+set}" = set; then
4532 withval="$with_gmp_include"
c6b750e1
DJ
4533
4534fi;
8a0d8a5c
PB
4535
4536# Check whether --with-gmp_lib or --without-gmp_lib was given.
4537if test "${with_gmp_lib+set}" = set; then
4538 withval="$with_gmp_lib"
8a0d8a5c 4539
c6b750e1 4540fi;
8a0d8a5c 4541
4b1cb4fe 4542
11b04d1f
DD
4543if test "x$with_gmp" != x; then
4544 gmplibs="-L$with_gmp/lib $gmplibs"
4545 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4546fi
8a0d8a5c
PB
4547if test "x$with_gmp_include" != x; then
4548 gmpinc="-I$with_gmp_include $gmpinc"
4549fi
4550if test "x$with_gmp_lib" != x; then
4551 gmplibs="-L$with_gmp_lib $gmplibs"
4552fi
4b900473
PB
4553if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4554 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4555 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4556 # Do not test the gmp version. Assume that it is sufficient, since
4557 # it is in the source tree, and the library has not been built yet
4558 # but it would be included on the link line in the version check below
4559 # hence making the test fail.
4560 have_gmp=yes
4561fi
4b1cb4fe 4562
ceb92e78 4563if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4564 have_gmp=yes
4565 saved_CFLAGS="$CFLAGS"
4566 CFLAGS="$CFLAGS $gmpinc"
4567 # Check GMP actually works
c6b750e1
DJ
4568 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4569echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4570
4571cat >conftest.$ac_ext <<_ACEOF
4572/* confdefs.h. */
4573_ACEOF
4574cat confdefs.h >>conftest.$ac_ext
4575cat >>conftest.$ac_ext <<_ACEOF
4576/* end confdefs.h. */
4b1cb4fe 4577#include "gmp.h"
c6b750e1
DJ
4578int
4579main ()
4580{
4b1cb4fe 4581
4b900473
PB
4582 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4583 choke me
4584 #endif
c6b750e1
DJ
4585
4586 ;
4587 return 0;
4588}
4589_ACEOF
4590rm -f conftest.$ac_objext
4591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4592 (eval $ac_compile) 2>conftest.er1
4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try='test -z "$ac_c_werror_flag"
4600 || test ! -s conftest.err'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; } &&
4606 { ac_try='test -s conftest.$ac_objext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 echo "$as_me:$LINENO: result: yes" >&5
4613echo "${ECHO_T}yes" >&6
4614else
4615 echo "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618echo "$as_me:$LINENO: result: no" >&5
4619echo "${ECHO_T}no" >&6; have_gmp=no
4620fi
4621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4622
4b900473
PB
4623 if test x"$have_gmp" = xyes; then
4624 saved_LIBS="$LIBS"
4625 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4626 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4627echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4628 cat >conftest.$ac_ext <<_ACEOF
4629/* confdefs.h. */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h. */
9b134994 4634#include <gmp.h>
4b900473 4635 #include <mpfr.h>
c6b750e1
DJ
4636int
4637main ()
4638{
9b134994 4639
57c53b2b 4640 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4b900473
PB
4641 choke me
4642 #endif
a3ca38d2
DD
4643 mpfr_t n;
4644 mpfr_t x;
4b900473 4645 int t;
a3ca38d2
DD
4646 mpfr_init (n);
4647 mpfr_init (x);
4b900473
PB
4648 mpfr_atan2 (n, n, x, GMP_RNDN);
4649 mpfr_erfc (n, x, GMP_RNDN);
4650 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4651
4652 ;
4653 return 0;
4654}
4655_ACEOF
4656rm -f conftest.$ac_objext conftest$ac_exeext
4657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4658 (eval $ac_link) 2>conftest.er1
4659 ac_status=$?
4660 grep -v '^ *+' conftest.er1 >conftest.err
4661 rm -f conftest.er1
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -z "$ac_c_werror_flag"
4666 || test ! -s conftest.err'
4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 (eval $ac_try) 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; } &&
4672 { ac_try='test -s conftest$ac_exeext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 (eval $ac_try) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 cat >conftest.$ac_ext <<_ACEOF
4679/* confdefs.h. */
4680_ACEOF
4681cat confdefs.h >>conftest.$ac_ext
4682cat >>conftest.$ac_ext <<_ACEOF
4683/* end confdefs.h. */
4b1cb4fe 4684#include <gmp.h>
4b900473 4685 #include <mpfr.h>
c6b750e1
DJ
4686int
4687main ()
4688{
9dbaa842 4689
57c53b2b 4690 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4b900473
PB
4691 choke me
4692 #endif
4693 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4694
4695 ;
4696 return 0;
4697}
4698_ACEOF
4699rm -f conftest.$ac_objext conftest$ac_exeext
4700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4701 (eval $ac_link) 2>conftest.er1
4702 ac_status=$?
4703 grep -v '^ *+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try='test -z "$ac_c_werror_flag"
4709 || test ! -s conftest.err'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 (eval $ac_try) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; } &&
4715 { ac_try='test -s conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 echo "$as_me:$LINENO: result: yes" >&5
4722echo "${ECHO_T}yes" >&6
4723else
4724 echo "$as_me: failed program was:" >&5
4725sed 's/^/| /' conftest.$ac_ext >&5
4726
4727echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4728echo "${ECHO_T}buggy but acceptable" >&6
4729fi
4730rm -f conftest.err conftest.$ac_objext \
4731 conftest$ac_exeext conftest.$ac_ext
4732else
4733 echo "$as_me: failed program was:" >&5
4734sed 's/^/| /' conftest.$ac_ext >&5
4735
4736echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6; have_gmp=no
4738fi
4739rm -f conftest.err conftest.$ac_objext \
4740 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4741 LIBS="$saved_LIBS"
4742 fi
4743 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4744
4b900473 4745 if test x$have_gmp != xyes; then
57c53b2b 4746 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
c6b750e1
DJ
4747Try the --with-gmp and/or --with-mpfr options to specify their locations.
4748Copies of these libraries' source code can be found at their respective
4749hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4750See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4751If you obtained GMP and/or MPFR from a vendor distribution package, make
4752sure that you have installed both the libraries and the header files.
4753They may be located in separate packages." >&5
57c53b2b 4754echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
9dbaa842
DD
4755Try the --with-gmp and/or --with-mpfr options to specify their locations.
4756Copies of these libraries' source code can be found at their respective
4757hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4758See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4759If you obtained GMP and/or MPFR from a vendor distribution package, make
4760sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4761They may be located in separate packages." >&2;}
4762 { (exit 1); exit 1; }; }
4b900473 4763 fi
9dbaa842
DD
4764fi
4765
11b04d1f 4766# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4767
4768
4769
947f426e 4770# By default, C is the only stage 1 language.
9b134994 4771stage1_languages=,c,
1d39f329 4772
9e07f89d
NN
4773# Figure out what language subdirectories are present.
4774# Look if the user specified --enable-languages="..."; if not, use
4775# the environment variable $LANGUAGES if defined. $LANGUAGES might
4776# go away some day.
4777# NB: embedded tabs in this IF block -- do not untabify
4778if test -d ${srcdir}/gcc; then
4779 if test x"${enable_languages+set}" != xset; then
4780 if test x"${LANGUAGES+set}" = xset; then
4781 enable_languages="${LANGUAGES}"
4782 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4783 else
4784 enable_languages=all
4785 fi
4786 else
4787 if test x"${enable_languages}" = x ||
4788 test x"${enable_languages}" = xyes;
4789 then
4790 echo configure.in: --enable-languages needs at least one language argument 1>&2
4791 exit 1
4792 fi
4793 fi
4794 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4795
096f7d00
DE
4796 # 'f95' is the old name for the 'fortran' language. We issue a warning
4797 # and make the substitution.
4798 case ,${enable_languages}, in
4799 *,f95,*)
4800 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4801 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4802 ;;
4803 esac
4804
9e07f89d
NN
4805 # First scan to see if an enabled language requires some other language.
4806 # We assume that a given config-lang.in will list all the language
4807 # front ends it requires, even if some are required indirectly.
4808 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4809 case ${lang_frag} in
4810 ..) ;;
4811 # The odd quoting in the next line works around
4812 # an apparent bug in bash 1.12 on linux.
4813 ${srcdir}/gcc/[*]/config-lang.in) ;;
4814 *)
4815 # From the config-lang.in, get $language, $lang_requires
4816 language=
4817 lang_requires=
4818 . ${lang_frag}
4819 for other in ${lang_requires} ; do
4820 case ,${enable_languages}, in
4821 *,$other,*) ;;
4822 *,all,*) ;;
4823 *,$language,*)
4824 echo " \`$other' language required by \`$language'; enabling" 1>&2
4825 enable_languages="${enable_languages},${other}"
4826 ;;
4827 esac
4828 done
4829 ;;
4830 esac
4831 done
4832
9b134994 4833 new_enable_languages=,c,
9e07f89d 4834 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4835 potential_languages=,c,
9e07f89d
NN
4836
4837 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4838 case ${lang_frag} in
4839 ..) ;;
4840 # The odd quoting in the next line works around
4841 # an apparent bug in bash 1.12 on linux.
4842 ${srcdir}/gcc/[*]/config-lang.in) ;;
4843 *)
c6b750e1 4844 # From the config-lang.in, get $language, $target_libs,
1d39f329 4845 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4846 language=
4847 target_libs=
4848 lang_dirs=
64ce424c 4849 subdir_requires=
9b134994
PB
4850 boot_language=no
4851 build_by_default=yes
9e07f89d 4852 . ${lang_frag}
9b134994
PB
4853 if test x${language} = x; then
4854 echo "${lang_frag} doesn't set \$language." 1>&2
4855 exit 1
4856 fi
4857
4858 case ,${enable_languages}, in
4859 *,${language},*)
9e07f89d
NN
4860 # Language was explicitly selected; include it.
4861 add_this_lang=yes
4862 ;;
9b134994
PB
4863 *,all,*)
4864 # 'all' was selected, select it if it is a default language
4865 add_this_lang=${build_by_default}
9e07f89d
NN
4866 ;;
4867 *)
4868 add_this_lang=no
4869 ;;
4870 esac
4b1cb4fe 4871
64ce424c 4872 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4873 for i in $subdir_requires; do
3d3adb43 4874 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4875 case ,${enable_languages}, in
4876 *,${language},*)
4877 # Specifically requested language; tell them.
c6b750e1
DJ
4878 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4879echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4880 { (exit 1); exit 1; }; }
64ce424c
PB
4881 ;;
4882 *)
4883 # Silently disable.
9b134994 4884 add_this_lang=unsupported
64ce424c
PB
4885 ;;
4886 esac
4887 done
4888
9b134994
PB
4889 # Disable Ada if no preexisting GNAT is available.
4890 case ,${enable_languages},:${language}:${have_gnat} in
4891 *,${language},*:ada:no)
4892 # Specifically requested language; tell them.
c6b750e1
DJ
4893 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4894echo "$as_me: error: GNAT is required to build $language" >&2;}
4895 { (exit 1); exit 1; }; }
9b134994
PB
4896 ;;
4897 *:ada:no)
4898 # Silently disable.
4899 add_this_lang=unsupported
4900 ;;
4901 esac
4902
59f7ec45
HPN
4903 # Disable a language that is unsupported by the target.
4904 case " $unsupported_languages " in
4905 *" $language "*)
9b134994 4906 add_this_lang=unsupported
59f7ec45
HPN
4907 ;;
4908 esac
4909
4b1cb4fe 4910 case $add_this_lang in
9b134994 4911 unsupported)
9e07f89d 4912 # Remove language-dependent dirs.
1d39f329
NN
4913 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4914 ;;
9b134994
PB
4915 no)
4916 # Remove language-dependent dirs; still show language as supported.
4917 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4918 potential_languages="${potential_languages}${language},"
4919 ;;
4920 yes)
4921 new_enable_languages="${new_enable_languages}${language},"
4922 potential_languages="${potential_languages}${language},"
1d39f329
NN
4923 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4924 case ${boot_language} in
4925 yes)
4fa63067 4926 # Add to (comma-separated) list of stage 1 languages.
9b134994 4927 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4928 ;;
4929 esac
4930 ;;
9e07f89d
NN
4931 esac
4932 ;;
4933 esac
4934 done
4935
9b134994
PB
4936 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4937if test "${enable_stage1_languages+set}" = set; then
4938 enableval="$enable_stage1_languages"
4939 case ,${enable_stage1_languages}, in
4940 ,no,|,,)
4941 # Set it to something that will have no effect in the loop below
4942 enable_stage1_languages=c ;;
4943 ,yes,)
4944 enable_stage1_languages=`echo $new_enable_languages | \
4945 sed -e "s/^,//" -e "s/,$//" ` ;;
4946 *,all,*)
4947 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4948 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4949 esac
4950
4951 # Add "good" languages from enable_stage1_languages to stage1_languages,
4952 # while "bad" languages go in missing_languages. Leave no duplicates.
4953 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4954 case $potential_languages in
4955 *,$i,*)
4956 case $stage1_languages in
4957 *,$i,*) ;;
4958 *) stage1_languages="$stage1_languages$i," ;;
4959 esac ;;
4960 *)
4961 case $missing_languages in
4962 *,$i,*) ;;
4963 *) missing_languages="$missing_languages$i," ;;
4964 esac ;;
4965 esac
4966 done
c6b750e1 4967fi;
9b134994
PB
4968
4969 # Remove leading/trailing commas that were added for simplicity
4970 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4971 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4972 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4973 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4974
9e07f89d 4975 if test "x$missing_languages" != x; then
c6b750e1 4976 { { echo "$as_me:$LINENO: error:
27258dd4 4977The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4978Supported languages are: ${potential_languages}" >&5
4979echo "$as_me: error:
4980The following requested languages could not be built: ${missing_languages}
4981Supported languages are: ${potential_languages}" >&2;}
4982 { (exit 1); exit 1; }; }
9e07f89d 4983 fi
9e07f89d
NN
4984 if test "x$new_enable_languages" != "x$enable_languages"; then
4985 echo The following languages will be built: ${new_enable_languages}
9b134994 4986 enable_languages="$new_enable_languages"
9e07f89d 4987 fi
9b134994 4988
c6b750e1 4989
81ec575a 4990 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4991fi
4992
a6df5a19
PB
4993# Handle --disable-<component> generically.
4994for dir in $configdirs $build_configdirs $target_configdirs ; do
4995 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
4996 varname=`echo $dirname | sed -e s/+/_/g`
4997 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
4998 noconfigdirs="$noconfigdirs $dir"
4999 fi
5000done
5001
4f0ef2d8
CD
5002# Check for Boehm's garbage collector
5003# Check whether --enable-objc-gc or --disable-objc-gc was given.
5004if test "${enable_objc_gc+set}" = set; then
5005 enableval="$enable_objc_gc"
5006 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5007 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
5008 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5009echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5010 { (exit 1); exit 1; }; }
4f0ef2d8
CD
5011 ;;
5012esac
c6b750e1 5013fi;
4f0ef2d8
CD
5014
5015# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5016case ,${enable_languages},:${enable_objc_gc} in
5017 *,objc,*:yes)
4f0ef2d8
CD
5018 # Keep target-boehm-gc if requested for Objective-C.
5019 ;;
4f0ef2d8 5020 *)
d42c4017
DA
5021 # Otherwise remove target-boehm-gc depending on target-libjava.
5022 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5023 noconfigdirs="$noconfigdirs target-boehm-gc"
5024 fi
4f0ef2d8
CD
5025 ;;
5026esac
5027
caeba88f
AL
5028# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5029# $build_configdirs and $target_configdirs.
9e07f89d
NN
5030# If we have the source for $noconfigdirs entries, add them to $notsupp.
5031
5032notsupp=""
5033for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5034 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5035 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5036 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5037 if test -r $srcdir/$dirname/configure ; then
5038 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5039 true
5040 else
5041 notsupp="$notsupp $dir"
5042 fi
5043 fi
5044 fi
caeba88f
AL
5045 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5046 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5047 if test -r $srcdir/$dirname/configure ; then
5048 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5049 true
5050 else
5051 notsupp="$notsupp $dir"
5052 fi
5053 fi
5054 fi
9e07f89d
NN
5055 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5056 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5057 if test -r $srcdir/$dirname/configure ; then
5058 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5059 true
5060 else
5061 notsupp="$notsupp $dir"
5062 fi
5063 fi
5064 fi
5065done
5066
5067# Sometimes the tools are distributed with libiberty but with no other
5068# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5069# Don't let libgcc imply libiberty either.
9e07f89d 5070if test -n "${target_configdirs}" ; then
f86e35b8 5071 libgcc=
9e07f89d
NN
5072 others=
5073 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5074 if test "$i" = "libgcc"; then
5075 libgcc=target-libgcc
5076 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5077 if test -r $srcdir/$i/configure ; then
5078 others=yes;
5079 break;
5080 fi
5081 fi
5082 done
5083 if test -z "${others}" ; then
f86e35b8 5084 target_configdirs=$libgcc
9e07f89d
NN
5085 fi
5086fi
5087
5088# Quietly strip out all directories which aren't configurable in this tree.
5089# This relies on all configurable subdirectories being autoconfiscated, which
5090# is now the case.
6a9cf61e
PB
5091build_configdirs_all="$build_configdirs"
5092build_configdirs=
5093for i in ${build_configdirs_all} ; do
c6b750e1 5094 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5095 if test -f ${srcdir}/$j/configure ; then
5096 build_configdirs="${build_configdirs} $i"
5097 fi
5098done
5099
9e07f89d
NN
5100configdirs_all="$configdirs"
5101configdirs=
5102for i in ${configdirs_all} ; do
5103 if test -f ${srcdir}/$i/configure ; then
5104 configdirs="${configdirs} $i"
5105 fi
5106done
6a9cf61e 5107
9e07f89d
NN
5108target_configdirs_all="$target_configdirs"
5109target_configdirs=
5110for i in ${target_configdirs_all} ; do
c6b750e1 5111 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5112 if test -f ${srcdir}/$j/configure ; then
5113 target_configdirs="${target_configdirs} $i"
5114 fi
5115done
5116
5117# Produce a warning message for the subdirs we can't configure.
5118# This isn't especially interesting in the Cygnus tree, but in the individual
5119# FSF releases, it's important to let people know when their machine isn't
5120# supported by the one or two programs in a package.
5121
5122if test -n "${notsupp}" && test -z "${norecursion}" ; then
5123 # If $appdirs is non-empty, at least one of those directories must still
5124 # be configured, or we error out. (E.g., if the gas release supports a
5125 # specified target in some subdirs but not the gas subdir, we shouldn't
5126 # pretend that all is well.)
5127 if test -n "$appdirs" ; then
5128 for dir in $appdirs ; do
5129 if test -r $dir/Makefile.in ; then
5130 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5131 appdirs=""
5132 break
5133 fi
6a9cf61e 5134 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5135 appdirs=""
5136 break
5137 fi
5138 fi
5139 done
5140 if test -n "$appdirs" ; then
5141 echo "*** This configuration is not supported by this package." 1>&2
5142 exit 1
5143 fi
5144 fi
5145 # Okay, some application will build, or we don't care to check. Still
5146 # notify of subdirs not getting built.
5147 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5148 echo " ${notsupp}" 1>&2
5149 echo " (Any other directories should still work fine.)" 1>&2
5150fi
5151
5152case "$host" in
5153 *msdosdjgpp*)
5154 enable_gdbtk=no ;;
5155esac
5156
18f6b6ee
PB
5157# To find our prefix, in gcc_cv_tool_prefix.
5158
5159# The user is always right.
5160if test "${PATH_SEPARATOR+set}" != set; then
5161 echo "#! /bin/sh" >conf$$.sh
5162 echo "exit 0" >>conf$$.sh
5163 chmod +x conf$$.sh
5164 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5165 PATH_SEPARATOR=';'
5166 else
5167 PATH_SEPARATOR=:
5168 fi
5169 rm -f conf$$.sh
5170fi
5171
5172
5173
5174if test "x$exec_prefix" = xNONE; then
5175 if test "x$prefix" = xNONE; then
5176 gcc_cv_tool_prefix=$ac_default_prefix
5177 else
5178 gcc_cv_tool_prefix=$prefix
5179 fi
5180else
5181 gcc_cv_tool_prefix=$exec_prefix
5182fi
5183
5184# If there is no compiler in the tree, use the PATH only. In any
5185# case, if there is no compiler in the tree nobody should use
5186# AS_FOR_TARGET and LD_FOR_TARGET.
5187if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5188 gcc_version=`cat $srcdir/gcc/BASE-VER`
5189 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5190 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5191 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5192 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5193 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5194 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5195else
5196 gcc_cv_tool_dirs=
5197fi
5198
5199if test x$build = x$target && test -n "$md_exec_prefix"; then
5200 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5201fi
5202
5203
5204
9e07f89d
NN
5205copy_dirs=
5206
c6b750e1 5207
a19b6204
MM
5208# Check whether --with-build-sysroot or --without-build-sysroot was given.
5209if test "${with_build_sysroot+set}" = set; then
5210 withval="$with_build_sysroot"
5211 if test x"$withval" != x ; then
5212 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5213 fi
5214else
5215 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5216fi;
a19b6204
MM
5217
5218
8a6ee3ab
JM
5219
5220# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5221if test "${with_debug_prefix_map+set}" = set; then
5222 withval="$with_debug_prefix_map"
5223 if test x"$withval" != x; then
5224 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5225 for debug_map in $withval; do
5226 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5227 done
5228 fi
5229else
5230 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5231fi;
5232
5233
7f6ef0c0
PB
5234# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5235# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5236# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5237# We want to ensure that TARGET libraries (which we know are built with
5238# gcc) are built with "-O2 -g", so include those options when setting
5239# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5240if test "x$CFLAGS_FOR_TARGET" = x; then
5241 CFLAGS_FOR_TARGET=$CFLAGS
5242 case " $CFLAGS " in
5243 *" -O2 "*) ;;
5244 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5245 esac
5246 case " $CFLAGS " in
5247 *" -g "* | *" -g3 "*) ;;
5248 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5249 esac
5250fi
5251
5252
5253if test "x$CXXFLAGS_FOR_TARGET" = x; then
5254 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5255 case " $CXXFLAGS " in
5256 *" -O2 "*) ;;
5257 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5258 esac
5259 case " $CXXFLAGS " in
5260 *" -g "* | *" -g3 "*) ;;
5261 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5262 esac
5263fi
5264
5265
9e07f89d
NN
5266# Handle --with-headers=XXX. If the value is not "yes", the contents of
5267# the named directory are copied to $(tooldir)/sys-include.
5268if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5269 if test x${is_cross_compiler} = xno ; then
5270 echo 1>&2 '***' --with-headers is only supported when cross compiling
5271 exit 1
5272 fi
5273 if test x"${with_headers}" != xyes ; then
18f6b6ee 5274 x=${gcc_cv_tool_prefix}
c6b750e1 5275 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5276 fi
5277fi
5278
5279# Handle --with-libs=XXX. If the value is not "yes", the contents of
5280# the name directories are copied to $(tooldir)/lib. Multiple directories
5281# are permitted.
5282if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5283 if test x${is_cross_compiler} = xno ; then
5284 echo 1>&2 '***' --with-libs is only supported when cross compiling
5285 exit 1
5286 fi
5287 if test x"${with_libs}" != xyes ; then
5288 # Copy the libraries in reverse order, so that files in the first named
5289 # library override files in subsequent libraries.
18f6b6ee 5290 x=${gcc_cv_tool_prefix}
9e07f89d 5291 for l in ${with_libs}; do
c6b750e1 5292 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5293 done
5294 fi
5295fi
5296
2429c060
PB
5297# Set with_gnu_as and with_gnu_ld as appropriate.
5298#
5299# This is done by determining whether or not the appropriate directory
5300# is available, and by checking whether or not specific configurations
5301# have requested that this magic not happen.
c6b750e1
DJ
5302#
5303# The command line options always override the explicit settings in
2429c060
PB
5304# configure.in, and the settings in configure.in override this magic.
5305#
c6b750e1 5306# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5307# want to do that, then you should use the --without-gnu-as and
5308# --without-gnu-ld options for the configure script.
5309
5310if test x${use_gnu_as} = x &&
5311 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5312 with_gnu_as=yes
5313 extra_host_args="$extra_host_args --with-gnu-as"
5314fi
5315
5316if test x${use_gnu_ld} = x &&
93f9b408 5317 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
5318 with_gnu_ld=yes
5319 extra_host_args="$extra_host_args --with-gnu-ld"
5320fi
5321
5322# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5323# can detect this case.
5324
5325if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5326 with_newlib=yes
5327 extra_host_args="$extra_host_args --with-newlib"
5328fi
5329
9e07f89d
NN
5330# Handle ${copy_dirs}
5331set fnord ${copy_dirs}
5332shift
5333while test $# != 0 ; do
5334 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5335 :
5336 else
5337 echo Copying $1 to $2
5338
5339 # Use the install script to create the directory and all required
5340 # parent directories.
5341 if test -d $2 ; then
5342 :
5343 else
5344 echo >config.temp
5345 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5346 fi
5347
5348 # Copy the directory, assuming we have tar.
5349 # FIXME: Should we use B in the second tar? Not all systems support it.
5350 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5351
5352 # It is the responsibility of the user to correctly adjust all
5353 # symlinks. If somebody can figure out how to handle them correctly
5354 # here, feel free to add the code.
5355
5356 echo $1 > $2/COPIED
5357 fi
5358 shift; shift
5359done
5360
2429c060
PB
5361# Determine a target-dependent exec_prefix that the installed
5362# gcc will search in. Keep this list sorted by triplet, with
5363# the *-*-osname triplets last.
5364md_exec_prefix=
5365case "${target}" in
5366 alpha*-*-*vms*)
5367 md_exec_prefix=/gnu/lib/gcc-lib
5368 ;;
521ec477 5369 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5370 md_exec_prefix=/dev/env/DJDIR/bin
5371 ;;
521ec477 5372 i[34567]86-*-sco3.2v5*)
2429c060
PB
5373 if test $with_gnu_as = yes; then
5374 md_exec_prefix=/usr/gnu/bin
5375 else
5376 md_exec_prefix=/usr/ccs/bin/elf
5377 fi
5378 ;;
5379
5380 mn10300-*-* | \
5381 powerpc-*-chorusos* | \
5382 powerpc*-*-eabi* | \
5383 powerpc*-*-sysv* | \
5384 powerpc*-*-kaos* | \
5385 s390x-ibm-tpf*)
5386 md_exec_prefix=/usr/ccs/bin
5387 ;;
5388 sparc64-*-elf*)
5389 ;;
5390 v850*-*-*)
5391 md_exec_prefix=/usr/ccs/bin
5392 ;;
8b66833e 5393 xtensa*-*-elf*)
2429c060
PB
5394 ;;
5395
5396 *-*-beos* | \
5397 *-*-elf* | \
5398 *-*-hpux* | \
5399 *-*-netware* | \
5400 *-*-nto-qnx* | \
5401 *-*-rtems* | \
5402 *-*-solaris2* | \
521ec477 5403 *-*-sysv[45]* | \
2429c060
PB
5404 *-*-vxworks* | \
5405 *-wrs-windiss)
5406 md_exec_prefix=/usr/ccs/bin
5407 ;;
5408esac
5409
a0da8069
NN
5410extra_arflags_for_target=
5411extra_nmflags_for_target=
5412extra_ranlibflags_for_target=
5413target_makefile_frag=/dev/null
5414case "${target}" in
4e206d7e
DB
5415 mep*-*-*)
5416 target_makefile_frag="config/mt-mep"
5417 ;;
77d7106f
AM
5418 spu-*-*)
5419 target_makefile_frag="config/mt-spu"
5420 ;;
429acdec
RS
5421 mips*-sde-elf*)
5422 target_makefile_frag="config/mt-sde"
5423 ;;
f3b1e08e
RS
5424 mipsisa*-*-elfoabi*)
5425 target_makefile_frag="config/mt-mips-elfoabi"
5426 ;;
2a3124ca 5427 *-*-netware*)
a0da8069
NN
5428 target_makefile_frag="config/mt-netware"
5429 ;;
3d6dfe0f
NN
5430 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5431 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5432 ;;
5433 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5434 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5435 # commands to handle both 32-bit and 64-bit objects. These flags are
5436 # harmless if we're using GNU nm or ar.
5437 extra_arflags_for_target=" -X32_64"
5438 extra_nmflags_for_target=" -B -X32_64"
5439 ;;
5440 *-*-darwin*)
5441 # ranlib from Darwin requires the -c flag to look at common symbols.
5442 extra_ranlibflags_for_target=" -c"
5443 ;;
5444 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5445 target_makefile_frag="config/mt-wince"
5446 ;;
5447esac
5448
5449alphaieee_frag=/dev/null
5450case $target in
5451 alpha*-*-*)
5452 # This just makes sure to use the -mieee option to build target libs.
5453 # This should probably be set individually by each library.
5454 alphaieee_frag="config/mt-alphaieee"
5455 ;;
5456esac
5457
5458# If --enable-target-optspace always use -Os instead of -O2 to build
5459# the target libraries, similarly if it is not specified, use -Os
5460# on selected platforms.
5461ospace_frag=/dev/null
5462case "${enable_target_optspace}:${target}" in
5463 yes:*)
5464 ospace_frag="config/mt-ospace"
5465 ;;
5466 :d30v-*)
5467 ospace_frag="config/mt-d30v"
5468 ;;
5469 :m32r-* | :d10v-* | :fr30-*)
5470 ospace_frag="config/mt-ospace"
5471 ;;
5472 no:* | :*)
5473 ;;
5474 *)
5475 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5476 ;;
5477esac
5478
a0da8069
NN
5479# Default to using --with-stabs for certain targets.
5480if test x${with_stabs} = x ; then
5481 case "${target}" in
e31d1ea3 5482 mips*-*-irix[56]*)
a0da8069
NN
5483 ;;
5484 mips*-*-* | alpha*-*-osf*)
5485 with_stabs=yes;
5486 extra_host_args="${extra_host_args} --with-stabs"
5487 ;;
5488 esac
5489fi
5490
5491# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5492# them automatically.
5493case "${host}" in
c6b750e1 5494 hppa*64*-*-hpux11*)
a0da8069
NN
5495 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5496 ;;
5497esac
5498
a0da8069
NN
5499# Some systems (e.g., one of the i386-aix systems the gas testers are
5500# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5501tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5502build_tooldir=${tooldir}
5503
a0da8069
NN
5504# Create a .gdbinit file which runs the one in srcdir
5505# and tells GDB to look there for source files.
5506
5507if test -r ${srcdir}/.gdbinit ; then
5508 case ${srcdir} in
5509 .) ;;
5510 *) cat > ./.gdbinit <<EOF
5511# ${NO_EDIT}
5512dir ${srcdir}
5513dir .
5514source ${srcdir}/.gdbinit
5515EOF
5516 ;;
5517 esac
5518fi
5519
a0da8069
NN
5520# Make sure that the compiler is able to generate an executable. If it
5521# can't, we are probably in trouble. We don't care whether we can run the
5522# executable--we might be using a cross compiler--we only care whether it
5523# can be created. At this point the main configure script has set CC.
5524we_are_ok=no
5525echo "int main () { return 0; }" > conftest.c
5526${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5527if test $? = 0 ; then
5528 if test -s conftest || test -s conftest.exe ; then
5529 we_are_ok=yes
5530 fi
c6b750e1 5531fi
a0da8069
NN
5532case $we_are_ok in
5533 no)
5534 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5535 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5536 rm -f conftest*
5537 exit 1
5538 ;;
5539esac
5540rm -f conftest*
5541
5542# The Solaris /usr/ucb/cc compiler does not appear to work.
5543case "${host}" in
5544 sparc-sun-solaris2*)
5545 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5546 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5547 could_use=
5548 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5549 if test -d /opt/cygnus/bin ; then
5550 if test "$could_use" = "" ; then
5551 could_use="/opt/cygnus/bin"
5552 else
5553 could_use="$could_use or /opt/cygnus/bin"
5554 fi
5555 fi
5556 if test "$could_use" = "" ; then
5557 echo "Warning: compilation may fail because you're using"
5558 echo "/usr/ucb/cc. You should change your PATH or CC "
5559 echo "variable and rerun configure."
5560 else
5561 echo "Warning: compilation may fail because you're using"
5562 echo "/usr/ucb/cc, when you should use the C compiler from"
5563 echo "$could_use. You should change your"
5564 echo "PATH or CC variable and rerun configure."
5565 fi
5566 fi
5567 ;;
5568esac
5569
a0da8069
NN
5570case "${host}" in
5571 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5572 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5573 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5574esac
5575
5576# Record target_configdirs and the configure arguments for target and
5577# build configuration in Makefile.
5578target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5579build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5580
a0da8069
NN
5581# Determine whether gdb needs tk/tcl or not.
5582# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5583# and in that case we want gdb to be built without tk. Ugh!
5584# In fact I believe gdb is the *only* package directly dependent on tk,
5585# so we should be able to put the 'maybe's in unconditionally and
5586# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5587# 100% sure that that's safe though.
c180f501 5588
675c6968 5589gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5590case "$enable_gdbtk" in
5591 no)
5592 GDB_TK="" ;;
c180f501
AC
5593 yes)
5594 GDB_TK="${gdb_tk}" ;;
a0da8069 5595 *)
c180f501
AC
5596 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5597 # distro. Eventually someone will fix this and move Insight, nee
5598 # gdbtk to a separate directory.
5599 if test -d ${srcdir}/gdb/gdbtk ; then
5600 GDB_TK="${gdb_tk}"
5601 else
5602 GDB_TK=""
5603 fi
5604 ;;
a0da8069 5605esac
907be67c
DJ
5606CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5607INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5608
6bd3dfaa 5609# Strip out unwanted targets.
dd12c3a8
NN
5610
5611# While at that, we remove Makefiles if we were started for recursive
5612# configuration, so that the top-level Makefile reconfigures them,
5613# like we used to do when configure itself was recursive.
dd12c3a8 5614
6bd3dfaa
PB
5615# Loop over modules. $extrasub must be used with care, limiting as
5616# much as possible the usage of range addresses. That's because autoconf
5617# splits the sed script to overcome limits in the number of commands,
5618# and relying on carefully-timed sed passes may turn out to be very hard
5619# to maintain later. In this particular case, you just have to be careful
5620# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5621
319cab08
PB
5622# Check whether --enable-bootstrap or --disable-bootstrap was given.
5623if test "${enable_bootstrap+set}" = set; then
5624 enableval="$enable_bootstrap"
c6b750e1 5625
319cab08 5626else
9cb3fa6f 5627 enable_bootstrap=default
c6b750e1 5628fi;
319cab08 5629
9cb3fa6f
PB
5630# Issue errors and warnings for invalid/strange bootstrap combinations.
5631case "$configdirs" in
5632 *gcc*) have_compiler=yes ;;
5633 *) have_compiler=no ;;
5634esac
5635
5636case "$have_compiler:$host:$target:$enable_bootstrap" in
5637 *:*:*:no) ;;
5638
0aed8855 5639 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5640 # and we are in a native configuration.
5641 yes:$build:$build:default)
0aed8855 5642 enable_bootstrap=yes ;;
9cb3fa6f
PB
5643
5644 *:*:*:default)
5645 enable_bootstrap=no ;;
5646
5647 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5648 yes:$build:$build:yes)
9cb3fa6f
PB
5649 ;;
5650
5651 # Other configurations, but we have a compiler. Assume the user knows
5652 # what he's doing.
80911fe1 5653 yes:*:*:yes)
c6b750e1
DJ
5654 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5655echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5656 ;;
5657
5658 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5659 no:*:*:yes)
c6b750e1
DJ
5660 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5661echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5662 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5663
5664 # Fail if wrong command line
5665 *)
c6b750e1
DJ
5666 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5667echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5668 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5669 ;;
5670esac
5671
5672# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5673case "$enable_bootstrap" in
5674 yes)
498d4a71 5675 bootstrap_suffix=bootstrap ;;
319cab08 5676 no)
498d4a71 5677 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5678esac
5679
6a9cf61e 5680for module in ${build_configdirs} ; do
498d4a71
CF
5681 if test -z "${no_recursion}" \
5682 && test -f ${build_subdir}/${module}/Makefile; then
5683 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5684 rm -f ${build_subdir}/${module}/Makefile
5685 fi
5686 extrasub="$extrasub
5687/^@if build-$module\$/d
5688/^@endif build-$module\$/d
5689/^@if build-$module-$bootstrap_suffix\$/d
5690/^@endif build-$module-$bootstrap_suffix\$/d"
5691done
5692for module in ${configdirs} ; do
80911fe1 5693 if test -z "${no_recursion}"; then
8cf39b1b 5694 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5695 if test -f ${file}; then
5696 echo 1>&2 "*** removing ${file} to force reconfigure"
5697 rm -f ${file}
5698 fi
5699 done
498d4a71
CF
5700 fi
5701 extrasub="$extrasub
5702/^@if $module\$/d
5703/^@endif $module\$/d
5704/^@if $module-$bootstrap_suffix\$/d
5705/^@endif $module-$bootstrap_suffix\$/d"
5706done
5707for module in ${target_configdirs} ; do
5708 if test -z "${no_recursion}" \
5709 && test -f ${target_subdir}/${module}/Makefile; then
5710 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5711 rm -f ${target_subdir}/${module}/Makefile
5712 fi
5713 extrasub="$extrasub
5714/^@if target-$module\$/d
5715/^@endif target-$module\$/d
5716/^@if target-$module-$bootstrap_suffix\$/d
5717/^@endif target-$module-$bootstrap_suffix\$/d"
5718done
5719
6bd3dfaa
PB
5720extrasub="$extrasub
5721/^@if /,/^@endif /d"
a0da8069
NN
5722
5723# Create the serialization dependencies. This uses a temporary file.
5724
e6bfb94a
AO
5725# Check whether --enable-serial-configure or --disable-serial-configure was given.
5726if test "${enable_serial_configure+set}" = set; then
5727 enableval="$enable_serial_configure"
e6bfb94a 5728
c6b750e1 5729fi;
e6bfb94a 5730
1047cb91
DD
5731case ${enable_serial_configure} in
5732 yes)
5733 enable_serial_build_configure=yes
5734 enable_serial_host_configure=yes
5735 enable_serial_target_configure=yes
5736 ;;
5737esac
5738
a0da8069
NN
5739# These force 'configure's to be done one at a time, to avoid problems
5740# with contention over a shared config.cache.
5741rm -f serdep.tmp
e6bfb94a 5742echo '# serdep.tmp' > serdep.tmp
a0da8069 5743olditem=
1047cb91 5744test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5745for item in ${build_configdirs} ; do
5746 case ${olditem} in
5747 "") ;;
e6bfb94a 5748 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5749 esac
5750 olditem=${item}
5751done
5752olditem=
1047cb91 5753test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5754for item in ${configdirs} ; do
5755 case ${olditem} in
5756 "") ;;
e6bfb94a 5757 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5758 esac
5759 olditem=${item}
5760done
5761olditem=
1047cb91 5762test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5763for item in ${target_configdirs} ; do
5764 case ${olditem} in
5765 "") ;;
e6bfb94a 5766 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5767 esac
5768 olditem=${item}
5769done
5770serialization_dependencies=serdep.tmp
5771
5772
e6bfb94a 5773# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5774# target, nonopt, and variable assignments. These are the ones we
5775# might not want to pass down to subconfigures. Also strip
5776# program-prefix, program-suffix, and program-transform-name, so that
5777# we can pass down a consistent program-transform-name.
5778baseargs=
5779keep_next=no
5780skip_next=no
5781eval "set -- $ac_configure_args"
18f6b6ee
PB
5782for ac_arg
5783do
c6b750e1
DJ
5784 if test X"$skip_next" = X"yes"; then
5785 skip_next=no
5786 continue
5787 fi
5788 if test X"$keep_next" = X"yes"; then
5789 case $ac_arg in
5790 *\'*)
5791 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5792 esac
5793 baseargs="$baseargs '$ac_arg'"
5794 keep_next=no
5795 continue
5796 fi
5797
5798 # Handle separated arguments. Based on the logic generated by
5799 # autoconf 2.59.
5800 case $ac_arg in
5801 *=* | --config-cache | -C | -disable-* | --disable-* \
5802 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5803 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5804 | -with-* | --with-* | -without-* | --without-* | --x)
5805 separate_arg=no
5806 ;;
5807 -*)
5808 separate_arg=yes
5809 ;;
5810 *)
5811 separate_arg=no
5812 ;;
5813 esac
5814
5815 case "$ac_arg" in
5816 --no*)
5817 continue
5818 ;;
5819 --c* | \
5820 --sr* | \
5821 --ho* | \
5822 --bu* | \
5823 --t* | \
5824 --program-* | \
5825 -cache_file* | \
5826 -srcdir* | \
5827 -host* | \
5828 -build* | \
5829 -target* | \
5830 -program-prefix* | \
5831 -program-suffix* | \
5832 -program-transform-name* )
5833 skip_next=$separate_arg
5834 continue
5835 ;;
5836 -*)
5837 # An option. Add it.
5838 case $ac_arg in
5839 *\'*)
5840 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5841 esac
5842 baseargs="$baseargs '$ac_arg'"
5843 keep_next=$separate_arg
5844 ;;
5845 *)
5846 # Either a variable assignment, or a nonopt (triplet). Don't
5847 # pass it down; let the Makefile handle this.
5848 continue
5849 ;;
5850 esac
5851done
5852# Remove the initial space we just introduced and, as these will be
5853# expanded by make, quote '$'.
5854baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5855
f27d4f92
DJ
5856# Add in --program-transform-name, after --program-prefix and
5857# --program-suffix have been applied to it. Autoconf has already
5858# doubled dollar signs and backslashes in program_transform_name; we want
5859# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5860# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5861# Also, because we want to override the logic in subdir configure scripts to
5862# choose program_transform_name, replace any s,x,x, with s,y,y,.
5863sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5864${program_transform_name}
5865EOF_SED
5866gcc_transform_name=`cat conftestsed.out`
5867rm -f conftestsed.out
5868baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5869if test "$silent" = yes; then
5870 baseargs="$baseargs --silent"
5871fi
f27d4f92 5872
a0da8069
NN
5873# For the build-side libraries, we just need to pretend we're native,
5874# and not use the same cache file. Multilibs are neither needed nor
5875# desired.
4b900473 5876build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5877
5878# For host modules, accept cache file option, or specification as blank.
5879case "${cache_file}" in
5880"") # empty
5881 cache_file_option="" ;;
5882/* | [A-Za-z]:[\\/]* ) # absolute path
5883 cache_file_option="--cache-file=${cache_file}" ;;
5884*) # relative path
5885 cache_file_option="--cache-file=../${cache_file}" ;;
5886esac
5887
82252c06
NN
5888# Host dirs don't like to share a cache file either, horribly enough.
5889# This seems to be due to autoconf 2.5x stupidity.
4b900473 5890host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5891
5892target_configargs=${baseargs}
5893
5894# Passing a --with-cross-host argument lets the target libraries know
5895# whether they are being built with a cross-compiler or being built
5896# native. However, it would be better to use other mechanisms to make the
5897# sorts of decisions they want to make on this basis. Please consider
5898# this option to be deprecated. FIXME.
5899if test x${is_cross_compiler} = xyes ; then
c6b750e1 5900 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5901fi
5902
5903# Default to --enable-multilib.
5904if test x${enable_multilib} = x ; then
5905 target_configargs="--enable-multilib ${target_configargs}"
5906fi
5907
5908# Pass --with-newlib if appropriate. Note that target_configdirs has
5909# changed from the earlier setting of with_newlib.
5910if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5911 target_configargs="--with-newlib ${target_configargs}"
5912fi
5913
95036d20
NN
5914# Different target subdirs use different values of certain variables
5915# (notably CXX). Worse, multilibs use *lots* of different values.
5916# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5917# it doesn't automatically accept command-line overrides of them.
5918# This means it's not safe for target subdirs to share a cache file,
5919# which is disgusting, but there you have it. Hopefully this can be
5920# fixed in future. It's still worthwhile to use a cache file for each
5921# directory. I think.
5922
ae380b45
MS
5923# Pass the appropriate --build, --host, --target and --cache-file arguments.
5924# We need to pass --target, as newer autoconf's requires consistency
5925# for target_alias and gcc doesn't manage it consistently.
4b900473 5926target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5927
a0da8069
NN
5928FLAGS_FOR_TARGET=
5929case " $target_configdirs " in
5930 *" newlib "*)
5931 case " $target_configargs " in
5932 *" --with-newlib "*)
5933 case "$target" in
5934 *-cygwin*)
564b43e5 5935 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
5936 esac
5937
5938 # If we're not building GCC, don't discard standard headers.
5939 if test -d ${srcdir}/gcc; then
5940 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5941
5942 if test "${build}" != "${host}"; then
5943 # On Canadian crosses, CC_FOR_TARGET will have already been set
5944 # by `configure', so we won't have an opportunity to add -Bgcc/
5945 # to it. This is right: we don't want to search that directory
5946 # for binaries, but we want the header files in there, so add
5947 # them explicitly.
b00612cc 5948 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5949
5950 # Someone might think of using the pre-installed headers on
5951 # Canadian crosses, in case the installed compiler is not fully
5952 # compatible with the compiler being built. In this case, it
5953 # would be better to flag an error than risking having
5954 # incompatible object files being constructed. We can't
5955 # guarantee that an error will be flagged, but let's hope the
5956 # compiler will do it, when presented with incompatible header
5957 # files.
5958 fi
5959 fi
5960
5961 case "${target}-${is_cross_compiler}" in
ec11bdc6 5962 i[3456789]86-*-linux*-no)
a0da8069
NN
5963 # Here host == target, so we don't need to build gcc,
5964 # so we don't want to discard standard headers.
5965 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5966 ;;
5967 *)
5968 # If we're building newlib, use its generic headers last, but search
5969 # for any libc-related directories first (so make it the last -B
5970 # switch).
5971 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
5972
5973 # If we're building libgloss, find the startup file, simulator library
5974 # and linker script.
5975 case " $target_configdirs " in
5976 *" libgloss "*)
5977 # Look for startup file, simulator library and maybe linker script.
5978 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5979 # Look for libnosys.a in case the target needs it.
5980 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5981 # Most targets have the linker script in the source directory.
5982 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5983 ;;
5984 esac
a0da8069
NN
5985 ;;
5986 esac
5987 ;;
5988 esac
5989 ;;
5990esac
45055374
CV
5991case "$target" in
5992*-mingw*)
5993 # Can't be handled as Cygwin above since Mingw does not use newlib.
5994 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' ;;
5995esac
a0da8069 5996
5fbad20a
DD
5997# Allow the user to override the flags for
5998# our build compiler if desired.
c66487f8
NC
5999if test x"${build}" = x"${host}" ; then
6000 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6001 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6002 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6003fi
5fbad20a 6004
a0da8069
NN
6005# On Canadian crosses, we'll be searching the right directories for
6006# the previously-installed cross compiler, so don't bother to add
6007# flags for directories within the install tree of the compiler
6008# being built; programs in there won't even run.
6009if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6010 # Search for pre-installed headers if nothing else fits.
bba45b8b 6011 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
6012fi
6013
6014if test "x${use_gnu_ld}" = x &&
6015 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6016 # Arrange for us to find uninstalled linker scripts.
b00612cc 6017 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6018fi
6019
a481dbb7
DD
6020# Search for other target-specific linker scripts and such.
6021case "${target}" in
4e206d7e
DB
6022 mep*)
6023 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6024 ;;
6025esac
6026
a0da8069 6027# Makefile fragments.
3e707e94
PB
6028for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6029do
6030 eval fragval=\$$frag
6031 if test $fragval != /dev/null; then
6032 eval $frag=${srcdir}/$fragval
6033 fi
6034done
a0da8069
NN
6035
6036
6037
6038
6039
6040# Miscellanea: directories, flags, etc.
6041
6042
6043
6044
6045
6046
6047
6a9cf61e 6048# Build module lists & subconfigure args.
a0da8069
NN
6049
6050
6051
be01d343
PB
6052# Host module lists & subconfigure args.
6053
6054
6055
6056# Target module lists & subconfigure args.
6057
6058
6059
6060# Build tools.
6061
6062
6063
1576798e
PB
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
be01d343
PB
6078# Generate default definitions for YACC, M4, LEX and other programs that run
6079# on the build machine. These are used if the Makefile can't locate these
6080# programs in objdir.
6081MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6082
6083for ac_prog in 'bison -y' byacc yacc
6084do
c6b750e1 6085 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6086set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6087echo "$as_me:$LINENO: checking for $ac_word" >&5
6088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6089if test "${ac_cv_prog_YACC+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6091else
6092 if test -n "$YACC"; then
6093 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6094else
c6b750e1
DJ
6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096for as_dir in $PATH
6097do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_YACC="$ac_prog"
6103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6105 fi
6106done
6107done
6108
be01d343
PB
6109fi
6110fi
c6b750e1 6111YACC=$ac_cv_prog_YACC
be01d343 6112if test -n "$YACC"; then
c6b750e1
DJ
6113 echo "$as_me:$LINENO: result: $YACC" >&5
6114echo "${ECHO_T}$YACC" >&6
be01d343 6115else
c6b750e1
DJ
6116 echo "$as_me:$LINENO: result: no" >&5
6117echo "${ECHO_T}no" >&6
be01d343
PB
6118fi
6119
c6b750e1 6120 test -n "$YACC" && break
be01d343
PB
6121done
6122test -n "$YACC" || YACC="$MISSING bison -y"
6123
6124case " $build_configdirs " in
6125 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6126 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6127esac
6128
6129for ac_prog in bison
6130do
c6b750e1 6131 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6132set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6133echo "$as_me:$LINENO: checking for $ac_word" >&5
6134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6135if test "${ac_cv_prog_BISON+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6137else
6138 if test -n "$BISON"; then
6139 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6140else
c6b750e1
DJ
6141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142for as_dir in $PATH
6143do
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148 ac_cv_prog_BISON="$ac_prog"
6149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 break 2
6151 fi
6152done
6153done
6154
be01d343
PB
6155fi
6156fi
c6b750e1 6157BISON=$ac_cv_prog_BISON
be01d343 6158if test -n "$BISON"; then
c6b750e1
DJ
6159 echo "$as_me:$LINENO: result: $BISON" >&5
6160echo "${ECHO_T}$BISON" >&6
be01d343 6161else
c6b750e1
DJ
6162 echo "$as_me:$LINENO: result: no" >&5
6163echo "${ECHO_T}no" >&6
be01d343
PB
6164fi
6165
c6b750e1 6166 test -n "$BISON" && break
be01d343
PB
6167done
6168test -n "$BISON" || BISON="$MISSING bison"
6169
6170case " $build_configdirs " in
6171 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6172esac
6173
6174for ac_prog in gm4 gnum4 m4
6175do
c6b750e1 6176 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6177set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6178echo "$as_me:$LINENO: checking for $ac_word" >&5
6179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6180if test "${ac_cv_prog_M4+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6182else
6183 if test -n "$M4"; then
6184 ac_cv_prog_M4="$M4" # Let the user override the test.
6185else
c6b750e1
DJ
6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6193 ac_cv_prog_M4="$ac_prog"
6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6196 fi
6197done
6198done
6199
be01d343
PB
6200fi
6201fi
c6b750e1 6202M4=$ac_cv_prog_M4
be01d343 6203if test -n "$M4"; then
c6b750e1
DJ
6204 echo "$as_me:$LINENO: result: $M4" >&5
6205echo "${ECHO_T}$M4" >&6
be01d343 6206else
c6b750e1
DJ
6207 echo "$as_me:$LINENO: result: no" >&5
6208echo "${ECHO_T}no" >&6
be01d343
PB
6209fi
6210
c6b750e1 6211 test -n "$M4" && break
be01d343
PB
6212done
6213test -n "$M4" || M4="$MISSING m4"
6214
6215case " $build_configdirs " in
6216 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6217esac
6218
6219for ac_prog in flex lex
6220do
c6b750e1 6221 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6222set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6223echo "$as_me:$LINENO: checking for $ac_word" >&5
6224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6225if test "${ac_cv_prog_LEX+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6227else
6228 if test -n "$LEX"; then
6229 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6230else
c6b750e1
DJ
6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH
6233do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6238 ac_cv_prog_LEX="$ac_prog"
6239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6241 fi
6242done
6243done
6244
be01d343
PB
6245fi
6246fi
c6b750e1 6247LEX=$ac_cv_prog_LEX
be01d343 6248if test -n "$LEX"; then
c6b750e1
DJ
6249 echo "$as_me:$LINENO: result: $LEX" >&5
6250echo "${ECHO_T}$LEX" >&6
be01d343 6251else
c6b750e1
DJ
6252 echo "$as_me:$LINENO: result: no" >&5
6253echo "${ECHO_T}no" >&6
be01d343
PB
6254fi
6255
c6b750e1 6256 test -n "$LEX" && break
be01d343
PB
6257done
6258test -n "$LEX" || LEX="$MISSING flex"
6259
6260case " $build_configdirs " in
6261 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6262 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6263esac
6264
6265for ac_prog in flex
6266do
c6b750e1 6267 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6268set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6269echo "$as_me:$LINENO: checking for $ac_word" >&5
6270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6271if test "${ac_cv_prog_FLEX+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6273else
6274 if test -n "$FLEX"; then
6275 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6276else
c6b750e1
DJ
6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278for as_dir in $PATH
6279do
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284 ac_cv_prog_FLEX="$ac_prog"
6285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 break 2
6287 fi
6288done
6289done
6290
be01d343
PB
6291fi
6292fi
c6b750e1 6293FLEX=$ac_cv_prog_FLEX
be01d343 6294if test -n "$FLEX"; then
c6b750e1
DJ
6295 echo "$as_me:$LINENO: result: $FLEX" >&5
6296echo "${ECHO_T}$FLEX" >&6
be01d343 6297else
c6b750e1
DJ
6298 echo "$as_me:$LINENO: result: no" >&5
6299echo "${ECHO_T}no" >&6
be01d343
PB
6300fi
6301
c6b750e1 6302 test -n "$FLEX" && break
be01d343
PB
6303done
6304test -n "$FLEX" || FLEX="$MISSING flex"
6305
6306case " $build_configdirs " in
6307 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6308esac
6309
6310for ac_prog in makeinfo
6311do
c6b750e1 6312 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6313set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6314echo "$as_me:$LINENO: checking for $ac_word" >&5
6315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6316if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6318else
6319 if test -n "$MAKEINFO"; then
6320 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6321else
c6b750e1
DJ
6322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323for as_dir in $PATH
6324do
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_MAKEINFO="$ac_prog"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6332 fi
6333done
6334done
6335
be01d343
PB
6336fi
6337fi
c6b750e1 6338MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6339if test -n "$MAKEINFO"; then
c6b750e1
DJ
6340 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6341echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6342else
c6b750e1
DJ
6343 echo "$as_me:$LINENO: result: no" >&5
6344echo "${ECHO_T}no" >&6
be01d343
PB
6345fi
6346
c6b750e1 6347 test -n "$MAKEINFO" && break
be01d343
PB
6348done
6349test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6350
6351case " $build_configdirs " in
6352 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6353 *)
6354
625a61cd 6355 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6356 # higher, else we use the "missing" dummy.
6357 if ${MAKEINFO} --version \
625a61cd 6358 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6359 :
6360 else
6361 MAKEINFO="$MISSING makeinfo"
6362 fi
6363 ;;
6364
6365esac
a0da8069 6366
be01d343 6367# FIXME: expect and dejagnu may become build tools?
a0da8069 6368
be01d343
PB
6369for ac_prog in expect
6370do
c6b750e1 6371 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6372set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6373echo "$as_me:$LINENO: checking for $ac_word" >&5
6374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6375if test "${ac_cv_prog_EXPECT+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6377else
6378 if test -n "$EXPECT"; then
6379 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6380else
c6b750e1
DJ
6381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382for as_dir in $PATH
6383do
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388 ac_cv_prog_EXPECT="$ac_prog"
6389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 break 2
6391 fi
6392done
6393done
6394
be01d343
PB
6395fi
6396fi
c6b750e1 6397EXPECT=$ac_cv_prog_EXPECT
be01d343 6398if test -n "$EXPECT"; then
c6b750e1
DJ
6399 echo "$as_me:$LINENO: result: $EXPECT" >&5
6400echo "${ECHO_T}$EXPECT" >&6
be01d343 6401else
c6b750e1
DJ
6402 echo "$as_me:$LINENO: result: no" >&5
6403echo "${ECHO_T}no" >&6
be01d343 6404fi
a0da8069 6405
c6b750e1 6406 test -n "$EXPECT" && break
be01d343
PB
6407done
6408test -n "$EXPECT" || EXPECT="expect"
a0da8069 6409
be01d343
PB
6410case " $configdirs " in
6411 *" expect "*)
6412 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6413 ;;
6414esac
a0da8069 6415
be01d343
PB
6416for ac_prog in runtest
6417do
c6b750e1 6418 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6419set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6420echo "$as_me:$LINENO: checking for $ac_word" >&5
6421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6422if test "${ac_cv_prog_RUNTEST+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6424else
6425 if test -n "$RUNTEST"; then
6426 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6427else
c6b750e1
DJ
6428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429for as_dir in $PATH
6430do
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6435 ac_cv_prog_RUNTEST="$ac_prog"
6436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 break 2
6438 fi
6439done
6440done
6441
be01d343
PB
6442fi
6443fi
c6b750e1 6444RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6445if test -n "$RUNTEST"; then
c6b750e1
DJ
6446 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6447echo "${ECHO_T}$RUNTEST" >&6
be01d343 6448else
c6b750e1
DJ
6449 echo "$as_me:$LINENO: result: no" >&5
6450echo "${ECHO_T}no" >&6
be01d343 6451fi
a0da8069 6452
c6b750e1 6453 test -n "$RUNTEST" && break
be01d343
PB
6454done
6455test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6456
be01d343
PB
6457case " $configdirs " in
6458 *" dejagnu "*)
6b89cc21 6459 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6460 ;;
6461esac
a0da8069
NN
6462
6463
a0da8069 6464# Host tools.
859789af
AC
6465ncn_tool_prefix=
6466test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6467ncn_target_tool_prefix=
6468test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6469
9a819804
AO
6470
6471
6472if test -n "$AR"; then
6473 ac_cv_prog_AR=$AR
6474elif test -n "$ac_cv_prog_AR"; then
6475 AR=$ac_cv_prog_AR
6476fi
6477
6478if test -n "$ac_cv_prog_AR"; then
6479 for ncn_progname in ar; do
6480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6481set dummy ${ncn_progname}; ac_word=$2
6482echo "$as_me:$LINENO: checking for $ac_word" >&5
6483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6484if test "${ac_cv_prog_AR+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486else
6487 if test -n "$AR"; then
6488 ac_cv_prog_AR="$AR" # Let the user override the test.
6489else
6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491for as_dir in $PATH
6492do
6493 IFS=$as_save_IFS
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6497 ac_cv_prog_AR="${ncn_progname}"
6498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 break 2
6500 fi
6501done
6502done
6503
6504fi
6505fi
6506AR=$ac_cv_prog_AR
6507if test -n "$AR"; then
6508 echo "$as_me:$LINENO: result: $AR" >&5
6509echo "${ECHO_T}$AR" >&6
6510else
6511 echo "$as_me:$LINENO: result: no" >&5
6512echo "${ECHO_T}no" >&6
6513fi
6514
6515 done
6516fi
6517
6518for ncn_progname in ar; do
05cbd757
PB
6519 if test -n "$ncn_tool_prefix"; then
6520 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6521set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6522echo "$as_me:$LINENO: checking for $ac_word" >&5
6523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6524if test "${ac_cv_prog_AR+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6526else
6527 if test -n "$AR"; then
6528 ac_cv_prog_AR="$AR" # Let the user override the test.
6529else
c6b750e1
DJ
6530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531for as_dir in $PATH
6532do
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6540 fi
6541done
6542done
6543
859789af
AC
6544fi
6545fi
c6b750e1 6546AR=$ac_cv_prog_AR
859789af 6547if test -n "$AR"; then
c6b750e1
DJ
6548 echo "$as_me:$LINENO: result: $AR" >&5
6549echo "${ECHO_T}$AR" >&6
859789af 6550else
c6b750e1
DJ
6551 echo "$as_me:$LINENO: result: no" >&5
6552echo "${ECHO_T}no" >&6
859789af
AC
6553fi
6554
05cbd757
PB
6555 fi
6556 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6558set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6559echo "$as_me:$LINENO: checking for $ac_word" >&5
6560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6561if test "${ac_cv_prog_AR+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6563else
05cbd757
PB
6564 if test -n "$AR"; then
6565 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6566else
c6b750e1
DJ
6567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568for as_dir in $PATH
6569do
6570 IFS=$as_save_IFS
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6574 ac_cv_prog_AR="${ncn_progname}"
6575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 break 2
6577 fi
6578done
6579done
6580
859789af
AC
6581fi
6582fi
c6b750e1 6583AR=$ac_cv_prog_AR
05cbd757 6584if test -n "$AR"; then
c6b750e1
DJ
6585 echo "$as_me:$LINENO: result: $AR" >&5
6586echo "${ECHO_T}$AR" >&6
859789af 6587else
c6b750e1
DJ
6588 echo "$as_me:$LINENO: result: no" >&5
6589echo "${ECHO_T}no" >&6
859789af 6590fi
c6b750e1 6591
05cbd757
PB
6592 fi
6593 test -n "$ac_cv_prog_AR" && break
6594done
6595
6596if test -z "$ac_cv_prog_AR" ; then
6597 set dummy ar
6598 if test $build = $host ; then
6599 AR="$2"
859789af 6600 else
05cbd757 6601 AR="${ncn_tool_prefix}$2"
859789af 6602 fi
859789af
AC
6603fi
6604
9a819804
AO
6605
6606
6607if test -n "$AS"; then
6608 ac_cv_prog_AS=$AS
6609elif test -n "$ac_cv_prog_AS"; then
6610 AS=$ac_cv_prog_AS
6611fi
6612
6613if test -n "$ac_cv_prog_AS"; then
6614 for ncn_progname in as; do
6615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6616set dummy ${ncn_progname}; ac_word=$2
6617echo "$as_me:$LINENO: checking for $ac_word" >&5
6618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6619if test "${ac_cv_prog_AS+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6621else
6622 if test -n "$AS"; then
6623 ac_cv_prog_AS="$AS" # Let the user override the test.
6624else
6625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6632 ac_cv_prog_AS="${ncn_progname}"
6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 break 2
6635 fi
6636done
6637done
6638
6639fi
6640fi
6641AS=$ac_cv_prog_AS
6642if test -n "$AS"; then
6643 echo "$as_me:$LINENO: result: $AS" >&5
6644echo "${ECHO_T}$AS" >&6
6645else
6646 echo "$as_me:$LINENO: result: no" >&5
6647echo "${ECHO_T}no" >&6
6648fi
6649
6650 done
6651fi
6652
6653for ncn_progname in as; do
05cbd757
PB
6654 if test -n "$ncn_tool_prefix"; then
6655 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6656set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6657echo "$as_me:$LINENO: checking for $ac_word" >&5
6658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6659if test "${ac_cv_prog_AS+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6661else
6662 if test -n "$AS"; then
6663 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6664else
6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6672 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6675 fi
6676done
6677done
6678
859789af
AC
6679fi
6680fi
c6b750e1 6681AS=$ac_cv_prog_AS
859789af 6682if test -n "$AS"; then
c6b750e1
DJ
6683 echo "$as_me:$LINENO: result: $AS" >&5
6684echo "${ECHO_T}$AS" >&6
859789af 6685else
c6b750e1
DJ
6686 echo "$as_me:$LINENO: result: no" >&5
6687echo "${ECHO_T}no" >&6
859789af
AC
6688fi
6689
05cbd757
PB
6690 fi
6691 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6693set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6694echo "$as_me:$LINENO: checking for $ac_word" >&5
6695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6696if test "${ac_cv_prog_AS+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6698else
05cbd757
PB
6699 if test -n "$AS"; then
6700 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6701else
c6b750e1
DJ
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_AS="${ncn_progname}"
6710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713done
6714done
6715
859789af
AC
6716fi
6717fi
c6b750e1 6718AS=$ac_cv_prog_AS
05cbd757 6719if test -n "$AS"; then
c6b750e1
DJ
6720 echo "$as_me:$LINENO: result: $AS" >&5
6721echo "${ECHO_T}$AS" >&6
859789af 6722else
c6b750e1
DJ
6723 echo "$as_me:$LINENO: result: no" >&5
6724echo "${ECHO_T}no" >&6
859789af 6725fi
c6b750e1 6726
05cbd757
PB
6727 fi
6728 test -n "$ac_cv_prog_AS" && break
6729done
6730
6731if test -z "$ac_cv_prog_AS" ; then
6732 set dummy as
6733 if test $build = $host ; then
6734 AS="$2"
859789af 6735 else
05cbd757 6736 AS="${ncn_tool_prefix}$2"
859789af 6737 fi
859789af
AC
6738fi
6739
9a819804
AO
6740
6741
6742if test -n "$DLLTOOL"; then
6743 ac_cv_prog_DLLTOOL=$DLLTOOL
6744elif test -n "$ac_cv_prog_DLLTOOL"; then
6745 DLLTOOL=$ac_cv_prog_DLLTOOL
6746fi
6747
6748if test -n "$ac_cv_prog_DLLTOOL"; then
6749 for ncn_progname in dlltool; do
6750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6751set dummy ${ncn_progname}; ac_word=$2
6752echo "$as_me:$LINENO: checking for $ac_word" >&5
6753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6754if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6756else
6757 if test -n "$DLLTOOL"; then
6758 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6759else
6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767 ac_cv_prog_DLLTOOL="${ncn_progname}"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6770 fi
6771done
6772done
6773
6774fi
6775fi
6776DLLTOOL=$ac_cv_prog_DLLTOOL
6777if test -n "$DLLTOOL"; then
6778 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6779echo "${ECHO_T}$DLLTOOL" >&6
6780else
6781 echo "$as_me:$LINENO: result: no" >&5
6782echo "${ECHO_T}no" >&6
6783fi
6784
6785 done
6786fi
6787
6788for ncn_progname in dlltool; do
05cbd757
PB
6789 if test -n "$ncn_tool_prefix"; then
6790 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6791set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6792echo "$as_me:$LINENO: checking for $ac_word" >&5
6793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6794if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6796else
6797 if test -n "$DLLTOOL"; then
6798 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6799else
c6b750e1
DJ
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6810 fi
6811done
6812done
6813
859789af
AC
6814fi
6815fi
c6b750e1 6816DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6817if test -n "$DLLTOOL"; then
c6b750e1
DJ
6818 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6819echo "${ECHO_T}$DLLTOOL" >&6
859789af 6820else
c6b750e1
DJ
6821 echo "$as_me:$LINENO: result: no" >&5
6822echo "${ECHO_T}no" >&6
859789af
AC
6823fi
6824
05cbd757
PB
6825 fi
6826 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6828set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6829echo "$as_me:$LINENO: checking for $ac_word" >&5
6830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6831if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6833else
05cbd757
PB
6834 if test -n "$DLLTOOL"; then
6835 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6836else
c6b750e1
DJ
6837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6844 ac_cv_prog_DLLTOOL="${ncn_progname}"
6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848done
6849done
6850
859789af
AC
6851fi
6852fi
c6b750e1 6853DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6854if test -n "$DLLTOOL"; then
c6b750e1
DJ
6855 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6856echo "${ECHO_T}$DLLTOOL" >&6
859789af 6857else
c6b750e1
DJ
6858 echo "$as_me:$LINENO: result: no" >&5
6859echo "${ECHO_T}no" >&6
859789af 6860fi
c6b750e1 6861
05cbd757
PB
6862 fi
6863 test -n "$ac_cv_prog_DLLTOOL" && break
6864done
6865
6866if test -z "$ac_cv_prog_DLLTOOL" ; then
6867 set dummy dlltool
6868 if test $build = $host ; then
6869 DLLTOOL="$2"
859789af 6870 else
05cbd757 6871 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6872 fi
859789af
AC
6873fi
6874
9a819804
AO
6875
6876
6877if test -n "$LD"; then
6878 ac_cv_prog_LD=$LD
6879elif test -n "$ac_cv_prog_LD"; then
6880 LD=$ac_cv_prog_LD
6881fi
6882
6883if test -n "$ac_cv_prog_LD"; then
6884 for ncn_progname in ld; do
6885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6886set dummy ${ncn_progname}; ac_word=$2
6887echo "$as_me:$LINENO: checking for $ac_word" >&5
6888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6889if test "${ac_cv_prog_LD+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6891else
6892 if test -n "$LD"; then
6893 ac_cv_prog_LD="$LD" # Let the user override the test.
6894else
6895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896for as_dir in $PATH
6897do
6898 IFS=$as_save_IFS
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902 ac_cv_prog_LD="${ncn_progname}"
6903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 break 2
6905 fi
6906done
6907done
6908
6909fi
6910fi
6911LD=$ac_cv_prog_LD
6912if test -n "$LD"; then
6913 echo "$as_me:$LINENO: result: $LD" >&5
6914echo "${ECHO_T}$LD" >&6
6915else
6916 echo "$as_me:$LINENO: result: no" >&5
6917echo "${ECHO_T}no" >&6
6918fi
6919
6920 done
6921fi
6922
6923for ncn_progname in ld; do
05cbd757
PB
6924 if test -n "$ncn_tool_prefix"; then
6925 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6926set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6927echo "$as_me:$LINENO: checking for $ac_word" >&5
6928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6929if test "${ac_cv_prog_LD+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6931else
6932 if test -n "$LD"; then
6933 ac_cv_prog_LD="$LD" # Let the user override the test.
6934else
c6b750e1
DJ
6935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946done
6947done
6948
859789af
AC
6949fi
6950fi
c6b750e1 6951LD=$ac_cv_prog_LD
859789af 6952if test -n "$LD"; then
c6b750e1
DJ
6953 echo "$as_me:$LINENO: result: $LD" >&5
6954echo "${ECHO_T}$LD" >&6
859789af 6955else
c6b750e1
DJ
6956 echo "$as_me:$LINENO: result: no" >&5
6957echo "${ECHO_T}no" >&6
859789af
AC
6958fi
6959
05cbd757
PB
6960 fi
6961 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6963set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6964echo "$as_me:$LINENO: checking for $ac_word" >&5
6965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6966if test "${ac_cv_prog_LD+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6968else
05cbd757
PB
6969 if test -n "$LD"; then
6970 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6971else
c6b750e1
DJ
6972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973for as_dir in $PATH
6974do
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6979 ac_cv_prog_LD="${ncn_progname}"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6982 fi
6983done
6984done
6985
859789af
AC
6986fi
6987fi
c6b750e1 6988LD=$ac_cv_prog_LD
05cbd757 6989if test -n "$LD"; then
c6b750e1
DJ
6990 echo "$as_me:$LINENO: result: $LD" >&5
6991echo "${ECHO_T}$LD" >&6
859789af 6992else
c6b750e1
DJ
6993 echo "$as_me:$LINENO: result: no" >&5
6994echo "${ECHO_T}no" >&6
859789af 6995fi
c6b750e1 6996
05cbd757
PB
6997 fi
6998 test -n "$ac_cv_prog_LD" && break
6999done
7000
7001if test -z "$ac_cv_prog_LD" ; then
7002 set dummy ld
7003 if test $build = $host ; then
7004 LD="$2"
859789af 7005 else
05cbd757 7006 LD="${ncn_tool_prefix}$2"
859789af 7007 fi
859789af
AC
7008fi
7009
9a819804
AO
7010
7011
7012if test -n "$LIPO"; then
7013 ac_cv_prog_LIPO=$LIPO
7014elif test -n "$ac_cv_prog_LIPO"; then
7015 LIPO=$ac_cv_prog_LIPO
7016fi
7017
7018if test -n "$ac_cv_prog_LIPO"; then
7019 for ncn_progname in lipo; do
7020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7021set dummy ${ncn_progname}; ac_word=$2
7022echo "$as_me:$LINENO: checking for $ac_word" >&5
7023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7024if test "${ac_cv_prog_LIPO+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7026else
7027 if test -n "$LIPO"; then
7028 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7029else
7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7037 ac_cv_prog_LIPO="${ncn_progname}"
7038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 break 2
7040 fi
7041done
7042done
7043
7044fi
7045fi
7046LIPO=$ac_cv_prog_LIPO
7047if test -n "$LIPO"; then
7048 echo "$as_me:$LINENO: result: $LIPO" >&5
7049echo "${ECHO_T}$LIPO" >&6
7050else
7051 echo "$as_me:$LINENO: result: no" >&5
7052echo "${ECHO_T}no" >&6
7053fi
7054
7055 done
7056fi
7057
7058for ncn_progname in lipo; do
be01d343
PB
7059 if test -n "$ncn_tool_prefix"; then
7060 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7061set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7062echo "$as_me:$LINENO: checking for $ac_word" >&5
7063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7064if test "${ac_cv_prog_LIPO+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7066else
7067 if test -n "$LIPO"; then
7068 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7069else
c6b750e1
DJ
7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7080 fi
7081done
7082done
7083
be01d343
PB
7084fi
7085fi
c6b750e1 7086LIPO=$ac_cv_prog_LIPO
be01d343 7087if test -n "$LIPO"; then
c6b750e1
DJ
7088 echo "$as_me:$LINENO: result: $LIPO" >&5
7089echo "${ECHO_T}$LIPO" >&6
be01d343 7090else
c6b750e1
DJ
7091 echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6
be01d343
PB
7093fi
7094
7095 fi
7096 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7098set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7099echo "$as_me:$LINENO: checking for $ac_word" >&5
7100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7101if test "${ac_cv_prog_LIPO+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7103else
7104 if test -n "$LIPO"; then
7105 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7106else
c6b750e1
DJ
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114 ac_cv_prog_LIPO="${ncn_progname}"
7115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118done
7119done
7120
be01d343
PB
7121fi
7122fi
c6b750e1 7123LIPO=$ac_cv_prog_LIPO
be01d343 7124if test -n "$LIPO"; then
c6b750e1
DJ
7125 echo "$as_me:$LINENO: result: $LIPO" >&5
7126echo "${ECHO_T}$LIPO" >&6
be01d343 7127else
c6b750e1
DJ
7128 echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6
be01d343 7130fi
c6b750e1 7131
be01d343
PB
7132 fi
7133 test -n "$ac_cv_prog_LIPO" && break
7134done
7135
7136if test -z "$ac_cv_prog_LIPO" ; then
7137 set dummy lipo
7138 if test $build = $host ; then
7139 LIPO="$2"
7140 else
7141 LIPO="${ncn_tool_prefix}$2"
7142 fi
7143fi
7144
9a819804
AO
7145
7146
7147if test -n "$NM"; then
7148 ac_cv_prog_NM=$NM
7149elif test -n "$ac_cv_prog_NM"; then
7150 NM=$ac_cv_prog_NM
7151fi
7152
7153if test -n "$ac_cv_prog_NM"; then
7154 for ncn_progname in nm; do
7155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7156set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7157echo "$as_me:$LINENO: checking for $ac_word" >&5
7158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7159if test "${ac_cv_prog_NM+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7161else
7162 if test -n "$NM"; then
7163 ac_cv_prog_NM="$NM" # Let the user override the test.
7164else
c6b750e1
DJ
7165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7172 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 break 2
7175 fi
7176done
7177done
7178
859789af
AC
7179fi
7180fi
c6b750e1 7181NM=$ac_cv_prog_NM
859789af 7182if test -n "$NM"; then
c6b750e1
DJ
7183 echo "$as_me:$LINENO: result: $NM" >&5
7184echo "${ECHO_T}$NM" >&6
859789af 7185else
c6b750e1
DJ
7186 echo "$as_me:$LINENO: result: no" >&5
7187echo "${ECHO_T}no" >&6
859789af
AC
7188fi
7189
9a819804
AO
7190 done
7191fi
7192
7193for ncn_progname in nm; do
7194 if test -n "$ncn_tool_prefix"; then
7195 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7196set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7197echo "$as_me:$LINENO: checking for $ac_word" >&5
7198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7199if test "${ac_cv_prog_NM+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7201else
05cbd757
PB
7202 if test -n "$NM"; then
7203 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7204else
c6b750e1
DJ
7205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206for as_dir in $PATH
7207do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7212 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7215 fi
7216done
7217done
7218
859789af
AC
7219fi
7220fi
c6b750e1 7221NM=$ac_cv_prog_NM
05cbd757 7222if test -n "$NM"; then
c6b750e1
DJ
7223 echo "$as_me:$LINENO: result: $NM" >&5
7224echo "${ECHO_T}$NM" >&6
859789af 7225else
c6b750e1
DJ
7226 echo "$as_me:$LINENO: result: no" >&5
7227echo "${ECHO_T}no" >&6
859789af 7228fi
c6b750e1 7229
05cbd757 7230 fi
9a819804
AO
7231 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7233set dummy ${ncn_progname}; ac_word=$2
7234echo "$as_me:$LINENO: checking for $ac_word" >&5
7235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7236if test "${ac_cv_prog_NM+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238else
7239 if test -n "$NM"; then
7240 ac_cv_prog_NM="$NM" # Let the user override the test.
7241else
7242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243for as_dir in $PATH
7244do
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7249 ac_cv_prog_NM="${ncn_progname}"
7250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 break 2
7252 fi
7253done
7254done
7255
7256fi
7257fi
7258NM=$ac_cv_prog_NM
7259if test -n "$NM"; then
7260 echo "$as_me:$LINENO: result: $NM" >&5
7261echo "${ECHO_T}$NM" >&6
7262else
7263 echo "$as_me:$LINENO: result: no" >&5
7264echo "${ECHO_T}no" >&6
7265fi
7266
7267 fi
7268 test -n "$ac_cv_prog_NM" && break
7269done
7270
7271if test -z "$ac_cv_prog_NM" ; then
7272 set dummy nm
7273 if test $build = $host ; then
7274 NM="$2"
7275 else
7276 NM="${ncn_tool_prefix}$2"
7277 fi
7278fi
7279
7280
7281
7282if test -n "$RANLIB"; then
7283 ac_cv_prog_RANLIB=$RANLIB
7284elif test -n "$ac_cv_prog_RANLIB"; then
7285 RANLIB=$ac_cv_prog_RANLIB
7286fi
7287
7288if test -n "$ac_cv_prog_RANLIB"; then
7289 for ncn_progname in ranlib; do
7290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7291set dummy ${ncn_progname}; ac_word=$2
7292echo "$as_me:$LINENO: checking for $ac_word" >&5
7293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7294if test "${ac_cv_prog_RANLIB+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296else
7297 if test -n "$RANLIB"; then
7298 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7299else
7300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301for as_dir in $PATH
7302do
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_RANLIB="${ncn_progname}"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 break 2
7310 fi
7311done
7312done
7313
7314fi
7315fi
7316RANLIB=$ac_cv_prog_RANLIB
7317if test -n "$RANLIB"; then
7318 echo "$as_me:$LINENO: result: $RANLIB" >&5
7319echo "${ECHO_T}$RANLIB" >&6
7320else
7321 echo "$as_me:$LINENO: result: no" >&5
7322echo "${ECHO_T}no" >&6
7323fi
7324
7325 done
7326fi
859789af 7327
9a819804 7328for ncn_progname in ranlib; do
05cbd757
PB
7329 if test -n "$ncn_tool_prefix"; then
7330 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7331set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7332echo "$as_me:$LINENO: checking for $ac_word" >&5
7333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7334if test "${ac_cv_prog_RANLIB+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7336else
7337 if test -n "$RANLIB"; then
7338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7339else
c6b750e1
DJ
7340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341for as_dir in $PATH
7342do
7343 IFS=$as_save_IFS
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 break 2
7350 fi
7351done
7352done
7353
859789af
AC
7354fi
7355fi
c6b750e1 7356RANLIB=$ac_cv_prog_RANLIB
859789af 7357if test -n "$RANLIB"; then
c6b750e1
DJ
7358 echo "$as_me:$LINENO: result: $RANLIB" >&5
7359echo "${ECHO_T}$RANLIB" >&6
859789af 7360else
c6b750e1
DJ
7361 echo "$as_me:$LINENO: result: no" >&5
7362echo "${ECHO_T}no" >&6
859789af
AC
7363fi
7364
05cbd757
PB
7365 fi
7366 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7368set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7369echo "$as_me:$LINENO: checking for $ac_word" >&5
7370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7371if test "${ac_cv_prog_RANLIB+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7373else
05cbd757
PB
7374 if test -n "$RANLIB"; then
7375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7376else
c6b750e1
DJ
7377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7384 ac_cv_prog_RANLIB="${ncn_progname}"
7385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 break 2
7387 fi
7388done
7389done
7390
859789af
AC
7391fi
7392fi
c6b750e1 7393RANLIB=$ac_cv_prog_RANLIB
05cbd757 7394if test -n "$RANLIB"; then
c6b750e1
DJ
7395 echo "$as_me:$LINENO: result: $RANLIB" >&5
7396echo "${ECHO_T}$RANLIB" >&6
859789af 7397else
c6b750e1
DJ
7398 echo "$as_me:$LINENO: result: no" >&5
7399echo "${ECHO_T}no" >&6
859789af 7400fi
c6b750e1 7401
859789af 7402 fi
05cbd757
PB
7403 test -n "$ac_cv_prog_RANLIB" && break
7404done
7405
7406if test -z "$ac_cv_prog_RANLIB" ; then
7407 RANLIB=":"
859789af
AC
7408fi
7409
9a819804
AO
7410
7411
7412if test -n "$STRIP"; then
7413 ac_cv_prog_STRIP=$STRIP
7414elif test -n "$ac_cv_prog_STRIP"; then
7415 STRIP=$ac_cv_prog_STRIP
7416fi
7417
7418if test -n "$ac_cv_prog_STRIP"; then
7419 for ncn_progname in strip; do
7420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7421set dummy ${ncn_progname}; ac_word=$2
7422echo "$as_me:$LINENO: checking for $ac_word" >&5
7423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7424if test "${ac_cv_prog_STRIP+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7426else
7427 if test -n "$STRIP"; then
7428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7429else
7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_STRIP="${ncn_progname}"
7438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7440 fi
7441done
7442done
7443
7444fi
7445fi
7446STRIP=$ac_cv_prog_STRIP
7447if test -n "$STRIP"; then
7448 echo "$as_me:$LINENO: result: $STRIP" >&5
7449echo "${ECHO_T}$STRIP" >&6
7450else
7451 echo "$as_me:$LINENO: result: no" >&5
7452echo "${ECHO_T}no" >&6
7453fi
7454
7455 done
7456fi
7457
7458for ncn_progname in strip; do
be01d343
PB
7459 if test -n "$ncn_tool_prefix"; then
7460 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7461set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7462echo "$as_me:$LINENO: checking for $ac_word" >&5
7463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7464if test "${ac_cv_prog_STRIP+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7466else
7467 if test -n "$STRIP"; then
7468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7469else
c6b750e1
DJ
7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471for as_dir in $PATH
7472do
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 break 2
7480 fi
7481done
7482done
7483
be01d343
PB
7484fi
7485fi
c6b750e1 7486STRIP=$ac_cv_prog_STRIP
be01d343 7487if test -n "$STRIP"; then
c6b750e1
DJ
7488 echo "$as_me:$LINENO: result: $STRIP" >&5
7489echo "${ECHO_T}$STRIP" >&6
be01d343 7490else
c6b750e1
DJ
7491 echo "$as_me:$LINENO: result: no" >&5
7492echo "${ECHO_T}no" >&6
be01d343
PB
7493fi
7494
7495 fi
7496 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7498set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7499echo "$as_me:$LINENO: checking for $ac_word" >&5
7500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7501if test "${ac_cv_prog_STRIP+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7503else
7504 if test -n "$STRIP"; then
7505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7506else
c6b750e1
DJ
7507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508for as_dir in $PATH
7509do
7510 IFS=$as_save_IFS
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7514 ac_cv_prog_STRIP="${ncn_progname}"
7515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 break 2
7517 fi
7518done
7519done
7520
be01d343
PB
7521fi
7522fi
c6b750e1 7523STRIP=$ac_cv_prog_STRIP
be01d343 7524if test -n "$STRIP"; then
c6b750e1
DJ
7525 echo "$as_me:$LINENO: result: $STRIP" >&5
7526echo "${ECHO_T}$STRIP" >&6
be01d343 7527else
c6b750e1
DJ
7528 echo "$as_me:$LINENO: result: no" >&5
7529echo "${ECHO_T}no" >&6
be01d343 7530fi
c6b750e1 7531
be01d343
PB
7532 fi
7533 test -n "$ac_cv_prog_STRIP" && break
7534done
7535
7536if test -z "$ac_cv_prog_STRIP" ; then
7537 STRIP=":"
7538fi
7539
9a819804
AO
7540
7541
7542if test -n "$WINDRES"; then
7543 ac_cv_prog_WINDRES=$WINDRES
7544elif test -n "$ac_cv_prog_WINDRES"; then
7545 WINDRES=$ac_cv_prog_WINDRES
7546fi
7547
7548if test -n "$ac_cv_prog_WINDRES"; then
7549 for ncn_progname in windres; do
7550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7551set dummy ${ncn_progname}; ac_word=$2
7552echo "$as_me:$LINENO: checking for $ac_word" >&5
7553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7554if test "${ac_cv_prog_WINDRES+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7556else
7557 if test -n "$WINDRES"; then
7558 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7559else
7560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561for as_dir in $PATH
7562do
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7567 ac_cv_prog_WINDRES="${ncn_progname}"
7568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 break 2
7570 fi
7571done
7572done
7573
7574fi
7575fi
7576WINDRES=$ac_cv_prog_WINDRES
7577if test -n "$WINDRES"; then
7578 echo "$as_me:$LINENO: result: $WINDRES" >&5
7579echo "${ECHO_T}$WINDRES" >&6
7580else
7581 echo "$as_me:$LINENO: result: no" >&5
7582echo "${ECHO_T}no" >&6
7583fi
7584
7585 done
7586fi
7587
7588for ncn_progname in windres; do
05cbd757
PB
7589 if test -n "$ncn_tool_prefix"; then
7590 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7591set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7592echo "$as_me:$LINENO: checking for $ac_word" >&5
7593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7594if test "${ac_cv_prog_WINDRES+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7596else
7597 if test -n "$WINDRES"; then
7598 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7599else
c6b750e1
DJ
7600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in $PATH
7602do
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7607 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7610 fi
7611done
7612done
7613
859789af
AC
7614fi
7615fi
c6b750e1 7616WINDRES=$ac_cv_prog_WINDRES
859789af 7617if test -n "$WINDRES"; then
c6b750e1
DJ
7618 echo "$as_me:$LINENO: result: $WINDRES" >&5
7619echo "${ECHO_T}$WINDRES" >&6
859789af 7620else
c6b750e1
DJ
7621 echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
859789af
AC
7623fi
7624
05cbd757
PB
7625 fi
7626 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7628set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7629echo "$as_me:$LINENO: checking for $ac_word" >&5
7630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7631if test "${ac_cv_prog_WINDRES+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7633else
05cbd757
PB
7634 if test -n "$WINDRES"; then
7635 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7636else
c6b750e1
DJ
7637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638for as_dir in $PATH
7639do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644 ac_cv_prog_WINDRES="${ncn_progname}"
7645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7647 fi
7648done
7649done
7650
859789af
AC
7651fi
7652fi
c6b750e1 7653WINDRES=$ac_cv_prog_WINDRES
05cbd757 7654if test -n "$WINDRES"; then
c6b750e1
DJ
7655 echo "$as_me:$LINENO: result: $WINDRES" >&5
7656echo "${ECHO_T}$WINDRES" >&6
859789af 7657else
c6b750e1
DJ
7658 echo "$as_me:$LINENO: result: no" >&5
7659echo "${ECHO_T}no" >&6
859789af 7660fi
c6b750e1 7661
05cbd757
PB
7662 fi
7663 test -n "$ac_cv_prog_WINDRES" && break
7664done
7665
7666if test -z "$ac_cv_prog_WINDRES" ; then
7667 set dummy windres
7668 if test $build = $host ; then
7669 WINDRES="$2"
859789af 7670 else
05cbd757 7671 WINDRES="${ncn_tool_prefix}$2"
859789af 7672 fi
859789af
AC
7673fi
7674
9a819804
AO
7675
7676
0c24b341
NC
7677if test -n "$WINDMC"; then
7678 ac_cv_prog_WINDMC=$WINDMC
7679elif test -n "$ac_cv_prog_WINDMC"; then
7680 WINDMC=$ac_cv_prog_WINDMC
7681fi
7682
7683if test -n "$ac_cv_prog_WINDMC"; then
7684 for ncn_progname in windmc; do
7685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7686set dummy ${ncn_progname}; ac_word=$2
7687echo "$as_me:$LINENO: checking for $ac_word" >&5
7688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7689if test "${ac_cv_prog_WINDMC+set}" = set; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7691else
7692 if test -n "$WINDMC"; then
7693 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7694else
7695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696for as_dir in $PATH
7697do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7702 ac_cv_prog_WINDMC="${ncn_progname}"
7703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 break 2
7705 fi
7706done
7707done
7708
7709fi
7710fi
7711WINDMC=$ac_cv_prog_WINDMC
7712if test -n "$WINDMC"; then
7713 echo "$as_me:$LINENO: result: $WINDMC" >&5
7714echo "${ECHO_T}$WINDMC" >&6
7715else
7716 echo "$as_me:$LINENO: result: no" >&5
7717echo "${ECHO_T}no" >&6
7718fi
7719
7720 done
7721fi
7722
7723for ncn_progname in windmc; do
7724 if test -n "$ncn_tool_prefix"; then
7725 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7726set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7727echo "$as_me:$LINENO: checking for $ac_word" >&5
7728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7729if test "${ac_cv_prog_WINDMC+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7731else
7732 if test -n "$WINDMC"; then
7733 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7734else
7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7745 fi
7746done
7747done
7748
7749fi
7750fi
7751WINDMC=$ac_cv_prog_WINDMC
7752if test -n "$WINDMC"; then
7753 echo "$as_me:$LINENO: result: $WINDMC" >&5
7754echo "${ECHO_T}$WINDMC" >&6
7755else
7756 echo "$as_me:$LINENO: result: no" >&5
7757echo "${ECHO_T}no" >&6
7758fi
7759
7760 fi
7761 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7763set dummy ${ncn_progname}; ac_word=$2
7764echo "$as_me:$LINENO: checking for $ac_word" >&5
7765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7766if test "${ac_cv_prog_WINDMC+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7768else
7769 if test -n "$WINDMC"; then
7770 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7771else
7772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779 ac_cv_prog_WINDMC="${ncn_progname}"
7780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 break 2
7782 fi
7783done
7784done
7785
7786fi
7787fi
7788WINDMC=$ac_cv_prog_WINDMC
7789if test -n "$WINDMC"; then
7790 echo "$as_me:$LINENO: result: $WINDMC" >&5
7791echo "${ECHO_T}$WINDMC" >&6
7792else
7793 echo "$as_me:$LINENO: result: no" >&5
7794echo "${ECHO_T}no" >&6
7795fi
7796
7797 fi
7798 test -n "$ac_cv_prog_WINDMC" && break
7799done
7800
7801if test -z "$ac_cv_prog_WINDMC" ; then
7802 set dummy windmc
7803 if test $build = $host ; then
7804 WINDMC="$2"
7805 else
7806 WINDMC="${ncn_tool_prefix}$2"
7807 fi
7808fi
7809
7810
7811
9a819804
AO
7812if test -n "$OBJCOPY"; then
7813 ac_cv_prog_OBJCOPY=$OBJCOPY
7814elif test -n "$ac_cv_prog_OBJCOPY"; then
7815 OBJCOPY=$ac_cv_prog_OBJCOPY
7816fi
7817
7818if test -n "$ac_cv_prog_OBJCOPY"; then
7819 for ncn_progname in objcopy; do
7820 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7821set dummy ${ncn_progname}; ac_word=$2
7822echo "$as_me:$LINENO: checking for $ac_word" >&5
7823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7824if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7826else
7827 if test -n "$OBJCOPY"; then
7828 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7829else
7830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837 ac_cv_prog_OBJCOPY="${ncn_progname}"
7838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841done
7842done
7843
7844fi
7845fi
7846OBJCOPY=$ac_cv_prog_OBJCOPY
7847if test -n "$OBJCOPY"; then
7848 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7849echo "${ECHO_T}$OBJCOPY" >&6
7850else
7851 echo "$as_me:$LINENO: result: no" >&5
7852echo "${ECHO_T}no" >&6
7853fi
7854
7855 done
7856fi
7857
7858for ncn_progname in objcopy; do
05cbd757
PB
7859 if test -n "$ncn_tool_prefix"; then
7860 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7861set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7862echo "$as_me:$LINENO: checking for $ac_word" >&5
7863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7864if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7866else
7867 if test -n "$OBJCOPY"; then
7868 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7869else
c6b750e1
DJ
7870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871for as_dir in $PATH
7872do
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7877 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7880 fi
7881done
7882done
7883
859789af
AC
7884fi
7885fi
c6b750e1 7886OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7887if test -n "$OBJCOPY"; then
c6b750e1
DJ
7888 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7889echo "${ECHO_T}$OBJCOPY" >&6
859789af 7890else
c6b750e1
DJ
7891 echo "$as_me:$LINENO: result: no" >&5
7892echo "${ECHO_T}no" >&6
859789af
AC
7893fi
7894
05cbd757
PB
7895 fi
7896 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7898set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7899echo "$as_me:$LINENO: checking for $ac_word" >&5
7900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7901if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7903else
05cbd757
PB
7904 if test -n "$OBJCOPY"; then
7905 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7906else
c6b750e1
DJ
7907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908for as_dir in $PATH
7909do
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914 ac_cv_prog_OBJCOPY="${ncn_progname}"
7915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 break 2
7917 fi
7918done
7919done
7920
859789af
AC
7921fi
7922fi
c6b750e1 7923OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7924if test -n "$OBJCOPY"; then
c6b750e1
DJ
7925 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7926echo "${ECHO_T}$OBJCOPY" >&6
859789af 7927else
c6b750e1
DJ
7928 echo "$as_me:$LINENO: result: no" >&5
7929echo "${ECHO_T}no" >&6
859789af 7930fi
c6b750e1 7931
05cbd757
PB
7932 fi
7933 test -n "$ac_cv_prog_OBJCOPY" && break
7934done
7935
7936if test -z "$ac_cv_prog_OBJCOPY" ; then
7937 set dummy objcopy
7938 if test $build = $host ; then
7939 OBJCOPY="$2"
859789af 7940 else
05cbd757 7941 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7942 fi
859789af
AC
7943fi
7944
9a819804
AO
7945
7946
7947if test -n "$OBJDUMP"; then
7948 ac_cv_prog_OBJDUMP=$OBJDUMP
7949elif test -n "$ac_cv_prog_OBJDUMP"; then
7950 OBJDUMP=$ac_cv_prog_OBJDUMP
7951fi
7952
7953if test -n "$ac_cv_prog_OBJDUMP"; then
7954 for ncn_progname in objdump; do
7955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7956set dummy ${ncn_progname}; ac_word=$2
7957echo "$as_me:$LINENO: checking for $ac_word" >&5
7958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7959if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7961else
7962 if test -n "$OBJDUMP"; then
7963 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7964else
7965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966for as_dir in $PATH
7967do
7968 IFS=$as_save_IFS
7969 test -z "$as_dir" && as_dir=.
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7972 ac_cv_prog_OBJDUMP="${ncn_progname}"
7973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7974 break 2
7975 fi
7976done
7977done
7978
7979fi
7980fi
7981OBJDUMP=$ac_cv_prog_OBJDUMP
7982if test -n "$OBJDUMP"; then
7983 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7984echo "${ECHO_T}$OBJDUMP" >&6
7985else
7986 echo "$as_me:$LINENO: result: no" >&5
7987echo "${ECHO_T}no" >&6
7988fi
7989
7990 done
7991fi
7992
7993for ncn_progname in objdump; do
05cbd757
PB
7994 if test -n "$ncn_tool_prefix"; then
7995 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7996set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7997echo "$as_me:$LINENO: checking for $ac_word" >&5
7998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7999if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8001else
8002 if test -n "$OBJDUMP"; then
8003 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8004else
c6b750e1
DJ
8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006for as_dir in $PATH
8007do
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8012 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 break 2
8015 fi
8016done
8017done
8018
859789af
AC
8019fi
8020fi
c6b750e1 8021OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8022if test -n "$OBJDUMP"; then
c6b750e1
DJ
8023 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8024echo "${ECHO_T}$OBJDUMP" >&6
859789af 8025else
c6b750e1
DJ
8026 echo "$as_me:$LINENO: result: no" >&5
8027echo "${ECHO_T}no" >&6
859789af
AC
8028fi
8029
05cbd757
PB
8030 fi
8031 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8033set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8034echo "$as_me:$LINENO: checking for $ac_word" >&5
8035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8036if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8038else
05cbd757
PB
8039 if test -n "$OBJDUMP"; then
8040 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8041else
c6b750e1
DJ
8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8049 ac_cv_prog_OBJDUMP="${ncn_progname}"
8050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053done
8054done
8055
859789af
AC
8056fi
8057fi
c6b750e1 8058OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8059if test -n "$OBJDUMP"; then
c6b750e1
DJ
8060 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8061echo "${ECHO_T}$OBJDUMP" >&6
859789af 8062else
c6b750e1
DJ
8063 echo "$as_me:$LINENO: result: no" >&5
8064echo "${ECHO_T}no" >&6
859789af 8065fi
c6b750e1 8066
05cbd757
PB
8067 fi
8068 test -n "$ac_cv_prog_OBJDUMP" && break
8069done
8070
8071if test -z "$ac_cv_prog_OBJDUMP" ; then
8072 set dummy objdump
8073 if test $build = $host ; then
8074 OBJDUMP="$2"
859789af 8075 else
05cbd757 8076 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8077 fi
859789af
AC
8078fi
8079
a0da8069
NN
8080
8081
8082
8083
8084
be01d343 8085# Target tools.
c6b750e1 8086
2429c060
PB
8087# Check whether --with-build-time-tools or --without-build-time-tools was given.
8088if test "${with_build_time_tools+set}" = set; then
8089 withval="$with_build_time_tools"
8090 case x"$withval" in
8091 x/*) ;;
8092 *)
8093 with_build_time_tools=
c6b750e1
DJ
8094 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8095echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8096 ;;
8097 esac
859789af 8098else
2429c060 8099 with_build_time_tools=
c6b750e1 8100fi;
859789af 8101
9a819804
AO
8102
8103
8104if test -n "$CC_FOR_TARGET"; then
8105 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8106elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8107 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8108fi
8109
8110if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8111 for ncn_progname in cc gcc; do
8112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8113set dummy ${ncn_progname}; ac_word=$2
8114echo "$as_me:$LINENO: checking for $ac_word" >&5
8115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8116if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118else
8119 if test -n "$CC_FOR_TARGET"; then
8120 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8121else
8122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123for as_dir in $PATH
8124do
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8129 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 break 2
8132 fi
8133done
8134done
8135
8136fi
8137fi
8138CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8139if test -n "$CC_FOR_TARGET"; then
8140 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8141echo "${ECHO_T}$CC_FOR_TARGET" >&6
8142else
8143 echo "$as_me:$LINENO: result: no" >&5
8144echo "${ECHO_T}no" >&6
8145fi
8146
8147 done
8148fi
8149
8150if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8151 for ncn_progname in cc gcc; do
c6b750e1
DJ
8152 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8153echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8154 if test -x $with_build_time_tools/${ncn_progname}; then
8155 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8156 echo "$as_me:$LINENO: result: yes" >&5
8157echo "${ECHO_T}yes" >&6
cac3d6c4 8158 break
2429c060 8159 else
c6b750e1
DJ
8160 echo "$as_me:$LINENO: result: no" >&5
8161echo "${ECHO_T}no" >&6
cac3d6c4
CM
8162 fi
8163 done
55db4b87
PB
8164fi
8165
2429c060
PB
8166if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8167 for ncn_progname in cc gcc; do
8168 if test -n "$ncn_target_tool_prefix"; then
8169 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8170set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8171echo "$as_me:$LINENO: checking for $ac_word" >&5
8172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8173if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8175else
8176 if test -n "$CC_FOR_TARGET"; then
8177 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8178else
c6b750e1
DJ
8179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180for as_dir in $PATH
8181do
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8186 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8189 fi
8190done
8191done
8192
55db4b87
PB
8193fi
8194fi
c6b750e1 8195CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8196if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8197 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8198echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8199else
c6b750e1
DJ
8200 echo "$as_me:$LINENO: result: no" >&5
8201echo "${ECHO_T}no" >&6
55db4b87
PB
8202fi
8203
2429c060
PB
8204 fi
8205 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8207set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8208echo "$as_me:$LINENO: checking for $ac_word" >&5
8209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8210if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8212else
05cbd757
PB
8213 if test -n "$CC_FOR_TARGET"; then
8214 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8215else
c6b750e1
DJ
8216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217for as_dir in $PATH
8218do
8219 IFS=$as_save_IFS
8220 test -z "$as_dir" && as_dir=.
8221 for ac_exec_ext in '' $ac_executable_extensions; do
8222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8223 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8225 break 2
8226 fi
8227done
8228done
8229
55db4b87
PB
8230fi
8231fi
c6b750e1 8232CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8233if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8234 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8235echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8236else
c6b750e1
DJ
8237 echo "$as_me:$LINENO: result: no" >&5
8238echo "${ECHO_T}no" >&6
55db4b87 8239fi
c6b750e1 8240
2429c060
PB
8241 fi
8242 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8243 done
8244fi
c6b750e1 8245
05cbd757
PB
8246if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8247 set dummy cc gcc
8248 if test $build = $target ; then
8249 CC_FOR_TARGET="$2"
55db4b87 8250 else
05cbd757 8251 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8252 fi
d3f5afc4
MS
8253else
8254 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8255fi
8256
9a819804
AO
8257
8258
8259if test -n "$CXX_FOR_TARGET"; then
8260 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8261elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8262 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8263fi
8264
8265if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8266 for ncn_progname in c++ g++ cxx gxx; do
8267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8268set dummy ${ncn_progname}; ac_word=$2
8269echo "$as_me:$LINENO: checking for $ac_word" >&5
8270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8271if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8273else
8274 if test -n "$CXX_FOR_TARGET"; then
8275 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8276else
8277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278for as_dir in $PATH
8279do
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8284 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 break 2
8287 fi
8288done
8289done
8290
8291fi
8292fi
8293CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8294if test -n "$CXX_FOR_TARGET"; then
8295 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8296echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8297else
8298 echo "$as_me:$LINENO: result: no" >&5
8299echo "${ECHO_T}no" >&6
8300fi
8301
8302 done
8303fi
8304
8305if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8306 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8307 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8308echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8309 if test -x $with_build_time_tools/${ncn_progname}; then
8310 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8311 echo "$as_me:$LINENO: result: yes" >&5
8312echo "${ECHO_T}yes" >&6
2429c060
PB
8313 break
8314 else
c6b750e1
DJ
8315 echo "$as_me:$LINENO: result: no" >&5
8316echo "${ECHO_T}no" >&6
2429c060
PB
8317 fi
8318 done
8319fi
8320
8321if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8322 for ncn_progname in c++ g++ cxx gxx; do
8323 if test -n "$ncn_target_tool_prefix"; then
8324 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8325set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8326echo "$as_me:$LINENO: checking for $ac_word" >&5
8327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8328if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8330else
8331 if test -n "$CXX_FOR_TARGET"; then
8332 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8333else
c6b750e1
DJ
8334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335for as_dir in $PATH
8336do
8337 IFS=$as_save_IFS
8338 test -z "$as_dir" && as_dir=.
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8341 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8343 break 2
8344 fi
8345done
8346done
8347
55db4b87
PB
8348fi
8349fi
c6b750e1 8350CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8351if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8352 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8353echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8354else
c6b750e1
DJ
8355 echo "$as_me:$LINENO: result: no" >&5
8356echo "${ECHO_T}no" >&6
55db4b87
PB
8357fi
8358
2429c060
PB
8359 fi
8360 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8362set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8363echo "$as_me:$LINENO: checking for $ac_word" >&5
8364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8365if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8367else
05cbd757
PB
8368 if test -n "$CXX_FOR_TARGET"; then
8369 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8370else
c6b750e1
DJ
8371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372for as_dir in $PATH
8373do
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8378 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 break 2
8381 fi
8382done
8383done
8384
55db4b87
PB
8385fi
8386fi
c6b750e1 8387CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8388if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8389 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8390echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8391else
c6b750e1
DJ
8392 echo "$as_me:$LINENO: result: no" >&5
8393echo "${ECHO_T}no" >&6
55db4b87 8394fi
c6b750e1 8395
2429c060
PB
8396 fi
8397 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8398 done
8399fi
c6b750e1 8400
05cbd757
PB
8401if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8402 set dummy c++ g++ cxx gxx
8403 if test $build = $target ; then
8404 CXX_FOR_TARGET="$2"
55db4b87 8405 else
05cbd757 8406 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8407 fi
d3f5afc4
MS
8408else
8409 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8410fi
8411
9a819804
AO
8412
8413
8414if test -n "$GCC_FOR_TARGET"; then
8415 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8416elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8417 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8418fi
8419
8420if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8421 for ncn_progname in gcc; do
8422 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8423set dummy ${ncn_progname}; ac_word=$2
8424echo "$as_me:$LINENO: checking for $ac_word" >&5
8425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8426if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428else
8429 if test -n "$GCC_FOR_TARGET"; then
8430 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8431else
8432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433for as_dir in $PATH
8434do
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8439 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 break 2
8442 fi
8443done
8444done
8445
8446fi
8447fi
8448GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8449if test -n "$GCC_FOR_TARGET"; then
8450 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8451echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8452else
8453 echo "$as_me:$LINENO: result: no" >&5
8454echo "${ECHO_T}no" >&6
8455fi
8456
8457 done
8458fi
8459
8460if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8461 for ncn_progname in gcc; do
c6b750e1
DJ
8462 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8463echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8464 if test -x $with_build_time_tools/${ncn_progname}; then
8465 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8466 echo "$as_me:$LINENO: result: yes" >&5
8467echo "${ECHO_T}yes" >&6
2429c060
PB
8468 break
8469 else
c6b750e1
DJ
8470 echo "$as_me:$LINENO: result: no" >&5
8471echo "${ECHO_T}no" >&6
2429c060
PB
8472 fi
8473 done
8474fi
8475
8476if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8477 for ncn_progname in gcc; do
8478 if test -n "$ncn_target_tool_prefix"; then
8479 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8480set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8481echo "$as_me:$LINENO: checking for $ac_word" >&5
8482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8483if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8485else
2429c060
PB
8486 if test -n "$GCC_FOR_TARGET"; then
8487 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8488else
c6b750e1
DJ
8489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490for as_dir in $PATH
8491do
8492 IFS=$as_save_IFS
8493 test -z "$as_dir" && as_dir=.
8494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8496 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 break 2
8499 fi
8500done
8501done
8502
55db4b87
PB
8503fi
8504fi
c6b750e1 8505GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8506if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8507 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8508echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8509else
c6b750e1
DJ
8510 echo "$as_me:$LINENO: result: no" >&5
8511echo "${ECHO_T}no" >&6
55db4b87
PB
8512fi
8513
2429c060
PB
8514 fi
8515 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8517set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8518echo "$as_me:$LINENO: checking for $ac_word" >&5
8519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8520if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8522else
05cbd757
PB
8523 if test -n "$GCC_FOR_TARGET"; then
8524 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8525else
c6b750e1
DJ
8526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527for as_dir in $PATH
8528do
8529 IFS=$as_save_IFS
8530 test -z "$as_dir" && as_dir=.
8531 for ac_exec_ext in '' $ac_executable_extensions; do
8532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8533 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8535 break 2
8536 fi
8537done
8538done
8539
55db4b87
PB
8540fi
8541fi
c6b750e1 8542GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8543if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8544 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8545echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8546else
c6b750e1
DJ
8547 echo "$as_me:$LINENO: result: no" >&5
8548echo "${ECHO_T}no" >&6
55db4b87 8549fi
c6b750e1 8550
2429c060
PB
8551 fi
8552 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8553 done
8554fi
c6b750e1 8555
05cbd757
PB
8556if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8557 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8558else
8559 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8560fi
8561
9a819804
AO
8562
8563
8564if test -n "$GCJ_FOR_TARGET"; then
8565 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8566elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8567 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8568fi
8569
8570if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8571 for ncn_progname in gcj; do
8572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8573set dummy ${ncn_progname}; ac_word=$2
8574echo "$as_me:$LINENO: checking for $ac_word" >&5
8575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8576if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8578else
8579 if test -n "$GCJ_FOR_TARGET"; then
8580 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8581else
8582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583for as_dir in $PATH
8584do
8585 IFS=$as_save_IFS
8586 test -z "$as_dir" && as_dir=.
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8589 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8591 break 2
8592 fi
8593done
8594done
8595
8596fi
8597fi
8598GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8599if test -n "$GCJ_FOR_TARGET"; then
8600 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8601echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8602else
8603 echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605fi
8606
8607 done
8608fi
8609
8610if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8611 for ncn_progname in gcj; do
c6b750e1
DJ
8612 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8613echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8614 if test -x $with_build_time_tools/${ncn_progname}; then
8615 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8616 echo "$as_me:$LINENO: result: yes" >&5
8617echo "${ECHO_T}yes" >&6
2429c060
PB
8618 break
8619 else
c6b750e1
DJ
8620 echo "$as_me:$LINENO: result: no" >&5
8621echo "${ECHO_T}no" >&6
2429c060
PB
8622 fi
8623 done
8624fi
8625
8626if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8627 for ncn_progname in gcj; do
8628 if test -n "$ncn_target_tool_prefix"; then
8629 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8630set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8631echo "$as_me:$LINENO: checking for $ac_word" >&5
8632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8633if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8635else
8636 if test -n "$GCJ_FOR_TARGET"; then
8637 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8638else
c6b750e1
DJ
8639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640for as_dir in $PATH
8641do
8642 IFS=$as_save_IFS
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8646 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 break 2
8649 fi
8650done
8651done
8652
55db4b87
PB
8653fi
8654fi
9a819804
AO
8655GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8656if test -n "$GCJ_FOR_TARGET"; then
8657 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8658echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8659else
8660 echo "$as_me:$LINENO: result: no" >&5
8661echo "${ECHO_T}no" >&6
8662fi
8663
8664 fi
8665 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8667set dummy ${ncn_progname}; ac_word=$2
8668echo "$as_me:$LINENO: checking for $ac_word" >&5
8669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8670if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8672else
8673 if test -n "$GCJ_FOR_TARGET"; then
8674 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8675else
8676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677for as_dir in $PATH
8678do
8679 IFS=$as_save_IFS
8680 test -z "$as_dir" && as_dir=.
8681 for ac_exec_ext in '' $ac_executable_extensions; do
8682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8683 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8685 break 2
8686 fi
8687done
8688done
8689
8690fi
8691fi
8692GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8693if test -n "$GCJ_FOR_TARGET"; then
8694 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8695echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8696else
8697 echo "$as_me:$LINENO: result: no" >&5
8698echo "${ECHO_T}no" >&6
8699fi
8700
8701 fi
8702 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8703 done
8704fi
8705
8706if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8707 set dummy gcj
8708 if test $build = $target ; then
8709 GCJ_FOR_TARGET="$2"
8710 else
8711 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8712 fi
d3f5afc4
MS
8713else
8714 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8715fi
8716
8717
8718
8719if test -n "$GFORTRAN_FOR_TARGET"; then
8720 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8721elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8722 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8723fi
8724
9a819804
AO
8725if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8726 for ncn_progname in gfortran; do
8727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8728set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8729echo "$as_me:$LINENO: checking for $ac_word" >&5
8730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8731if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8732 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8733else
9a819804
AO
8734 if test -n "$GFORTRAN_FOR_TARGET"; then
8735 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8736else
c6b750e1
DJ
8737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738for as_dir in $PATH
8739do
8740 IFS=$as_save_IFS
8741 test -z "$as_dir" && as_dir=.
8742 for ac_exec_ext in '' $ac_executable_extensions; do
8743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8744 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8746 break 2
8747 fi
8748done
8749done
8750
55db4b87
PB
8751fi
8752fi
9a819804
AO
8753GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8754if test -n "$GFORTRAN_FOR_TARGET"; then
8755 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8756echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8757else
c6b750e1
DJ
8758 echo "$as_me:$LINENO: result: no" >&5
8759echo "${ECHO_T}no" >&6
55db4b87 8760fi
c6b750e1 8761
2429c060
PB
8762 done
8763fi
c6b750e1 8764
9a819804 8765if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8766 for ncn_progname in gfortran; do
c6b750e1
DJ
8767 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8768echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8769 if test -x $with_build_time_tools/${ncn_progname}; then
8770 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8771 echo "$as_me:$LINENO: result: yes" >&5
8772echo "${ECHO_T}yes" >&6
2429c060
PB
8773 break
8774 else
c6b750e1
DJ
8775 echo "$as_me:$LINENO: result: no" >&5
8776echo "${ECHO_T}no" >&6
2429c060
PB
8777 fi
8778 done
8779fi
8780
8781if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8782 for ncn_progname in gfortran; do
8783 if test -n "$ncn_target_tool_prefix"; then
8784 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8785set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8786echo "$as_me:$LINENO: checking for $ac_word" >&5
8787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8788if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8790else
8791 if test -n "$GFORTRAN_FOR_TARGET"; then
8792 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8793else
c6b750e1
DJ
8794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795for as_dir in $PATH
8796do
8797 IFS=$as_save_IFS
8798 test -z "$as_dir" && as_dir=.
8799 for ac_exec_ext in '' $ac_executable_extensions; do
8800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8801 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8803 break 2
8804 fi
8805done
8806done
8807
55db4b87
PB
8808fi
8809fi
c6b750e1 8810GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8811if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8812 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8813echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8814else
c6b750e1
DJ
8815 echo "$as_me:$LINENO: result: no" >&5
8816echo "${ECHO_T}no" >&6
55db4b87
PB
8817fi
8818
2429c060
PB
8819 fi
8820 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8822set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8823echo "$as_me:$LINENO: checking for $ac_word" >&5
8824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8825if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8827else
05cbd757 8828 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8829 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8830else
8831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832for as_dir in $PATH
8833do
8834 IFS=$as_save_IFS
8835 test -z "$as_dir" && as_dir=.
8836 for ac_exec_ext in '' $ac_executable_extensions; do
8837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8838 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8840 break 2
8841 fi
8842done
8843done
8844
55db4b87
PB
8845fi
8846fi
c6b750e1 8847GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8848if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8849 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8850echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8851else
c6b750e1
DJ
8852 echo "$as_me:$LINENO: result: no" >&5
8853echo "${ECHO_T}no" >&6
55db4b87 8854fi
c6b750e1 8855
2429c060
PB
8856 fi
8857 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8858 done
8859fi
c6b750e1 8860
05cbd757
PB
8861if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8862 set dummy gfortran
8863 if test $build = $target ; then
8864 GFORTRAN_FOR_TARGET="$2"
55db4b87 8865 else
05cbd757 8866 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8867 fi
d3f5afc4
MS
8868else
8869 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8870fi
8871
2429c060
PB
8872
8873
2429c060
PB
8874cat > conftest.c << \EOF
8875#ifdef __GNUC__
8876 gcc_yay;
8877#endif
8878EOF
8879if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8880 have_gcc_for_target=yes
859789af 8881else
2429c060
PB
8882 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8883 have_gcc_for_target=no
859789af 8884fi
2429c060
PB
8885rm conftest.c
8886
8887
8888
859789af 8889
2429c060
PB
8890if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8891 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8892 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8893echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8894 if test -x $with_build_time_tools/ar; then
8895 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8896 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8897 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8898echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8899 else
c6b750e1
DJ
8900 echo "$as_me:$LINENO: result: no" >&5
8901echo "${ECHO_T}no" >&6
3a35eeb3 8902 fi
2429c060
PB
8903 elif test $build != $host && test $have_gcc_for_target = yes; then
8904 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8905 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8906 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8907 fi
2429c060 8908fi
c6b750e1 8909if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8910 # Extract the first word of "ar", so it can be a program name with args.
8911set dummy ar; ac_word=$2
c6b750e1
DJ
8912echo "$as_me:$LINENO: checking for $ac_word" >&5
8913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8914if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8916else
c6b750e1
DJ
8917 case $AR_FOR_TARGET in
8918 [\\/]* | ?:[\\/]*)
2429c060
PB
8919 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8920 ;;
2429c060 8921 *)
c6b750e1
DJ
8922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8923for as_dir in $gcc_cv_tool_dirs
8924do
8925 IFS=$as_save_IFS
8926 test -z "$as_dir" && as_dir=.
8927 for ac_exec_ext in '' $ac_executable_extensions; do
8928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8929 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8931 break 2
8932 fi
8933done
8934done
8935
2429c060
PB
8936 ;;
8937esac
859789af 8938fi
c6b750e1
DJ
8939AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8940
2429c060 8941if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8942 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8943echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8944else
c6b750e1
DJ
8945 echo "$as_me:$LINENO: result: no" >&5
8946echo "${ECHO_T}no" >&6
859789af 8947fi
05cbd757 8948
2429c060
PB
8949fi
8950if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8951
8952
8953if test -n "$AR_FOR_TARGET"; then
8954 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8955elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8956 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8957fi
8958
8959if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8960 for ncn_progname in ar; do
8961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8962set dummy ${ncn_progname}; ac_word=$2
8963echo "$as_me:$LINENO: checking for $ac_word" >&5
8964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8965if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8967else
8968 if test -n "$AR_FOR_TARGET"; then
8969 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8970else
8971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972for as_dir in $PATH
8973do
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8978 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 break 2
8981 fi
8982done
8983done
8984
8985fi
8986fi
8987AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8988if test -n "$AR_FOR_TARGET"; then
8989 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8990echo "${ECHO_T}$AR_FOR_TARGET" >&6
8991else
8992 echo "$as_me:$LINENO: result: no" >&5
8993echo "${ECHO_T}no" >&6
8994fi
8995
8996 done
8997fi
8998
8999if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9000 for ncn_progname in ar; do
c6b750e1
DJ
9001 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9002echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9003 if test -x $with_build_time_tools/${ncn_progname}; then
9004 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9005 echo "$as_me:$LINENO: result: yes" >&5
9006echo "${ECHO_T}yes" >&6
2429c060
PB
9007 break
9008 else
c6b750e1
DJ
9009 echo "$as_me:$LINENO: result: no" >&5
9010echo "${ECHO_T}no" >&6
2429c060
PB
9011 fi
9012 done
859789af
AC
9013fi
9014
2429c060
PB
9015if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9016 for ncn_progname in ar; do
9017 if test -n "$ncn_target_tool_prefix"; then
9018 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9019set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9020echo "$as_me:$LINENO: checking for $ac_word" >&5
9021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9022if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9024else
2429c060
PB
9025 if test -n "$AR_FOR_TARGET"; then
9026 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9027else
c6b750e1
DJ
9028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029for as_dir in $PATH
9030do
9031 IFS=$as_save_IFS
9032 test -z "$as_dir" && as_dir=.
9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9035 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9037 break 2
9038 fi
9039done
9040done
9041
7e0f7140
GK
9042fi
9043fi
c6b750e1 9044AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9045if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9046 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9047echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9048else
c6b750e1
DJ
9049 echo "$as_me:$LINENO: result: no" >&5
9050echo "${ECHO_T}no" >&6
7e0f7140
GK
9051fi
9052
2429c060
PB
9053 fi
9054 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9056set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9057echo "$as_me:$LINENO: checking for $ac_word" >&5
9058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9059if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9060 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9061else
2429c060
PB
9062 if test -n "$AR_FOR_TARGET"; then
9063 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9064else
c6b750e1
DJ
9065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066for as_dir in $PATH
9067do
9068 IFS=$as_save_IFS
9069 test -z "$as_dir" && as_dir=.
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9072 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9074 break 2
9075 fi
9076done
9077done
9078
7e0f7140
GK
9079fi
9080fi
c6b750e1 9081AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9082if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9083 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9084echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9085else
c6b750e1
DJ
9086 echo "$as_me:$LINENO: result: no" >&5
9087echo "${ECHO_T}no" >&6
7e0f7140 9088fi
c6b750e1 9089
2429c060
PB
9090 fi
9091 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9092 done
9093fi
c6b750e1 9094
2429c060
PB
9095if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9096 set dummy ar
7e0f7140 9097 if test $build = $target ; then
2429c060 9098 AR_FOR_TARGET="$2"
7e0f7140 9099 else
2429c060 9100 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9101 fi
d3f5afc4
MS
9102else
9103 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9104fi
9105
3a35eeb3
PB
9106else
9107 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9108fi
9109
9110
9111
9112
9113if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9114 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9115 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9116echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9117 if test -x $with_build_time_tools/as; then
9118 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9119 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9120 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9121echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9122 else
c6b750e1
DJ
9123 echo "$as_me:$LINENO: result: no" >&5
9124echo "${ECHO_T}no" >&6
3a35eeb3 9125 fi
2429c060
PB
9126 elif test $build != $host && test $have_gcc_for_target = yes; then
9127 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9128 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9129 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9130 fi
9131fi
c6b750e1 9132if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9133 # Extract the first word of "as", so it can be a program name with args.
9134set dummy as; ac_word=$2
c6b750e1
DJ
9135echo "$as_me:$LINENO: checking for $ac_word" >&5
9136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9137if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9139else
c6b750e1
DJ
9140 case $AS_FOR_TARGET in
9141 [\\/]* | ?:[\\/]*)
2429c060
PB
9142 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9143 ;;
2429c060 9144 *)
c6b750e1
DJ
9145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146for as_dir in $gcc_cv_tool_dirs
9147do
9148 IFS=$as_save_IFS
9149 test -z "$as_dir" && as_dir=.
9150 for ac_exec_ext in '' $ac_executable_extensions; do
9151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9152 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9154 break 2
9155 fi
9156done
9157done
9158
2429c060
PB
9159 ;;
9160esac
9161fi
c6b750e1
DJ
9162AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9163
2429c060 9164if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9165 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9166echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9167else
c6b750e1
DJ
9168 echo "$as_me:$LINENO: result: no" >&5
9169echo "${ECHO_T}no" >&6
2429c060
PB
9170fi
9171
9172fi
9173if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9174
9175
9176if test -n "$AS_FOR_TARGET"; then
9177 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9178elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9179 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9180fi
9181
9182if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9183 for ncn_progname in as; do
9184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9185set dummy ${ncn_progname}; ac_word=$2
9186echo "$as_me:$LINENO: checking for $ac_word" >&5
9187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9188if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9190else
9191 if test -n "$AS_FOR_TARGET"; then
9192 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9193else
9194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9195for as_dir in $PATH
9196do
9197 IFS=$as_save_IFS
9198 test -z "$as_dir" && as_dir=.
9199 for ac_exec_ext in '' $ac_executable_extensions; do
9200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9201 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9203 break 2
9204 fi
9205done
9206done
9207
9208fi
9209fi
9210AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9211if test -n "$AS_FOR_TARGET"; then
9212 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9213echo "${ECHO_T}$AS_FOR_TARGET" >&6
9214else
9215 echo "$as_me:$LINENO: result: no" >&5
9216echo "${ECHO_T}no" >&6
9217fi
9218
9219 done
9220fi
9221
9222if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9223 for ncn_progname in as; do
c6b750e1
DJ
9224 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9225echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9226 if test -x $with_build_time_tools/${ncn_progname}; then
9227 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9228 echo "$as_me:$LINENO: result: yes" >&5
9229echo "${ECHO_T}yes" >&6
2429c060
PB
9230 break
9231 else
c6b750e1
DJ
9232 echo "$as_me:$LINENO: result: no" >&5
9233echo "${ECHO_T}no" >&6
2429c060
PB
9234 fi
9235 done
9236fi
9237
9238if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9239 for ncn_progname in as; do
9240 if test -n "$ncn_target_tool_prefix"; then
9241 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9242set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9243echo "$as_me:$LINENO: checking for $ac_word" >&5
9244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9245if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9247else
9248 if test -n "$AS_FOR_TARGET"; then
9249 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9250else
c6b750e1
DJ
9251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252for as_dir in $PATH
9253do
9254 IFS=$as_save_IFS
9255 test -z "$as_dir" && as_dir=.
9256 for ac_exec_ext in '' $ac_executable_extensions; do
9257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9258 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9260 break 2
9261 fi
9262done
9263done
9264
2429c060
PB
9265fi
9266fi
c6b750e1 9267AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9268if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9269 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9270echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9271else
c6b750e1
DJ
9272 echo "$as_me:$LINENO: result: no" >&5
9273echo "${ECHO_T}no" >&6
2429c060
PB
9274fi
9275
9276 fi
9277 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9279set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9280echo "$as_me:$LINENO: checking for $ac_word" >&5
9281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9282if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9284else
9285 if test -n "$AS_FOR_TARGET"; then
9286 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9287else
c6b750e1
DJ
9288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289for as_dir in $PATH
9290do
9291 IFS=$as_save_IFS
9292 test -z "$as_dir" && as_dir=.
9293 for ac_exec_ext in '' $ac_executable_extensions; do
9294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9295 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9297 break 2
9298 fi
9299done
9300done
9301
2429c060
PB
9302fi
9303fi
c6b750e1 9304AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9305if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9306 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9307echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9308else
c6b750e1
DJ
9309 echo "$as_me:$LINENO: result: no" >&5
9310echo "${ECHO_T}no" >&6
2429c060 9311fi
c6b750e1 9312
2429c060
PB
9313 fi
9314 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9315 done
9316fi
c6b750e1 9317
2429c060
PB
9318if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9319 set dummy as
9320 if test $build = $target ; then
9321 AS_FOR_TARGET="$2"
9322 else
9323 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9324 fi
d3f5afc4
MS
9325else
9326 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9327fi
9328
3a35eeb3
PB
9329else
9330 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9331fi
9332
9333
9334
9335
9336if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9337 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9338 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9339echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9340 if test -x $with_build_time_tools/dlltool; then
9341 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9342 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9343 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9344echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9345 else
c6b750e1
DJ
9346 echo "$as_me:$LINENO: result: no" >&5
9347echo "${ECHO_T}no" >&6
3a35eeb3 9348 fi
2429c060
PB
9349 elif test $build != $host && test $have_gcc_for_target = yes; then
9350 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9351 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9352 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9353 fi
9354fi
c6b750e1 9355if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9356 # Extract the first word of "dlltool", so it can be a program name with args.
9357set dummy dlltool; ac_word=$2
c6b750e1
DJ
9358echo "$as_me:$LINENO: checking for $ac_word" >&5
9359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9360if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9362else
c6b750e1
DJ
9363 case $DLLTOOL_FOR_TARGET in
9364 [\\/]* | ?:[\\/]*)
2429c060
PB
9365 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9366 ;;
2429c060 9367 *)
c6b750e1
DJ
9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369for as_dir in $gcc_cv_tool_dirs
9370do
9371 IFS=$as_save_IFS
9372 test -z "$as_dir" && as_dir=.
9373 for ac_exec_ext in '' $ac_executable_extensions; do
9374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9375 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9377 break 2
9378 fi
9379done
9380done
9381
2429c060
PB
9382 ;;
9383esac
9384fi
c6b750e1
DJ
9385DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9386
2429c060 9387if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9388 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9389echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9390else
c6b750e1
DJ
9391 echo "$as_me:$LINENO: result: no" >&5
9392echo "${ECHO_T}no" >&6
2429c060
PB
9393fi
9394
9395fi
9396if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9397
9398
9399if test -n "$DLLTOOL_FOR_TARGET"; then
9400 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9401elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9402 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9403fi
9404
9405if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9406 for ncn_progname in dlltool; do
9407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9408set dummy ${ncn_progname}; ac_word=$2
9409echo "$as_me:$LINENO: checking for $ac_word" >&5
9410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9411if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9413else
9414 if test -n "$DLLTOOL_FOR_TARGET"; then
9415 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9416else
9417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418for as_dir in $PATH
9419do
9420 IFS=$as_save_IFS
9421 test -z "$as_dir" && as_dir=.
9422 for ac_exec_ext in '' $ac_executable_extensions; do
9423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9424 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9426 break 2
9427 fi
9428done
9429done
9430
9431fi
9432fi
9433DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9434if test -n "$DLLTOOL_FOR_TARGET"; then
9435 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9436echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9437else
9438 echo "$as_me:$LINENO: result: no" >&5
9439echo "${ECHO_T}no" >&6
9440fi
9441
9442 done
9443fi
9444
9445if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9446 for ncn_progname in dlltool; do
c6b750e1
DJ
9447 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9448echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9449 if test -x $with_build_time_tools/${ncn_progname}; then
9450 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9451 echo "$as_me:$LINENO: result: yes" >&5
9452echo "${ECHO_T}yes" >&6
2429c060
PB
9453 break
9454 else
c6b750e1
DJ
9455 echo "$as_me:$LINENO: result: no" >&5
9456echo "${ECHO_T}no" >&6
2429c060
PB
9457 fi
9458 done
9459fi
9460
9461if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9462 for ncn_progname in dlltool; do
9463 if test -n "$ncn_target_tool_prefix"; then
9464 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9465set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9466echo "$as_me:$LINENO: checking for $ac_word" >&5
9467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9468if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9470else
9471 if test -n "$DLLTOOL_FOR_TARGET"; then
9472 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9473else
c6b750e1
DJ
9474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475for as_dir in $PATH
9476do
9477 IFS=$as_save_IFS
9478 test -z "$as_dir" && as_dir=.
9479 for ac_exec_ext in '' $ac_executable_extensions; do
9480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9481 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9483 break 2
9484 fi
9485done
9486done
9487
2429c060
PB
9488fi
9489fi
c6b750e1 9490DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9491if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9492 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9493echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9494else
c6b750e1
DJ
9495 echo "$as_me:$LINENO: result: no" >&5
9496echo "${ECHO_T}no" >&6
2429c060
PB
9497fi
9498
9499 fi
9500 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9502set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9503echo "$as_me:$LINENO: checking for $ac_word" >&5
9504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9505if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9507else
9508 if test -n "$DLLTOOL_FOR_TARGET"; then
9509 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9510else
c6b750e1
DJ
9511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9512for as_dir in $PATH
9513do
9514 IFS=$as_save_IFS
9515 test -z "$as_dir" && as_dir=.
9516 for ac_exec_ext in '' $ac_executable_extensions; do
9517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9518 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9520 break 2
9521 fi
9522done
9523done
9524
2429c060
PB
9525fi
9526fi
c6b750e1 9527DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9528if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9529 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9530echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9531else
c6b750e1
DJ
9532 echo "$as_me:$LINENO: result: no" >&5
9533echo "${ECHO_T}no" >&6
2429c060 9534fi
c6b750e1 9535
2429c060
PB
9536 fi
9537 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9538 done
9539fi
c6b750e1 9540
2429c060
PB
9541if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9542 set dummy dlltool
9543 if test $build = $target ; then
9544 DLLTOOL_FOR_TARGET="$2"
9545 else
9546 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9547 fi
d3f5afc4
MS
9548else
9549 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9550fi
9551
3a35eeb3
PB
9552else
9553 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9554fi
9555
9556
9557
9558
9559if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9560 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9561 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9562echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9563 if test -x $with_build_time_tools/ld; then
9564 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9565 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9566 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9567echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9568 else
c6b750e1
DJ
9569 echo "$as_me:$LINENO: result: no" >&5
9570echo "${ECHO_T}no" >&6
3a35eeb3 9571 fi
2429c060
PB
9572 elif test $build != $host && test $have_gcc_for_target = yes; then
9573 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9574 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9575 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9576 fi
9577fi
c6b750e1 9578if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9579 # Extract the first word of "ld", so it can be a program name with args.
9580set dummy ld; ac_word=$2
c6b750e1
DJ
9581echo "$as_me:$LINENO: checking for $ac_word" >&5
9582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9583if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9585else
c6b750e1
DJ
9586 case $LD_FOR_TARGET in
9587 [\\/]* | ?:[\\/]*)
2429c060
PB
9588 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9589 ;;
2429c060 9590 *)
c6b750e1
DJ
9591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9592for as_dir in $gcc_cv_tool_dirs
9593do
9594 IFS=$as_save_IFS
9595 test -z "$as_dir" && as_dir=.
9596 for ac_exec_ext in '' $ac_executable_extensions; do
9597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9598 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9600 break 2
9601 fi
9602done
9603done
9604
2429c060
PB
9605 ;;
9606esac
9607fi
c6b750e1
DJ
9608LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9609
2429c060 9610if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9611 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9612echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9613else
c6b750e1
DJ
9614 echo "$as_me:$LINENO: result: no" >&5
9615echo "${ECHO_T}no" >&6
2429c060
PB
9616fi
9617
9618fi
9619if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9620
9621
9622if test -n "$LD_FOR_TARGET"; then
9623 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9624elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9625 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9626fi
9627
9628if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9629 for ncn_progname in ld; do
9630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9631set dummy ${ncn_progname}; ac_word=$2
9632echo "$as_me:$LINENO: checking for $ac_word" >&5
9633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9634if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636else
9637 if test -n "$LD_FOR_TARGET"; then
9638 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9639else
9640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641for as_dir in $PATH
9642do
9643 IFS=$as_save_IFS
9644 test -z "$as_dir" && as_dir=.
9645 for ac_exec_ext in '' $ac_executable_extensions; do
9646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9647 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9649 break 2
9650 fi
9651done
9652done
9653
9654fi
9655fi
9656LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9657if test -n "$LD_FOR_TARGET"; then
9658 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9659echo "${ECHO_T}$LD_FOR_TARGET" >&6
9660else
9661 echo "$as_me:$LINENO: result: no" >&5
9662echo "${ECHO_T}no" >&6
9663fi
9664
9665 done
9666fi
9667
9668if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9669 for ncn_progname in ld; do
c6b750e1
DJ
9670 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9671echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9672 if test -x $with_build_time_tools/${ncn_progname}; then
9673 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9674 echo "$as_me:$LINENO: result: yes" >&5
9675echo "${ECHO_T}yes" >&6
2429c060
PB
9676 break
9677 else
c6b750e1
DJ
9678 echo "$as_me:$LINENO: result: no" >&5
9679echo "${ECHO_T}no" >&6
2429c060
PB
9680 fi
9681 done
9682fi
9683
9684if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9685 for ncn_progname in ld; do
9686 if test -n "$ncn_target_tool_prefix"; then
9687 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9688set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9689echo "$as_me:$LINENO: checking for $ac_word" >&5
9690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9691if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9693else
9694 if test -n "$LD_FOR_TARGET"; then
9695 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9696else
c6b750e1
DJ
9697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9698for as_dir in $PATH
9699do
9700 IFS=$as_save_IFS
9701 test -z "$as_dir" && as_dir=.
9702 for ac_exec_ext in '' $ac_executable_extensions; do
9703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9704 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9706 break 2
9707 fi
9708done
9709done
9710
2429c060
PB
9711fi
9712fi
c6b750e1 9713LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9714if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9715 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9716echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9717else
c6b750e1
DJ
9718 echo "$as_me:$LINENO: result: no" >&5
9719echo "${ECHO_T}no" >&6
2429c060
PB
9720fi
9721
9722 fi
9723 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9725set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9726echo "$as_me:$LINENO: checking for $ac_word" >&5
9727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9728if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9730else
9731 if test -n "$LD_FOR_TARGET"; then
9732 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9733else
c6b750e1
DJ
9734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735for as_dir in $PATH
9736do
9737 IFS=$as_save_IFS
9738 test -z "$as_dir" && as_dir=.
9739 for ac_exec_ext in '' $ac_executable_extensions; do
9740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9741 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9743 break 2
9744 fi
9745done
9746done
9747
2429c060
PB
9748fi
9749fi
c6b750e1 9750LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9751if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9752 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9753echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9754else
c6b750e1
DJ
9755 echo "$as_me:$LINENO: result: no" >&5
9756echo "${ECHO_T}no" >&6
2429c060 9757fi
c6b750e1 9758
2429c060
PB
9759 fi
9760 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9761 done
9762fi
c6b750e1 9763
2429c060
PB
9764if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9765 set dummy ld
9766 if test $build = $target ; then
9767 LD_FOR_TARGET="$2"
9768 else
9769 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9770 fi
d3f5afc4
MS
9771else
9772 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9773fi
9774
3a35eeb3
PB
9775else
9776 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9777fi
9778
9779
9780
9781
9782if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9783 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9784 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9785echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9786 if test -x $with_build_time_tools/lipo; then
9787 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9788 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9789 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9790echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9791 else
c6b750e1
DJ
9792 echo "$as_me:$LINENO: result: no" >&5
9793echo "${ECHO_T}no" >&6
3a35eeb3 9794 fi
2429c060
PB
9795 elif test $build != $host && test $have_gcc_for_target = yes; then
9796 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9797 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9798 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9799 fi
9800fi
9a819804
AO
9801if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9802 # Extract the first word of "lipo", so it can be a program name with args.
9803set dummy lipo; ac_word=$2
9804echo "$as_me:$LINENO: checking for $ac_word" >&5
9805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9806if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9808else
9809 case $LIPO_FOR_TARGET in
9810 [\\/]* | ?:[\\/]*)
9811 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9812 ;;
9813 *)
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815for as_dir in $gcc_cv_tool_dirs
9816do
9817 IFS=$as_save_IFS
9818 test -z "$as_dir" && as_dir=.
9819 for ac_exec_ext in '' $ac_executable_extensions; do
9820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9821 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 break 2
9824 fi
9825done
9826done
9827
9828 ;;
9829esac
9830fi
9831LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9832
9833if test -n "$LIPO_FOR_TARGET"; then
9834 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9835echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9836else
9837 echo "$as_me:$LINENO: result: no" >&5
9838echo "${ECHO_T}no" >&6
9839fi
9840
9841fi
9842if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9843
9844
9845if test -n "$LIPO_FOR_TARGET"; then
9846 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9847elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9848 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9849fi
9850
9851if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9852 for ncn_progname in lipo; do
9853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9854set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9855echo "$as_me:$LINENO: checking for $ac_word" >&5
9856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9857if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9858 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9859else
9a819804
AO
9860 if test -n "$LIPO_FOR_TARGET"; then
9861 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9862else
9863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864for as_dir in $PATH
c6b750e1
DJ
9865do
9866 IFS=$as_save_IFS
9867 test -z "$as_dir" && as_dir=.
9868 for ac_exec_ext in '' $ac_executable_extensions; do
9869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9870 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 break 2
9873 fi
9874done
9875done
9876
2429c060 9877fi
9a819804
AO
9878fi
9879LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9880if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9881 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9882echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9883else
c6b750e1
DJ
9884 echo "$as_me:$LINENO: result: no" >&5
9885echo "${ECHO_T}no" >&6
2429c060
PB
9886fi
9887
9a819804 9888 done
2429c060 9889fi
9a819804
AO
9890
9891if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9892 for ncn_progname in lipo; do
c6b750e1
DJ
9893 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9894echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9895 if test -x $with_build_time_tools/${ncn_progname}; then
9896 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9897 echo "$as_me:$LINENO: result: yes" >&5
9898echo "${ECHO_T}yes" >&6
2429c060
PB
9899 break
9900 else
c6b750e1
DJ
9901 echo "$as_me:$LINENO: result: no" >&5
9902echo "${ECHO_T}no" >&6
2429c060
PB
9903 fi
9904 done
9905fi
9906
9907if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9908 for ncn_progname in lipo; do
9909 if test -n "$ncn_target_tool_prefix"; then
9910 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9911set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9912echo "$as_me:$LINENO: checking for $ac_word" >&5
9913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9914if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9916else
9917 if test -n "$LIPO_FOR_TARGET"; then
9918 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9919else
c6b750e1
DJ
9920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921for as_dir in $PATH
9922do
9923 IFS=$as_save_IFS
9924 test -z "$as_dir" && as_dir=.
9925 for ac_exec_ext in '' $ac_executable_extensions; do
9926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9927 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9929 break 2
9930 fi
9931done
9932done
9933
2429c060
PB
9934fi
9935fi
c6b750e1 9936LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9937if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9938 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9939echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9940else
c6b750e1
DJ
9941 echo "$as_me:$LINENO: result: no" >&5
9942echo "${ECHO_T}no" >&6
2429c060
PB
9943fi
9944
9945 fi
9946 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9948set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9949echo "$as_me:$LINENO: checking for $ac_word" >&5
9950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9951if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9953else
9954 if test -n "$LIPO_FOR_TARGET"; then
9955 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9956else
c6b750e1
DJ
9957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958for as_dir in $PATH
9959do
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
9962 for ac_exec_ext in '' $ac_executable_extensions; do
9963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9964 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9966 break 2
9967 fi
9968done
9969done
9970
2429c060
PB
9971fi
9972fi
c6b750e1 9973LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9974if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9975 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9976echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9977else
c6b750e1
DJ
9978 echo "$as_me:$LINENO: result: no" >&5
9979echo "${ECHO_T}no" >&6
2429c060 9980fi
c6b750e1 9981
2429c060
PB
9982 fi
9983 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9984 done
9985fi
c6b750e1 9986
2429c060
PB
9987if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9988 set dummy lipo
9989 if test $build = $target ; then
9990 LIPO_FOR_TARGET="$2"
9991 else
9992 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9993 fi
d3f5afc4
MS
9994else
9995 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9996fi
9997
3a35eeb3
PB
9998else
9999 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
10000fi
10001
10002
10003
10004
10005if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10006 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10007 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10008echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10009 if test -x $with_build_time_tools/nm; then
10010 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10011 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
10012 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10013echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 10014 else
c6b750e1
DJ
10015 echo "$as_me:$LINENO: result: no" >&5
10016echo "${ECHO_T}no" >&6
3a35eeb3 10017 fi
2429c060
PB
10018 elif test $build != $host && test $have_gcc_for_target = yes; then
10019 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10020 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10021 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10022 fi
10023fi
c6b750e1 10024if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10025 # Extract the first word of "nm", so it can be a program name with args.
10026set dummy nm; ac_word=$2
c6b750e1
DJ
10027echo "$as_me:$LINENO: checking for $ac_word" >&5
10028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10029if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10031else
c6b750e1
DJ
10032 case $NM_FOR_TARGET in
10033 [\\/]* | ?:[\\/]*)
2429c060
PB
10034 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10035 ;;
2429c060 10036 *)
c6b750e1
DJ
10037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038for as_dir in $gcc_cv_tool_dirs
10039do
10040 IFS=$as_save_IFS
10041 test -z "$as_dir" && as_dir=.
10042 for ac_exec_ext in '' $ac_executable_extensions; do
10043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10044 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 break 2
10047 fi
10048done
10049done
10050
2429c060
PB
10051 ;;
10052esac
10053fi
c6b750e1
DJ
10054NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10055
2429c060 10056if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10057 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10058echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10059else
c6b750e1
DJ
10060 echo "$as_me:$LINENO: result: no" >&5
10061echo "${ECHO_T}no" >&6
2429c060
PB
10062fi
10063
10064fi
10065if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10066
10067
10068if test -n "$NM_FOR_TARGET"; then
10069 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10070elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10071 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10072fi
10073
10074if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10075 for ncn_progname in nm; do
10076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10077set dummy ${ncn_progname}; ac_word=$2
10078echo "$as_me:$LINENO: checking for $ac_word" >&5
10079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10080if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10082else
10083 if test -n "$NM_FOR_TARGET"; then
10084 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10085else
10086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087for as_dir in $PATH
10088do
10089 IFS=$as_save_IFS
10090 test -z "$as_dir" && as_dir=.
10091 for ac_exec_ext in '' $ac_executable_extensions; do
10092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10093 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10095 break 2
10096 fi
10097done
10098done
10099
10100fi
10101fi
10102NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10103if test -n "$NM_FOR_TARGET"; then
10104 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10105echo "${ECHO_T}$NM_FOR_TARGET" >&6
10106else
10107 echo "$as_me:$LINENO: result: no" >&5
10108echo "${ECHO_T}no" >&6
10109fi
10110
10111 done
10112fi
10113
10114if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10115 for ncn_progname in nm; do
c6b750e1
DJ
10116 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10117echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10118 if test -x $with_build_time_tools/${ncn_progname}; then
10119 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10120 echo "$as_me:$LINENO: result: yes" >&5
10121echo "${ECHO_T}yes" >&6
2429c060
PB
10122 break
10123 else
c6b750e1
DJ
10124 echo "$as_me:$LINENO: result: no" >&5
10125echo "${ECHO_T}no" >&6
2429c060
PB
10126 fi
10127 done
10128fi
10129
10130if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10131 for ncn_progname in nm; do
10132 if test -n "$ncn_target_tool_prefix"; then
10133 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10134set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10135echo "$as_me:$LINENO: checking for $ac_word" >&5
10136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10137if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10139else
55db4b87
PB
10140 if test -n "$NM_FOR_TARGET"; then
10141 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10142else
c6b750e1
DJ
10143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10144for as_dir in $PATH
10145do
10146 IFS=$as_save_IFS
10147 test -z "$as_dir" && as_dir=.
10148 for ac_exec_ext in '' $ac_executable_extensions; do
10149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10150 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10152 break 2
10153 fi
10154done
10155done
10156
859789af
AC
10157fi
10158fi
c6b750e1 10159NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10160if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10161 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10162echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10163else
c6b750e1
DJ
10164 echo "$as_me:$LINENO: result: no" >&5
10165echo "${ECHO_T}no" >&6
859789af
AC
10166fi
10167
2429c060
PB
10168 fi
10169 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10171set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10172echo "$as_me:$LINENO: checking for $ac_word" >&5
10173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10174if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10176else
05cbd757
PB
10177 if test -n "$NM_FOR_TARGET"; then
10178 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10179else
c6b750e1
DJ
10180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181for as_dir in $PATH
10182do
10183 IFS=$as_save_IFS
10184 test -z "$as_dir" && as_dir=.
10185 for ac_exec_ext in '' $ac_executable_extensions; do
10186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10187 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10189 break 2
10190 fi
10191done
10192done
10193
859789af
AC
10194fi
10195fi
c6b750e1 10196NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10197if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10198 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10199echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10200else
c6b750e1
DJ
10201 echo "$as_me:$LINENO: result: no" >&5
10202echo "${ECHO_T}no" >&6
859789af 10203fi
c6b750e1 10204
2429c060
PB
10205 fi
10206 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10207 done
10208fi
c6b750e1 10209
05cbd757
PB
10210if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10211 set dummy nm
10212 if test $build = $target ; then
10213 NM_FOR_TARGET="$2"
859789af 10214 else
05cbd757 10215 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10216 fi
d3f5afc4
MS
10217else
10218 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10219fi
10220
3a35eeb3
PB
10221else
10222 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10223fi
10224
10225
10226
10227
10228if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10229 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10230 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10231echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10232 if test -x $with_build_time_tools/objdump; then
10233 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10234 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10235 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10236echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10237 else
c6b750e1
DJ
10238 echo "$as_me:$LINENO: result: no" >&5
10239echo "${ECHO_T}no" >&6
3a35eeb3 10240 fi
2429c060
PB
10241 elif test $build != $host && test $have_gcc_for_target = yes; then
10242 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10243 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10244 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10245 fi
10246fi
c6b750e1 10247if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10248 # Extract the first word of "objdump", so it can be a program name with args.
10249set dummy objdump; ac_word=$2
c6b750e1
DJ
10250echo "$as_me:$LINENO: checking for $ac_word" >&5
10251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10252if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10254else
c6b750e1
DJ
10255 case $OBJDUMP_FOR_TARGET in
10256 [\\/]* | ?:[\\/]*)
2429c060
PB
10257 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10258 ;;
2429c060 10259 *)
c6b750e1
DJ
10260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10261for as_dir in $gcc_cv_tool_dirs
10262do
10263 IFS=$as_save_IFS
10264 test -z "$as_dir" && as_dir=.
10265 for ac_exec_ext in '' $ac_executable_extensions; do
10266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10267 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10269 break 2
10270 fi
10271done
10272done
10273
2429c060
PB
10274 ;;
10275esac
10276fi
c6b750e1
DJ
10277OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10278
2429c060 10279if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10280 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10281echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10282else
c6b750e1
DJ
10283 echo "$as_me:$LINENO: result: no" >&5
10284echo "${ECHO_T}no" >&6
2429c060
PB
10285fi
10286
10287fi
10288if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10289
10290
10291if test -n "$OBJDUMP_FOR_TARGET"; then
10292 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10293elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10294 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10295fi
10296
10297if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10298 for ncn_progname in objdump; do
10299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10300set dummy ${ncn_progname}; ac_word=$2
10301echo "$as_me:$LINENO: checking for $ac_word" >&5
10302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10303if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305else
10306 if test -n "$OBJDUMP_FOR_TARGET"; then
10307 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10308else
10309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310for as_dir in $PATH
10311do
10312 IFS=$as_save_IFS
10313 test -z "$as_dir" && as_dir=.
10314 for ac_exec_ext in '' $ac_executable_extensions; do
10315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10316 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10318 break 2
10319 fi
10320done
10321done
10322
10323fi
10324fi
10325OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10326if test -n "$OBJDUMP_FOR_TARGET"; then
10327 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10328echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10329else
10330 echo "$as_me:$LINENO: result: no" >&5
10331echo "${ECHO_T}no" >&6
10332fi
10333
10334 done
10335fi
10336
10337if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10338 for ncn_progname in objdump; do
c6b750e1
DJ
10339 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10340echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10341 if test -x $with_build_time_tools/${ncn_progname}; then
10342 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10343 echo "$as_me:$LINENO: result: yes" >&5
10344echo "${ECHO_T}yes" >&6
2429c060
PB
10345 break
10346 else
c6b750e1
DJ
10347 echo "$as_me:$LINENO: result: no" >&5
10348echo "${ECHO_T}no" >&6
2429c060
PB
10349 fi
10350 done
10351fi
10352
10353if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10354 for ncn_progname in objdump; do
10355 if test -n "$ncn_target_tool_prefix"; then
10356 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10357set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10358echo "$as_me:$LINENO: checking for $ac_word" >&5
10359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10360if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10362else
10363 if test -n "$OBJDUMP_FOR_TARGET"; then
10364 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10365else
c6b750e1
DJ
10366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367for as_dir in $PATH
10368do
10369 IFS=$as_save_IFS
10370 test -z "$as_dir" && as_dir=.
10371 for ac_exec_ext in '' $ac_executable_extensions; do
10372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10373 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10375 break 2
10376 fi
10377done
10378done
10379
5ae72758
DJ
10380fi
10381fi
c6b750e1 10382OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10383if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10384 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10385echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10386else
c6b750e1
DJ
10387 echo "$as_me:$LINENO: result: no" >&5
10388echo "${ECHO_T}no" >&6
5ae72758
DJ
10389fi
10390
2429c060
PB
10391 fi
10392 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10394set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10395echo "$as_me:$LINENO: checking for $ac_word" >&5
10396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10397if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10399else
10400 if test -n "$OBJDUMP_FOR_TARGET"; then
10401 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10402else
c6b750e1
DJ
10403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404for as_dir in $PATH
10405do
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10410 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 break 2
10413 fi
10414done
10415done
10416
5ae72758
DJ
10417fi
10418fi
c6b750e1 10419OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10420if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10421 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10422echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10423else
c6b750e1
DJ
10424 echo "$as_me:$LINENO: result: no" >&5
10425echo "${ECHO_T}no" >&6
5ae72758 10426fi
c6b750e1 10427
2429c060
PB
10428 fi
10429 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10430 done
10431fi
c6b750e1 10432
5ae72758
DJ
10433if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10434 set dummy objdump
10435 if test $build = $target ; then
10436 OBJDUMP_FOR_TARGET="$2"
10437 else
10438 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10439 fi
d3f5afc4
MS
10440else
10441 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10442fi
10443
3a35eeb3
PB
10444else
10445 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10446fi
10447
10448
10449
10450
10451if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10452 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10453 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10454echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10455 if test -x $with_build_time_tools/ranlib; then
10456 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10457 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10458 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10459echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10460 else
c6b750e1
DJ
10461 echo "$as_me:$LINENO: result: no" >&5
10462echo "${ECHO_T}no" >&6
3a35eeb3 10463 fi
2429c060
PB
10464 elif test $build != $host && test $have_gcc_for_target = yes; then
10465 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10466 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10467 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10468 fi
10469fi
c6b750e1 10470if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10471 # Extract the first word of "ranlib", so it can be a program name with args.
10472set dummy ranlib; ac_word=$2
c6b750e1
DJ
10473echo "$as_me:$LINENO: checking for $ac_word" >&5
10474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10475if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10477else
c6b750e1
DJ
10478 case $RANLIB_FOR_TARGET in
10479 [\\/]* | ?:[\\/]*)
2429c060
PB
10480 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10481 ;;
2429c060 10482 *)
c6b750e1
DJ
10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484for as_dir in $gcc_cv_tool_dirs
10485do
10486 IFS=$as_save_IFS
10487 test -z "$as_dir" && as_dir=.
10488 for ac_exec_ext in '' $ac_executable_extensions; do
10489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10490 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 break 2
10493 fi
10494done
10495done
10496
2429c060
PB
10497 ;;
10498esac
10499fi
c6b750e1
DJ
10500RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10501
2429c060 10502if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10503 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10504echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10505else
c6b750e1
DJ
10506 echo "$as_me:$LINENO: result: no" >&5
10507echo "${ECHO_T}no" >&6
2429c060
PB
10508fi
10509
10510fi
10511if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10512
10513
10514if test -n "$RANLIB_FOR_TARGET"; then
10515 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10516elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10517 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10518fi
10519
10520if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10521 for ncn_progname in ranlib; do
10522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10523set dummy ${ncn_progname}; ac_word=$2
10524echo "$as_me:$LINENO: checking for $ac_word" >&5
10525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10526if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10528else
10529 if test -n "$RANLIB_FOR_TARGET"; then
10530 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10531else
10532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533for as_dir in $PATH
10534do
10535 IFS=$as_save_IFS
10536 test -z "$as_dir" && as_dir=.
10537 for ac_exec_ext in '' $ac_executable_extensions; do
10538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10539 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10541 break 2
10542 fi
10543done
10544done
10545
10546fi
10547fi
10548RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10549if test -n "$RANLIB_FOR_TARGET"; then
10550 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10551echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10552else
10553 echo "$as_me:$LINENO: result: no" >&5
10554echo "${ECHO_T}no" >&6
10555fi
10556
10557 done
10558fi
10559
10560if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10561 for ncn_progname in ranlib; do
c6b750e1
DJ
10562 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10563echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10564 if test -x $with_build_time_tools/${ncn_progname}; then
10565 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10566 echo "$as_me:$LINENO: result: yes" >&5
10567echo "${ECHO_T}yes" >&6
2429c060
PB
10568 break
10569 else
c6b750e1
DJ
10570 echo "$as_me:$LINENO: result: no" >&5
10571echo "${ECHO_T}no" >&6
2429c060
PB
10572 fi
10573 done
10574fi
10575
10576if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10577 for ncn_progname in ranlib; do
10578 if test -n "$ncn_target_tool_prefix"; then
10579 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10580set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10581echo "$as_me:$LINENO: checking for $ac_word" >&5
10582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10583if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10584 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10585else
55db4b87
PB
10586 if test -n "$RANLIB_FOR_TARGET"; then
10587 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10588else
c6b750e1
DJ
10589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10590for as_dir in $PATH
10591do
10592 IFS=$as_save_IFS
10593 test -z "$as_dir" && as_dir=.
10594 for ac_exec_ext in '' $ac_executable_extensions; do
10595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10596 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10598 break 2
10599 fi
10600done
10601done
10602
859789af
AC
10603fi
10604fi
c6b750e1 10605RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10606if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10607 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10608echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10609else
c6b750e1
DJ
10610 echo "$as_me:$LINENO: result: no" >&5
10611echo "${ECHO_T}no" >&6
859789af
AC
10612fi
10613
2429c060
PB
10614 fi
10615 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10617set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10618echo "$as_me:$LINENO: checking for $ac_word" >&5
10619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10620if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10622else
05cbd757
PB
10623 if test -n "$RANLIB_FOR_TARGET"; then
10624 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10625else
c6b750e1
DJ
10626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627for as_dir in $PATH
10628do
10629 IFS=$as_save_IFS
10630 test -z "$as_dir" && as_dir=.
10631 for ac_exec_ext in '' $ac_executable_extensions; do
10632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10633 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10635 break 2
10636 fi
10637done
10638done
10639
859789af
AC
10640fi
10641fi
c6b750e1 10642RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10643if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10644 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10645echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10646else
c6b750e1
DJ
10647 echo "$as_me:$LINENO: result: no" >&5
10648echo "${ECHO_T}no" >&6
859789af 10649fi
c6b750e1 10650
2429c060
PB
10651 fi
10652 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10653 done
10654fi
c6b750e1 10655
2429c060
PB
10656if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10657 set dummy ranlib
10658 if test $build = $target ; then
10659 RANLIB_FOR_TARGET="$2"
10660 else
10661 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10662 fi
d3f5afc4
MS
10663else
10664 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10665fi
05cbd757 10666
3a35eeb3
PB
10667else
10668 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10669fi
10670
2429c060
PB
10671
10672
10673
10674if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10675 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10676 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10677echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10678 if test -x $with_build_time_tools/strip; then
10679 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10680 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10681 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10682echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10683 else
c6b750e1
DJ
10684 echo "$as_me:$LINENO: result: no" >&5
10685echo "${ECHO_T}no" >&6
3a35eeb3 10686 fi
2429c060
PB
10687 elif test $build != $host && test $have_gcc_for_target = yes; then
10688 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10689 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10690 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10691 fi
10692fi
c6b750e1 10693if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10694 # Extract the first word of "strip", so it can be a program name with args.
10695set dummy strip; ac_word=$2
c6b750e1
DJ
10696echo "$as_me:$LINENO: checking for $ac_word" >&5
10697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10698if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10700else
c6b750e1
DJ
10701 case $STRIP_FOR_TARGET in
10702 [\\/]* | ?:[\\/]*)
2429c060
PB
10703 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10704 ;;
2429c060 10705 *)
c6b750e1
DJ
10706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10707for as_dir in $gcc_cv_tool_dirs
10708do
10709 IFS=$as_save_IFS
10710 test -z "$as_dir" && as_dir=.
10711 for ac_exec_ext in '' $ac_executable_extensions; do
10712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10713 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10715 break 2
10716 fi
10717done
10718done
10719
2429c060
PB
10720 ;;
10721esac
10722fi
c6b750e1
DJ
10723STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10724
2429c060 10725if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10726 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10727echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10728else
c6b750e1
DJ
10729 echo "$as_me:$LINENO: result: no" >&5
10730echo "${ECHO_T}no" >&6
2429c060
PB
10731fi
10732
10733fi
10734if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10735
10736
10737if test -n "$STRIP_FOR_TARGET"; then
10738 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10739elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10740 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10741fi
10742
10743if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10744 for ncn_progname in strip; do
10745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10746set dummy ${ncn_progname}; ac_word=$2
10747echo "$as_me:$LINENO: checking for $ac_word" >&5
10748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10749if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10751else
10752 if test -n "$STRIP_FOR_TARGET"; then
10753 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10754else
10755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756for as_dir in $PATH
10757do
10758 IFS=$as_save_IFS
10759 test -z "$as_dir" && as_dir=.
10760 for ac_exec_ext in '' $ac_executable_extensions; do
10761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10762 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10764 break 2
10765 fi
10766done
10767done
10768
10769fi
10770fi
10771STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10772if test -n "$STRIP_FOR_TARGET"; then
10773 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10774echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10775else
10776 echo "$as_me:$LINENO: result: no" >&5
10777echo "${ECHO_T}no" >&6
10778fi
10779
10780 done
10781fi
10782
10783if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10784 for ncn_progname in strip; do
c6b750e1
DJ
10785 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10786echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10787 if test -x $with_build_time_tools/${ncn_progname}; then
10788 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10789 echo "$as_me:$LINENO: result: yes" >&5
10790echo "${ECHO_T}yes" >&6
2429c060
PB
10791 break
10792 else
c6b750e1
DJ
10793 echo "$as_me:$LINENO: result: no" >&5
10794echo "${ECHO_T}no" >&6
2429c060
PB
10795 fi
10796 done
10797fi
10798
10799if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10800 for ncn_progname in strip; do
10801 if test -n "$ncn_target_tool_prefix"; then
10802 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10803set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10804echo "$as_me:$LINENO: checking for $ac_word" >&5
10805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10806if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10808else
10809 if test -n "$STRIP_FOR_TARGET"; then
10810 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10811else
10812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10813for as_dir in $PATH
10814do
10815 IFS=$as_save_IFS
10816 test -z "$as_dir" && as_dir=.
10817 for ac_exec_ext in '' $ac_executable_extensions; do
10818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10819 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10821 break 2
10822 fi
10823done
10824done
10825
7e0f7140
GK
10826fi
10827fi
c6b750e1 10828STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10829if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10830 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10831echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10832else
c6b750e1
DJ
10833 echo "$as_me:$LINENO: result: no" >&5
10834echo "${ECHO_T}no" >&6
7e0f7140
GK
10835fi
10836
2429c060
PB
10837 fi
10838 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10840set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10841echo "$as_me:$LINENO: checking for $ac_word" >&5
10842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10843if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10845else
10846 if test -n "$STRIP_FOR_TARGET"; then
10847 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10848else
c6b750e1
DJ
10849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850for as_dir in $PATH
10851do
10852 IFS=$as_save_IFS
10853 test -z "$as_dir" && as_dir=.
10854 for ac_exec_ext in '' $ac_executable_extensions; do
10855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10856 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10858 break 2
10859 fi
10860done
10861done
10862
7e0f7140
GK
10863fi
10864fi
c6b750e1 10865STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10866if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10867 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10868echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10869else
c6b750e1
DJ
10870 echo "$as_me:$LINENO: result: no" >&5
10871echo "${ECHO_T}no" >&6
7e0f7140 10872fi
c6b750e1 10873
2429c060
PB
10874 fi
10875 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10876 done
10877fi
c6b750e1 10878
7e0f7140
GK
10879if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10880 set dummy strip
10881 if test $build = $target ; then
10882 STRIP_FOR_TARGET="$2"
10883 else
10884 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10885 fi
d3f5afc4
MS
10886else
10887 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10888fi
10889
3a35eeb3
PB
10890else
10891 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10892fi
10893
10894
10895
10896
10897if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10898 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10899 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10900echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10901 if test -x $with_build_time_tools/windres; then
10902 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10903 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10904 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10905echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10906 else
c6b750e1
DJ
10907 echo "$as_me:$LINENO: result: no" >&5
10908echo "${ECHO_T}no" >&6
3a35eeb3 10909 fi
2429c060
PB
10910 elif test $build != $host && test $have_gcc_for_target = yes; then
10911 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10912 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10913 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10914 fi
10915fi
c6b750e1 10916if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10917 # Extract the first word of "windres", so it can be a program name with args.
10918set dummy windres; ac_word=$2
c6b750e1
DJ
10919echo "$as_me:$LINENO: checking for $ac_word" >&5
10920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10921if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10923else
c6b750e1
DJ
10924 case $WINDRES_FOR_TARGET in
10925 [\\/]* | ?:[\\/]*)
2429c060
PB
10926 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10927 ;;
2429c060 10928 *)
c6b750e1
DJ
10929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930for as_dir in $gcc_cv_tool_dirs
10931do
10932 IFS=$as_save_IFS
10933 test -z "$as_dir" && as_dir=.
10934 for ac_exec_ext in '' $ac_executable_extensions; do
10935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10936 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10938 break 2
10939 fi
10940done
10941done
10942
2429c060
PB
10943 ;;
10944esac
10945fi
c6b750e1
DJ
10946WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10947
2429c060 10948if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10949 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10950echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10951else
c6b750e1
DJ
10952 echo "$as_me:$LINENO: result: no" >&5
10953echo "${ECHO_T}no" >&6
2429c060
PB
10954fi
10955
10956fi
10957if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10958
10959
10960if test -n "$WINDRES_FOR_TARGET"; then
10961 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10962elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10963 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10964fi
10965
10966if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10967 for ncn_progname in windres; do
10968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10969set dummy ${ncn_progname}; ac_word=$2
10970echo "$as_me:$LINENO: checking for $ac_word" >&5
10971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10972if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10974else
10975 if test -n "$WINDRES_FOR_TARGET"; then
10976 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10977else
10978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979for as_dir in $PATH
10980do
10981 IFS=$as_save_IFS
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10985 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 break 2
10988 fi
10989done
10990done
10991
10992fi
10993fi
10994WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10995if test -n "$WINDRES_FOR_TARGET"; then
10996 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10997echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10998else
10999 echo "$as_me:$LINENO: result: no" >&5
11000echo "${ECHO_T}no" >&6
11001fi
11002
11003 done
11004fi
11005
11006if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11007 for ncn_progname in windres; do
c6b750e1
DJ
11008 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11009echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11010 if test -x $with_build_time_tools/${ncn_progname}; then
11011 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11012 echo "$as_me:$LINENO: result: yes" >&5
11013echo "${ECHO_T}yes" >&6
2429c060
PB
11014 break
11015 else
c6b750e1
DJ
11016 echo "$as_me:$LINENO: result: no" >&5
11017echo "${ECHO_T}no" >&6
2429c060
PB
11018 fi
11019 done
11020fi
11021
11022if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11023 for ncn_progname in windres; do
11024 if test -n "$ncn_target_tool_prefix"; then
11025 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11026set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11027echo "$as_me:$LINENO: checking for $ac_word" >&5
11028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11029if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11031else
55db4b87
PB
11032 if test -n "$WINDRES_FOR_TARGET"; then
11033 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11034else
c6b750e1
DJ
11035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036for as_dir in $PATH
11037do
11038 IFS=$as_save_IFS
11039 test -z "$as_dir" && as_dir=.
11040 for ac_exec_ext in '' $ac_executable_extensions; do
11041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11042 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11044 break 2
11045 fi
11046done
11047done
11048
859789af
AC
11049fi
11050fi
c6b750e1 11051WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11052if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11053 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11054echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11055else
c6b750e1
DJ
11056 echo "$as_me:$LINENO: result: no" >&5
11057echo "${ECHO_T}no" >&6
859789af
AC
11058fi
11059
2429c060
PB
11060 fi
11061 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11063set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11064echo "$as_me:$LINENO: checking for $ac_word" >&5
11065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11066if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11068else
05cbd757
PB
11069 if test -n "$WINDRES_FOR_TARGET"; then
11070 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11071else
c6b750e1
DJ
11072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073for as_dir in $PATH
11074do
11075 IFS=$as_save_IFS
11076 test -z "$as_dir" && as_dir=.
11077 for ac_exec_ext in '' $ac_executable_extensions; do
11078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11079 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11081 break 2
11082 fi
11083done
11084done
11085
859789af
AC
11086fi
11087fi
c6b750e1 11088WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11089if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11090 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11091echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11092else
c6b750e1
DJ
11093 echo "$as_me:$LINENO: result: no" >&5
11094echo "${ECHO_T}no" >&6
859789af 11095fi
c6b750e1 11096
2429c060
PB
11097 fi
11098 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11099 done
11100fi
c6b750e1 11101
05cbd757
PB
11102if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11103 set dummy windres
11104 if test $build = $target ; then
11105 WINDRES_FOR_TARGET="$2"
859789af 11106 else
05cbd757 11107 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11108 fi
d3f5afc4
MS
11109else
11110 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11111fi
11112
3a35eeb3
PB
11113else
11114 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11115fi
11116
852e5f18 11117
0c24b341
NC
11118
11119
11120if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11121 if test -n "$with_build_time_tools"; then
11122 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11123echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11124 if test -x $with_build_time_tools/windmc; then
11125 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11126 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11127 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11128echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11129 else
11130 echo "$as_me:$LINENO: result: no" >&5
11131echo "${ECHO_T}no" >&6
11132 fi
11133 elif test $build != $host && test $have_gcc_for_target = yes; then
11134 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11135 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11136 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11137 fi
11138fi
11139if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11140 # Extract the first word of "windmc", so it can be a program name with args.
11141set dummy windmc; ac_word=$2
11142echo "$as_me:$LINENO: checking for $ac_word" >&5
11143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11144if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11146else
11147 case $WINDMC_FOR_TARGET in
11148 [\\/]* | ?:[\\/]*)
11149 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11150 ;;
11151 *)
11152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153for as_dir in $gcc_cv_tool_dirs
11154do
11155 IFS=$as_save_IFS
11156 test -z "$as_dir" && as_dir=.
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11159 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11161 break 2
11162 fi
11163done
11164done
11165
11166 ;;
11167esac
11168fi
11169WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11170
11171if test -n "$WINDMC_FOR_TARGET"; then
11172 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11173echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11174else
11175 echo "$as_me:$LINENO: result: no" >&5
11176echo "${ECHO_T}no" >&6
11177fi
11178
11179fi
11180if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11181
11182
11183if test -n "$WINDMC_FOR_TARGET"; then
11184 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11185elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11186 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11187fi
11188
11189if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11190 for ncn_progname in windmc; do
11191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11192set dummy ${ncn_progname}; ac_word=$2
11193echo "$as_me:$LINENO: checking for $ac_word" >&5
11194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11195if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11197else
11198 if test -n "$WINDMC_FOR_TARGET"; then
11199 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11200else
11201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202for as_dir in $PATH
11203do
11204 IFS=$as_save_IFS
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11208 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11210 break 2
11211 fi
11212done
11213done
11214
11215fi
11216fi
11217WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11218if test -n "$WINDMC_FOR_TARGET"; then
11219 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11220echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11221else
11222 echo "$as_me:$LINENO: result: no" >&5
11223echo "${ECHO_T}no" >&6
11224fi
11225
11226 done
11227fi
11228
11229if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11230 for ncn_progname in windmc; do
11231 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11232echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11233 if test -x $with_build_time_tools/${ncn_progname}; then
11234 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11235 echo "$as_me:$LINENO: result: yes" >&5
11236echo "${ECHO_T}yes" >&6
11237 break
11238 else
11239 echo "$as_me:$LINENO: result: no" >&5
11240echo "${ECHO_T}no" >&6
11241 fi
11242 done
11243fi
11244
11245if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11246 for ncn_progname in windmc; do
11247 if test -n "$ncn_target_tool_prefix"; then
11248 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11249set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11250echo "$as_me:$LINENO: checking for $ac_word" >&5
11251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11252if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11254else
11255 if test -n "$WINDMC_FOR_TARGET"; then
11256 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11257else
11258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259for as_dir in $PATH
11260do
11261 IFS=$as_save_IFS
11262 test -z "$as_dir" && as_dir=.
11263 for ac_exec_ext in '' $ac_executable_extensions; do
11264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11265 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11267 break 2
11268 fi
11269done
11270done
11271
11272fi
11273fi
11274WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11275if test -n "$WINDMC_FOR_TARGET"; then
11276 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11277echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11278else
11279 echo "$as_me:$LINENO: result: no" >&5
11280echo "${ECHO_T}no" >&6
11281fi
11282
11283 fi
11284 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11286set dummy ${ncn_progname}; ac_word=$2
11287echo "$as_me:$LINENO: checking for $ac_word" >&5
11288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11289if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11291else
11292 if test -n "$WINDMC_FOR_TARGET"; then
11293 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11294else
11295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296for as_dir in $PATH
11297do
11298 IFS=$as_save_IFS
11299 test -z "$as_dir" && as_dir=.
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11302 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11304 break 2
11305 fi
11306done
11307done
11308
11309fi
11310fi
11311WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11312if test -n "$WINDMC_FOR_TARGET"; then
11313 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11314echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11315else
11316 echo "$as_me:$LINENO: result: no" >&5
11317echo "${ECHO_T}no" >&6
11318fi
11319
11320 fi
11321 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11322 done
11323fi
11324
11325if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11326 set dummy windmc
11327 if test $build = $target ; then
11328 WINDMC_FOR_TARGET="$2"
11329 else
11330 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11331 fi
11332else
11333 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11334fi
11335
11336else
11337 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11338fi
11339
11340
be01d343
PB
11341RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11342
c6b750e1
DJ
11343echo "$as_me:$LINENO: checking where to find the target ar" >&5
11344echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11345if test "x${build}" != "x${host}" ; then
2429c060
PB
11346 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11347 # We already found the complete path
b8025f34
AS
11348 ac_dir=`dirname $AR_FOR_TARGET`
11349 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11350echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11351 else
11352 # Canadian cross, just use what we found
c6b750e1
DJ
11353 echo "$as_me:$LINENO: result: pre-installed" >&5
11354echo "${ECHO_T}pre-installed" >&6
2429c060 11355 fi
be01d343
PB
11356else
11357 ok=yes
11358 case " ${configdirs} " in
11359 *" binutils "*) ;;
11360 *) ok=no ;;
11361 esac
c6b750e1 11362
be01d343
PB
11363 if test $ok = yes; then
11364 # An in-tree tool is available and we can use it
11365 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11366 echo "$as_me:$LINENO: result: just compiled" >&5
11367echo "${ECHO_T}just compiled" >&6
2429c060
PB
11368 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11369 # We already found the complete path
b8025f34
AS
11370 ac_dir=`dirname $AR_FOR_TARGET`
11371 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11372echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11373 elif test "x$target" = "x$host"; then
11374 # We can use an host tool
11375 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11376 echo "$as_me:$LINENO: result: host tool" >&5
11377echo "${ECHO_T}host tool" >&6
be01d343
PB
11378 else
11379 # We need a cross tool
c6b750e1
DJ
11380 echo "$as_me:$LINENO: result: pre-installed" >&5
11381echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11382 fi
11383fi
4b900473 11384
c6b750e1
DJ
11385echo "$as_me:$LINENO: checking where to find the target as" >&5
11386echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11387if test "x${build}" != "x${host}" ; then
2429c060
PB
11388 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11389 # We already found the complete path
b8025f34
AS
11390 ac_dir=`dirname $AS_FOR_TARGET`
11391 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11392echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11393 else
11394 # Canadian cross, just use what we found
c6b750e1
DJ
11395 echo "$as_me:$LINENO: result: pre-installed" >&5
11396echo "${ECHO_T}pre-installed" >&6
2429c060 11397 fi
be01d343
PB
11398else
11399 ok=yes
11400 case " ${configdirs} " in
11401 *" gas "*) ;;
11402 *) ok=no ;;
11403 esac
c6b750e1 11404
be01d343
PB
11405 if test $ok = yes; then
11406 # An in-tree tool is available and we can use it
11407 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11408 echo "$as_me:$LINENO: result: just compiled" >&5
11409echo "${ECHO_T}just compiled" >&6
2429c060
PB
11410 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11411 # We already found the complete path
b8025f34
AS
11412 ac_dir=`dirname $AS_FOR_TARGET`
11413 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11414echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11415 elif test "x$target" = "x$host"; then
11416 # We can use an host tool
11417 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11418 echo "$as_me:$LINENO: result: host tool" >&5
11419echo "${ECHO_T}host tool" >&6
be01d343
PB
11420 else
11421 # We need a cross tool
c6b750e1
DJ
11422 echo "$as_me:$LINENO: result: pre-installed" >&5
11423echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11424 fi
11425fi
4b900473 11426
c6b750e1
DJ
11427echo "$as_me:$LINENO: checking where to find the target cc" >&5
11428echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11429if test "x${build}" != "x${host}" ; then
2429c060
PB
11430 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11431 # We already found the complete path
b8025f34
AS
11432 ac_dir=`dirname $CC_FOR_TARGET`
11433 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11434echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11435 else
11436 # Canadian cross, just use what we found
c6b750e1
DJ
11437 echo "$as_me:$LINENO: result: pre-installed" >&5
11438echo "${ECHO_T}pre-installed" >&6
2429c060 11439 fi
be01d343
PB
11440else
11441 ok=yes
11442 case " ${configdirs} " in
11443 *" gcc "*) ;;
11444 *) ok=no ;;
11445 esac
c6b750e1 11446
be01d343
PB
11447 if test $ok = yes; then
11448 # An in-tree tool is available and we can use it
11449 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11450 echo "$as_me:$LINENO: result: just compiled" >&5
11451echo "${ECHO_T}just compiled" >&6
2429c060
PB
11452 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11453 # We already found the complete path
b8025f34
AS
11454 ac_dir=`dirname $CC_FOR_TARGET`
11455 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11456echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11457 elif test "x$target" = "x$host"; then
11458 # We can use an host tool
11459 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11460 echo "$as_me:$LINENO: result: host tool" >&5
11461echo "${ECHO_T}host tool" >&6
be01d343
PB
11462 else
11463 # We need a cross tool
c6b750e1
DJ
11464 echo "$as_me:$LINENO: result: pre-installed" >&5
11465echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11466 fi
11467fi
4b900473 11468
c6b750e1
DJ
11469echo "$as_me:$LINENO: checking where to find the target c++" >&5
11470echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11471if test "x${build}" != "x${host}" ; then
2429c060
PB
11472 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11473 # We already found the complete path
b8025f34
AS
11474 ac_dir=`dirname $CXX_FOR_TARGET`
11475 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11476echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11477 else
11478 # Canadian cross, just use what we found
c6b750e1
DJ
11479 echo "$as_me:$LINENO: result: pre-installed" >&5
11480echo "${ECHO_T}pre-installed" >&6
2429c060 11481 fi
be01d343
PB
11482else
11483 ok=yes
11484 case " ${configdirs} " in
11485 *" gcc "*) ;;
11486 *) ok=no ;;
11487 esac
11488 case ,${enable_languages}, in
11489 *,c++,*) ;;
11490 *) ok=no ;;
11491 esac
11492 if test $ok = yes; then
11493 # An in-tree tool is available and we can use it
11494 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
11495 echo "$as_me:$LINENO: result: just compiled" >&5
11496echo "${ECHO_T}just compiled" >&6
2429c060
PB
11497 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11498 # We already found the complete path
b8025f34
AS
11499 ac_dir=`dirname $CXX_FOR_TARGET`
11500 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11501echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11502 elif test "x$target" = "x$host"; then
11503 # We can use an host tool
11504 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11505 echo "$as_me:$LINENO: result: host tool" >&5
11506echo "${ECHO_T}host tool" >&6
be01d343
PB
11507 else
11508 # We need a cross tool
c6b750e1
DJ
11509 echo "$as_me:$LINENO: result: pre-installed" >&5
11510echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11511 fi
11512fi
4b900473 11513
c6b750e1
DJ
11514echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11515echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11516if test "x${build}" != "x${host}" ; then
2429c060
PB
11517 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11518 # We already found the complete path
b8025f34
AS
11519 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11520 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11521echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11522 else
11523 # Canadian cross, just use what we found
c6b750e1
DJ
11524 echo "$as_me:$LINENO: result: pre-installed" >&5
11525echo "${ECHO_T}pre-installed" >&6
2429c060 11526 fi
be01d343
PB
11527else
11528 ok=yes
11529 case " ${configdirs} " in
11530 *" gcc "*) ;;
11531 *) ok=no ;;
11532 esac
11533 case ,${enable_languages}, in
11534 *,c++,*) ;;
11535 *) ok=no ;;
11536 esac
11537 if test $ok = yes; then
11538 # An in-tree tool is available and we can use it
11539 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
11540 echo "$as_me:$LINENO: result: just compiled" >&5
11541echo "${ECHO_T}just compiled" >&6
2429c060
PB
11542 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11543 # We already found the complete path
b8025f34
AS
11544 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11545 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11546echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11547 elif test "x$target" = "x$host"; then
11548 # We can use an host tool
11549 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11550 echo "$as_me:$LINENO: result: host tool" >&5
11551echo "${ECHO_T}host tool" >&6
be01d343
PB
11552 else
11553 # We need a cross tool
c6b750e1
DJ
11554 echo "$as_me:$LINENO: result: pre-installed" >&5
11555echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11556 fi
11557fi
4b900473 11558
c6b750e1
DJ
11559echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11560echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11561if test "x${build}" != "x${host}" ; then
2429c060
PB
11562 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11563 # We already found the complete path
b8025f34
AS
11564 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11565 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11566echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11567 else
11568 # Canadian cross, just use what we found
c6b750e1
DJ
11569 echo "$as_me:$LINENO: result: pre-installed" >&5
11570echo "${ECHO_T}pre-installed" >&6
2429c060 11571 fi
be01d343
PB
11572else
11573 ok=yes
11574 case " ${configdirs} " in
11575 *" binutils "*) ;;
11576 *) ok=no ;;
11577 esac
c6b750e1 11578
be01d343
PB
11579 if test $ok = yes; then
11580 # An in-tree tool is available and we can use it
11581 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11582 echo "$as_me:$LINENO: result: just compiled" >&5
11583echo "${ECHO_T}just compiled" >&6
2429c060
PB
11584 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11585 # We already found the complete path
b8025f34
AS
11586 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11587 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11588echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11589 elif test "x$target" = "x$host"; then
11590 # We can use an host tool
11591 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11592 echo "$as_me:$LINENO: result: host tool" >&5
11593echo "${ECHO_T}host tool" >&6
be01d343
PB
11594 else
11595 # We need a cross tool
c6b750e1
DJ
11596 echo "$as_me:$LINENO: result: pre-installed" >&5
11597echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11598 fi
11599fi
4b900473 11600
c6b750e1
DJ
11601echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11602echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11603if test "x${build}" != "x${host}" ; then
2429c060
PB
11604 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11605 # We already found the complete path
b8025f34
AS
11606 ac_dir=`dirname $GCC_FOR_TARGET`
11607 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11608echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11609 else
11610 # Canadian cross, just use what we found
c6b750e1
DJ
11611 echo "$as_me:$LINENO: result: pre-installed" >&5
11612echo "${ECHO_T}pre-installed" >&6
2429c060 11613 fi
be01d343
PB
11614else
11615 ok=yes
11616 case " ${configdirs} " in
11617 *" gcc "*) ;;
11618 *) ok=no ;;
11619 esac
c6b750e1 11620
be01d343
PB
11621 if test $ok = yes; then
11622 # An in-tree tool is available and we can use it
11623 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11624 echo "$as_me:$LINENO: result: just compiled" >&5
11625echo "${ECHO_T}just compiled" >&6
2429c060
PB
11626 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11627 # We already found the complete path
b8025f34
AS
11628 ac_dir=`dirname $GCC_FOR_TARGET`
11629 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11630echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11631 elif test "x$target" = "x$host"; then
11632 # We can use an host tool
11633 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11634 echo "$as_me:$LINENO: result: host tool" >&5
11635echo "${ECHO_T}host tool" >&6
be01d343
PB
11636 else
11637 # We need a cross tool
c6b750e1
DJ
11638 echo "$as_me:$LINENO: result: pre-installed" >&5
11639echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11640 fi
11641fi
4b900473 11642
c6b750e1
DJ
11643echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11644echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11645if test "x${build}" != "x${host}" ; then
2429c060
PB
11646 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11647 # We already found the complete path
b8025f34
AS
11648 ac_dir=`dirname $GCJ_FOR_TARGET`
11649 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11650echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11651 else
11652 # Canadian cross, just use what we found
c6b750e1
DJ
11653 echo "$as_me:$LINENO: result: pre-installed" >&5
11654echo "${ECHO_T}pre-installed" >&6
2429c060 11655 fi
be01d343
PB
11656else
11657 ok=yes
11658 case " ${configdirs} " in
11659 *" gcc "*) ;;
11660 *) ok=no ;;
11661 esac
11662 case ,${enable_languages}, in
11663 *,java,*) ;;
11664 *) ok=no ;;
11665 esac
11666 if test $ok = yes; then
11667 # An in-tree tool is available and we can use it
11668 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11669 echo "$as_me:$LINENO: result: just compiled" >&5
11670echo "${ECHO_T}just compiled" >&6
2429c060
PB
11671 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11672 # We already found the complete path
b8025f34
AS
11673 ac_dir=`dirname $GCJ_FOR_TARGET`
11674 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11675echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11676 elif test "x$target" = "x$host"; then
11677 # We can use an host tool
11678 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11679 echo "$as_me:$LINENO: result: host tool" >&5
11680echo "${ECHO_T}host tool" >&6
be01d343
PB
11681 else
11682 # We need a cross tool
c6b750e1
DJ
11683 echo "$as_me:$LINENO: result: pre-installed" >&5
11684echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11685 fi
11686fi
4b900473 11687
c6b750e1
DJ
11688echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11689echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11690if test "x${build}" != "x${host}" ; then
2429c060
PB
11691 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11692 # We already found the complete path
b8025f34
AS
11693 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11694 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11695echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11696 else
11697 # Canadian cross, just use what we found
c6b750e1
DJ
11698 echo "$as_me:$LINENO: result: pre-installed" >&5
11699echo "${ECHO_T}pre-installed" >&6
2429c060 11700 fi
be01d343
PB
11701else
11702 ok=yes
11703 case " ${configdirs} " in
11704 *" gcc "*) ;;
11705 *) ok=no ;;
11706 esac
11707 case ,${enable_languages}, in
11708 *,fortran,*) ;;
11709 *) ok=no ;;
11710 esac
11711 if test $ok = yes; then
11712 # An in-tree tool is available and we can use it
11713 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11714 echo "$as_me:$LINENO: result: just compiled" >&5
11715echo "${ECHO_T}just compiled" >&6
2429c060
PB
11716 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11717 # We already found the complete path
b8025f34
AS
11718 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11719 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11720echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11721 elif test "x$target" = "x$host"; then
11722 # We can use an host tool
11723 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11724 echo "$as_me:$LINENO: result: host tool" >&5
11725echo "${ECHO_T}host tool" >&6
be01d343
PB
11726 else
11727 # We need a cross tool
c6b750e1
DJ
11728 echo "$as_me:$LINENO: result: pre-installed" >&5
11729echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11730 fi
11731fi
4b900473 11732
c6b750e1
DJ
11733echo "$as_me:$LINENO: checking where to find the target ld" >&5
11734echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11735if test "x${build}" != "x${host}" ; then
2429c060
PB
11736 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11737 # We already found the complete path
b8025f34
AS
11738 ac_dir=`dirname $LD_FOR_TARGET`
11739 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11740echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11741 else
11742 # Canadian cross, just use what we found
c6b750e1
DJ
11743 echo "$as_me:$LINENO: result: pre-installed" >&5
11744echo "${ECHO_T}pre-installed" >&6
2429c060 11745 fi
be01d343
PB
11746else
11747 ok=yes
11748 case " ${configdirs} " in
11749 *" ld "*) ;;
11750 *) ok=no ;;
11751 esac
c6b750e1 11752
be01d343
PB
11753 if test $ok = yes; then
11754 # An in-tree tool is available and we can use it
11755 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11756 echo "$as_me:$LINENO: result: just compiled" >&5
11757echo "${ECHO_T}just compiled" >&6
2429c060
PB
11758 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11759 # We already found the complete path
b8025f34
AS
11760 ac_dir=`dirname $LD_FOR_TARGET`
11761 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11762echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11763 elif test "x$target" = "x$host"; then
11764 # We can use an host tool
11765 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11766 echo "$as_me:$LINENO: result: host tool" >&5
11767echo "${ECHO_T}host tool" >&6
be01d343
PB
11768 else
11769 # We need a cross tool
c6b750e1
DJ
11770 echo "$as_me:$LINENO: result: pre-installed" >&5
11771echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11772 fi
11773fi
4b900473 11774
c6b750e1
DJ
11775echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11776echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11777if test "x${build}" != "x${host}" ; then
2429c060
PB
11778 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11779 # We already found the complete path
b8025f34
AS
11780 ac_dir=`dirname $LIPO_FOR_TARGET`
11781 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11782echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11783 else
11784 # Canadian cross, just use what we found
c6b750e1
DJ
11785 echo "$as_me:$LINENO: result: pre-installed" >&5
11786echo "${ECHO_T}pre-installed" >&6
2429c060 11787 fi
be01d343 11788else
2429c060
PB
11789 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11790 # We already found the complete path
b8025f34
AS
11791 ac_dir=`dirname $LIPO_FOR_TARGET`
11792 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11793echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11794 elif test "x$target" = "x$host"; then
be01d343
PB
11795 # We can use an host tool
11796 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11797 echo "$as_me:$LINENO: result: host tool" >&5
11798echo "${ECHO_T}host tool" >&6
be01d343
PB
11799 else
11800 # We need a cross tool
c6b750e1
DJ
11801 echo "$as_me:$LINENO: result: pre-installed" >&5
11802echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11803 fi
11804fi
4b900473 11805
c6b750e1
DJ
11806echo "$as_me:$LINENO: checking where to find the target nm" >&5
11807echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11808if test "x${build}" != "x${host}" ; then
2429c060
PB
11809 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11810 # We already found the complete path
b8025f34
AS
11811 ac_dir=`dirname $NM_FOR_TARGET`
11812 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11813echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11814 else
11815 # Canadian cross, just use what we found
c6b750e1
DJ
11816 echo "$as_me:$LINENO: result: pre-installed" >&5
11817echo "${ECHO_T}pre-installed" >&6
2429c060 11818 fi
be01d343
PB
11819else
11820 ok=yes
11821 case " ${configdirs} " in
11822 *" binutils "*) ;;
11823 *) ok=no ;;
11824 esac
c6b750e1 11825
be01d343
PB
11826 if test $ok = yes; then
11827 # An in-tree tool is available and we can use it
11828 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11829 echo "$as_me:$LINENO: result: just compiled" >&5
11830echo "${ECHO_T}just compiled" >&6
2429c060
PB
11831 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11832 # We already found the complete path
b8025f34
AS
11833 ac_dir=`dirname $NM_FOR_TARGET`
11834 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11835echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11836 elif test "x$target" = "x$host"; then
11837 # We can use an host tool
11838 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11839 echo "$as_me:$LINENO: result: host tool" >&5
11840echo "${ECHO_T}host tool" >&6
be01d343
PB
11841 else
11842 # We need a cross tool
c6b750e1
DJ
11843 echo "$as_me:$LINENO: result: pre-installed" >&5
11844echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11845 fi
11846fi
4b900473 11847
c6b750e1
DJ
11848echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11849echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11850if test "x${build}" != "x${host}" ; then
2429c060
PB
11851 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11852 # We already found the complete path
b8025f34
AS
11853 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11854 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11855echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11856 else
11857 # Canadian cross, just use what we found
c6b750e1
DJ
11858 echo "$as_me:$LINENO: result: pre-installed" >&5
11859echo "${ECHO_T}pre-installed" >&6
2429c060 11860 fi
be01d343
PB
11861else
11862 ok=yes
11863 case " ${configdirs} " in
11864 *" binutils "*) ;;
11865 *) ok=no ;;
11866 esac
c6b750e1 11867
be01d343
PB
11868 if test $ok = yes; then
11869 # An in-tree tool is available and we can use it
11870 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11871 echo "$as_me:$LINENO: result: just compiled" >&5
11872echo "${ECHO_T}just compiled" >&6
2429c060
PB
11873 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11874 # We already found the complete path
b8025f34
AS
11875 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11876 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11877echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11878 elif test "x$target" = "x$host"; then
11879 # We can use an host tool
11880 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11881 echo "$as_me:$LINENO: result: host tool" >&5
11882echo "${ECHO_T}host tool" >&6
be01d343
PB
11883 else
11884 # We need a cross tool
c6b750e1
DJ
11885 echo "$as_me:$LINENO: result: pre-installed" >&5
11886echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11887 fi
11888fi
4b900473 11889
c6b750e1
DJ
11890echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11891echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11892if test "x${build}" != "x${host}" ; then
2429c060
PB
11893 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11894 # We already found the complete path
b8025f34
AS
11895 ac_dir=`dirname $RANLIB_FOR_TARGET`
11896 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11897echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11898 else
11899 # Canadian cross, just use what we found
c6b750e1
DJ
11900 echo "$as_me:$LINENO: result: pre-installed" >&5
11901echo "${ECHO_T}pre-installed" >&6
2429c060 11902 fi
be01d343
PB
11903else
11904 ok=yes
11905 case " ${configdirs} " in
11906 *" binutils "*) ;;
11907 *) ok=no ;;
11908 esac
c6b750e1 11909
be01d343
PB
11910 if test $ok = yes; then
11911 # An in-tree tool is available and we can use it
11912 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11913 echo "$as_me:$LINENO: result: just compiled" >&5
11914echo "${ECHO_T}just compiled" >&6
2429c060
PB
11915 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11916 # We already found the complete path
b8025f34
AS
11917 ac_dir=`dirname $RANLIB_FOR_TARGET`
11918 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11919echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11920 elif test "x$target" = "x$host"; then
11921 # We can use an host tool
11922 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11923 echo "$as_me:$LINENO: result: host tool" >&5
11924echo "${ECHO_T}host tool" >&6
be01d343
PB
11925 else
11926 # We need a cross tool
c6b750e1
DJ
11927 echo "$as_me:$LINENO: result: pre-installed" >&5
11928echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11929 fi
11930fi
4b900473 11931
c6b750e1
DJ
11932echo "$as_me:$LINENO: checking where to find the target strip" >&5
11933echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11934if test "x${build}" != "x${host}" ; then
2429c060
PB
11935 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11936 # We already found the complete path
b8025f34
AS
11937 ac_dir=`dirname $STRIP_FOR_TARGET`
11938 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11939echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11940 else
11941 # Canadian cross, just use what we found
c6b750e1
DJ
11942 echo "$as_me:$LINENO: result: pre-installed" >&5
11943echo "${ECHO_T}pre-installed" >&6
2429c060 11944 fi
be01d343
PB
11945else
11946 ok=yes
11947 case " ${configdirs} " in
11948 *" binutils "*) ;;
11949 *) ok=no ;;
11950 esac
c6b750e1 11951
be01d343
PB
11952 if test $ok = yes; then
11953 # An in-tree tool is available and we can use it
11954 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11955 echo "$as_me:$LINENO: result: just compiled" >&5
11956echo "${ECHO_T}just compiled" >&6
2429c060
PB
11957 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11958 # We already found the complete path
b8025f34
AS
11959 ac_dir=`dirname $STRIP_FOR_TARGET`
11960 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11961echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11962 elif test "x$target" = "x$host"; then
11963 # We can use an host tool
11964 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11965 echo "$as_me:$LINENO: result: host tool" >&5
11966echo "${ECHO_T}host tool" >&6
be01d343
PB
11967 else
11968 # We need a cross tool
c6b750e1
DJ
11969 echo "$as_me:$LINENO: result: pre-installed" >&5
11970echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11971 fi
11972fi
4b900473 11973
c6b750e1
DJ
11974echo "$as_me:$LINENO: checking where to find the target windres" >&5
11975echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11976if test "x${build}" != "x${host}" ; then
2429c060
PB
11977 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11978 # We already found the complete path
b8025f34
AS
11979 ac_dir=`dirname $WINDRES_FOR_TARGET`
11980 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11981echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11982 else
11983 # Canadian cross, just use what we found
c6b750e1
DJ
11984 echo "$as_me:$LINENO: result: pre-installed" >&5
11985echo "${ECHO_T}pre-installed" >&6
2429c060 11986 fi
be01d343
PB
11987else
11988 ok=yes
11989 case " ${configdirs} " in
11990 *" binutils "*) ;;
11991 *) ok=no ;;
11992 esac
c6b750e1 11993
be01d343
PB
11994 if test $ok = yes; then
11995 # An in-tree tool is available and we can use it
11996 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11997 echo "$as_me:$LINENO: result: just compiled" >&5
11998echo "${ECHO_T}just compiled" >&6
2429c060
PB
11999 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12000 # We already found the complete path
b8025f34
AS
12001 ac_dir=`dirname $WINDRES_FOR_TARGET`
12002 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12003echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12004 elif test "x$target" = "x$host"; then
12005 # We can use an host tool
12006 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
12007 echo "$as_me:$LINENO: result: host tool" >&5
12008echo "${ECHO_T}host tool" >&6
be01d343
PB
12009 else
12010 # We need a cross tool
c6b750e1
DJ
12011 echo "$as_me:$LINENO: result: pre-installed" >&5
12012echo "${ECHO_T}pre-installed" >&6
be01d343 12013 fi
a0da8069 12014fi
54752a6b 12015
0c24b341
NC
12016echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12017echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12018if test "x${build}" != "x${host}" ; then
12019 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12020 # We already found the complete path
12021 ac_dir=`dirname $WINDMC_FOR_TARGET`
12022 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12023echo "${ECHO_T}pre-installed in $ac_dir" >&6
12024 else
12025 # Canadian cross, just use what we found
12026 echo "$as_me:$LINENO: result: pre-installed" >&5
12027echo "${ECHO_T}pre-installed" >&6
12028 fi
12029else
12030 ok=yes
12031 case " ${configdirs} " in
12032 *" binutils "*) ;;
12033 *) ok=no ;;
12034 esac
12035
12036 if test $ok = yes; then
12037 # An in-tree tool is available and we can use it
12038 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12039 echo "$as_me:$LINENO: result: just compiled" >&5
12040echo "${ECHO_T}just compiled" >&6
12041 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12042 # We already found the complete path
12043 ac_dir=`dirname $WINDMC_FOR_TARGET`
12044 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12045echo "${ECHO_T}pre-installed in $ac_dir" >&6
12046 elif test "x$target" = "x$host"; then
12047 # We can use an host tool
12048 WINDMC_FOR_TARGET='$(WINDMC)'
12049 echo "$as_me:$LINENO: result: host tool" >&5
12050echo "${ECHO_T}host tool" >&6
12051 else
12052 # We need a cross tool
12053 echo "$as_me:$LINENO: result: pre-installed" >&5
12054echo "${ECHO_T}pre-installed" >&6
12055 fi
12056fi
12057
54752a6b
NN
12058
12059
be01d343 12060
4b900473 12061
a0da8069
NN
12062# Certain tools may need extra flags.
12063AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12064RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12065NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12066
be01d343
PB
12067# When building target libraries, except in a Canadian cross, we use
12068# the same toolchain as the compiler we just built.
12069COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12070COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12071COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12072if test $host = $build; then
12073 case " $configdirs " in
12074 *" gcc "*)
12075 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12076 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12077 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12078 ;;
12079 esac
12080fi
12081
12082
12083
12084
12085
c6b750e1
DJ
12086echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12087echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12088# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12089if test "${enable_maintainer_mode+set}" = set; then
12090 enableval="$enable_maintainer_mode"
12091 USE_MAINTAINER_MODE=$enableval
12092else
12093 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12094fi;
12095echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12096echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12097
12098
12099if test "$USE_MAINTAINER_MODE" = yes; then
12100 MAINTAINER_MODE_TRUE=
12101 MAINTAINER_MODE_FALSE='#'
12102else
12103 MAINTAINER_MODE_TRUE='#'
12104 MAINTAINER_MODE_FALSE=
c6b750e1 12105fi
3d5e36ae
AO
12106MAINT=$MAINTAINER_MODE_TRUE
12107
1d39f329
NN
12108# ---------------------
12109# GCC bootstrap support
12110# ---------------------
12111
12112# Stage specific cflags for build.
12113stage1_cflags="-g"
12114case $build in
12115 vax-*-*)
12116 case ${GCC} in
12117 yes) stage1_cflags="-g -Wa,-J" ;;
12118 *) stage1_cflags="-g -J" ;;
12119 esac ;;
1d39f329
NN
12120esac
12121
1d89b610
PB
12122# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12123if test "$GCC" = yes; then
12124 saved_CFLAGS="$CFLAGS"
12125
12126 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12127 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12128 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12129echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12130 cat >conftest.$ac_ext <<_ACEOF
12131/* confdefs.h. */
12132_ACEOF
12133cat confdefs.h >>conftest.$ac_ext
12134cat >>conftest.$ac_ext <<_ACEOF
12135/* end confdefs.h. */
12136
2038f525
PB
12137#if (__GNUC__ < 3) \
12138 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12139 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12140#error http://gcc.gnu.org/PR29382
12141#endif
12142
c6b750e1
DJ
12143int
12144main ()
12145{
12146
12147 ;
12148 return 0;
12149}
12150_ACEOF
12151rm -f conftest.$ac_objext
12152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12153 (eval $ac_compile) 2>conftest.er1
12154 ac_status=$?
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -z "$ac_c_werror_flag"
12161 || test ! -s conftest.err'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; } &&
12167 { ac_try='test -s conftest.$ac_objext'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 echo "$as_me:$LINENO: result: yes" >&5
12174echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12175else
12176 echo "$as_me: failed program was:" >&5
12177sed 's/^/| /' conftest.$ac_ext >&5
12178
12179echo "$as_me:$LINENO: result: no" >&5
12180echo "${ECHO_T}no" >&6
12181fi
12182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12183
12184 CFLAGS="$saved_CFLAGS"
12185fi
12186
12187
1d39f329 12188
8a0d8a5c
PB
12189# Enable --enable-checking in stage1 of the compiler.
12190# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12191if test "${enable_stage1_checking+set}" = set; then
12192 enableval="$enable_stage1_checking"
12193 stage1_checking=--enable-checking=${enable_stage1_checking}
12194else
5566c1fa 12195 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12196 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12197else
5566c1fa 12198 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12199fi
c6b750e1 12200fi;
8a0d8a5c
PB
12201
12202
1d39f329 12203# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12204# Check whether --enable-werror or --disable-werror was given.
12205if test "${enable_werror+set}" = set; then
12206 enableval="$enable_werror"
c6b750e1 12207
1d39f329 12208else
a0323144 12209 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12210 enable_werror=yes
79fcd0ec
PB
12211else
12212 enable_werror=no
12213fi
c6b750e1 12214fi;
1a6f2dc7
NN
12215case ${enable_werror} in
12216 yes) stage2_werror_flag="--enable-werror-always" ;;
12217 *) stage2_werror_flag="" ;;
1d39f329
NN
12218esac
12219
12220
108a6f8e 12221# Flags needed to enable html installing and building
c6b750e1 12222
108a6f8e
CD
12223# Check whether --with-datarootdir or --without-datarootdir was given.
12224if test "${with_datarootdir+set}" = set; then
12225 withval="$with_datarootdir"
12226 datarootdir="\${prefix}/${withval}"
12227else
12228 datarootdir="\${prefix}/share"
c6b750e1 12229fi;
108a6f8e
CD
12230
12231
12232# Check whether --with-docdir or --without-docdir was given.
12233if test "${with_docdir+set}" = set; then
12234 withval="$with_docdir"
12235 docdir="\${prefix}/${withval}"
12236else
12237 docdir="\${datarootdir}/doc"
c6b750e1 12238fi;
108a6f8e
CD
12239
12240
a3ca38d2
DD
12241# Check whether --with-pdfdir or --without-pdfdir was given.
12242if test "${with_pdfdir+set}" = set; then
12243 withval="$with_pdfdir"
12244 pdfdir="\${prefix}/${withval}"
12245else
12246 pdfdir="\${docdir}"
12247fi;
12248
12249
108a6f8e
CD
12250# Check whether --with-htmldir or --without-htmldir was given.
12251if test "${with_htmldir+set}" = set; then
12252 withval="$with_htmldir"
12253 htmldir="\${prefix}/${withval}"
12254else
12255 htmldir="\${docdir}"
c6b750e1 12256fi;
108a6f8e
CD
12257
12258
12259
12260
12261
b8025f34 12262
c6b750e1
DJ
12263 ac_config_files="$ac_config_files Makefile"
12264cat >confcache <<\_ACEOF
a0da8069
NN
12265# This file is a shell script that caches the results of configure
12266# tests run on this system so they can be shared between configure
c6b750e1
DJ
12267# scripts and configure runs, see configure's option --config-cache.
12268# It is not useful on other systems. If it contains results you don't
12269# want to keep, you may remove or edit it.
a0da8069 12270#
c6b750e1
DJ
12271# config.status only pays attention to the cache file if you give it
12272# the --recheck option to rerun configure.
a0da8069 12273#
c6b750e1
DJ
12274# `ac_cv_env_foo' variables (set or unset) will be overridden when
12275# loading this file, other *unset* `ac_cv_foo' will be assigned the
12276# following values.
12277
12278_ACEOF
12279
a0da8069
NN
12280# The following way of writing the cache mishandles newlines in values,
12281# but we know of no workaround that is simple, portable, and efficient.
12282# So, don't put newlines in cache variables' values.
12283# Ultrix sh set writes to stderr and can't be redirected directly,
12284# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12285{
12286 (set) 2>&1 |
12287 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12288 *ac_space=\ *)
12289 # `set' does not quote correctly, so add quotes (double-quote
12290 # substitution turns \\\\ into \\, and sed turns \\ into \).
12291 sed -n \
12292 "s/'/'\\\\''/g;
12293 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12294 ;;
12295 *)
12296 # `set' quotes correctly as required by POSIX, so do not add quotes.
12297 sed -n \
12298 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12299 ;;
12300 esac;
12301} |
12302 sed '
12303 t clear
12304 : clear
12305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12306 t end
12307 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12308 : end' >>confcache
12309if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12310 if test -w $cache_file; then
c6b750e1
DJ
12311 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12312 cat confcache >$cache_file
a0da8069
NN
12313 else
12314 echo "not updating unwritable cache $cache_file"
12315 fi
852e5f18 12316fi
a0da8069 12317rm -f confcache
852e5f18 12318
a0da8069
NN
12319test "x$prefix" = xNONE && prefix=$ac_default_prefix
12320# Let make expand exec_prefix.
12321test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12322
c6b750e1
DJ
12323# VPATH may cause trouble with some makes, so we remove $(srcdir),
12324# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12325# trailing colons and then remove the whole line if VPATH becomes empty
12326# (actually we leave an empty line to preserve line numbers).
a0da8069 12327if test "x$srcdir" = x.; then
c6b750e1
DJ
12328 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12329s/:*\$(srcdir):*/:/;
12330s/:*\${srcdir}:*/:/;
12331s/:*@srcdir@:*/:/;
12332s/^\([^=]*=[ ]*\):*/\1/;
12333s/:*$//;
12334s/^[^=]*=[ ]*$//;
12335}'
a0da8069 12336fi
252b5132 12337
a0da8069
NN
12338# Transform confdefs.h into DEFS.
12339# Protect against shell expansion while executing Makefile rules.
12340# Protect against Makefile macro expansion.
c6b750e1
DJ
12341#
12342# If the first sed substitution is executed (which looks for macros that
12343# take arguments), then we branch to the quote section. Otherwise,
12344# look for a macro that doesn't take arguments.
12345cat >confdef2opt.sed <<\_ACEOF
12346t clear
12347: clear
12348s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12349t quote
12350s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12351t quote
12352d
12353: quote
12354s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12355s,\[,\\&,g
12356s,\],\\&,g
12357s,\$,$$,g
12358p
12359_ACEOF
12360# We use echo to avoid assuming a particular line-breaking character.
12361# The extra dot is to prevent the shell from consuming trailing
12362# line-breaks from the sub-command output. A line-break within
12363# single-quotes doesn't work because, if this script is created in a
12364# platform that uses two characters for line-breaks (e.g., DOS), tr
12365# would break.
12366ac_LF_and_DOT=`echo; echo .`
12367DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12368rm -f confdef2opt.sed
12369
12370
12371ac_libobjs=
12372ac_ltlibobjs=
12373for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12374 # 1. Remove the extension, and $U if already installed.
12375 ac_i=`echo "$ac_i" |
12376 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12377 # 2. Add them.
12378 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12379 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12380done
12381LIBOBJS=$ac_libobjs
852e5f18 12382
c6b750e1 12383LTLIBOBJS=$ac_ltlibobjs
376a0e54 12384
cac3d6c4 12385
c6b750e1
DJ
12386
12387: ${CONFIG_STATUS=./config.status}
12388ac_clean_files_save=$ac_clean_files
12389ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12390{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12391echo "$as_me: creating $CONFIG_STATUS" >&6;}
12392cat >$CONFIG_STATUS <<_ACEOF
12393#! $SHELL
12394# Generated by $as_me.
a0da8069 12395# Run this file to recreate the current configuration.
a0da8069 12396# Compiler output produced by configure, useful for debugging
c6b750e1 12397# configure, is in config.log if it exists.
376a0e54 12398
c6b750e1
DJ
12399debug=false
12400ac_cs_recheck=false
12401ac_cs_silent=false
12402SHELL=\${CONFIG_SHELL-$SHELL}
12403_ACEOF
12404
12405cat >>$CONFIG_STATUS <<\_ACEOF
12406## --------------------- ##
12407## M4sh Initialization. ##
12408## --------------------- ##
12409
12410# Be Bourne compatible
12411if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12412 emulate sh
12413 NULLCMD=:
12414 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12415 # is contrary to our usage. Disable this feature.
12416 alias -g '${1+"$@"}'='"$@"'
12417elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12418 set -o posix
12419fi
12420DUALCASE=1; export DUALCASE # for MKS sh
12421
12422# Support unset when possible.
12423if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12424 as_unset=unset
12425else
12426 as_unset=false
12427fi
12428
12429
12430# Work around bugs in pre-3.0 UWIN ksh.
12431$as_unset ENV MAIL MAILPATH
12432PS1='$ '
12433PS2='> '
12434PS4='+ '
12435
12436# NLS nuisances.
12437for as_var in \
12438 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12439 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12440 LC_TELEPHONE LC_TIME
12441do
12442 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12443 eval $as_var=C; export $as_var
12444 else
12445 $as_unset $as_var
12446 fi
12447done
12448
12449# Required to use basename.
12450if expr a : '\(a\)' >/dev/null 2>&1; then
12451 as_expr=expr
12452else
12453 as_expr=false
12454fi
12455
12456if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12457 as_basename=basename
12458else
12459 as_basename=false
12460fi
12461
12462
12463# Name of the executable.
12464as_me=`$as_basename "$0" ||
12465$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12466 X"$0" : 'X\(//\)$' \| \
12467 X"$0" : 'X\(/\)$' \| \
12468 . : '\(.\)' 2>/dev/null ||
12469echo X/"$0" |
12470 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12471 /^X\/\(\/\/\)$/{ s//\1/; q; }
12472 /^X\/\(\/\).*/{ s//\1/; q; }
12473 s/.*/./; q'`
12474
12475
12476# PATH needs CR, and LINENO needs CR and PATH.
12477# Avoid depending upon Character Ranges.
12478as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12479as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12480as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12481as_cr_digits='0123456789'
12482as_cr_alnum=$as_cr_Letters$as_cr_digits
12483
12484# The user is always right.
12485if test "${PATH_SEPARATOR+set}" != set; then
12486 echo "#! /bin/sh" >conf$$.sh
12487 echo "exit 0" >>conf$$.sh
12488 chmod +x conf$$.sh
12489 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12490 PATH_SEPARATOR=';'
12491 else
12492 PATH_SEPARATOR=:
12493 fi
12494 rm -f conf$$.sh
12495fi
12496
12497
12498 as_lineno_1=$LINENO
12499 as_lineno_2=$LINENO
12500 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12501 test "x$as_lineno_1" != "x$as_lineno_2" &&
12502 test "x$as_lineno_3" = "x$as_lineno_2" || {
12503 # Find who we are. Look in the path if we contain no path at all
12504 # relative or not.
12505 case $0 in
12506 *[\\/]* ) as_myself=$0 ;;
12507 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12508for as_dir in $PATH
12509do
12510 IFS=$as_save_IFS
12511 test -z "$as_dir" && as_dir=.
12512 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12513done
12514
12515 ;;
12516 esac
12517 # We did not find ourselves, most probably we were run as `sh COMMAND'
12518 # in which case we are not to be found in the path.
12519 if test "x$as_myself" = x; then
12520 as_myself=$0
12521 fi
12522 if test ! -f "$as_myself"; then
12523 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12524echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12525 { (exit 1); exit 1; }; }
12526 fi
12527 case $CONFIG_SHELL in
12528 '')
12529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12531do
12532 IFS=$as_save_IFS
12533 test -z "$as_dir" && as_dir=.
12534 for as_base in sh bash ksh sh5; do
12535 case $as_dir in
12536 /*)
12537 if ("$as_dir/$as_base" -c '
12538 as_lineno_1=$LINENO
12539 as_lineno_2=$LINENO
12540 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12541 test "x$as_lineno_1" != "x$as_lineno_2" &&
12542 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12543 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12544 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12545 CONFIG_SHELL=$as_dir/$as_base
12546 export CONFIG_SHELL
12547 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12548 fi;;
12549 esac
12550 done
12551done
12552;;
12553 esac
12554
12555 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12556 # uniformly replaced by the line number. The first 'sed' inserts a
12557 # line-number line before each line; the second 'sed' does the real
12558 # work. The second script uses 'N' to pair each line-number line
12559 # with the numbered line, and appends trailing '-' during
12560 # substitution so that $LINENO is not a special case at line end.
12561 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12562 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12563 sed '=' <$as_myself |
12564 sed '
12565 N
12566 s,$,-,
12567 : loop
12568 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12569 t loop
12570 s,-$,,
12571 s,^['$as_cr_digits']*\n,,
12572 ' >$as_me.lineno &&
12573 chmod +x $as_me.lineno ||
12574 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12575echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12576 { (exit 1); exit 1; }; }
12577
12578 # Don't try to exec as it changes $[0], causing all sort of problems
12579 # (the dirname of $[0] is not the place where we might find the
12580 # original and so on. Autoconf is especially sensible to this).
12581 . ./$as_me.lineno
12582 # Exit status is that of the last command.
12583 exit
12584}
12585
12586
12587case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12588 *c*,-n*) ECHO_N= ECHO_C='
12589' ECHO_T=' ' ;;
12590 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12591 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12592esac
12593
12594if expr a : '\(a\)' >/dev/null 2>&1; then
12595 as_expr=expr
12596else
12597 as_expr=false
12598fi
12599
12600rm -f conf$$ conf$$.exe conf$$.file
12601echo >conf$$.file
12602if ln -s conf$$.file conf$$ 2>/dev/null; then
12603 # We could just check for DJGPP; but this test a) works b) is more generic
12604 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12605 if test -f conf$$.exe; then
12606 # Don't use ln at all; we don't have any links
12607 as_ln_s='cp -p'
12608 else
12609 as_ln_s='ln -s'
12610 fi
12611elif ln conf$$.file conf$$ 2>/dev/null; then
12612 as_ln_s=ln
12613else
12614 as_ln_s='cp -p'
12615fi
12616rm -f conf$$ conf$$.exe conf$$.file
12617
12618if mkdir -p . 2>/dev/null; then
12619 as_mkdir_p=:
12620else
12621 test -d ./-p && rmdir ./-p
12622 as_mkdir_p=false
12623fi
12624
12625as_executable_p="test -f"
12626
12627# Sed expression to map a string onto a valid CPP name.
12628as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12629
12630# Sed expression to map a string onto a valid variable name.
12631as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12632
12633
12634# IFS
12635# We need space, tab and new line, in precisely that order.
12636as_nl='
12637'
12638IFS=" $as_nl"
12639
12640# CDPATH.
12641$as_unset CDPATH
12642
12643exec 6>&1
12644
12645# Open the log real soon, to keep \$[0] and so on meaningful, and to
12646# report actual input values of CONFIG_FILES etc. instead of their
12647# values after options handling. Logging --version etc. is OK.
12648exec 5>>config.log
12649{
12650 echo
12651 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12652## Running $as_me. ##
12653_ASBOX
12654} >&5
12655cat >&5 <<_CSEOF
12656
12657This file was extended by $as_me, which was
12658generated by GNU Autoconf 2.59. Invocation command line was
12659
12660 CONFIG_FILES = $CONFIG_FILES
12661 CONFIG_HEADERS = $CONFIG_HEADERS
12662 CONFIG_LINKS = $CONFIG_LINKS
12663 CONFIG_COMMANDS = $CONFIG_COMMANDS
12664 $ $0 $@
12665
12666_CSEOF
12667echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12668echo >&5
12669_ACEOF
12670
12671# Files that config.status was made for.
12672if test -n "$ac_config_files"; then
12673 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12674fi
12675
12676if test -n "$ac_config_headers"; then
12677 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12678fi
12679
12680if test -n "$ac_config_links"; then
12681 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12682fi
12683
12684if test -n "$ac_config_commands"; then
12685 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12686fi
12687
12688cat >>$CONFIG_STATUS <<\_ACEOF
12689
12690ac_cs_usage="\
12691\`$as_me' instantiates files from templates according to the
12692current configuration.
12693
12694Usage: $0 [OPTIONS] [FILE]...
12695
12696 -h, --help print this help, then exit
12697 -V, --version print version number, then exit
12698 -q, --quiet do not print progress messages
12699 -d, --debug don't remove temporary files
12700 --recheck update $as_me by reconfiguring in the same conditions
12701 --file=FILE[:TEMPLATE]
12702 instantiate the configuration file FILE
12703
12704Configuration files:
12705$config_files
12706
12707Report bugs to <bug-autoconf@gnu.org>."
12708_ACEOF
12709
12710cat >>$CONFIG_STATUS <<_ACEOF
12711ac_cs_version="\\
12712config.status
12713configured by $0, generated by GNU Autoconf 2.59,
12714 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12715
12716Copyright (C) 2003 Free Software Foundation, Inc.
12717This config.status script is free software; the Free Software Foundation
12718gives unlimited permission to copy, distribute and modify it."
12719srcdir=$srcdir
12720INSTALL="$INSTALL"
12721_ACEOF
12722
12723cat >>$CONFIG_STATUS <<\_ACEOF
12724# If no file are specified by the user, then we need to provide default
12725# value. By we need to know if files were specified by the user.
12726ac_need_defaults=:
12727while test $# != 0
a0da8069 12728do
c6b750e1
DJ
12729 case $1 in
12730 --*=*)
12731 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12732 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12733 ac_shift=:
12734 ;;
12735 -*)
12736 ac_option=$1
12737 ac_optarg=$2
12738 ac_shift=shift
12739 ;;
12740 *) # This is not an option, so the user has probably given explicit
12741 # arguments.
12742 ac_option=$1
12743 ac_need_defaults=false;;
12744 esac
12745
12746 case $ac_option in
12747 # Handling of the options.
12748_ACEOF
12749cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12750 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12751 ac_cs_recheck=: ;;
12752 --version | --vers* | -V )
12753 echo "$ac_cs_version"; exit 0 ;;
12754 --he | --h)
12755 # Conflict between --help and --header
12756 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12757Try \`$0 --help' for more information." >&5
12758echo "$as_me: error: ambiguous option: $1
12759Try \`$0 --help' for more information." >&2;}
12760 { (exit 1); exit 1; }; };;
12761 --help | --hel | -h )
12762 echo "$ac_cs_usage"; exit 0 ;;
12763 --debug | --d* | -d )
12764 debug=: ;;
12765 --file | --fil | --fi | --f )
12766 $ac_shift
12767 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12768 ac_need_defaults=false;;
12769 --header | --heade | --head | --hea )
12770 $ac_shift
12771 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12772 ac_need_defaults=false;;
12773 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12774 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12775 ac_cs_silent=: ;;
12776
12777 # This is an error.
12778 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12779Try \`$0 --help' for more information." >&5
12780echo "$as_me: error: unrecognized option: $1
12781Try \`$0 --help' for more information." >&2;}
12782 { (exit 1); exit 1; }; } ;;
12783
12784 *) ac_config_targets="$ac_config_targets $1" ;;
12785
376a0e54 12786 esac
c6b750e1 12787 shift
376a0e54
CM
12788done
12789
c6b750e1 12790ac_configure_extra_args=
376a0e54 12791
c6b750e1
DJ
12792if $ac_cs_silent; then
12793 exec 6>/dev/null
12794 ac_configure_extra_args="$ac_configure_extra_args --silent"
12795fi
376a0e54 12796
c6b750e1
DJ
12797_ACEOF
12798cat >>$CONFIG_STATUS <<_ACEOF
12799if \$ac_cs_recheck; then
12800 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12801 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12802fi
12803
12804_ACEOF
12805
12806
12807
12808
12809
12810cat >>$CONFIG_STATUS <<\_ACEOF
12811for ac_config_target in $ac_config_targets
12812do
12813 case "$ac_config_target" in
12814 # Handling of arguments.
12815 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12816 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12817echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12818 { (exit 1); exit 1; }; };;
12819 esac
12820done
12821
12822# If the user did not use the arguments to specify the items to instantiate,
12823# then the envvar interface is used. Set only those that are not.
12824# We use the long form for the default assignment because of an extremely
12825# bizarre bug on SunOS 4.1.3.
12826if $ac_need_defaults; then
12827 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12828fi
12829
12830# Have a temporary directory for convenience. Make it in the build tree
12831# simply because there is no reason to put it here, and in addition,
12832# creating and moving files from /tmp can sometimes cause problems.
12833# Create a temporary directory, and hook for its removal unless debugging.
12834$debug ||
12835{
12836 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12837 trap '{ (exit 1); exit 1; }' 1 2 13 15
12838}
12839
12840# Create a (secure) tmp directory for tmp files.
12841
12842{
12843 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12844 test -n "$tmp" && test -d "$tmp"
12845} ||
12846{
12847 tmp=./confstat$$-$RANDOM
12848 (umask 077 && mkdir $tmp)
12849} ||
12850{
12851 echo "$me: cannot create a temporary directory in ." >&2
12852 { (exit 1); exit 1; }
12853}
12854
12855_ACEOF
12856
12857cat >>$CONFIG_STATUS <<_ACEOF
12858
12859#
12860# CONFIG_FILES section.
12861#
12862
12863# No need to generate the scripts if there are no CONFIG_FILES.
12864# This happens for instance when ./config.status config.h
12865if test -n "\$CONFIG_FILES"; then
12866 # Protect against being on the right side of a sed subst in config.status.
12867 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12868 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12869s,@SHELL@,$SHELL,;t t
12870s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12871s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12872s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12873s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12874s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12875s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12876s,@exec_prefix@,$exec_prefix,;t t
12877s,@prefix@,$prefix,;t t
12878s,@program_transform_name@,$program_transform_name,;t t
12879s,@bindir@,$bindir,;t t
12880s,@sbindir@,$sbindir,;t t
12881s,@libexecdir@,$libexecdir,;t t
12882s,@datadir@,$datadir,;t t
12883s,@sysconfdir@,$sysconfdir,;t t
12884s,@sharedstatedir@,$sharedstatedir,;t t
12885s,@localstatedir@,$localstatedir,;t t
12886s,@libdir@,$libdir,;t t
12887s,@includedir@,$includedir,;t t
12888s,@oldincludedir@,$oldincludedir,;t t
12889s,@infodir@,$infodir,;t t
12890s,@mandir@,$mandir,;t t
12891s,@build_alias@,$build_alias,;t t
12892s,@host_alias@,$host_alias,;t t
12893s,@target_alias@,$target_alias,;t t
12894s,@DEFS@,$DEFS,;t t
12895s,@ECHO_C@,$ECHO_C,;t t
12896s,@ECHO_N@,$ECHO_N,;t t
12897s,@ECHO_T@,$ECHO_T,;t t
12898s,@LIBS@,$LIBS,;t t
12899s,@build@,$build,;t t
12900s,@build_cpu@,$build_cpu,;t t
12901s,@build_vendor@,$build_vendor,;t t
12902s,@build_os@,$build_os,;t t
12903s,@build_noncanonical@,$build_noncanonical,;t t
12904s,@host_noncanonical@,$host_noncanonical,;t t
12905s,@target_noncanonical@,$target_noncanonical,;t t
12906s,@host@,$host,;t t
12907s,@host_cpu@,$host_cpu,;t t
12908s,@host_vendor@,$host_vendor,;t t
12909s,@host_os@,$host_os,;t t
12910s,@target@,$target,;t t
12911s,@target_cpu@,$target_cpu,;t t
12912s,@target_vendor@,$target_vendor,;t t
12913s,@target_os@,$target_os,;t t
12914s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12915s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12916s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12917s,@LN@,$LN,;t t
12918s,@LN_S@,$LN_S,;t t
12919s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12920s,@build_libsubdir@,$build_libsubdir,;t t
12921s,@build_subdir@,$build_subdir,;t t
12922s,@host_subdir@,$host_subdir,;t t
12923s,@target_subdir@,$target_subdir,;t t
12924s,@CC@,$CC,;t t
12925s,@CFLAGS@,$CFLAGS,;t t
12926s,@LDFLAGS@,$LDFLAGS,;t t
12927s,@CPPFLAGS@,$CPPFLAGS,;t t
12928s,@ac_ct_CC@,$ac_ct_CC,;t t
12929s,@EXEEXT@,$EXEEXT,;t t
12930s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12931s,@CXX@,$CXX,;t t
12932s,@CXXFLAGS@,$CXXFLAGS,;t t
12933s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12934s,@GNATBIND@,$GNATBIND,;t t
12935s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12936s,@GNATMAKE@,$GNATMAKE,;t t
12937s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12938s,@do_compare@,$do_compare,;t t
12939s,@gmplibs@,$gmplibs,;t t
12940s,@gmpinc@,$gmpinc,;t t
12941s,@stage1_languages@,$stage1_languages,;t t
12942s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12943s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
12944s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12945s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12946s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12947s,@tooldir@,$tooldir,;t t
12948s,@build_tooldir@,$build_tooldir,;t t
12949s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12950s,@GDB_TK@,$GDB_TK,;t t
12951s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12952s,@build_configargs@,$build_configargs,;t t
12953s,@build_configdirs@,$build_configdirs,;t t
12954s,@host_configargs@,$host_configargs,;t t
12955s,@configdirs@,$configdirs,;t t
12956s,@target_configargs@,$target_configargs,;t t
1576798e
PB
12957s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12958s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 12959s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
12960s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12961s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12962s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12963s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12964s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12965s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12966s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12967s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12968s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12969s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12970s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12971s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
12972s,@config_shell@,$config_shell,;t t
12973s,@YACC@,$YACC,;t t
12974s,@BISON@,$BISON,;t t
12975s,@M4@,$M4,;t t
12976s,@LEX@,$LEX,;t t
12977s,@FLEX@,$FLEX,;t t
12978s,@MAKEINFO@,$MAKEINFO,;t t
12979s,@EXPECT@,$EXPECT,;t t
12980s,@RUNTEST@,$RUNTEST,;t t
12981s,@AR@,$AR,;t t
12982s,@AS@,$AS,;t t
12983s,@DLLTOOL@,$DLLTOOL,;t t
12984s,@LD@,$LD,;t t
12985s,@LIPO@,$LIPO,;t t
12986s,@NM@,$NM,;t t
12987s,@RANLIB@,$RANLIB,;t t
12988s,@STRIP@,$STRIP,;t t
12989s,@WINDRES@,$WINDRES,;t t
0c24b341 12990s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12991s,@OBJCOPY@,$OBJCOPY,;t t
12992s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
12993s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12994s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12995s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12996s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12997s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12998s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12999s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13000s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13001s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13002s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13003s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13004s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13005s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13006s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13007s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 13008s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
13009s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13010s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13011s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13012s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13013s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13014s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13015s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13016s,@MAINT@,$MAINT,;t t
13017s,@stage1_cflags@,$stage1_cflags,;t t
13018s,@stage1_checking@,$stage1_checking,;t t
13019s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13020s,@datarootdir@,$datarootdir,;t t
13021s,@docdir@,$docdir,;t t
a3ca38d2 13022s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
13023s,@htmldir@,$htmldir,;t t
13024s,@LIBOBJS@,$LIBOBJS,;t t
13025s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 13026/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 13027s,@serialization_dependencies@,,;t t
a0da8069 13028/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 13029s,@host_makefile_frag@,,;t t
a0da8069 13030/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 13031s,@target_makefile_frag@,,;t t
a0da8069 13032/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 13033s,@alphaieee_frag@,,;t t
a0da8069 13034/@ospace_frag@/r $ospace_frag
c6b750e1 13035s,@ospace_frag@,,;t t
a0da8069 13036CEOF
252b5132 13037
c6b750e1
DJ
13038_ACEOF
13039
13040 cat >>$CONFIG_STATUS <<\_ACEOF
13041 # Split the substitutions into bite-sized pieces for seds with
13042 # small command number limits, like on Digital OSF/1 and HP-UX.
13043 ac_max_sed_lines=48
13044 ac_sed_frag=1 # Number of current file.
13045 ac_beg=1 # First line for current file.
13046 ac_end=$ac_max_sed_lines # Line after last line for current file.
13047 ac_more_lines=:
13048 ac_sed_cmds=
13049 while $ac_more_lines; do
13050 if test $ac_beg -gt 1; then
13051 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13052 else
13053 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13054 fi
13055 if test ! -s $tmp/subs.frag; then
13056 ac_more_lines=false
a0da8069 13057 else
c6b750e1
DJ
13058 # The purpose of the label and of the branching condition is to
13059 # speed up the sed processing (if there are no `@' at all, there
13060 # is no need to browse any of the substitutions).
13061 # These are the two extra sed commands mentioned above.
13062 (echo ':t
13063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13064 if test -z "$ac_sed_cmds"; then
13065 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13066 else
13067 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13068 fi
13069 ac_sed_frag=`expr $ac_sed_frag + 1`
13070 ac_beg=$ac_end
13071 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13072 fi
c6b750e1
DJ
13073 done
13074 if test -z "$ac_sed_cmds"; then
13075 ac_sed_cmds=cat
852e5f18 13076 fi
c6b750e1 13077fi # test -n "$CONFIG_FILES"
cac3d6c4 13078
c6b750e1
DJ
13079_ACEOF
13080cat >>$CONFIG_STATUS <<\_ACEOF
13081for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13082 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13083 case $ac_file in
13084 - | *:- | *:-:* ) # input from stdin
13085 cat >$tmp/stdin
13086 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13087 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13088 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13089 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13090 * ) ac_file_in=$ac_file.in ;;
a0da8069 13091 esac
252b5132 13092
c6b750e1
DJ
13093 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13094 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13095$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13096 X"$ac_file" : 'X\(//\)[^/]' \| \
13097 X"$ac_file" : 'X\(//\)$' \| \
13098 X"$ac_file" : 'X\(/\)' \| \
13099 . : '\(.\)' 2>/dev/null ||
13100echo X"$ac_file" |
13101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13103 /^X\(\/\/\)$/{ s//\1/; q; }
13104 /^X\(\/\).*/{ s//\1/; q; }
13105 s/.*/./; q'`
13106 { if $as_mkdir_p; then
13107 mkdir -p "$ac_dir"
cac3d6c4 13108 else
c6b750e1
DJ
13109 as_dir="$ac_dir"
13110 as_dirs=
13111 while test ! -d "$as_dir"; do
13112 as_dirs="$as_dir $as_dirs"
13113 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13114$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13115 X"$as_dir" : 'X\(//\)[^/]' \| \
13116 X"$as_dir" : 'X\(//\)$' \| \
13117 X"$as_dir" : 'X\(/\)' \| \
13118 . : '\(.\)' 2>/dev/null ||
13119echo X"$as_dir" |
13120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13121 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13122 /^X\(\/\/\)$/{ s//\1/; q; }
13123 /^X\(\/\).*/{ s//\1/; q; }
13124 s/.*/./; q'`
13125 done
13126 test ! -n "$as_dirs" || mkdir $as_dirs
13127 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13128echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13129 { (exit 1); exit 1; }; }; }
13130
13131 ac_builddir=.
252b5132 13132
c6b750e1
DJ
13133if test "$ac_dir" != .; then
13134 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13135 # A "../" for each directory in $ac_dir_suffix.
13136 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13137else
13138 ac_dir_suffix= ac_top_builddir=
13139fi
13140
13141case $srcdir in
13142 .) # No --srcdir option. We are building in place.
13143 ac_srcdir=.
13144 if test -z "$ac_top_builddir"; then
13145 ac_top_srcdir=.
13146 else
13147 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13148 fi ;;
13149 [\\/]* | ?:[\\/]* ) # Absolute path.
13150 ac_srcdir=$srcdir$ac_dir_suffix;
13151 ac_top_srcdir=$srcdir ;;
a0da8069 13152 *) # Relative path.
c6b750e1
DJ
13153 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13154 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13155esac
252b5132 13156
c6b750e1
DJ
13157# Do not use `cd foo && pwd` to compute absolute paths, because
13158# the directories may not exist.
13159case `pwd` in
13160.) ac_abs_builddir="$ac_dir";;
13161*)
13162 case "$ac_dir" in
13163 .) ac_abs_builddir=`pwd`;;
13164 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13165 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13166 esac;;
13167esac
13168case $ac_abs_builddir in
13169.) ac_abs_top_builddir=${ac_top_builddir}.;;
13170*)
13171 case ${ac_top_builddir}. in
13172 .) ac_abs_top_builddir=$ac_abs_builddir;;
13173 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13174 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13175 esac;;
13176esac
13177case $ac_abs_builddir in
13178.) ac_abs_srcdir=$ac_srcdir;;
13179*)
13180 case $ac_srcdir in
13181 .) ac_abs_srcdir=$ac_abs_builddir;;
13182 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13183 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13184 esac;;
13185esac
13186case $ac_abs_builddir in
13187.) ac_abs_top_srcdir=$ac_top_srcdir;;
13188*)
13189 case $ac_top_srcdir in
13190 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13191 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13192 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13193 esac;;
13194esac
252b5132 13195
c6b750e1
DJ
13196
13197 case $INSTALL in
13198 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13199 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13200 esac
252b5132 13201
c6b750e1
DJ
13202 if test x"$ac_file" != x-; then
13203 { echo "$as_me:$LINENO: creating $ac_file" >&5
13204echo "$as_me: creating $ac_file" >&6;}
13205 rm -f "$ac_file"
13206 fi
13207 # Let's still pretend it is `configure' which instantiates (i.e., don't
13208 # use $as_me), people would be surprised to read:
13209 # /* config.h. Generated by config.status. */
13210 if test x"$ac_file" = x-; then
13211 configure_input=
13212 else
13213 configure_input="$ac_file. "
13214 fi
13215 configure_input=$configure_input"Generated from `echo $ac_file_in |
13216 sed 's,.*/,,'` by configure."
13217
13218 # First look for the input files in the build tree, otherwise in the
13219 # src tree.
13220 ac_file_inputs=`IFS=:
13221 for f in $ac_file_in; do
13222 case $f in
13223 -) echo $tmp/stdin ;;
13224 [\\/$]*)
13225 # Absolute (can't be DOS-style, as IFS=:)
13226 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13227echo "$as_me: error: cannot find input file: $f" >&2;}
13228 { (exit 1); exit 1; }; }
13229 echo "$f";;
13230 *) # Relative
13231 if test -f "$f"; then
13232 # Build tree
13233 echo "$f"
13234 elif test -f "$srcdir/$f"; then
13235 # Source tree
13236 echo "$srcdir/$f"
13237 else
13238 # /dev/null tree
13239 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13240echo "$as_me: error: cannot find input file: $f" >&2;}
13241 { (exit 1); exit 1; }; }
13242 fi;;
13243 esac
13244 done` || { (exit 1); exit 1; }
13245_ACEOF
13246cat >>$CONFIG_STATUS <<_ACEOF
13247 sed "$ac_vpsub
13248$extrasub
13249_ACEOF
13250cat >>$CONFIG_STATUS <<\_ACEOF
13251:t
13252/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13253s,@configure_input@,$configure_input,;t t
13254s,@srcdir@,$ac_srcdir,;t t
13255s,@abs_srcdir@,$ac_abs_srcdir,;t t
13256s,@top_srcdir@,$ac_top_srcdir,;t t
13257s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13258s,@builddir@,$ac_builddir,;t t
13259s,@abs_builddir@,$ac_abs_builddir,;t t
13260s,@top_builddir@,$ac_top_builddir,;t t
13261s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13262s,@INSTALL@,$ac_INSTALL,;t t
13263" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13264 rm -f $tmp/stdin
13265 if test x"$ac_file" != x-; then
13266 mv $tmp/out $ac_file
13267 else
13268 cat $tmp/out
13269 rm -f $tmp/out
13270 fi
c148b4cb 13271
c6b750e1
DJ
13272done
13273_ACEOF
c148b4cb 13274
c6b750e1 13275cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13276
c6b750e1
DJ
13277{ (exit 0); exit 0; }
13278_ACEOF
c148b4cb 13279chmod +x $CONFIG_STATUS
c6b750e1
DJ
13280ac_clean_files=$ac_clean_files_save
13281
13282
13283# configure is writing to config.log, and then calls config.status.
13284# config.status does its own redirection, appending to config.log.
13285# Unfortunately, on DOS this fails, as config.log is still kept open
13286# by configure, so config.status won't be able to write to it; its
13287# output is simply discarded. So we exec the FD to /dev/null,
13288# effectively closing config.log, so it can be properly (re)opened and
13289# appended to by config.status. When coming back to configure, we
13290# need to make the FD available again.
13291if test "$no_create" != yes; then
13292 ac_cs_success=:
13293 ac_config_status_args=
13294 test "$silent" = yes &&
13295 ac_config_status_args="$ac_config_status_args --quiet"
13296 exec 5>/dev/null
13297 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13298 exec 5>>config.log
13299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13300 # would make configure fail if this is the last instruction.
13301 $ac_cs_success || { (exit 1); exit 1; }
13302fi
c148b4cb 13303
This page took 1.154243 seconds and 4 git commands to generate.