]> gcc.gnu.org Git - gcc.git/blame - configure
Update copyright year.
[gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
2aeb72e9 3# Generated by GNU Autoconf 2.59.
671aa708 4#
2aeb72e9 5# Copyright (C) 2003 Free Software Foundation, Inc.
671aa708
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
1c710c3c
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
2aeb72e9 12# Be Bourne compatible
1c710c3c
DJ
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+"$@"}'='"$@"'
2aeb72e9
DD
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
1c710c3c 21fi
2aeb72e9 22DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
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.
2aeb72e9 33$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
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
2aeb72e9 47 $as_unset $as_var
1c710c3c
DJ
48 fi
49done
50
51# Required to use basename.
2aeb72e9 52if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
53 as_expr=expr
54else
55 as_expr=false
56fi
57
2aeb72e9 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
2aeb72e9 66as_me=`$as_basename "$0" ||
1c710c3c
DJ
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
1c710c3c 71echo X/"$0" |
2aeb72e9
DD
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
1c710c3c 76
1c710c3c 77
2aeb72e9
DD
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
11a67599 85
2aeb72e9
DD
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
11a67599
ZW
97fi
98
11a67599 99
2aeb72e9
DD
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
11a67599 116
2aeb72e9
DD
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 '')
1c710c3c
DJ
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=.
2aeb72e9
DD
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
1c710c3c 137 /*)
2aeb72e9 138 if ("$as_dir/$as_base" -c '
11a67599
ZW
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
2aeb72e9 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11a67599 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
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
1c710c3c
DJ
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
2aeb72e9
DD
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.
1c710c3c 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
1c710c3c
DJ
165 sed '
166 N
2aeb72e9
DD
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 170 t loop
2aeb72e9
DD
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
1c710c3c 173 ' >$as_me.lineno &&
2aeb72e9 174 chmod +x $as_me.lineno ||
1c710c3c
DJ
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
2aeb72e9
DD
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
1c710c3c
DJ
182 # Exit status is that of the last command.
183 exit
184}
185
186
2aeb72e9
DD
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= ;;
1c710c3c
DJ
192esac
193
2aeb72e9 194if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
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
2aeb72e9
DD
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
1c710c3c 207 as_ln_s='cp -p'
2aeb72e9
DD
208 else
209 as_ln_s='ln -s'
210 fi
1c710c3c
DJ
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
2aeb72e9 216rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
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
2aeb72e9 225as_executable_p="test -f"
0b0dc272 226
1c710c3c
DJ
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
2aeb72e9
DD
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
1c710c3c
DJ
242
243
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
2aeb72e9
DD
249exec 6>&1
250
1c710c3c
DJ
251#
252# Initializations.
253#
671aa708 254ac_default_prefix=/usr/local
1c710c3c
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
2aeb72e9
DD
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
1c710c3c
DJ
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
0999159b 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
2aeb72e9 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
671aa708
NN
277
278# Initialize some variables set by options.
1c710c3c
DJ
279ac_init_help=
280ac_init_version=false
671aa708
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
1c710c3c 283cache_file=/dev/null
671aa708 284exec_prefix=NONE
671aa708 285no_create=
671aa708
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
671aa708
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
1c710c3c
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.
671aa708
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
2aeb72e9 306datadir='${prefix}/share'
671aa708
NN
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
2aeb72e9 310libdir='${exec_prefix}/lib'
671aa708
NN
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
2aeb72e9
DD
313infodir='${prefix}/info'
314mandir='${prefix}/man'
79c06341 315
671aa708
NN
316ac_prev=
317for ac_option
318do
671aa708
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
2aeb72e9 321 eval "$ac_prev=\$ac_option"
671aa708
NN
322 ac_prev=
323 continue
324 fi
79c06341 325
2aeb72e9 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
2aeb72e9 330 case $ac_option in
671aa708
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 335 bindir=$ac_optarg ;;
671aa708
NN
336
337 -build | --build | --buil | --bui | --bu)
1c710c3c 338 ac_prev=build_alias ;;
671aa708 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 340 build_alias=$ac_optarg ;;
671aa708
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=*)
1c710c3c
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
671aa708 351
2aeb72e9 352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
671aa708 353 ac_prev=datadir ;;
2aeb72e9
DD
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
1c710c3c 356 datadir=$ac_optarg ;;
671aa708
NN
357
358 -disable-* | --disable-*)
1c710c3c 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 360 # Reject names that are not valid shell variable names.
2aeb72e9 361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
2aeb72e9
DD
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
671aa708
NN
366
367 -enable-* | --enable-*)
1c710c3c 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 369 # Reject names that are not valid shell variable names.
2aeb72e9 370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
2aeb72e9
DD
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
671aa708
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=*)
1c710c3c 387 exec_prefix=$ac_optarg ;;
671aa708
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
1c710c3c
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 ;;
671aa708
NN
399
400 -host | --host | --hos | --ho)
1c710c3c 401 ac_prev=host_alias ;;
671aa708 402 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 403 host_alias=$ac_optarg ;;
671aa708
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=*)
1c710c3c 410 includedir=$ac_optarg ;;
671aa708
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 415 infodir=$ac_optarg ;;
671aa708
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 420 libdir=$ac_optarg ;;
671aa708
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=*)
1c710c3c 427 libexecdir=$ac_optarg ;;
671aa708
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
2aeb72e9
DD
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
671aa708
NN
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2aeb72e9
DD
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1c710c3c 436 localstatedir=$ac_optarg ;;
671aa708
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 441 mandir=$ac_optarg ;;
671aa708
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 \
1c710c3c 448 | --no-cr | --no-c | -n)
671aa708
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=*)
1c710c3c 462 oldincludedir=$ac_optarg ;;
671aa708
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 467 prefix=$ac_optarg ;;
671aa708
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=*)
1c710c3c 474 program_prefix=$ac_optarg ;;
671aa708
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=*)
1c710c3c 481 program_suffix=$ac_optarg ;;
671aa708
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=*)
1c710c3c 498 program_transform_name=$ac_optarg ;;
671aa708
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=*)
1c710c3c 508 sbindir=$ac_optarg ;;
671aa708
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=*)
1c710c3c 519 sharedstatedir=$ac_optarg ;;
671aa708
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
1c710c3c 524 site=$ac_optarg ;;
671aa708
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 529 srcdir=$ac_optarg ;;
671aa708
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=*)
1c710c3c 536 sysconfdir=$ac_optarg ;;
671aa708
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 539 ac_prev=target_alias ;;
671aa708 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 541 target_alias=$ac_optarg ;;
671aa708
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
1c710c3c
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
671aa708
NN
548
549 -with-* | --with-*)
1c710c3c 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 551 # Reject names that are not valid shell variable names.
2aeb72e9 552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
2aeb72e9
DD
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
561
562 -without-* | --without-*)
1c710c3c 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 564 # Reject names that are not valid shell variable names.
2aeb72e9 565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
2aeb72e9
DD
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
671aa708
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=*)
1c710c3c 580 x_includes=$ac_optarg ;;
671aa708
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=*)
1c710c3c 587 x_libraries=$ac_optarg ;;
671aa708 588
1c710c3c
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
671aa708
NN
592 ;;
593
1c710c3c
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; }; }
2aeb72e9
DD
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
1c710c3c
DJ
602 export $ac_envvar ;;
603
671aa708 604 *)
1c710c3c
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}
671aa708
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
1c710c3c
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; }; }
af71363e 619fi
af71363e 620
2aeb72e9
DD
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
671aa708 623do
2aeb72e9 624 eval ac_val=$`echo $ac_var`
1c710c3c 625 case $ac_val in
2aeb72e9
DD
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
631
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
635do
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; }; };;
671aa708
NN
641 esac
642done
643
1c710c3c
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
0b0dc272 650
1c710c3c
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
671aa708 666
671aa708
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
2aeb72e9
DD
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
1c710c3c
DJ
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
1c710c3c 678echo X"$0" |
2aeb72e9
DD
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
671aa708 684 srcdir=$ac_confdir
2aeb72e9 685 if test ! -r $srcdir/$ac_unique_file; then
671aa708
NN
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
2aeb72e9
DD
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1c710c3c 697 { (exit 1); exit 1; }; }
2aeb72e9 698 fi
1c710c3c 699fi
2aeb72e9
DD
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
1c710c3c 702 { (exit 1); exit 1; }; }
2aeb72e9
DD
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740ac_env_AR_set=${AR+set}
741ac_env_AR_value=$AR
742ac_cv_env_AR_set=${AR+set}
743ac_cv_env_AR_value=$AR
744ac_env_AS_set=${AS+set}
745ac_env_AS_value=$AS
746ac_cv_env_AS_set=${AS+set}
747ac_cv_env_AS_value=$AS
748ac_env_DLLTOOL_set=${DLLTOOL+set}
749ac_env_DLLTOOL_value=$DLLTOOL
750ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751ac_cv_env_DLLTOOL_value=$DLLTOOL
752ac_env_LD_set=${LD+set}
753ac_env_LD_value=$LD
754ac_cv_env_LD_set=${LD+set}
755ac_cv_env_LD_value=$LD
756ac_env_LIPO_set=${LIPO+set}
757ac_env_LIPO_value=$LIPO
758ac_cv_env_LIPO_set=${LIPO+set}
759ac_cv_env_LIPO_value=$LIPO
760ac_env_NM_set=${NM+set}
761ac_env_NM_value=$NM
762ac_cv_env_NM_set=${NM+set}
763ac_cv_env_NM_value=$NM
764ac_env_RANLIB_set=${RANLIB+set}
765ac_env_RANLIB_value=$RANLIB
766ac_cv_env_RANLIB_set=${RANLIB+set}
767ac_cv_env_RANLIB_value=$RANLIB
768ac_env_STRIP_set=${STRIP+set}
769ac_env_STRIP_value=$STRIP
770ac_cv_env_STRIP_set=${STRIP+set}
771ac_cv_env_STRIP_value=$STRIP
772ac_env_WINDRES_set=${WINDRES+set}
773ac_env_WINDRES_value=$WINDRES
774ac_cv_env_WINDRES_set=${WINDRES+set}
775ac_cv_env_WINDRES_value=$WINDRES
901119ae
KT
776ac_env_WINDMC_set=${WINDMC+set}
777ac_env_WINDMC_value=$WINDMC
778ac_cv_env_WINDMC_set=${WINDMC+set}
779ac_cv_env_WINDMC_value=$WINDMC
2aeb72e9
DD
780ac_env_OBJCOPY_set=${OBJCOPY+set}
781ac_env_OBJCOPY_value=$OBJCOPY
782ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
783ac_cv_env_OBJCOPY_value=$OBJCOPY
784ac_env_OBJDUMP_set=${OBJDUMP+set}
785ac_env_OBJDUMP_value=$OBJDUMP
786ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
787ac_cv_env_OBJDUMP_value=$OBJDUMP
788ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
789ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
790ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
793ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
794ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
797ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
798ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
801ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
802ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
805ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
806ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
809ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
810ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
813ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
814ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
817ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
818ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
821ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
822ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
825ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
826ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
829ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
830ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
833ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
834ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
837ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
838ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
841ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
842ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
845ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
901119ae
KT
848ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
849ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
850ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
1c710c3c
DJ
852
853#
854# Report the --help message.
855#
856if test "$ac_init_help" = "long"; then
857 # Omit some internal or obsolete options to make the list less imposing.
858 # This message is too long to be a string in the A/UX 3.1 sh.
859 cat <<_ACEOF
860\`configure' configures this package to adapt to many kinds of systems.
861
862Usage: $0 [OPTION]... [VAR=VALUE]...
863
864To assign environment variables (e.g., CC, CFLAGS...), specify them as
865VAR=VALUE. See below for descriptions of some of the useful variables.
866
867Defaults for the options are specified in brackets.
868
869Configuration:
870 -h, --help display this help and exit
871 --help=short display options specific to this package
872 --help=recursive display the short help of all the included packages
873 -V, --version display version information and exit
874 -q, --quiet, --silent do not print \`checking...' messages
875 --cache-file=FILE cache test results in FILE [disabled]
876 -C, --config-cache alias for \`--cache-file=config.cache'
877 -n, --no-create do not create output files
878 --srcdir=DIR find the sources in DIR [configure dir or \`..']
879
2aeb72e9
DD
880_ACEOF
881
882 cat <<_ACEOF
1c710c3c
DJ
883Installation directories:
884 --prefix=PREFIX install architecture-independent files in PREFIX
885 [$ac_default_prefix]
886 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
887 [PREFIX]
888
889By default, \`make install' will install all the files in
890\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
891an installation prefix other than \`$ac_default_prefix' using \`--prefix',
892for instance \`--prefix=\$HOME'.
893
894For better control, use the options below.
895
896Fine tuning of the installation directories:
897 --bindir=DIR user executables [EPREFIX/bin]
898 --sbindir=DIR system admin executables [EPREFIX/sbin]
899 --libexecdir=DIR program executables [EPREFIX/libexec]
2aeb72e9 900 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1c710c3c
DJ
901 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
902 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
903 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
904 --libdir=DIR object code libraries [EPREFIX/lib]
905 --includedir=DIR C header files [PREFIX/include]
906 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2aeb72e9
DD
907 --infodir=DIR info documentation [PREFIX/info]
908 --mandir=DIR man documentation [PREFIX/man]
1c710c3c
DJ
909_ACEOF
910
911 cat <<\_ACEOF
912
913Program names:
914 --program-prefix=PREFIX prepend PREFIX to installed program names
915 --program-suffix=SUFFIX append SUFFIX to installed program names
916 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
917
918System types:
919 --build=BUILD configure for building on BUILD [guessed]
920 --host=HOST cross-compile to build programs to run on HOST [BUILD]
921 --target=TARGET configure for building compilers for TARGET [HOST]
922_ACEOF
923fi
924
925if test -n "$ac_init_help"; then
926
927 cat <<\_ACEOF
928
929Optional Features:
930 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
931 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
30b74385
RW
932 --enable-libada build libada directory
933 --enable-libssp build libssp directory
934 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 935 stage1. Mostly useful for compiler development.
30b74385
RW
936 --enable-objc-gc enable use of Boehm's garbage collector with the
937 GNU Objective-C runtime
938 --enable-bootstrap enable bootstrapping [yes if native build]
939 --enable-serial-[{host,target,build}-]configure
940 force sequential configuration of
1c710c3c 941 sub-packages for the host, target or build
30b74385 942 machine, or all sub-packages
1c710c3c
DJ
943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
30b74385
RW
945 --enable-stage1-checking[=all] choose additional checking for stage1
946 of the compiler
1c710c3c
DJ
947 --enable-werror enable -Werror in bootstrap stage2 and later
948
949Optional Packages:
950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
952 --with-build-libsubdir=DIR Directory where to find libraries for build system
30b74385
RW
953 --with-mpfr-dir=PATH this option has been REMOVED
954 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
30b74385
RW
958 specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH specify directory for the installed MPFR library
960 --with-gmp-dir=PATH this option has been REMOVED
961 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
30b74385
RW
964 --with-gmp-include=PATH specify directory for installed GMP include files
965 --with-gmp-lib=PATH specify directory for the installed GMP library
966 --with-build-sysroot=SYSROOT
1c710c3c 967 use sysroot as the system root during the build
c8aea42c
PB
968 --with-debug-prefix-map='A=B C=D ...'
969 map A to B, C to D ... in debug information
30b74385 970 --with-build-time-tools=PATH
1c710c3c 971 use given path to find target tools during the build
30b74385
RW
972 --with-datarootdir use datarootdir as the data root directory.
973 --with-docdir install documentation in this directory.
974 --with-pdfdir install pdf in this directory.
975 --with-htmldir install html in this directory.
1c710c3c
DJ
976
977Some influential environment variables:
978 CC C compiler command
979 CFLAGS C compiler flags
980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
981 nonstandard directory <lib dir>
2aeb72e9
DD
982 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
983 headers in a nonstandard directory <include dir>
c3a86da9
DJ
984 CXX C++ compiler command
985 CXXFLAGS C++ compiler flags
278a7a38
AO
986 AR AR for the host
987 AS AS for the host
988 DLLTOOL DLLTOOL for the host
989 LD LD for the host
990 LIPO LIPO for the host
991 NM NM for the host
992 RANLIB RANLIB for the host
993 STRIP STRIP for the host
994 WINDRES WINDRES for the host
901119ae 995 WINDMC WINDMC for the host
278a7a38
AO
996 OBJCOPY OBJCOPY for the host
997 OBJDUMP OBJDUMP for the host
998 CC_FOR_TARGET
999 CC for the target
1000 CXX_FOR_TARGET
1001 CXX for the target
1002 GCC_FOR_TARGET
1003 GCC for the target
1004 GCJ_FOR_TARGET
1005 GCJ for the target
1006 GFORTRAN_FOR_TARGET
1007 GFORTRAN for the target
1008 AR_FOR_TARGET
1009 AR for the target
1010 AS_FOR_TARGET
1011 AS for the target
1012 DLLTOOL_FOR_TARGET
1013 DLLTOOL for the target
1014 LD_FOR_TARGET
1015 LD for the target
1016 LIPO_FOR_TARGET
1017 LIPO for the target
1018 NM_FOR_TARGET
1019 NM for the target
1020 OBJDUMP_FOR_TARGET
1021 OBJDUMP for the target
1022 RANLIB_FOR_TARGET
1023 RANLIB for the target
1024 STRIP_FOR_TARGET
1025 STRIP for the target
1026 WINDRES_FOR_TARGET
1027 WINDRES for the target
901119ae
KT
1028 WINDMC_FOR_TARGET
1029 WINDMC for the target
1c710c3c
DJ
1030
1031Use these variables to override the choices made by `configure' or to help
1032it to find libraries and programs with nonstandard names/locations.
1033
1034_ACEOF
1035fi
1036
1037if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
2aeb72e9 1039 ac_popdir=`pwd`
1c710c3c 1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2aeb72e9 1041 test -d $ac_dir || continue
1c710c3c
DJ
1042 ac_builddir=.
1043
2aeb72e9 1044if test "$ac_dir" != .; then
1c710c3c 1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048else
1049 ac_dir_suffix= ac_top_builddir=
1050fi
1c710c3c
DJ
1051
1052case $srcdir in
2aeb72e9 1053 .) # No --srcdir option. We are building in place.
1c710c3c 1054 ac_srcdir=.
2aeb72e9
DD
1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 1061 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066esac
1067
1068# Do not use `cd foo && pwd` to compute absolute paths, because
1069# the directories may not exist.
1070case `pwd` in
1071.) ac_abs_builddir="$ac_dir";;
1072*)
1073 case "$ac_dir" in
1074 .) ac_abs_builddir=`pwd`;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1077 esac;;
1078esac
1079case $ac_abs_builddir in
1080.) ac_abs_top_builddir=${ac_top_builddir}.;;
1081*)
1082 case ${ac_top_builddir}. in
1083 .) ac_abs_top_builddir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1086 esac;;
1087esac
1088case $ac_abs_builddir in
1089.) ac_abs_srcdir=$ac_srcdir;;
1090*)
1091 case $ac_srcdir in
1092 .) ac_abs_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_srcdir=$ac_top_srcdir;;
1099*)
1100 case $ac_top_srcdir in
1101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1104 esac;;
1c710c3c 1105esac
2aeb72e9
DD
1106
1107 cd $ac_dir
1108 # Check for guested configure; otherwise get Cygnus style configure.
1109 if test -f $ac_srcdir/configure.gnu; then
1110 echo
1111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
1113 echo
1114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
1116 test -f $ac_srcdir/configure.in; then
1117 echo
1118 $ac_configure --help
1c710c3c
DJ
1119 else
1120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2aeb72e9
DD
1121 fi
1122 cd $ac_popdir
1c710c3c
DJ
1123 done
1124fi
1125
2aeb72e9 1126test -n "$ac_init_help" && exit 0
1c710c3c
DJ
1127if $ac_init_version; then
1128 cat <<\_ACEOF
1129
2aeb72e9 1130Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
1131This configure script is free software; the Free Software Foundation
1132gives unlimited permission to copy, distribute and modify it.
1133_ACEOF
2aeb72e9 1134 exit 0
0b0dc272 1135fi
2aeb72e9
DD
1136exec 5>config.log
1137cat >&5 <<_ACEOF
1c710c3c
DJ
1138This file contains any messages produced by compilers while
1139running configure, to aid debugging if configure makes a mistake.
1140
1141It was created by $as_me, which was
2aeb72e9 1142generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
1143
1144 $ $0 $@
1145
1146_ACEOF
1147{
1148cat <<_ASUNAME
1149## --------- ##
1150## Platform. ##
1151## --------- ##
1152
1153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158
1159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1161
1162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2aeb72e9 1165hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1169
1170_ASUNAME
1171
1172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173for as_dir in $PATH
1174do
1175 IFS=$as_save_IFS
1176 test -z "$as_dir" && as_dir=.
1177 echo "PATH: $as_dir"
1178done
1179
1180} >&5
1181
1182cat >&5 <<_ACEOF
1183
1184
1185## ----------- ##
1186## Core tests. ##
1187## ----------- ##
1188
1189_ACEOF
1190
1191
1192# Keep a trace of the command line.
1193# Strip out --no-create and --no-recursion so they do not pile up.
1194# Strip out --silent because we don't want to record it for future runs.
1195# Also quote any args containing shell meta-characters.
1196# Make two passes to allow for proper duplicate-argument suppression.
1197ac_configure_args=
1198ac_configure_args0=
1199ac_configure_args1=
2aeb72e9 1200ac_sep=
1c710c3c
DJ
1201ac_must_keep_next=false
1202for ac_pass in 1 2
1203do
1204 for ac_arg
1205 do
1206 case $ac_arg in
1207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 continue ;;
2aeb72e9 1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1c710c3c
DJ
1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213 esac
1214 case $ac_pass in
1215 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216 2)
1217 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218 if test $ac_must_keep_next = true; then
1219 ac_must_keep_next=false # Got value, back to normal.
1220 else
1221 case $ac_arg in
1222 *=* | --config-cache | -C | -disable-* | --disable-* \
1223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225 | -with-* | --with-* | -without-* | --without-* | --x)
1226 case "$ac_configure_args0 " in
1227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1228 esac
1229 ;;
1230 -* ) ac_must_keep_next=true ;;
1231 esac
1232 fi
2aeb72e9
DD
1233 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234 # Get rid of the leading space.
1235 ac_sep=" "
1c710c3c
DJ
1236 ;;
1237 esac
1238 done
1239done
1240$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1242
1243# When interrupted or exit'd, cleanup temporary files, and complete
1244# config.log. We remove comments because anyway the quotes in there
1245# would cause problems or look ugly.
2aeb72e9
DD
1246# WARNING: Be sure not to use single quotes in there, as some shells,
1247# such as our DU 5.0 friend, will then `close' the trap.
1c710c3c
DJ
1248trap 'exit_status=$?
1249 # Save into config.log some information that might help in debugging.
1250 {
1251 echo
1252
1253 cat <<\_ASBOX
1254## ---------------- ##
1255## Cache variables. ##
1256## ---------------- ##
1257_ASBOX
1258 echo
1259 # The following way of writing the cache mishandles newlines in values,
2aeb72e9 1260{
1c710c3c 1261 (set) 2>&1 |
2aeb72e9
DD
1262 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263 *ac_space=\ *)
1c710c3c 1264 sed -n \
2aeb72e9
DD
1265 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1267 ;;
1c710c3c 1268 *)
2aeb72e9
DD
1269 sed -n \
1270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 1271 ;;
2aeb72e9
DD
1272 esac;
1273}
1c710c3c
DJ
1274 echo
1275
1276 cat <<\_ASBOX
1277## ----------------- ##
1278## Output variables. ##
1279## ----------------- ##
1280_ASBOX
1281 echo
1282 for ac_var in $ac_subst_vars
1283 do
2aeb72e9
DD
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1286 done | sort
1287 echo
1288
1289 if test -n "$ac_subst_files"; then
1290 cat <<\_ASBOX
2aeb72e9
DD
1291## ------------- ##
1292## Output files. ##
1293## ------------- ##
1c710c3c
DJ
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_files
1297 do
2aeb72e9
DD
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1300 done | sort
1301 echo
1302 fi
1303
1304 if test -s confdefs.h; then
1305 cat <<\_ASBOX
1306## ----------- ##
1307## confdefs.h. ##
1308## ----------- ##
1309_ASBOX
1310 echo
2aeb72e9 1311 sed "/^$/d" confdefs.h | sort
1c710c3c
DJ
1312 echo
1313 fi
1314 test "$ac_signal" != 0 &&
1315 echo "$as_me: caught signal $ac_signal"
1316 echo "$as_me: exit $exit_status"
1317 } >&5
2aeb72e9
DD
1318 rm -f core *.core &&
1319 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1320 exit $exit_status
2aeb72e9 1321 ' 0
1c710c3c
DJ
1322for ac_signal in 1 2 13 15; do
1323 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324done
1325ac_signal=0
1326
1327# confdefs.h avoids OS command line length limits that DEFS can exceed.
2aeb72e9
DD
1328rm -rf conftest* confdefs.h
1329# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1330echo >confdefs.h
1c710c3c
DJ
1331
1332# Predefined preprocessor variables.
1333
1334cat >>confdefs.h <<_ACEOF
1335#define PACKAGE_NAME "$PACKAGE_NAME"
1336_ACEOF
1337
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_VERSION "$PACKAGE_VERSION"
1346_ACEOF
0b0dc272 1347
1c710c3c
DJ
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_STRING "$PACKAGE_STRING"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356_ACEOF
1357
1358
1359# Let the site file select an alternate cache file if it wants to.
671aa708 1360# Prefer explicitly selected file to automatically selected ones.
2aeb72e9
DD
1361if test -z "$CONFIG_SITE"; then
1362 if test "x$prefix" != xNONE; then
1363 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 else
1365 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1366 fi
671aa708 1367fi
2aeb72e9 1368for ac_site_file in $CONFIG_SITE; do
671aa708 1369 if test -r "$ac_site_file"; then
1c710c3c
DJ
1370 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1371echo "$as_me: loading site script $ac_site_file" >&6;}
1372 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1373 . "$ac_site_file"
1374 fi
1375done
1376
1377if test -r "$cache_file"; then
1c710c3c
DJ
1378 # Some versions of bash will fail to source /dev/null (special
1379 # files actually), so we avoid doing that.
1380 if test -f "$cache_file"; then
1381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1382echo "$as_me: loading cache $cache_file" >&6;}
1383 case $cache_file in
2aeb72e9
DD
1384 [\\/]* | ?:[\\/]* ) . $cache_file;;
1385 *) . ./$cache_file;;
1c710c3c
DJ
1386 esac
1387 fi
671aa708 1388else
1c710c3c
DJ
1389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1390echo "$as_me: creating cache $cache_file" >&6;}
1391 >$cache_file
1392fi
1393
1394# Check that the precious variables saved in the cache have kept the same
1395# value.
1396ac_cache_corrupted=false
2aeb72e9
DD
1397for ac_var in `(set) 2>&1 |
1398 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1c710c3c
DJ
1399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400 eval ac_new_set=\$ac_env_${ac_var}_set
2aeb72e9
DD
1401 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402 eval ac_new_val="\$ac_env_${ac_var}_value"
1c710c3c
DJ
1403 case $ac_old_set,$ac_new_set in
1404 set,)
1405 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1406echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1408 ,set)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,);;
1413 *)
1414 if test "x$ac_old_val" != "x$ac_new_val"; then
1415 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1416echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1417 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1418echo "$as_me: former value: $ac_old_val" >&2;}
1419 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1420echo "$as_me: current value: $ac_new_val" >&2;}
1421 ac_cache_corrupted=:
1422 fi;;
1423 esac
1424 # Pass precious variables to config.status.
1425 if test "$ac_new_set" = set; then
1426 case $ac_new_val in
2aeb72e9
DD
1427 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1429 *) ac_arg=$ac_var=$ac_new_val ;;
1430 esac
1431 case " $ac_configure_args " in
1432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1433 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1434 esac
1435 fi
1436done
1437if $ac_cache_corrupted; then
1438 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1439echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1440 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1441echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442 { (exit 1); exit 1; }; }
671aa708
NN
1443fi
1444
2aeb72e9
DD
1445ac_ext=c
1446ac_cpp='$CPP $CPPFLAGS'
1447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449ac_compiler_gnu=$ac_cv_c_compiler_gnu
1450
1c710c3c
DJ
1451
1452
1453
1454
671aa708
NN
1455
1456
d02c69be 1457
1c710c3c
DJ
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471# Find the build, host, and target systems.
671aa708 1472ac_aux_dir=
2aeb72e9
DD
1473for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474 if test -f $ac_dir/install-sh; then
671aa708
NN
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
2aeb72e9 1478 elif test -f $ac_dir/install.sh; then
671aa708
NN
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
2aeb72e9 1482 elif test -f $ac_dir/shtool; then
1c710c3c
DJ
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
671aa708
NN
1486 fi
1487done
1488if test -z "$ac_aux_dir"; then
2aeb72e9
DD
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1c710c3c 1491 { (exit 1); exit 1; }; }
671aa708 1492fi
2aeb72e9
DD
1493ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1496
1c710c3c 1497# Make sure we can run config.sub.
2aeb72e9
DD
1498$ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1c710c3c
DJ
1501 { (exit 1); exit 1; }; }
1502
2aeb72e9
DD
1503echo "$as_me:$LINENO: checking build system type" >&5
1504echo $ECHO_N "checking build system type... $ECHO_C" >&6
1c710c3c
DJ
1505if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
2aeb72e9
DD
1508 ac_cv_build_alias=$build_alias
1509test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511test -z "$ac_cv_build_alias" &&
1c710c3c
DJ
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
2aeb72e9
DD
1515ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1c710c3c
DJ
1518 { (exit 1); exit 1; }; }
1519
1520fi
2aeb72e9
DD
1521echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522echo "${ECHO_T}$ac_cv_build" >&6
1c710c3c 1523build=$ac_cv_build
2aeb72e9
DD
1524build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1527
671aa708 1528
1c710c3c
DJ
1529 case ${build_alias} in
1530 "") build_noncanonical=${build} ;;
1531 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1532esac
1533
1534
af71363e 1535
1c710c3c
DJ
1536 case ${host_alias} in
1537 "") host_noncanonical=${build_noncanonical} ;;
1538 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1539esac
1540
af71363e 1541
1c710c3c
DJ
1542
1543 case ${target_alias} in
1544 "") target_noncanonical=${host_noncanonical} ;;
1545 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1546esac
1547
af71363e 1548
1c710c3c
DJ
1549
1550
1551test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1552 test "$program_prefix$program_suffix$program_transform_name" = \
1553 NONENONEs,x,x, &&
1c710c3c 1554 program_transform_name=s,y,y,
af71363e 1555
2aeb72e9
DD
1556echo "$as_me:$LINENO: checking host system type" >&5
1557echo $ECHO_N "checking host system type... $ECHO_C" >&6
1c710c3c
DJ
1558if test "${ac_cv_host+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1560else
2aeb72e9
DD
1561 ac_cv_host_alias=$host_alias
1562test -z "$ac_cv_host_alias" &&
1563 ac_cv_host_alias=$ac_cv_build_alias
1564ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1c710c3c
DJ
1567 { (exit 1); exit 1; }; }
1568
af71363e 1569fi
2aeb72e9
DD
1570echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1571echo "${ECHO_T}$ac_cv_host" >&6
1c710c3c 1572host=$ac_cv_host
2aeb72e9
DD
1573host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578echo "$as_me:$LINENO: checking target system type" >&5
1579echo $ECHO_N "checking target system type... $ECHO_C" >&6
1c710c3c
DJ
1580if test "${ac_cv_target+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
2aeb72e9
DD
1583 ac_cv_target_alias=$target_alias
1584test "x$ac_cv_target_alias" = "x" &&
1585 ac_cv_target_alias=$ac_cv_host_alias
1586ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1c710c3c
DJ
1589 { (exit 1); exit 1; }; }
1590
1591fi
2aeb72e9
DD
1592echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1593echo "${ECHO_T}$ac_cv_target" >&6
1c710c3c 1594target=$ac_cv_target
2aeb72e9
DD
1595target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1c710c3c
DJ
1598
1599
1600# The aliases save the names the user supplied, while $host etc.
1601# will get canonicalized.
1602test -n "$target_alias" &&
1603 test "$program_prefix$program_suffix$program_transform_name" = \
1604 NONENONEs,x,x, &&
1605 program_prefix=${target_alias}-
671aa708 1606test "$program_prefix" != NONE &&
2aeb72e9 1607 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1608# Use a double $ so make ignores it.
1609test "$program_suffix" != NONE &&
2aeb72e9 1610 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1c710c3c
DJ
1611# Double any \ or $. echo might interpret backslashes.
1612# By default was `s,x,x', remove it if useless.
1613cat <<\_ACEOF >conftest.sed
1614s/[\\$]/&&/g;s/;s,x,x,$//
1615_ACEOF
1616program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2aeb72e9 1617rm conftest.sed
af71363e 1618
671aa708
NN
1619
1620
775956d0
NN
1621# Get 'install' or 'install-sh' and its variants.
1622# Find a good install program. We prefer a C program (faster),
1623# so one script is as good as another. But avoid the broken or
1624# incompatible versions:
1625# SysV /etc/install, /usr/sbin/install
1626# SunOS /usr/etc/install
1627# IRIX /sbin/install
1628# AIX /bin/install
1c710c3c 1629# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1633# OS/2's system install, which has a completely different semantic
775956d0 1634# ./install, which can be erroneously created by make from ./install.sh.
2aeb72e9
DD
1635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1637if test -z "$INSTALL"; then
1c710c3c
DJ
1638if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1647case $as_dir/ in
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1651 /usr/ucb/* ) ;;
1652 *)
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1655 # by default.
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 1658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1659 if test $ac_prog = install &&
1c710c3c 1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1661 # AIX install. It has an incompatible calling convention.
1662 :
1c710c3c
DJ
1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1666 :
775956d0 1667 else
1c710c3c
DJ
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
775956d0
NN
1670 fi
1671 fi
1672 done
1c710c3c
DJ
1673 done
1674 ;;
1675esac
1676done
1677
775956d0
NN
1678
1679fi
1680 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1681 INSTALL=$ac_cv_path_install
775956d0 1682 else
2aeb72e9
DD
1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
775956d0 1685 # break other packages using the cache if that directory is
2aeb72e9 1686 # removed, or if the path is relative.
1c710c3c 1687 INSTALL=$ac_install_sh
775956d0
NN
1688 fi
1689fi
2aeb72e9
DD
1690echo "$as_me:$LINENO: result: $INSTALL" >&5
1691echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1692
1693# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694# It thinks the first close brace ends the variable substitution.
1695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1696
1c710c3c 1697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1698
1699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1700
2aeb72e9
DD
1701echo "$as_me:$LINENO: checking whether ln works" >&5
1702echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1c710c3c
DJ
1703if test "${acx_cv_prog_LN+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1705else
1706 rm -f conftestdata_t
1707echo >conftestdata_f
1708if ln conftestdata_f conftestdata_t 2>/dev/null
1709then
1710 acx_cv_prog_LN=ln
1711else
1712 acx_cv_prog_LN=no
1713fi
1714rm -f conftestdata_f conftestdata_t
1715
1716fi
1717if test $acx_cv_prog_LN = no; then
1718 LN="cp"
2aeb72e9
DD
1719 echo "$as_me:$LINENO: result: no, using $LN" >&5
1720echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1721else
1722 LN="$acx_cv_prog_LN"
2aeb72e9
DD
1723 echo "$as_me:$LINENO: result: yes" >&5
1724echo "${ECHO_T}yes" >&6
ad6717df
PB
1725fi
1726
2aeb72e9
DD
1727echo "$as_me:$LINENO: checking whether ln -s works" >&5
1728echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1c710c3c
DJ
1729LN_S=$as_ln_s
1730if test "$LN_S" = "ln -s"; then
2aeb72e9
DD
1731 echo "$as_me:$LINENO: result: yes" >&5
1732echo "${ECHO_T}yes" >&6
fb0103e5 1733else
2aeb72e9
DD
1734 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1735echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1736fi
1737
775956d0 1738
79c06341 1739### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1740### If we are on Windows, search for the shell. This will permit people
1741### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1742### without also having to set CONFIG_SHELL. This code will work when
1743### using bash, which sets OSTYPE.
1744case "${OSTYPE}" in
1745*win32*)
671aa708
NN
1746 if test x${CONFIG_SHELL} = x ; then
1747 if test ! -f /bin/sh ; then
1748 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1749 CONFIG_SHELL=${SHELL}
1750 export CONFIG_SHELL
1751 else
1752 for prog in sh sh.exe bash bash.exe; do
1753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1754 for dir in $PATH; do
1755 test -z "$dir" && dir=.
1756 if test -f $dir/$prog; then
1757 CONFIG_SHELL=$dir/$prog
1758 export CONFIG_SHELL
1759 break
1760 fi
1761 done
1762 IFS="$save_ifs"
1763 test -n "${CONFIG_SHELL}" && break
1764 done
1765 fi
1766 fi
1767 fi
1768 ;;
1769esac
1770
1771config_shell=${CONFIG_SHELL-/bin/sh}
1772
79c06341
JL
1773progname=$0
1774# if PWD already has a value, it is probably wrong.
671aa708 1775if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 1776
beeaf216
MM
1777# Export original configure arguments for use by sub-configures.
1778# Quote arguments with shell meta charatcers.
1779TOPLEVEL_CONFIGURE_ARGUMENTS=
1780set -- "$progname" "$@"
9f8c6739
JM
1781for ac_arg
1782do
beeaf216 1783 case "$ac_arg" in
8c79f3c4 1784 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
beeaf216
MM
1785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1786 # if the argument is of the form -foo=baz, quote the baz part only
1787 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1788 *) ;;
1789 esac
1790 # Add the quoted argument to the list.
1791 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1792done
d9acb717
RW
1793if test "$silent" = yes; then
1794 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1795fi
beeaf216
MM
1796# Remove the initial space we just introduced and, as these will be
1797# expanded by make, quote '$'.
1798TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
3dfabf63 1799
cc1e60ea 1800
671aa708 1801moveifchange=${srcdir}/move-if-change
79c06341 1802
ee6a22df
L
1803srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1804
1805# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1806# a relative path.
1807if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1808 INSTALL="${srcpwd}/install-sh -c"
1809fi
1810
671aa708
NN
1811# Set srcdir to "." if that's what it is.
1812# This is important for multilib support.
1813pwd=`${PWDCMD-pwd}`
671aa708
NN
1814if test "${pwd}" = "${srcpwd}" ; then
1815 srcdir=.
79c06341
JL
1816fi
1817
671aa708 1818topsrcdir=$srcpwd
5d4a5ee6 1819
671aa708 1820extra_host_args=
afabd8e6 1821
671aa708
NN
1822### To add a new directory to the tree, first choose whether it is a target
1823### or a host dependent tool. Then put it into the appropriate list
1824### (library or tools, host or target), doing a dependency sort.
79c06341 1825
1c710c3c 1826# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1827# configdirs, or target_configdirs; see the serialization section below.
79c06341 1828
1c710c3c
DJ
1829# Dependency sorting is only needed when *configuration* must be done in
1830# a particular order. In all cases a dependency should be specified in
671aa708 1831# the Makefile, whether or not it's implicitly specified here.
79c06341 1832
671aa708
NN
1833# Double entries in build_configdirs, configdirs, or target_configdirs may
1834# cause circular dependencies and break everything horribly.
79c06341 1835
23f6b2f9
PB
1836# these library is used by various programs built for the build
1837# environment
1838#
1839build_libs="build-libiberty"
1840
1841# these tools are built for the build environment
71b5d516 1842build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1843
671aa708
NN
1844# these libraries are used by various programs built for the host environment
1845#
e69bf64b 1846host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
671aa708 1847
671aa708
NN
1848# these tools are built for the host environment
1849# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1850# know that we are building the simulator.
1851# binutils, gas and ld appear in that order because it makes sense to run
1852# "make check" in that particular order.
5395b47b 1853host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
671aa708
NN
1854
1855# libgcj represents the runtime libraries only used by gcj.
1856libgcj="target-libffi \
671aa708
NN
1857 target-zlib \
1858 target-qthreads \
1859 target-libjava"
1860
1861# these libraries are built for the target environment, and are built after
1862# the host libraries and the host tools (which may be a cross compiler)
1863#
291f172e
DJ
1864target_libraries="target-libgcc \
1865 target-libiberty \
671aa708
NN
1866 target-libgloss \
1867 target-newlib \
6d3b5aea 1868 target-libgomp \
cb543528 1869 target-libstdc++-v3 \
6de9cd9a 1870 target-libmudflap \
77008252 1871 target-libssp \
6de9cd9a 1872 target-libgfortran \
7cd0cf9c 1873 target-boehm-gc \
77d187bc 1874 ${libgcj} \
d9cdb878 1875 target-libobjc \
6d3b5aea 1876 target-libada"
671aa708 1877
4dbda6f0
NN
1878# these tools are built using the target libraries, and are intended to
1879# run only in the target environment
671aa708 1880#
4dbda6f0 1881# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1882# list belongs in this list. those programs are also very likely
1883# candidates for the "native_only" list which follows
1884#
97286f7f 1885target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1886
671aa708 1887################################################################################
79c06341 1888
671aa708
NN
1889## All tools belong in one of the four categories, and are assigned above
1890## We assign ${configdirs} this way to remove all embedded newlines. This
1891## is important because configure will choke if they ever get through.
1892## ${configdirs} is directories we build using the host tools.
1893## ${target_configdirs} is directories we build using the target tools.
671aa708 1894configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1895target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1896build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1897
671aa708 1898################################################################################
79c06341 1899
671aa708 1900srcname="gnu development package"
79c06341 1901
671aa708
NN
1902# This gets set non-empty for some net releases of packages.
1903appdirs=""
79c06341 1904
671aa708
NN
1905# Define is_cross_compiler to save on calls to 'test'.
1906is_cross_compiler=
1907if test x"${host}" = x"${target}" ; then
1908 is_cross_compiler=no
79c06341 1909else
671aa708 1910 is_cross_compiler=yes
1c710c3c 1911fi
79c06341 1912
b4acb5ef 1913# Find the build and target subdir names.
8b87bb96 1914
2e9e6f68
DJ
1915# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1916# have matching libraries, they should use host libraries: Makefile.tpl
1917# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1918# However, they still use the build modules, because the corresponding
1919# host modules (e.g. bison) are only built for the host when bootstrap
1920# finishes. So:
1921# - build_subdir is where we find build modules, and never changes.
1922# - build_libsubdir is where we find build libraries, and can be overridden.
1923
1924# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1925build_subdir="build-${build_noncanonical}"
1c710c3c 1926
2aeb72e9 1927# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
2e9e6f68 1928if test "${with_build_libsubdir+set}" = set; then
2aeb72e9
DD
1929 withval="$with_build_libsubdir"
1930 build_libsubdir="$withval"
2e9e6f68
DJ
1931else
1932 build_libsubdir="$build_subdir"
2aeb72e9 1933fi;
215c351a
PB
1934# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1935if ( test $srcdir = . && test -d gcc ) \
1936 || test -d $srcdir/../host-${host_noncanonical}; then
1937 host_subdir="host-${host_noncanonical}"
1938else
1939 host_subdir=.
1940fi
8b87bb96
NN
1941# No prefix.
1942target_subdir=${target_noncanonical}
1c710c3c 1943
79c06341 1944
671aa708
NN
1945# Skipdirs are removed silently.
1946skipdirs=
1947# Noconfigdirs are removed loudly.
1948noconfigdirs=""
79c06341 1949
671aa708
NN
1950use_gnu_ld=
1951# Make sure we don't let GNU ld be added if we didn't want it.
1952if test x$with_gnu_ld = xno ; then
1953 use_gnu_ld=no
1954 noconfigdirs="$noconfigdirs ld"
79c06341
JL
1955fi
1956
671aa708
NN
1957use_gnu_as=
1958# Make sure we don't let GNU as be added if we didn't want it.
1959if test x$with_gnu_as = xno ; then
1960 use_gnu_as=no
1961 noconfigdirs="$noconfigdirs gas"
79c06341
JL
1962fi
1963
1c710c3c 1964# some tools are so dependent upon X11 that if we're not building with X,
671aa708 1965# it's not even worth trying to configure, much less build, that tool.
79c06341 1966
671aa708
NN
1967case ${with_x} in
1968 yes | "") ;; # the default value for this tree is that X11 is available
1969 no)
b4f96efe 1970 skipdirs="${skipdirs} tk itcl libgui"
671aa708 1971 # We won't be able to build gdbtk without X.
1c710c3c 1972 enable_gdbtk=no
671aa708
NN
1973 ;;
1974 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1975esac
79c06341 1976
671aa708 1977# Some tools are only suitable for building in a "native" situation.
1c710c3c 1978# Remove these if host!=target.
9e299237 1979native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
79c06341 1980
671aa708
NN
1981# Similarly, some are only suitable for cross toolchains.
1982# Remove these if host=target.
1983cross_only="target-libgloss target-newlib target-opcodes"
1984
1985case $is_cross_compiler in
1986 no) skipdirs="${skipdirs} ${cross_only}" ;;
1987 yes) skipdirs="${skipdirs} ${native_only}" ;;
1988esac
79c06341 1989
671aa708
NN
1990# If both --with-headers and --with-libs are specified, default to
1991# --without-newlib.
ee6a22df
L
1992if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
1994 if test x"${with_newlib}" = x ; then
1995 with_newlib=no
1996 fi
79c06341
JL
1997fi
1998
671aa708
NN
1999# Recognize --with-newlib/--without-newlib.
2000case ${with_newlib} in
2001 no) skipdirs="${skipdirs} target-newlib" ;;
2002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2003esac
79c06341 2004
671aa708 2005# Configure extra directories which are host specific
79c06341 2006
671aa708
NN
2007case "${host}" in
2008 *-cygwin*)
2009 configdirs="$configdirs libtermcap" ;;
2010esac
79c06341 2011
4fab7234
HPN
2012# A target can indicate whether a language isn't supported for some reason.
2013# Only spaces may be used in this macro; not newlines or tabs.
2014unsupported_languages=
2015
1c710c3c 2016# Remove more programs from consideration, based on the host or
671aa708
NN
2017# target this usually means that a port of the program doesn't
2018# exist yet.
ec8d6ddc 2019
671aa708
NN
2020case "${host}" in
2021 hppa*64*-*-*)
2022 noconfigdirs="$noconfigdirs byacc"
2023 ;;
f2a0e225 2024 i[3456789]86-*-vsta)
b4f96efe 2025 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2026 ;;
f2a0e225 2027 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2028 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2029 ;;
95af8923
KT
2030 x86_64-*-mingw*)
2031 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2032 ;;
f2a0e225 2033 i[3456789]86-*-mingw32*)
b4f96efe 2034 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2036 ;;
f2a0e225 2037 i[3456789]86-*-beos*)
b4f96efe 2038 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2039 ;;
671aa708 2040 *-*-cygwin*)
a22c2d8d 2041 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2042 ;;
2043 *-*-netbsd*)
a22c2d8d 2044 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2045 ;;
2046 ppc*-*-pe)
b4f96efe 2047 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2048 ;;
2049 powerpc-*-beos*)
b4f96efe 2050 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2051 ;;
671aa708 2052esac
ec8d6ddc 2053
6de9cd9a 2054
2aeb72e9 2055# Check whether --enable-libada or --disable-libada was given.
d9cdb878 2056if test "${enable_libada+set}" = set; then
2aeb72e9
DD
2057 enableval="$enable_libada"
2058 ENABLE_LIBADA=$enableval
d9cdb878
AC
2059else
2060 ENABLE_LIBADA=yes
2aeb72e9 2061fi;
d9cdb878 2062if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2063 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2064fi
2065
2aeb72e9 2066# Check whether --enable-libssp or --disable-libssp was given.
ef0087a7 2067if test "${enable_libssp+set}" = set; then
2aeb72e9
DD
2068 enableval="$enable_libssp"
2069 ENABLE_LIBSSP=$enableval
ef0087a7
KH
2070else
2071 ENABLE_LIBSSP=yes
2aeb72e9 2072fi;
ef0087a7 2073
671aa708
NN
2074# Save it here so that, even in case of --enable-libgcj, if the Java
2075# front-end isn't enabled, we still get libgcj disabled.
2076libgcj_saved=$libgcj
2077case $enable_libgcj in
2078yes)
2079 # If we reset it here, it won't get added to noconfigdirs in the
2080 # target-specific build rules, so it will be forcibly enabled
2081 # (unless the Java language itself isn't enabled).
2082 libgcj=
2083 ;;
2084no)
2085 # Make sure we get it printed in the list of not supported target libs.
2086 noconfigdirs="$noconfigdirs ${libgcj}"
2087 ;;
2088esac
ec8d6ddc 2089
6de9cd9a 2090
27079765
AH
2091# Disable libmudflap on some systems.
2092if test x$enable_libmudflap = x ; then
dfcada9a 2093 case "${target}" in
1c00b503 2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
98a5bb3b 2095 # Enable libmudflap by default in GNU and friends.
dfcada9a 2096 ;;
a3e8d8b4
LR
2097 *-*-freebsd*)
2098 # Enable libmudflap by default in FreeBSD.
2099 ;;
dfcada9a
MM
2100 *)
2101 # Disable it by default everywhere else.
2102 noconfigdirs="$noconfigdirs target-libmudflap"
2103 ;;
2104 esac
27079765 2105fi
6de9cd9a 2106
27079765
AH
2107# Disable libgomp on non POSIX hosted systems.
2108if test x$enable_libgomp = x ; then
953ff289
DN
2109 # Enable libgomp by default on hosted POSIX systems.
2110 case "${target}" in
670cbfcf 2111 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
2112 ;;
2113 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2114 ;;
04879af3 2115 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2116 ;;
cac90078 2117 *-*-darwin* | *-*-aix*)
953ff289
DN
2118 ;;
2119 *)
2120 noconfigdirs="$noconfigdirs target-libgomp"
2121 ;;
2122 esac
27079765 2123fi
953ff289 2124
c03353e2
RIL
2125# Default libgloss CPU subdirectory.
2126libgloss_dir="$target_cpu"
6de9cd9a 2127
671aa708
NN
2128case "${target}" in
2129 *-*-chorusos)
cb253473 2130 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2131 ;;
0fe0f073 2132 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
55eb837d 2133 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 2134 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2135 ;;
42c1cd8a
AT
2136 *-*-darwin*)
2137 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2138 noconfigdirs="$noconfigdirs sim target-rda"
2139 noconfigdirs="$noconfigdirs ${libgcj}"
2140 ;;
671aa708 2141 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2142 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2143 ;;
c3f84f61 2144 *-*-freebsd*)
6de9cd9a
DN
2145 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2146 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2147 && test -f /usr/local/include/gmp.h; then
2148 with_gmp=/usr/local
2149 fi
2150
2151 # Skip some stuff that's unsupported on some FreeBSD configurations.
2152 case "${target}" in
2153 i*86-*-*) ;;
2154 alpha*-*-*) ;;
2155 *)
cb253473 2156 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2157 ;;
2158 esac
2159 ;;
ef4e7569
US
2160 *-*-kaos*)
2161 # Remove unsupported stuff on all kaOS configurations.
cb253473 2162 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2163 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2164 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2165 noconfigdirs="$noconfigdirs target-libgloss"
2166 ;;
671aa708
NN
2167 *-*-netbsd*)
2168 # Skip some stuff on all NetBSD configurations.
2169 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2170
2171 # Skip some stuff that's unsupported on some NetBSD configurations.
2172 case "${target}" in
2173 i*86-*-netbsdelf*) ;;
0590b963 2174 arm*-*-netbsdelf*) ;;
671aa708 2175 *)
cb253473 2176 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2177 ;;
2178 esac
2179 ;;
61fec9ff 2180 *-*-netware*)
cb253473 2181 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2182 ;;
2183 *-*-rtems*)
cb253473 2184 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2185 ;;
a8ba31f2
EC
2186 # The tpf target doesn't support gdb yet.
2187 *-*-tpf*)
cb253473 2188 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2189 ;;
5785c0ed 2190 *-*-uclinux*)
cb253473 2191 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2192 ;;
671aa708 2193 *-*-vxworks*)
cb253473 2194 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2195 ;;
2196 alpha*-dec-osf*)
2197 # ld works, but does not support shared libraries.
2198 # newlib is not 64 bit ready. I'm not sure about fileutils.
2199 # gas doesn't generate exception information.
2200 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2201 ;;
2202 alpha*-*-*vms*)
cb253473 2203 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2204 ;;
2205 alpha*-*-linux*)
2206 # newlib is not 64 bit ready
2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2208 ;;
671aa708
NN
2209 alpha*-*-*)
2210 # newlib is not 64 bit ready
cb253473 2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2212 ;;
33952f6f 2213 am33_2.0-*-linux*)
cb253473 2214 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2215 ;;
671aa708 2216 sh-*-linux*)
cb253473 2217 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2218 ;;
671aa708 2219 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2220 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2221 noconfigdirs="$noconfigdirs target-examples"
2222 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2223 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2224 noconfigdirs="$noconfigdirs expect dejagnu"
2225 # the C++ libraries don't build on top of CE's C libraries
cb543528 2226 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2227 noconfigdirs="$noconfigdirs target-newlib"
2228 case "${host}" in
2229 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2230 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2231 ;;
2232 esac
c03353e2 2233 libgloss_dir=wince
671aa708
NN
2234 ;;
2235 arc-*-*)
cb253473 2236 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2237 ;;
ee6a22df 2238 arm-semi-aof )
ee6a22df 2239 ;;
671aa708 2240 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2241 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2242 libgloss_dir=arm
671aa708 2243 ;;
b3f8d95d 2244 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 2245 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 2246 libgloss_dir=arm
671aa708 2247 ;;
077fc835 2248 arm*-*-linux-gnueabi)
c4e9bf2b
AH
2249 noconfigdirs="$noconfigdirs target-qthreads"
2250 noconfigdirs="$noconfigdirs target-libobjc"
1c00b503
PB
2251 case ${with_newlib} in
2252 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2253 esac
c03353e2 2254 libgloss_dir=arm
077fc835 2255 ;;
972974fc 2256 arm*-*-symbianelf*)
cb253473 2257 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 2258 libgloss_dir=arm
972974fc 2259 ;;
671aa708 2260 arm-*-pe*)
cb253473 2261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2262 ;;
671aa708 2263 thumb-*-coff)
cb253473 2264 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2265 ;;
2266 thumb-*-elf)
cb253473 2267 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2268 ;;
671aa708 2269 thumb-*-pe)
cb253473 2270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2271 ;;
2272 arm-*-riscix*)
cb253473 2273 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2274 ;;
2275 avr-*-*)
cb253473 2276 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2277 ;;
6b65a26d 2278 bfin-*-*)
8b3c6c5a 2279 noconfigdirs="$noconfigdirs gdb"
61efc800 2280 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2281 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2282 fi
2283 ;;
671aa708 2284 c4x-*-* | tic4x-*-*)
cb253473 2285 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2286 ;;
2287 c54x*-*-* | tic54x-*-*)
cb253473 2288 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2289 ;;
40d64b5a 2290 cris-*-* | crisv32-*-*)
4fab7234 2291 unsupported_languages="$unsupported_languages java"
40d64b5a 2292 case "${target}" in
c2e0d3a9 2293 *-*-aout)
7f26dfa3 2294 unsupported_languages="$unsupported_languages fortran"
4fab7234 2295 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2296 *-*-elf)
7f26dfa3 2297 unsupported_languages="$unsupported_languages fortran"
789ec619 2298 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2299 *-*-linux*)
789ec619 2300 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2301 *)
7f26dfa3 2302 unsupported_languages="$unsupported_languages fortran"
cb253473 2303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2304 esac
c03353e2 2305 libgloss_dir=cris
671aa708 2306 ;;
25b656e7 2307 crx-*-*)
cb253473 2308 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2309 ;;
671aa708 2310 d10v-*-*)
cb253473 2311 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2312 ;;
2313 d30v-*-*)
cb253473 2314 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 2315 ;;
c03353e2
RIL
2316 ep9312-*-elf | ep9312-*-coff)
2317 libgloss_dir=arm
2318 ;;
671aa708 2319 fr30-*-elf*)
cb253473 2320 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2321 ;;
2322 frv-*-*)
cb253473 2323 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2324 ;;
2325 h8300*-*-*)
cb253473 2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2327 ;;
2328 h8500-*-*)
cb253473 2329 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2330 ;;
ee6a22df 2331 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2332 ;;
671aa708
NN
2333 hppa*64*-*-linux* | parisc*64*-*-linux*)
2334 # In this case, it's because the hppa64-linux target is for
2335 # the kernel only at this point and has no libc, and thus no
2336 # headers, crt*.o, etc., all of which are needed by these.
2337 noconfigdirs="$noconfigdirs target-zlib"
2338 ;;
3e732ba0
JDA
2339 parisc*-*-linux* | hppa*-*-linux*)
2340 ;;
671aa708 2341 hppa*-*-*elf* | \
671aa708
NN
2342 hppa*-*-lites* | \
2343 hppa*-*-openbsd* | \
2344 hppa*64*-*-*)
cb253473 2345 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2346 ;;
2a332582
JDA
2347 hppa*-hp-hpux11*)
2348 noconfigdirs="$noconfigdirs ld shellutils"
2349 ;;
c03353e2
RIL
2350 hppa*-*-pro*)
2351 libgloss_dir=pa
2352 ;;
671aa708
NN
2353 hppa*-*-*)
2354 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2355 # build on HP-UX 10.20.
cb253473 2356 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2357 ;;
fb87ad5d 2358 i960-*-*)
cb253473 2359 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2360 ;;
671aa708
NN
2361 ia64*-*-elf*)
2362 # No gdb support yet.
b4f96efe 2363 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2364 ;;
2365 ia64*-**-hpux*)
2366 # No gdb or ld support yet.
cb253473 2367 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2368 ;;
ee6a22df 2369 i370-*-opened*)
ee6a22df 2370 ;;
f2a0e225 2371 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2372 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2373 libgloss_dir=i386
671aa708 2374 ;;
f2a0e225 2375 i[3456789]86-*-linux*)
671aa708
NN
2376 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2377 # not build java stuff by default.
2378 case "${target}" in
2379 *-*-*libc1*)
cb253473 2380 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2381 esac
2382
2383 # This section makes it possible to build newlib natively on linux.
2384 # If we are using a cross compiler then don't configure newlib.
2385 if test x${is_cross_compiler} != xno ; then
3aa83176 2386 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2387 fi
2388 noconfigdirs="$noconfigdirs target-libgloss"
2389 # If we are not using a cross compiler, do configure newlib.
2390 # Note however, that newlib will only be configured in this situation
2391 # if the --with-newlib option has been given, because otherwise
2392 # 'target-newlib' will appear in skipdirs.
2393 ;;
f2a0e225 2394 i[3456789]86-*-mingw32*)
b91f0a41
CV
2395 target_configdirs="$target_configdirs target-winsup"
2396 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2397 ;;
95af8923
KT
2398 x86_64-*-mingw*)
2399 target_configdirs="$target_configdirs target-winsup"
2400 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2401 ;;
671aa708
NN
2402 *-*-cygwin*)
2403 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2404 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2405 # always build newlib if winsup directory is present.
b91f0a41 2406 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2407 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2408 elif test -d "$srcdir/newlib"; then
b91f0a41 2409 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2410 fi
1c710c3c 2411 ;;
ee6a22df
L
2412 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2413 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2414 ;;
f2a0e225 2415 i[3456789]86-*-pe)
cb253473 2416 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2417 ;;
f2a0e225 2418 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2419 # The linker does not yet know about weak symbols in COFF,
2420 # and is not configured to handle mixed ELF and COFF.
cb253473 2421 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2422 ;;
f2a0e225 2423 i[3456789]86-*-sco*)
cb253473 2424 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2425 ;;
f2a0e225 2426 i[3456789]86-*-solaris2*)
671aa708
NN
2427 noconfigdirs="$noconfigdirs target-libgloss"
2428 ;;
f2a0e225 2429 i[3456789]86-*-sysv4*)
cb253473 2430 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2431 ;;
f2a0e225 2432 i[3456789]86-*-beos*)
cb253473 2433 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2434 ;;
d1f8db0c
PB
2435 i[3456789]86-*-rdos*)
2436 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2437 ;;
fb87ad5d 2438 m32r-*-*)
cb253473 2439 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2440 ;;
671aa708 2441 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2442 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 2443 libgloss_dir=m68hc11
671aa708
NN
2444 ;;
2445 m68k-*-elf*)
cb253473 2446 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2447 ;;
2448 m68k-*-coff*)
cb253473 2449 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2450 ;;
c03353e2
RIL
2451 m68*-*-* | fido-*-*)
2452 libgloss_dir=m68k
2453 ;;
671aa708
NN
2454 mcore-*-pe*)
2455 # The EPOC C++ environment does not support exceptions or rtti,
2456 # and so building libstdc++-v3 tends not to always work.
2457 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2458 ;;
2459 mmix-*-*)
4fab7234 2460 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2461 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2462 ;;
2463 mn10200-*-*)
cb253473 2464 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2465 ;;
2466 mn10300-*-*)
cb253473 2467 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2468 ;;
ab34901f 2469 mt-*-*)
79dd769c
AH
2470 noconfigdirs="$noconfigdirs sim"
2471 ;;
671aa708
NN
2472 powerpc-*-aix*)
2473 # copied from rs6000-*-* entry
cb253473 2474 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2475 ;;
2476 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2477 target_configdirs="$target_configdirs target-winsup"
cb253473 2478 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2479 # always build newlib.
2480 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2481 ;;
2482 # This is temporary until we can link against shared libraries
2483 powerpcle-*-solaris*)
cb253473 2484 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 2485 libgloss_dir=rs6000
671aa708
NN
2486 ;;
2487 powerpc-*-beos*)
cb253473 2488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2489 ;;
671aa708 2490 powerpc-*-eabi)
cb253473 2491 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2492 libgloss_dir=rs6000
ee6a22df
L
2493 ;;
2494 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 2495 libgloss_dir=rs6000
671aa708 2496 ;;
671aa708 2497 rs6000-*-lynxos*)
cb253473 2498 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2499 ;;
2500 rs6000-*-aix*)
cb253473 2501 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2502 ;;
2503 rs6000-*-*)
cb253473 2504 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2505 ;;
2506 m68k-apollo-*)
cb253473 2507 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 2508 ;;
d9dced13
RS
2509 mips*-sde-elf*)
2510 skipdirs="$skipdirs target-libiberty"
2511 noconfigdirs="$noconfigdirs ${libgcj}"
2512 if test x$with_newlib = xyes; then
2513 noconfigdirs="$noconfigdirs gprof"
2514 fi
2515 libgloss_dir=mips
2516 ;;
671aa708 2517 mips*-*-irix5*)
cb253473 2518 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2519 ;;
2520 mips*-*-irix6*)
671aa708
NN
2521 # Linking libjava exceeds command-line length limits on at least
2522 # IRIX 6.2, but not on IRIX 6.5.
2523 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2524 # <oldham@codesourcery.com>
cb253473 2525 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2526 ;;
671aa708 2527 mips*-*-bsd*)
cb253473 2528 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2529 ;;
671aa708
NN
2530 mips*-*-linux*)
2531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2532 ;;
2533 mips*-*-*)
cb253473 2534 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 2535 libgloss_dir=mips
671aa708
NN
2536 ;;
2537 romp-*-*)
cb253473 2538 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2539 ;;
669f01d8 2540 sh-*-* | sh64-*-*)
671aa708 2541 case "${host}" in
f2a0e225
KC
2542 i[3456789]86-*-vsta) ;; # don't add gprof back in
2543 i[3456789]86-*-go32*) ;; # don't add gprof back in
2544 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2545 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2546 esac
cb253473 2547 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2548 ;;
c03353e2
RIL
2549 sparclet-*-aout* | sparc86x-*-*)
2550 libgloss_dir=sparc
2551 ;;
671aa708 2552 sparc-*-elf*)
cb253473 2553 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2554 ;;
2555 sparc64-*-elf*)
cb253473 2556 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2557 libgloss_dir=sparc
671aa708
NN
2558 ;;
2559 sparclite-*-*)
cb253473 2560 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2561 libgloss_dir=sparc
671aa708
NN
2562 ;;
2563 sparc-*-sunos4*)
cb253473 2564 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2565 if test x${is_cross_compiler} != xno ; then
2566 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2567 else
2568 use_gnu_ld=no
2569 fi
2570 ;;
bba5e0ca 2571 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2572 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2573 ;;
671aa708
NN
2574 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2575 ;;
85d9c13c 2576 spu-*-*)
ea6f5c57 2577 skipdirs="target-libssp"
85d9c13c 2578 ;;
671aa708 2579 v810-*-*)
cb253473 2580 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2581 ;;
2582 v850-*-*)
cb253473 2583 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2584 ;;
2585 v850e-*-*)
cb253473 2586 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2587 ;;
2588 v850ea-*-*)
cb253473 2589 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2590 ;;
2591 vax-*-vms)
cb253473 2592 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2593 ;;
2594 vax-*-*)
cb253473 2595 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2596 ;;
0d4f1b4e 2597 xtensa-*-*)
cb253473 2598 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2599 ;;
671aa708 2600 ip2k-*-*)
cb253473 2601 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2602 ;;
c3f84f61 2603 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2605 ;;
2606 *-*-lynxos*)
cb253473 2607 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2608 ;;
671aa708 2609 *-*-*)
cb253473 2610 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2611 ;;
2612esac
79c06341 2613
671aa708
NN
2614# If we aren't building newlib, then don't build libgloss, since libgloss
2615# depends upon some newlib header files.
2616case "${noconfigdirs}" in
2617 *target-libgloss*) ;;
2618 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2619esac
2620
671aa708
NN
2621# Work in distributions that contain no compiler tools, like Autoconf.
2622tentative_cc=""
2623host_makefile_frag=/dev/null
2624if test -d ${srcdir}/config ; then
2625case "${host}" in
2626 m68k-hp-hpux*)
2627 # Avoid "too much defining" errors from HPUX compiler.
2628 tentative_cc="cc -Wp,-H256000"
2629 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2630 # If it's HP/UX ar, this should be harmless.
2631 RANLIB="ar ts"
2632 ;;
2633 m68k-apollo-sysv*)
2634 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2635 ;;
2636 m68k-apollo-bsd*)
2637 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2638 # chokes on bfd, the compiler won't let you assign integers to enums, and
2639 # other problems. Defining CC to gcc is a questionable way to say "don't use
2640 # the apollo compiler" (the preferred version of GCC could be called cc,
2641 # or whatever), but I'm not sure leaving CC as cc is any better...
2642 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2643 # Used to have BISON=yacc.
2644 tentative_cc=gcc
2645 ;;
2646 m88k-dg-dgux*)
2647 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2648 ;;
2649 m88k-harris-cxux*)
2650 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2651 tentative_cc="cc -Xa"
2652 host_makefile_frag="config/mh-cxux"
2653 ;;
2654 m88k-motorola-sysv*)
2655 ;;
2656 mips*-dec-ultrix*)
2657 tentative_cc="cc -Wf,-XNg1000"
2658 host_makefile_frag="config/mh-decstation"
2659 ;;
2660 mips*-nec-sysv4*)
2661 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2662 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2663 host_makefile_frag="config/mh-necv4"
2664 ;;
2665 mips*-sgi-irix4*)
2666 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2667 # environment. Also bump switch table size so that cp-parse will
2668 # compile. Bump string length limit so linker builds.
2669 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2670 ;;
2671 mips*-*-sysv4*)
2672 host_makefile_frag="config/mh-sysv4"
2673 ;;
2674 mips*-*-sysv*)
2675 # This is for a MIPS running RISC/os 4.52C.
2676
2677 # This is needed for GDB, but needs to be in the top-level make because
2678 # if a library is compiled with the bsd headers and gets linked with the
2679 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2680 # a different size).
2681 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2682 # known except to select the sysv environment. Could we use /proc instead?
2683 # These "sysv environments" and "bsd environments" often end up being a pain.
2684 #
2685 # This is not part of CFLAGS because perhaps not all C compilers have this
2686 # option.
2687 tentative_cc="cc -systype sysv"
2688 ;;
2689 i370-ibm-opened*)
2690 tentative_cc="c89"
2691 ;;
f2a0e225 2692 i[3456789]86-*-sysv5*)
671aa708
NN
2693 host_makefile_frag="config/mh-sysv5"
2694 ;;
f2a0e225 2695 i[3456789]86-*-dgux*)
671aa708
NN
2696 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2697 host_makefile_frag="config/mh-dgux386"
2698 ;;
f2a0e225 2699 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2700 # The MetaWare compiler will generate a copyright message unless you
2701 # turn it off by adding the -Hnocopyr flag.
2702 tentative_cc="cc -Hnocopyr"
2703 ;;
f2a0e225 2704 i[3456789]86-ncr-sysv4*)
671aa708
NN
2705 # for an NCR 3000 (i486/SVR4) system.
2706 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2707 # This compiler not only emits obnoxious copyright messages every time
2708 # you run it, but it chokes and dies on a whole bunch of GNU source
2709 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2710 tentative_cc="/usr/ccs/ATT/cc"
2711 host_makefile_frag="config/mh-ncr3000"
2712 ;;
f2a0e225 2713 i[3456789]86-*-sco3.2v5*)
671aa708 2714 ;;
f2a0e225 2715 i[3456789]86-*-sco*)
671aa708
NN
2716 # The native C compiler botches some simple uses of const. Unfortunately,
2717 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2718 tentative_cc="cc -Dconst="
2719 host_makefile_frag="config/mh-sco"
2720 ;;
f2a0e225 2721 i[3456789]86-*-udk*)
671aa708
NN
2722 host_makefile_frag="config/mh-sysv5"
2723 ;;
f2a0e225 2724 i[3456789]86-*-solaris2*)
671aa708
NN
2725 host_makefile_frag="config/mh-sysv4"
2726 ;;
f2a0e225 2727 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2728 host_makefile_frag="config/mh-djgpp"
2729 ;;
2730 *-cygwin*)
2731 host_makefile_frag="config/mh-cygwin"
2732 ;;
2733 *-mingw32*)
1f5a6b84 2734 host_makefile_frag="config/mh-mingw"
671aa708 2735 ;;
95af8923 2736 *-mingw64*)
1f5a6b84 2737 host_makefile_frag="config/mh-mingw"
95af8923 2738 ;;
671aa708
NN
2739 *-interix*)
2740 host_makefile_frag="config/mh-interix"
2741 ;;
2742 vax-*-ultrix2*)
2743 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2744 tentative_cc=gcc
2745 ;;
2746 *-*-solaris2*)
2747 host_makefile_frag="config/mh-solaris"
2748 ;;
2749 m68k-sun-sunos*)
2750 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2751 # without overflowing the jump tables (-J says to use a 32 bit table)
2752 tentative_cc="cc -J"
2753 ;;
2754 *-hp-hpux*)
2755 tentative_cc="cc -Wp,-H256000"
2756 ;;
2757 *-*-hiux*)
2758 tentative_cc="cc -Wp,-H256000"
2759 ;;
2760 rs6000-*-lynxos*)
2761 # /bin/cc is less than useful for our purposes. Always use GCC
2762 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2763 host_makefile_frag="config/mh-lynxrs6k"
2764 ;;
45f366ab 2765 powerpc-*-darwin*)
be8fff81
RB
2766 host_makefile_frag="config/mh-ppc-darwin"
2767 ;;
d19bca38
PB
2768 powerpc-*-aix*)
2769 host_makefile_frag="config/mh-ppc-aix"
2770 ;;
2771 rs6000-*-aix*)
2772 host_makefile_frag="config/mh-ppc-aix"
2773 ;;
671aa708
NN
2774 *-*-lynxos*)
2775 # /bin/cc is less than useful for our purposes. Always use GCC
2776 tentative_cc="/bin/gcc"
2777 ;;
2778 *-*-sysv4*)
2779 host_makefile_frag="config/mh-sysv4"
2780 ;;
95c53c62
RS
2781 # This is placed last to prevent interfering with the cases above.
2782 i[3456789]86-*-*)
2783 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2784 host_makefile_frag="config/mh-x86omitfp"
2785 ;;
671aa708
NN
2786esac
2787fi
2788
55ffb5ed
NN
2789# If we aren't going to be using gcc, see if we can extract a definition
2790# of CC from the fragment.
2791# Actually, use the 'pre-extracted' version above.
2792if test -z "${CC}" && test "${build}" = "${host}" ; then
2793 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2794 found=
2795 for dir in $PATH; do
2796 test -z "$dir" && dir=.
2797 if test -f $dir/gcc; then
2798 found=yes
2799 break
2800 fi
2801 done
2802 IFS="$save_ifs"
2803 if test -z "${found}" && test -n "${tentative_cc}" ; then
2804 CC=$tentative_cc
2805 fi
2806fi
2807
2808if test "${build}" != "${host}" ; then
0999159b
PB
2809 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2810 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 2811 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
2812 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2813 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2814 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2815 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2816 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2817 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2818 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2819 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2820 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2821else
2822 AR_FOR_BUILD="\$(AR)"
2823 AS_FOR_BUILD="\$(AS)"
fb0103e5 2824 CC_FOR_BUILD="\$(CC)"
0999159b
PB
2825 CXX_FOR_BUILD="\$(CXX)"
2826 GCJ_FOR_BUILD="\$(GCJ)"
2827 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2828 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2829 LD_FOR_BUILD="\$(LD)"
2830 NM_FOR_BUILD="\$(NM)"
2831 RANLIB_FOR_BUILD="\$(RANLIB)"
2832 WINDRES_FOR_BUILD="\$(WINDRES)"
2833 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
2834fi
2835
2836ac_ext=c
1c710c3c
DJ
2837ac_cpp='$CPP $CPPFLAGS'
2838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840ac_compiler_gnu=$ac_cv_c_compiler_gnu
2841if test -n "$ac_tool_prefix"; then
2842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2843set dummy ${ac_tool_prefix}gcc; ac_word=$2
2aeb72e9
DD
2844echo "$as_me:$LINENO: checking for $ac_word" >&5
2845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2846if test "${ac_cv_prog_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848else
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2859 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863done
2864done
2865
2866fi
2867fi
2868CC=$ac_cv_prog_CC
2869if test -n "$CC"; then
2aeb72e9
DD
2870 echo "$as_me:$LINENO: result: $CC" >&5
2871echo "${ECHO_T}$CC" >&6
1c710c3c 2872else
2aeb72e9
DD
2873 echo "$as_me:$LINENO: result: no" >&5
2874echo "${ECHO_T}no" >&6
1c710c3c
DJ
2875fi
2876
2877fi
2878if test -z "$ac_cv_prog_CC"; then
2879 ac_ct_CC=$CC
fb0103e5
RG
2880 # Extract the first word of "gcc", so it can be a program name with args.
2881set dummy gcc; ac_word=$2
2aeb72e9
DD
2882echo "$as_me:$LINENO: checking for $ac_word" >&5
2883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2884if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886else
2887 if test -n "$ac_ct_CC"; then
2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889else
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2897 ac_cv_prog_ac_ct_CC="gcc"
2898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901done
2902done
2903
2904fi
2905fi
2906ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907if test -n "$ac_ct_CC"; then
2aeb72e9
DD
2908 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2909echo "${ECHO_T}$ac_ct_CC" >&6
1c710c3c 2910else
2aeb72e9
DD
2911 echo "$as_me:$LINENO: result: no" >&5
2912echo "${ECHO_T}no" >&6
1c710c3c
DJ
2913fi
2914
2aeb72e9 2915 CC=$ac_ct_CC
1c710c3c
DJ
2916else
2917 CC="$ac_cv_prog_CC"
2918fi
2919
2920if test -z "$CC"; then
2aeb72e9
DD
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 2923set dummy ${ac_tool_prefix}cc; ac_word=$2
2aeb72e9
DD
2924echo "$as_me:$LINENO: checking for $ac_word" >&5
2925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2926if test "${ac_cv_prog_CC+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2928else
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2931else
1c710c3c
DJ
2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2939 ac_cv_prog_CC="${ac_tool_prefix}cc"
2940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943done
2944done
2945
0b0dc272 2946fi
0b0dc272 2947fi
1c710c3c 2948CC=$ac_cv_prog_CC
af71363e 2949if test -n "$CC"; then
2aeb72e9
DD
2950 echo "$as_me:$LINENO: result: $CC" >&5
2951echo "${ECHO_T}$CC" >&6
0b0dc272 2952else
2aeb72e9
DD
2953 echo "$as_me:$LINENO: result: no" >&5
2954echo "${ECHO_T}no" >&6
0b0dc272
AM
2955fi
2956
2aeb72e9
DD
2957fi
2958if test -z "$ac_cv_prog_CC"; then
2959 ac_ct_CC=$CC
2960 # Extract the first word of "cc", so it can be a program name with args.
2961set dummy cc; ac_word=$2
2962echo "$as_me:$LINENO: checking for $ac_word" >&5
2963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2964if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2966else
2967 if test -n "$ac_ct_CC"; then
2968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2969else
2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971for as_dir in $PATH
2972do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977 ac_cv_prog_ac_ct_CC="cc"
2978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
11a67599 2980 fi
2aeb72e9
DD
2981done
2982done
2983
2984fi
2985fi
2986ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987if test -n "$ac_ct_CC"; then
2988 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2989echo "${ECHO_T}$ac_ct_CC" >&6
2990else
2991 echo "$as_me:$LINENO: result: no" >&5
2992echo "${ECHO_T}no" >&6
2993fi
2994
2995 CC=$ac_ct_CC
2996else
2997 CC="$ac_cv_prog_CC"
2998fi
2999
1c710c3c 3000fi
55ffb5ed
NN
3001if test -z "$CC"; then
3002 # Extract the first word of "cc", so it can be a program name with args.
3003set dummy cc; ac_word=$2
2aeb72e9
DD
3004echo "$as_me:$LINENO: checking for $ac_word" >&5
3005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3006if test "${ac_cv_prog_CC+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3008else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011else
0b0dc272 3012 ac_prog_rejected=no
1c710c3c
DJ
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021 ac_prog_rejected=yes
3022 continue
3023 fi
3024 ac_cv_prog_CC="cc"
3025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028done
3029done
3030
55ffb5ed
NN
3031if test $ac_prog_rejected = yes; then
3032 # We found a bogon in the path, so make sure we never use it.
3033 set dummy $ac_cv_prog_CC
3034 shift
1c710c3c 3035 if test $# != 0; then
55ffb5ed
NN
3036 # We chose a different compiler from the bogus one.
3037 # However, it has the same basename, so the bogon will be chosen
3038 # first if we set CC to just the basename; use the full file name.
3039 shift
1c710c3c 3040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3041 fi
3042fi
3043fi
3044fi
1c710c3c 3045CC=$ac_cv_prog_CC
55ffb5ed 3046if test -n "$CC"; then
2aeb72e9
DD
3047 echo "$as_me:$LINENO: result: $CC" >&5
3048echo "${ECHO_T}$CC" >&6
55ffb5ed 3049else
2aeb72e9
DD
3050 echo "$as_me:$LINENO: result: no" >&5
3051echo "${ECHO_T}no" >&6
55ffb5ed
NN
3052fi
3053
1c710c3c
DJ
3054fi
3055if test -z "$CC"; then
3056 if test -n "$ac_tool_prefix"; then
2aeb72e9 3057 for ac_prog in cl
1c710c3c
DJ
3058 do
3059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3060set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2aeb72e9
DD
3061echo "$as_me:$LINENO: checking for $ac_word" >&5
3062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3063if test "${ac_cv_prog_CC+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3065else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068else
1c710c3c
DJ
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080done
3081done
3082
55ffb5ed
NN
3083fi
3084fi
1c710c3c 3085CC=$ac_cv_prog_CC
55ffb5ed 3086if test -n "$CC"; then
2aeb72e9
DD
3087 echo "$as_me:$LINENO: result: $CC" >&5
3088echo "${ECHO_T}$CC" >&6
a4b9e93e 3089else
2aeb72e9
DD
3090 echo "$as_me:$LINENO: result: no" >&5
3091echo "${ECHO_T}no" >&6
fb0103e5 3092fi
af71363e 3093
1c710c3c
DJ
3094 test -n "$CC" && break
3095 done
af71363e 3096fi
1c710c3c
DJ
3097if test -z "$CC"; then
3098 ac_ct_CC=$CC
2aeb72e9 3099 for ac_prog in cl
1c710c3c
DJ
3100do
3101 # Extract the first word of "$ac_prog", so it can be a program name with args.
3102set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3103echo "$as_me:$LINENO: checking for $ac_word" >&5
3104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3105if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3107else
1c710c3c
DJ
3108 if test -n "$ac_ct_CC"; then
3109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3110else
1c710c3c
DJ
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3118 ac_cv_prog_ac_ct_CC="$ac_prog"
3119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122done
3123done
3124
af71363e
AS
3125fi
3126fi
1c710c3c
DJ
3127ac_ct_CC=$ac_cv_prog_ac_ct_CC
3128if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3130echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3131else
2aeb72e9
DD
3132 echo "$as_me:$LINENO: result: no" >&5
3133echo "${ECHO_T}no" >&6
af71363e 3134fi
0b0dc272 3135
1c710c3c
DJ
3136 test -n "$ac_ct_CC" && break
3137done
3138
2aeb72e9 3139 CC=$ac_ct_CC
1c710c3c
DJ
3140fi
3141
3142fi
3143
3144
3145test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3146See \`config.log' for more details." >&5
3147echo "$as_me: error: no acceptable C compiler found in \$PATH
3148See \`config.log' for more details." >&2;}
3149 { (exit 1); exit 1; }; }
3150
3151# Provide some information about the compiler.
2aeb72e9
DD
3152echo "$as_me:$LINENO:" \
3153 "checking for C compiler version" >&5
1c710c3c 3154ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3155{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3156 (eval $ac_compiler --version </dev/null >&5) 2>&5
1c710c3c
DJ
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }
2aeb72e9
DD
3160{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3161 (eval $ac_compiler -v </dev/null >&5) 2>&5
1c710c3c
DJ
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }
2aeb72e9
DD
3165{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3166 (eval $ac_compiler -V </dev/null >&5) 2>&5
1c710c3c
DJ
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }
3170
3171cat >conftest.$ac_ext <<_ACEOF
3172/* confdefs.h. */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h. */
3177
3178int
3179main ()
3180{
3181
3182 ;
3183 return 0;
3184}
3185_ACEOF
3186ac_clean_files_save=$ac_clean_files
3187ac_clean_files="$ac_clean_files a.out a.exe b.out"
3188# Try to create an executable without -o first, disregard a.out.
3189# It will help us diagnose broken compilers, and finding out an intuition
3190# of exeext.
2aeb72e9
DD
3191echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3192echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1c710c3c 3193ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2aeb72e9
DD
3194if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3195 (eval $ac_link_default) 2>&5
1c710c3c
DJ
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; then
2aeb72e9
DD
3199 # Find the output, starting from the most likely. This scheme is
3200# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3201# resort.
3202
3203# Be careful to initialize this variable, since it used to be cached.
3204# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3205ac_cv_exeext=
3206# b.out is created by i960 compilers.
3207for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1c710c3c
DJ
3208do
3209 test -f "$ac_file" || continue
3210 case $ac_file in
2aeb72e9
DD
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3212 ;;
3213 conftest.$ac_ext )
3214 # This is the source file.
1c710c3c
DJ
3215 ;;
3216 [ab].out )
3217 # We found the default executable, but exeext='' is most
3218 # certainly right.
3219 break;;
3220 *.* )
2aeb72e9
DD
3221 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222 # FIXME: I believe we export ac_cv_exeext for Libtool,
3223 # but it would be cool to find out if it's true. Does anybody
3224 # maintain Libtool? --akim.
3225 export ac_cv_exeext
1c710c3c
DJ
3226 break;;
3227 * )
3228 break;;
3229 esac
3230done
3231else
3232 echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3236See \`config.log' for more details." >&5
3237echo "$as_me: error: C compiler cannot create executables
3238See \`config.log' for more details." >&2;}
3239 { (exit 77); exit 77; }; }
3240fi
3241
3242ac_exeext=$ac_cv_exeext
2aeb72e9
DD
3243echo "$as_me:$LINENO: result: $ac_file" >&5
3244echo "${ECHO_T}$ac_file" >&6
1c710c3c 3245
2aeb72e9 3246# Check the compiler produces executables we can run. If not, either
1c710c3c 3247# the compiler is broken, or we cross compile.
2aeb72e9
DD
3248echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3249echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1c710c3c
DJ
3250# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3251# If not cross compiling, check that we can run a simple program.
3252if test "$cross_compiling" != yes; then
3253 if { ac_try='./$ac_file'
2aeb72e9
DD
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
1c710c3c
DJ
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 cross_compiling=no
3260 else
3261 if test "$cross_compiling" = maybe; then
3262 cross_compiling=yes
3263 else
3264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3265If you meant to cross compile, use \`--host'.
3266See \`config.log' for more details." >&5
3267echo "$as_me: error: cannot run C compiled programs.
3268If you meant to cross compile, use \`--host'.
3269See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3271 fi
3272 fi
3273fi
2aeb72e9
DD
3274echo "$as_me:$LINENO: result: yes" >&5
3275echo "${ECHO_T}yes" >&6
1c710c3c
DJ
3276
3277rm -f a.out a.exe conftest$ac_cv_exeext b.out
3278ac_clean_files=$ac_clean_files_save
2aeb72e9 3279# Check the compiler produces executables we can run. If not, either
1c710c3c 3280# the compiler is broken, or we cross compile.
2aeb72e9
DD
3281echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3282echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3283echo "$as_me:$LINENO: result: $cross_compiling" >&5
3284echo "${ECHO_T}$cross_compiling" >&6
3285
3286echo "$as_me:$LINENO: checking for suffix of executables" >&5
3287echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3289 (eval $ac_link) 2>&5
1c710c3c
DJ
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; then
3293 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3294# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3295# work properly (i.e., refer to `conftest.exe'), while it won't with
3296# `rm'.
3297for ac_file in conftest.exe conftest conftest.*; do
3298 test -f "$ac_file" || continue
3299 case $ac_file in
2aeb72e9 3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1c710c3c 3301 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2aeb72e9 3302 export ac_cv_exeext
1c710c3c
DJ
3303 break;;
3304 * ) break;;
3305 esac
3306done
af71363e 3307else
1c710c3c
DJ
3308 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3309See \`config.log' for more details." >&5
3310echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3311See \`config.log' for more details." >&2;}
3312 { (exit 1); exit 1; }; }
3313fi
3314
3315rm -f conftest$ac_cv_exeext
2aeb72e9
DD
3316echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3317echo "${ECHO_T}$ac_cv_exeext" >&6
1c710c3c
DJ
3318
3319rm -f conftest.$ac_ext
3320EXEEXT=$ac_cv_exeext
3321ac_exeext=$EXEEXT
2aeb72e9
DD
3322echo "$as_me:$LINENO: checking for suffix of object files" >&5
3323echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1c710c3c
DJ
3324if test "${ac_cv_objext+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326else
3327 cat >conftest.$ac_ext <<_ACEOF
3328/* confdefs.h. */
3329_ACEOF
3330cat confdefs.h >>conftest.$ac_ext
3331cat >>conftest.$ac_ext <<_ACEOF
3332/* end confdefs.h. */
3333
3334int
3335main ()
3336{
3337
3338 ;
3339 return 0;
3340}
3341_ACEOF
3342rm -f conftest.o conftest.obj
2aeb72e9
DD
3343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>&5
1c710c3c
DJ
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; then
2aeb72e9 3348 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1c710c3c 3349 case $ac_file in
2aeb72e9 3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1c710c3c
DJ
3351 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3352 break;;
3353 esac
3354done
3355else
3356 echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
3359{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3360See \`config.log' for more details." >&5
3361echo "$as_me: error: cannot compute suffix of object files: cannot compile
3362See \`config.log' for more details." >&2;}
3363 { (exit 1); exit 1; }; }
3364fi
3365
3366rm -f conftest.$ac_cv_objext conftest.$ac_ext
3367fi
2aeb72e9
DD
3368echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3369echo "${ECHO_T}$ac_cv_objext" >&6
1c710c3c
DJ
3370OBJEXT=$ac_cv_objext
3371ac_objext=$OBJEXT
2aeb72e9
DD
3372echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3373echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1c710c3c
DJ
3374if test "${ac_cv_c_compiler_gnu+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377 cat >conftest.$ac_ext <<_ACEOF
3378/* confdefs.h. */
3379_ACEOF
3380cat confdefs.h >>conftest.$ac_ext
3381cat >>conftest.$ac_ext <<_ACEOF
3382/* end confdefs.h. */
3383
3384int
3385main ()
3386{
3387#ifndef __GNUC__
3388 choke me
3389#endif
3390
3391 ;
3392 return 0;
3393}
3394_ACEOF
3395rm -f conftest.$ac_objext
2aeb72e9
DD
3396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
1c710c3c
DJ
3417 ac_compiler_gnu=yes
3418else
3419 echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
2aeb72e9 3422ac_compiler_gnu=no
1c710c3c 3423fi
2aeb72e9 3424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3425ac_cv_c_compiler_gnu=$ac_compiler_gnu
3426
3427fi
2aeb72e9
DD
3428echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3429echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1c710c3c
DJ
3430GCC=`test $ac_compiler_gnu = yes && echo yes`
3431ac_test_CFLAGS=${CFLAGS+set}
3432ac_save_CFLAGS=$CFLAGS
2aeb72e9
DD
3433CFLAGS="-g"
3434echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3435echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1c710c3c
DJ
3436if test "${ac_cv_prog_cc_g+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
2aeb72e9 3439 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3440/* confdefs.h. */
3441_ACEOF
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h. */
3445
3446int
3447main ()
3448{
3449
3450 ;
3451 return 0;
3452}
3453_ACEOF
3454rm -f conftest.$ac_objext
2aeb72e9
DD
3455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3456 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3457 ac_status=$?
3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3462 (exit $ac_status); } &&
3463 { ac_try='test -z "$ac_c_werror_flag"
3464 || test ! -s conftest.err'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 (eval $ac_try) 2>&5
1c710c3c
DJ
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3469 (exit $ac_status); }; } &&
3470 { ac_try='test -s conftest.$ac_objext'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 (eval $ac_try) 2>&5
1c710c3c
DJ
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9 3475 (exit $ac_status); }; }; then
55ffb5ed
NN
3476 ac_cv_prog_cc_g=yes
3477else
1c710c3c
DJ
3478 echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3480
2aeb72e9 3481ac_cv_prog_cc_g=no
0b0dc272 3482fi
2aeb72e9 3483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 3484fi
2aeb72e9
DD
3485echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3486echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3487if test "$ac_test_CFLAGS" = set; then
1c710c3c 3488 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3489elif test $ac_cv_prog_cc_g = yes; then
3490 if test "$GCC" = yes; then
3491 CFLAGS="-g -O2"
3492 else
3493 CFLAGS="-g"
3494 fi
3495else
3496 if test "$GCC" = yes; then
3497 CFLAGS="-O2"
3498 else
3499 CFLAGS=
3500 fi
3501fi
2aeb72e9
DD
3502echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3503echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3504if test "${ac_cv_prog_cc_stdc+set}" = set; then
1c710c3c
DJ
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
2aeb72e9 3507 ac_cv_prog_cc_stdc=no
1c710c3c
DJ
3508ac_save_CC=$CC
3509cat >conftest.$ac_ext <<_ACEOF
3510/* confdefs.h. */
3511_ACEOF
3512cat confdefs.h >>conftest.$ac_ext
3513cat >>conftest.$ac_ext <<_ACEOF
3514/* end confdefs.h. */
3515#include <stdarg.h>
3516#include <stdio.h>
3517#include <sys/types.h>
3518#include <sys/stat.h>
3519/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3520struct buf { int x; };
3521FILE * (*rcsopen) (struct buf *, struct stat *, int);
3522static char *e (p, i)
3523 char **p;
3524 int i;
3525{
3526 return p[i];
3527}
3528static char *f (char * (*g) (char **, int), char **p, ...)
3529{
3530 char *s;
3531 va_list v;
3532 va_start (v,p);
3533 s = g (p, va_arg (v,int));
3534 va_end (v);
3535 return s;
3536}
3537
3538/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3539 function prototypes and stuff, but not '\xHH' hex character constants.
3540 These don't provoke an error unfortunately, instead are silently treated
2aeb72e9 3541 as 'x'. The following induces an error, until -std1 is added to get
1c710c3c
DJ
3542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3543 array size at least. It's necessary to write '\x00'==0 to get something
2aeb72e9 3544 that's true only with -std1. */
1c710c3c
DJ
3545int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3546
3547int test (int i, double x);
3548struct s1 {int (*f) (int a);};
3549struct s2 {int (*f) (double a);};
3550int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3551int argc;
3552char **argv;
3553int
3554main ()
3555{
3556return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3557 ;
3558 return 0;
3559}
3560_ACEOF
2aeb72e9
DD
3561# Don't try gcc -ansi; that turns off useful extensions and
3562# breaks some systems' header files.
3563# AIX -qlanglvl=ansi
3564# Ultrix and OSF/1 -std1
3565# HP-UX 10.20 and later -Ae
3566# HP-UX older versions -Aa -D_HPUX_SOURCE
3567# SVR4 -Xc -D__EXTENSIONS__
3568for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
3569do
3570 CC="$ac_save_CC $ac_arg"
3571 rm -f conftest.$ac_objext
2aeb72e9
DD
3572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3579 (exit $ac_status); } &&
3580 { ac_try='test -z "$ac_c_werror_flag"
3581 || test ! -s conftest.err'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 (eval $ac_try) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; } &&
3587 { ac_try='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3593 ac_cv_prog_cc_stdc=$ac_arg
3594break
1c710c3c
DJ
3595else
3596 echo "$as_me: failed program was:" >&5
3597sed 's/^/| /' conftest.$ac_ext >&5
3598
3599fi
2aeb72e9 3600rm -f conftest.err conftest.$ac_objext
1c710c3c 3601done
2aeb72e9 3602rm -f conftest.$ac_ext conftest.$ac_objext
1c710c3c
DJ
3603CC=$ac_save_CC
3604
3605fi
2aeb72e9
DD
3606
3607case "x$ac_cv_prog_cc_stdc" in
3608 x|xno)
3609 echo "$as_me:$LINENO: result: none needed" >&5
3610echo "${ECHO_T}none needed" >&6 ;;
1c710c3c 3611 *)
2aeb72e9
DD
3612 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3613echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3614 CC="$CC $ac_cv_prog_cc_stdc" ;;
1c710c3c
DJ
3615esac
3616
2aeb72e9
DD
3617# Some people use a C++ compiler to compile C. Since we use `exit',
3618# in C++ we need to declare it. In case someone uses the same compiler
3619# for both compiling C and C++ we need to have the C++ compiler decide
3620# the declaration of exit, since it's the most demanding environment.
3621cat >conftest.$ac_ext <<_ACEOF
3622#ifndef __cplusplus
3623 choke me
3624#endif
3625_ACEOF
3626rm -f conftest.$ac_objext
3627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3628 (eval $ac_compile) 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } &&
3635 { ac_try='test -z "$ac_c_werror_flag"
3636 || test ! -s conftest.err'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; } &&
3642 { ac_try='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 for ac_declaration in \
3649 '' \
3650 'extern "C" void std::exit (int) throw (); using std::exit;' \
3651 'extern "C" void std::exit (int); using std::exit;' \
3652 'extern "C" void exit (int) throw ();' \
3653 'extern "C" void exit (int);' \
3654 'void exit (int);'
3655do
3656 cat >conftest.$ac_ext <<_ACEOF
3657/* confdefs.h. */
3658_ACEOF
3659cat confdefs.h >>conftest.$ac_ext
3660cat >>conftest.$ac_ext <<_ACEOF
3661/* end confdefs.h. */
3662$ac_declaration
3663#include <stdlib.h>
3664int
3665main ()
3666{
3667exit (42);
3668 ;
3669 return 0;
3670}
3671_ACEOF
3672rm -f conftest.$ac_objext
3673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3674 (eval $ac_compile) 2>conftest.er1
3675 ac_status=$?
3676 grep -v '^ *+' conftest.er1 >conftest.err
3677 rm -f conftest.er1
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } &&
3681 { ac_try='test -z "$ac_c_werror_flag"
3682 || test ! -s conftest.err'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest.$ac_objext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 :
3695else
3696 echo "$as_me: failed program was:" >&5
3697sed 's/^/| /' conftest.$ac_ext >&5
3698
3699continue
3700fi
3701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702 cat >conftest.$ac_ext <<_ACEOF
3703/* confdefs.h. */
3704_ACEOF
3705cat confdefs.h >>conftest.$ac_ext
3706cat >>conftest.$ac_ext <<_ACEOF
3707/* end confdefs.h. */
3708$ac_declaration
3709int
3710main ()
3711{
3712exit (42);
3713 ;
3714 return 0;
3715}
3716_ACEOF
3717rm -f conftest.$ac_objext
3718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>conftest.er1
3720 ac_status=$?
3721 grep -v '^ *+' conftest.er1 >conftest.err
3722 rm -f conftest.er1
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } &&
3726 { ac_try='test -z "$ac_c_werror_flag"
3727 || test ! -s conftest.err'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; } &&
3733 { ac_try='test -s conftest.$ac_objext'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 break
3740else
3741 echo "$as_me: failed program was:" >&5
3742sed 's/^/| /' conftest.$ac_ext >&5
3743
3744fi
3745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3746done
3747rm -f conftest*
3748if test -n "$ac_declaration"; then
3749 echo '#ifdef __cplusplus' >>confdefs.h
3750 echo $ac_declaration >>confdefs.h
3751 echo '#endif' >>confdefs.h
3752fi
3753
3754else
3755 echo "$as_me: failed program was:" >&5
3756sed 's/^/| /' conftest.$ac_ext >&5
3757
3758fi
3759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3760ac_ext=c
3761ac_cpp='$CPP $CPPFLAGS'
3762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765
3766ac_ext=cc
3767ac_cpp='$CXXCPP $CPPFLAGS'
3768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3771if test -n "$ac_tool_prefix"; then
3772 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3773 do
3774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3775set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3776echo "$as_me:$LINENO: checking for $ac_word" >&5
3777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3778if test "${ac_cv_prog_CXX+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781 if test -n "$CXX"; then
3782 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3783else
3784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785for as_dir in $PATH
3786do
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3791 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 break 2
3794 fi
3795done
3796done
55ffb5ed 3797
c3a86da9
DJ
3798fi
3799fi
3800CXX=$ac_cv_prog_CXX
3801if test -n "$CXX"; then
2aeb72e9
DD
3802 echo "$as_me:$LINENO: result: $CXX" >&5
3803echo "${ECHO_T}$CXX" >&6
c3a86da9 3804else
2aeb72e9
DD
3805 echo "$as_me:$LINENO: result: no" >&5
3806echo "${ECHO_T}no" >&6
c3a86da9
DJ
3807fi
3808
3809 test -n "$CXX" && break
3810 done
3811fi
3812if test -z "$CXX"; then
3813 ac_ct_CXX=$CXX
2aeb72e9 3814 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
c3a86da9
DJ
3815do
3816 # Extract the first word of "$ac_prog", so it can be a program name with args.
3817set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3818echo "$as_me:$LINENO: checking for $ac_word" >&5
3819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c3a86da9
DJ
3820if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822else
3823 if test -n "$ac_ct_CXX"; then
3824 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3825else
3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9
DJ
3833 ac_cv_prog_ac_ct_CXX="$ac_prog"
3834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 break 2
3836 fi
3837done
3838done
3839
3840fi
3841fi
3842ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3843if test -n "$ac_ct_CXX"; then
2aeb72e9
DD
3844 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3845echo "${ECHO_T}$ac_ct_CXX" >&6
c3a86da9 3846else
2aeb72e9
DD
3847 echo "$as_me:$LINENO: result: no" >&5
3848echo "${ECHO_T}no" >&6
c3a86da9
DJ
3849fi
3850
3851 test -n "$ac_ct_CXX" && break
3852done
2aeb72e9 3853test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
c3a86da9 3854
2aeb72e9 3855 CXX=$ac_ct_CXX
c3a86da9
DJ
3856fi
3857
2aeb72e9 3858
c3a86da9 3859# Provide some information about the compiler.
2aeb72e9
DD
3860echo "$as_me:$LINENO:" \
3861 "checking for C++ compiler version" >&5
c3a86da9 3862ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3863{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3864 (eval $ac_compiler --version </dev/null >&5) 2>&5
c3a86da9
DJ
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }
2aeb72e9
DD
3868{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3869 (eval $ac_compiler -v </dev/null >&5) 2>&5
c3a86da9
DJ
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }
2aeb72e9
DD
3873{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3874 (eval $ac_compiler -V </dev/null >&5) 2>&5
c3a86da9
DJ
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }
3878
2aeb72e9
DD
3879echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3880echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
c3a86da9
DJ
3881if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884 cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h. */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
3889/* end confdefs.h. */
3890
3891int
3892main ()
3893{
3894#ifndef __GNUC__
3895 choke me
3896#endif
3897
3898 ;
3899 return 0;
3900}
3901_ACEOF
3902rm -f conftest.$ac_objext
2aeb72e9
DD
3903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3904 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3910 (exit $ac_status); } &&
3911 { ac_try='test -z "$ac_cxx_werror_flag"
3912 || test ! -s conftest.err'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest.$ac_objext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
c3a86da9
DJ
3924 ac_compiler_gnu=yes
3925else
3926 echo "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
3928
2aeb72e9 3929ac_compiler_gnu=no
c3a86da9 3930fi
2aeb72e9 3931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
3932ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3933
3934fi
2aeb72e9
DD
3935echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3936echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
c3a86da9
DJ
3937GXX=`test $ac_compiler_gnu = yes && echo yes`
3938ac_test_CXXFLAGS=${CXXFLAGS+set}
3939ac_save_CXXFLAGS=$CXXFLAGS
2aeb72e9
DD
3940CXXFLAGS="-g"
3941echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3942echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
c3a86da9
DJ
3943if test "${ac_cv_prog_cxx_g+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
2aeb72e9 3946 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
3947/* confdefs.h. */
3948_ACEOF
3949cat confdefs.h >>conftest.$ac_ext
3950cat >>conftest.$ac_ext <<_ACEOF
3951/* end confdefs.h. */
3952
3953int
3954main ()
3955{
3956
3957 ;
3958 return 0;
3959}
3960_ACEOF
3961rm -f conftest.$ac_objext
2aeb72e9
DD
3962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3963 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3964 ac_status=$?
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3969 (exit $ac_status); } &&
3970 { ac_try='test -z "$ac_cxx_werror_flag"
3971 || test ! -s conftest.err'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 (eval $ac_try) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; } &&
3977 { ac_try='test -s conftest.$ac_objext'
3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 (eval $ac_try) 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
c3a86da9
DJ
3983 ac_cv_prog_cxx_g=yes
3984else
3985 echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
2aeb72e9
DD
3988ac_cv_prog_cxx_g=no
3989fi
3990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991fi
3992echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3993echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3994if test "$ac_test_CXXFLAGS" = set; then
3995 CXXFLAGS=$ac_save_CXXFLAGS
3996elif test $ac_cv_prog_cxx_g = yes; then
3997 if test "$GXX" = yes; then
3998 CXXFLAGS="-g -O2"
3999 else
4000 CXXFLAGS="-g"
4001 fi
4002else
4003 if test "$GXX" = yes; then
4004 CXXFLAGS="-O2"
4005 else
4006 CXXFLAGS=
4007 fi
4008fi
4009for ac_declaration in \
4010 '' \
4011 'extern "C" void std::exit (int) throw (); using std::exit;' \
4012 'extern "C" void std::exit (int); using std::exit;' \
4013 'extern "C" void exit (int) throw ();' \
4014 'extern "C" void exit (int);' \
4015 'void exit (int);'
4016do
4017 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4018/* confdefs.h. */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */
2aeb72e9
DD
4023$ac_declaration
4024#include <stdlib.h>
c3a86da9
DJ
4025int
4026main ()
4027{
2aeb72e9 4028exit (42);
c3a86da9
DJ
4029 ;
4030 return 0;
4031}
4032_ACEOF
4033rm -f conftest.$ac_objext
2aeb72e9
DD
4034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_cxx_werror_flag"
4043 || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
c3a86da9
DJ
4055 :
4056else
4057 echo "$as_me: failed program was:" >&5
4058sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 4059
2aeb72e9
DD
4060continue
4061fi
4062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4063 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4064/* confdefs.h. */
4065_ACEOF
4066cat confdefs.h >>conftest.$ac_ext
4067cat >>conftest.$ac_ext <<_ACEOF
4068/* end confdefs.h. */
2aeb72e9 4069$ac_declaration
c3a86da9
DJ
4070int
4071main ()
4072{
2aeb72e9 4073exit (42);
c3a86da9
DJ
4074 ;
4075 return 0;
4076}
4077_ACEOF
4078rm -f conftest.$ac_objext
2aeb72e9
DD
4079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4080 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4081 ac_status=$?
4082 grep -v '^ *+' conftest.er1 >conftest.err
4083 rm -f conftest.er1
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4086 (exit $ac_status); } &&
4087 { ac_try='test -z "$ac_cxx_werror_flag"
4088 || test ! -s conftest.err'
4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 (eval $ac_try) 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; } &&
4094 { ac_try='test -s conftest.$ac_objext'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 (eval $ac_try) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 break
c3a86da9
DJ
4101else
4102 echo "$as_me: failed program was:" >&5
4103sed 's/^/| /' conftest.$ac_ext >&5
4104
11a67599 4105fi
2aeb72e9
DD
4106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4107done
4108rm -f conftest*
4109if test -n "$ac_declaration"; then
4110 echo '#ifdef __cplusplus' >>confdefs.h
4111 echo $ac_declaration >>confdefs.h
4112 echo '#endif' >>confdefs.h
c3a86da9
DJ
4113fi
4114
4115ac_ext=c
4116ac_cpp='$CPP $CPPFLAGS'
4117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120
4121
4122# We must set the default linker to the linker used by gcc for the correct
4123# operation of libtool. If LD is not defined and we are using gcc, try to
4124# set the LD default to the ld used by gcc.
4125if test -z "$LD"; then
4126 if test "$GCC" = yes; then
4127 case $build in
4128 *-*-mingw*)
4129 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4130 *)
4131 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4132 esac
4133 case $gcc_prog_ld in
4134 # Accept absolute paths.
4135 [\\/]* | [A-Za-z]:[\\/]*)
4136 LD="$gcc_prog_ld" ;;
4137 esac
4138 fi
23f6b2f9
PB
4139fi
4140
23f6b2f9
PB
4141
4142
55ffb5ed 4143
1c710c3c
DJ
4144if test -n "$ac_tool_prefix"; then
4145 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4146set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2aeb72e9
DD
4147echo "$as_me:$LINENO: checking for $ac_word" >&5
4148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4149if test "${ac_cv_prog_GNATBIND+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4151else
4152 if test -n "$GNATBIND"; then
4153 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4154else
1c710c3c
DJ
4155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4162 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166done
4167done
4168
55ffb5ed
NN
4169fi
4170fi
1c710c3c 4171GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4172if test -n "$GNATBIND"; then
2aeb72e9
DD
4173 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4174echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4175else
2aeb72e9
DD
4176 echo "$as_me:$LINENO: result: no" >&5
4177echo "${ECHO_T}no" >&6
55ffb5ed
NN
4178fi
4179
1c710c3c 4180fi
55ffb5ed 4181if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4182 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4183 # Extract the first word of "gnatbind", so it can be a program name with args.
4184set dummy gnatbind; ac_word=$2
2aeb72e9
DD
4185echo "$as_me:$LINENO: checking for $ac_word" >&5
4186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4187if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4189else
1c710c3c
DJ
4190 if test -n "$ac_ct_GNATBIND"; then
4191 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4192else
1c710c3c
DJ
4193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194for as_dir in $PATH
4195do
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4200 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 break 2
4203 fi
4204done
4205done
4206
2aeb72e9 4207 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4208fi
4209fi
1c710c3c
DJ
4210ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4211if test -n "$ac_ct_GNATBIND"; then
2aeb72e9
DD
4212 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4213echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4214else
2aeb72e9
DD
4215 echo "$as_me:$LINENO: result: no" >&5
4216echo "${ECHO_T}no" >&6
55ffb5ed
NN
4217fi
4218
2aeb72e9 4219 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4220else
1c710c3c 4221 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4222fi
4223
1c710c3c
DJ
4224if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4226set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
2aeb72e9
DD
4227echo "$as_me:$LINENO: checking for $ac_word" >&5
4228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4229if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4231else
4232 if test -n "$GNATMAKE"; then
4233 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4234else
1c710c3c
DJ
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4242 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4245 fi
4246done
4247done
4248
5305be7e
RG
4249fi
4250fi
1c710c3c 4251GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4252if test -n "$GNATMAKE"; then
2aeb72e9
DD
4253 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4254echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4255else
2aeb72e9
DD
4256 echo "$as_me:$LINENO: result: no" >&5
4257echo "${ECHO_T}no" >&6
5305be7e
RG
4258fi
4259
1c710c3c 4260fi
5305be7e 4261if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4262 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4263 # Extract the first word of "gnatmake", so it can be a program name with args.
4264set dummy gnatmake; ac_word=$2
2aeb72e9
DD
4265echo "$as_me:$LINENO: checking for $ac_word" >&5
4266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4267if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4269else
1c710c3c
DJ
4270 if test -n "$ac_ct_GNATMAKE"; then
4271 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4272else
1c710c3c
DJ
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4280 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4283 fi
4284done
4285done
4286
2aeb72e9 4287 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4288fi
4289fi
1c710c3c
DJ
4290ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4291if test -n "$ac_ct_GNATMAKE"; then
2aeb72e9
DD
4292 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4293echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4294else
2aeb72e9
DD
4295 echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6
5305be7e
RG
4297fi
4298
2aeb72e9 4299 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4300else
1c710c3c 4301 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4302fi
4303
2aeb72e9
DD
4304echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4305echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
1c710c3c
DJ
4306if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4308else
4309 cat >conftest.adb <<EOF
4310procedure conftest is begin null; end conftest;
4311EOF
4312acx_cv_cc_gcc_supports_ada=no
4313# There is a bug in old released versions of GCC which causes the
4314# driver to exit successfully when the appropriate language module
4315# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4316# Therefore we must check for the error message as well as an
4317# unsuccessful exit.
1db673ca
RO
4318# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4319# given a .adb file, but produce no object file. So we must check
4320# if an object file was really produced to guard against this.
55ffb5ed 4321errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4322if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4323 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4324fi
4325rm -f conftest.*
4326fi
2aeb72e9
DD
4327echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4328echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4329
5305be7e 4330if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4331 have_gnat=yes
4332else
4333 have_gnat=no
4334fi
4335
2aeb72e9
DD
4336echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4337echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
1c710c3c
DJ
4338if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4340else
4341 echo abfoo >t1
4342 echo cdfoo >t2
4343 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4344 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4345 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4346 :
4347 else
4348 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4349 fi
4350 fi
a76494aa
PB
4351 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4352 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4353 :
a76494aa
PB
4354 else
4355 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4356 fi
4357 fi
4358 rm t1 t2
4359
4360fi
2aeb72e9
DD
4361echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4362echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4363do_compare="$gcc_cv_prog_cmp_skip"
4364
4365
55ffb5ed 4366
bebf829d 4367# Check for GMP and MPFR
e69bf64b 4368gmplibs="-lmpfr -lgmp"
6de9cd9a 4369gmpinc=
e69bf64b
PB
4370have_gmp=no
4371
bebf829d
PB
4372# Specify a location for mpfr
4373# check for this first so it ends up on the link line before gmp.
1c710c3c 4374
2aeb72e9 4375# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
bebf829d 4376if test "${with_mpfr_dir+set}" = set; then
2aeb72e9
DD
4377 withval="$with_mpfr_dir"
4378 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4379Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4380echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4381Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4382 { (exit 1); exit 1; }; }
2aeb72e9 4383fi;
bebf829d
PB
4384
4385
2aeb72e9 4386# Check whether --with-mpfr or --without-mpfr was given.
bebf829d 4387if test "${with_mpfr+set}" = set; then
2aeb72e9 4388 withval="$with_mpfr"
1c710c3c 4389
2aeb72e9 4390fi;
bebf829d 4391
2aeb72e9 4392# Check whether --with-mpfr_include or --without-mpfr_include was given.
8a877c9c 4393if test "${with_mpfr_include+set}" = set; then
2aeb72e9 4394 withval="$with_mpfr_include"
1c710c3c 4395
2aeb72e9 4396fi;
8a877c9c 4397
2aeb72e9 4398# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
8a877c9c 4399if test "${with_mpfr_lib+set}" = set; then
2aeb72e9 4400 withval="$with_mpfr_lib"
8a877c9c 4401
2aeb72e9 4402fi;
bebf829d
PB
4403
4404if test "x$with_mpfr" != x; then
4405 gmplibs="-L$with_mpfr/lib $gmplibs"
4406 gmpinc="-I$with_mpfr/include"
4407fi
8a877c9c
KG
4408if test "x$with_mpfr_include" != x; then
4409 gmpinc="-I$with_mpfr_include"
4410fi
4411if test "x$with_mpfr_lib" != x; then
4412 gmplibs="-L$with_mpfr_lib $gmplibs"
4413fi
e69bf64b
PB
4414if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4415 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4416 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4417 # Do not test the mpfr version. Assume that it is sufficient, since
4418 # it is in the source tree, and the library has not been built yet
4419 # but it would be included on the link line in the version check below
4420 # hence making the test fail.
4421 have_gmp=yes
4422fi
bebf829d 4423
6de9cd9a 4424# Specify a location for gmp
1c710c3c 4425
2aeb72e9 4426# Check whether --with-gmp-dir or --without-gmp-dir was given.
6de9cd9a 4427if test "${with_gmp_dir+set}" = set; then
2aeb72e9
DD
4428 withval="$with_gmp_dir"
4429 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4430Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4431echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4432Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4433 { (exit 1); exit 1; }; }
2aeb72e9 4434fi;
6de9cd9a 4435
6de9cd9a 4436
2aeb72e9 4437# Check whether --with-gmp or --without-gmp was given.
6de9cd9a 4438if test "${with_gmp+set}" = set; then
2aeb72e9 4439 withval="$with_gmp"
1c710c3c 4440
2aeb72e9 4441fi;
6de9cd9a 4442
2aeb72e9 4443# Check whether --with-gmp_include or --without-gmp_include was given.
8a877c9c 4444if test "${with_gmp_include+set}" = set; then
2aeb72e9 4445 withval="$with_gmp_include"
1c710c3c 4446
2aeb72e9 4447fi;
8a877c9c 4448
2aeb72e9 4449# Check whether --with-gmp_lib or --without-gmp_lib was given.
8a877c9c 4450if test "${with_gmp_lib+set}" = set; then
2aeb72e9 4451 withval="$with_gmp_lib"
8a877c9c 4452
2aeb72e9 4453fi;
8a877c9c 4454
6de9cd9a 4455
bebf829d
PB
4456if test "x$with_gmp" != x; then
4457 gmplibs="-L$with_gmp/lib $gmplibs"
4458 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4459fi
8a877c9c
KG
4460if test "x$with_gmp_include" != x; then
4461 gmpinc="-I$with_gmp_include $gmpinc"
4462fi
4463if test "x$with_gmp_lib" != x; then
4464 gmplibs="-L$with_gmp_lib $gmplibs"
4465fi
e69bf64b
PB
4466if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4467 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4468 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4469 # Do not test the gmp version. Assume that it is sufficient, since
4470 # it is in the source tree, and the library has not been built yet
4471 # but it would be included on the link line in the version check below
4472 # hence making the test fail.
4473 have_gmp=yes
4474fi
6de9cd9a 4475
d943d7c4 4476if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4477 have_gmp=yes
4478 saved_CFLAGS="$CFLAGS"
4479 CFLAGS="$CFLAGS $gmpinc"
4480 # Check GMP actually works
2aeb72e9
DD
4481 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4482echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
1c710c3c
DJ
4483
4484cat >conftest.$ac_ext <<_ACEOF
4485/* confdefs.h. */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h. */
6de9cd9a 4490#include "gmp.h"
1c710c3c
DJ
4491int
4492main ()
4493{
6de9cd9a 4494
e69bf64b
PB
4495 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4496 choke me
4497 #endif
1c710c3c
DJ
4498
4499 ;
4500 return 0;
4501}
4502_ACEOF
4503rm -f conftest.$ac_objext
2aeb72e9
DD
4504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4506 ac_status=$?
4507 grep -v '^ *+' conftest.er1 >conftest.err
4508 rm -f conftest.er1
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4511 (exit $ac_status); } &&
4512 { ac_try='test -z "$ac_c_werror_flag"
4513 || test ! -s conftest.err'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; } &&
4519 { ac_try='test -s conftest.$ac_objext'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 (eval $ac_try) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
4525 echo "$as_me:$LINENO: result: yes" >&5
4526echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4527else
4528 echo "$as_me: failed program was:" >&5
4529sed 's/^/| /' conftest.$ac_ext >&5
4530
2aeb72e9
DD
4531echo "$as_me:$LINENO: result: no" >&5
4532echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4533fi
2aeb72e9 4534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4535
e69bf64b
PB
4536 if test x"$have_gmp" = xyes; then
4537 saved_LIBS="$LIBS"
4538 LIBS="$LIBS $gmplibs"
2aeb72e9
DD
4539 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4540echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
1c710c3c
DJ
4541 cat >conftest.$ac_ext <<_ACEOF
4542/* confdefs.h. */
4543_ACEOF
4544cat confdefs.h >>conftest.$ac_ext
4545cat >>conftest.$ac_ext <<_ACEOF
4546/* end confdefs.h. */
70ec446f 4547#include <gmp.h>
e69bf64b 4548 #include <mpfr.h>
1c710c3c
DJ
4549int
4550main ()
4551{
e48d66a9 4552
94e1934d 4553 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
e69bf64b
PB
4554 choke me
4555 #endif
54e433bc
MK
4556 mpfr_t n;
4557 mpfr_t x;
e69bf64b 4558 int t;
54e433bc
MK
4559 mpfr_init (n);
4560 mpfr_init (x);
e69bf64b
PB
4561 mpfr_atan2 (n, n, x, GMP_RNDN);
4562 mpfr_erfc (n, x, GMP_RNDN);
4563 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4564
4565 ;
4566 return 0;
4567}
4568_ACEOF
4569rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4571 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4572 ac_status=$?
4573 grep -v '^ *+' conftest.er1 >conftest.err
4574 rm -f conftest.er1
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4577 (exit $ac_status); } &&
4578 { ac_try='test -z "$ac_c_werror_flag"
4579 || test ! -s conftest.err'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; } &&
4585 { ac_try='test -s conftest$ac_exeext'
4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 (eval $ac_try) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; }; then
1c710c3c
DJ
4591 cat >conftest.$ac_ext <<_ACEOF
4592/* confdefs.h. */
4593_ACEOF
4594cat confdefs.h >>conftest.$ac_ext
4595cat >>conftest.$ac_ext <<_ACEOF
4596/* end confdefs.h. */
a3993f33 4597#include <gmp.h>
e69bf64b 4598 #include <mpfr.h>
1c710c3c
DJ
4599int
4600main ()
4601{
a3993f33 4602
94e1934d 4603 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
e69bf64b
PB
4604 choke me
4605 #endif
4606 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4607
4608 ;
4609 return 0;
4610}
4611_ACEOF
4612rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4614 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4620 (exit $ac_status); } &&
4621 { ac_try='test -z "$ac_c_werror_flag"
4622 || test ! -s conftest.err'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 (eval $ac_try) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; } &&
4628 { ac_try='test -s conftest$ac_exeext'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 (eval $ac_try) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 echo "$as_me:$LINENO: result: yes" >&5
4635echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4636else
4637 echo "$as_me: failed program was:" >&5
4638sed 's/^/| /' conftest.$ac_ext >&5
4639
2aeb72e9
DD
4640echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4641echo "${ECHO_T}buggy but acceptable" >&6
1c710c3c 4642fi
2aeb72e9 4643rm -f conftest.err conftest.$ac_objext \
1c710c3c
DJ
4644 conftest$ac_exeext conftest.$ac_ext
4645else
4646 echo "$as_me: failed program was:" >&5
4647sed 's/^/| /' conftest.$ac_ext >&5
4648
2aeb72e9
DD
4649echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4651fi
2aeb72e9 4652rm -f conftest.err conftest.$ac_objext \
1c710c3c 4653 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4654 LIBS="$saved_LIBS"
4655 fi
4656 CFLAGS="$saved_CFLAGS"
6de9cd9a 4657
e69bf64b 4658 if test x$have_gmp != xyes; then
94e1934d 4659 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
1c710c3c
DJ
4660Try the --with-gmp and/or --with-mpfr options to specify their locations.
4661Copies of these libraries' source code can be found at their respective
4662hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4663See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4664If you obtained GMP and/or MPFR from a vendor distribution package, make
4665sure that you have installed both the libraries and the header files.
4666They may be located in separate packages." >&5
94e1934d 4667echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
ca558912
KG
4668Try the --with-gmp and/or --with-mpfr options to specify their locations.
4669Copies of these libraries' source code can be found at their respective
4670hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4671See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4672If you obtained GMP and/or MPFR from a vendor distribution package, make
4673sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4674They may be located in separate packages." >&2;}
4675 { (exit 1); exit 1; }; }
e69bf64b 4676 fi
70ec446f
KG
4677fi
4678
bebf829d 4679# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4680
4681
4682
1e0f07d3 4683# By default, C is the only stage 1 language.
e1888513 4684stage1_languages=,c,
2805b53a 4685
55ffb5ed
NN
4686# Figure out what language subdirectories are present.
4687# Look if the user specified --enable-languages="..."; if not, use
4688# the environment variable $LANGUAGES if defined. $LANGUAGES might
4689# go away some day.
4690# NB: embedded tabs in this IF block -- do not untabify
4691if test -d ${srcdir}/gcc; then
4692 if test x"${enable_languages+set}" != xset; then
4693 if test x"${LANGUAGES+set}" = xset; then
4694 enable_languages="${LANGUAGES}"
4695 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4696 else
4697 enable_languages=all
4698 fi
4699 else
4700 if test x"${enable_languages}" = x ||
4701 test x"${enable_languages}" = xyes;
4702 then
4703 echo configure.in: --enable-languages needs at least one language argument 1>&2
4704 exit 1
4705 fi
4706 fi
4707 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4708
7f26dfa3
FXC
4709 # 'f95' is the old name for the 'fortran' language. We issue a warning
4710 # and make the substitution.
4711 case ,${enable_languages}, in
4712 *,f95,*)
4713 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4714 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4715 ;;
4716 esac
4717
55ffb5ed
NN
4718 # First scan to see if an enabled language requires some other language.
4719 # We assume that a given config-lang.in will list all the language
4720 # front ends it requires, even if some are required indirectly.
4721 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4722 case ${lang_frag} in
4723 ..) ;;
4724 # The odd quoting in the next line works around
4725 # an apparent bug in bash 1.12 on linux.
4726 ${srcdir}/gcc/[*]/config-lang.in) ;;
4727 *)
4728 # From the config-lang.in, get $language, $lang_requires
4729 language=
4730 lang_requires=
4731 . ${lang_frag}
4732 for other in ${lang_requires} ; do
4733 case ,${enable_languages}, in
4734 *,$other,*) ;;
4735 *,all,*) ;;
4736 *,$language,*)
4737 echo " \`$other' language required by \`$language'; enabling" 1>&2
4738 enable_languages="${enable_languages},${other}"
4739 ;;
4740 esac
4741 done
4742 ;;
4743 esac
4744 done
4745
e1888513 4746 new_enable_languages=,c,
55ffb5ed 4747 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 4748 potential_languages=,c,
55ffb5ed
NN
4749
4750 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4751 case ${lang_frag} in
4752 ..) ;;
4753 # The odd quoting in the next line works around
4754 # an apparent bug in bash 1.12 on linux.
4755 ${srcdir}/gcc/[*]/config-lang.in) ;;
4756 *)
1c710c3c 4757 # From the config-lang.in, get $language, $target_libs,
2805b53a 4758 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
4759 language=
4760 target_libs=
4761 lang_dirs=
1546bb64 4762 subdir_requires=
e1888513
PB
4763 boot_language=no
4764 build_by_default=yes
55ffb5ed 4765 . ${lang_frag}
e1888513
PB
4766 if test x${language} = x; then
4767 echo "${lang_frag} doesn't set \$language." 1>&2
4768 exit 1
4769 fi
4770
4771 case ,${enable_languages}, in
4772 *,${language},*)
55ffb5ed
NN
4773 # Language was explicitly selected; include it.
4774 add_this_lang=yes
4775 ;;
e1888513
PB
4776 *,all,*)
4777 # 'all' was selected, select it if it is a default language
4778 add_this_lang=${build_by_default}
55ffb5ed
NN
4779 ;;
4780 *)
4781 add_this_lang=no
4782 ;;
4783 esac
6de9cd9a 4784
1546bb64 4785 # Disable languages that need other directories if these aren't available.
95695ad3 4786 for i in $subdir_requires; do
b6348cb3 4787 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
4788 case ,${enable_languages}, in
4789 *,${language},*)
4790 # Specifically requested language; tell them.
1c710c3c
DJ
4791 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4792echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4793 { (exit 1); exit 1; }; }
1546bb64
PB
4794 ;;
4795 *)
4796 # Silently disable.
e1888513 4797 add_this_lang=unsupported
1546bb64
PB
4798 ;;
4799 esac
4800 done
4801
e1888513
PB
4802 # Disable Ada if no preexisting GNAT is available.
4803 case ,${enable_languages},:${language}:${have_gnat} in
4804 *,${language},*:ada:no)
4805 # Specifically requested language; tell them.
1c710c3c
DJ
4806 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4807echo "$as_me: error: GNAT is required to build $language" >&2;}
4808 { (exit 1); exit 1; }; }
e1888513
PB
4809 ;;
4810 *:ada:no)
4811 # Silently disable.
4812 add_this_lang=unsupported
4813 ;;
4814 esac
4815
4fab7234
HPN
4816 # Disable a language that is unsupported by the target.
4817 case " $unsupported_languages " in
4818 *" $language "*)
e1888513 4819 add_this_lang=unsupported
4fab7234
HPN
4820 ;;
4821 esac
4822
6de9cd9a 4823 case $add_this_lang in
e1888513 4824 unsupported)
55ffb5ed 4825 # Remove language-dependent dirs.
2805b53a
NN
4826 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4827 ;;
e1888513
PB
4828 no)
4829 # Remove language-dependent dirs; still show language as supported.
4830 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4831 potential_languages="${potential_languages}${language},"
4832 ;;
4833 yes)
4834 new_enable_languages="${new_enable_languages}${language},"
4835 potential_languages="${potential_languages}${language},"
2805b53a
NN
4836 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4837 case ${boot_language} in
4838 yes)
340de83f 4839 # Add to (comma-separated) list of stage 1 languages.
e1888513 4840 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
4841 ;;
4842 esac
4843 ;;
55ffb5ed
NN
4844 esac
4845 ;;
4846 esac
4847 done
4848
2aeb72e9 4849 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
e1888513 4850if test "${enable_stage1_languages+set}" = set; then
2aeb72e9
DD
4851 enableval="$enable_stage1_languages"
4852 case ,${enable_stage1_languages}, in
e1888513
PB
4853 ,no,|,,)
4854 # Set it to something that will have no effect in the loop below
4855 enable_stage1_languages=c ;;
4856 ,yes,)
4857 enable_stage1_languages=`echo $new_enable_languages | \
4858 sed -e "s/^,//" -e "s/,$//" ` ;;
4859 *,all,*)
4860 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4861 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4862 esac
4863
4864 # Add "good" languages from enable_stage1_languages to stage1_languages,
4865 # while "bad" languages go in missing_languages. Leave no duplicates.
4866 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4867 case $potential_languages in
4868 *,$i,*)
4869 case $stage1_languages in
4870 *,$i,*) ;;
4871 *) stage1_languages="$stage1_languages$i," ;;
4872 esac ;;
4873 *)
4874 case $missing_languages in
4875 *,$i,*) ;;
4876 *) missing_languages="$missing_languages$i," ;;
4877 esac ;;
4878 esac
4879 done
2aeb72e9 4880fi;
e1888513
PB
4881
4882 # Remove leading/trailing commas that were added for simplicity
4883 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 4884 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
4885 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4886 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4887
55ffb5ed 4888 if test "x$missing_languages" != x; then
1c710c3c 4889 { { echo "$as_me:$LINENO: error:
0cf085e4 4890The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
4891Supported languages are: ${potential_languages}" >&5
4892echo "$as_me: error:
4893The following requested languages could not be built: ${missing_languages}
4894Supported languages are: ${potential_languages}" >&2;}
4895 { (exit 1); exit 1; }; }
55ffb5ed 4896 fi
55ffb5ed
NN
4897 if test "x$new_enable_languages" != "x$enable_languages"; then
4898 echo The following languages will be built: ${new_enable_languages}
e1888513 4899 enable_languages="$new_enable_languages"
55ffb5ed 4900 fi
e1888513 4901
1c710c3c 4902
b2eaac4a 4903 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
4904fi
4905
27079765
AH
4906# Handle --disable-<component> generically.
4907for dir in $configdirs $build_configdirs $target_configdirs ; do
4908 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4909 if eval test x\${enable_${dirname}} "=" xno ; then
4910 noconfigdirs="$noconfigdirs $dir"
4911 fi
4912done
4913
7cd0cf9c 4914# Check for Boehm's garbage collector
2aeb72e9 4915# Check whether --enable-objc-gc or --disable-objc-gc was given.
7cd0cf9c 4916if test "${enable_objc_gc+set}" = set; then
2aeb72e9
DD
4917 enableval="$enable_objc_gc"
4918 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 4919 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
4920 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4921echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4922 { (exit 1); exit 1; }; }
7cd0cf9c
DA
4923 ;;
4924esac
2aeb72e9 4925fi;
7cd0cf9c
DA
4926
4927# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
4928case ,${enable_languages},:${enable_objc_gc} in
4929 *,objc,*:yes)
7cd0cf9c
DA
4930 # Keep target-boehm-gc if requested for Objective-C.
4931 ;;
7cd0cf9c 4932 *)
2a79fd67
DA
4933 # Otherwise remove target-boehm-gc depending on target-libjava.
4934 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4935 noconfigdirs="$noconfigdirs target-boehm-gc"
4936 fi
7cd0cf9c
DA
4937 ;;
4938esac
4939
ee6a22df
L
4940# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4941# $build_configdirs and $target_configdirs.
55ffb5ed
NN
4942# If we have the source for $noconfigdirs entries, add them to $notsupp.
4943
4944notsupp=""
4945for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 4946 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
4947 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4948 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4949 if test -r $srcdir/$dirname/configure ; then
4950 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4951 true
4952 else
4953 notsupp="$notsupp $dir"
4954 fi
4955 fi
4956 fi
ee6a22df
L
4957 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4958 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4959 if test -r $srcdir/$dirname/configure ; then
4960 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4961 true
4962 else
4963 notsupp="$notsupp $dir"
4964 fi
4965 fi
4966 fi
55ffb5ed
NN
4967 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4968 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4969 if test -r $srcdir/$dirname/configure ; then
4970 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4971 true
4972 else
4973 notsupp="$notsupp $dir"
4974 fi
4975 fi
4976 fi
4977done
4978
4979# Sometimes the tools are distributed with libiberty but with no other
4980# libraries. In that case, we don't want to build target-libiberty.
54fdc474 4981# Don't let libgcc imply libiberty either.
55ffb5ed 4982if test -n "${target_configdirs}" ; then
54fdc474 4983 libgcc=
55ffb5ed
NN
4984 others=
4985 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
4986 if test "$i" = "libgcc"; then
4987 libgcc=target-libgcc
4988 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
4989 if test -r $srcdir/$i/configure ; then
4990 others=yes;
4991 break;
4992 fi
4993 fi
4994 done
4995 if test -z "${others}" ; then
54fdc474 4996 target_configdirs=$libgcc
55ffb5ed
NN
4997 fi
4998fi
4999
5000# Quietly strip out all directories which aren't configurable in this tree.
5001# This relies on all configurable subdirectories being autoconfiscated, which
5002# is now the case.
23f6b2f9
PB
5003build_configdirs_all="$build_configdirs"
5004build_configdirs=
5005for i in ${build_configdirs_all} ; do
1c710c3c 5006 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
5007 if test -f ${srcdir}/$j/configure ; then
5008 build_configdirs="${build_configdirs} $i"
5009 fi
5010done
5011
55ffb5ed
NN
5012configdirs_all="$configdirs"
5013configdirs=
5014for i in ${configdirs_all} ; do
5015 if test -f ${srcdir}/$i/configure ; then
5016 configdirs="${configdirs} $i"
5017 fi
5018done
23f6b2f9 5019
55ffb5ed
NN
5020target_configdirs_all="$target_configdirs"
5021target_configdirs=
5022for i in ${target_configdirs_all} ; do
1c710c3c 5023 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
5024 if test -f ${srcdir}/$j/configure ; then
5025 target_configdirs="${target_configdirs} $i"
5026 fi
5027done
5028
5029# Produce a warning message for the subdirs we can't configure.
5030# This isn't especially interesting in the Cygnus tree, but in the individual
5031# FSF releases, it's important to let people know when their machine isn't
5032# supported by the one or two programs in a package.
5033
5034if test -n "${notsupp}" && test -z "${norecursion}" ; then
5035 # If $appdirs is non-empty, at least one of those directories must still
5036 # be configured, or we error out. (E.g., if the gas release supports a
5037 # specified target in some subdirs but not the gas subdir, we shouldn't
5038 # pretend that all is well.)
5039 if test -n "$appdirs" ; then
5040 for dir in $appdirs ; do
5041 if test -r $dir/Makefile.in ; then
5042 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5043 appdirs=""
5044 break
5045 fi
23f6b2f9 5046 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
5047 appdirs=""
5048 break
5049 fi
5050 fi
5051 done
5052 if test -n "$appdirs" ; then
5053 echo "*** This configuration is not supported by this package." 1>&2
5054 exit 1
5055 fi
5056 fi
5057 # Okay, some application will build, or we don't care to check. Still
5058 # notify of subdirs not getting built.
5059 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5060 echo " ${notsupp}" 1>&2
5061 echo " (Any other directories should still work fine.)" 1>&2
5062fi
5063
5064case "$host" in
5065 *msdosdjgpp*)
5066 enable_gdbtk=no ;;
5067esac
5068
c3a86da9
DJ
5069# To find our prefix, in gcc_cv_tool_prefix.
5070
5071# The user is always right.
5072if test "${PATH_SEPARATOR+set}" != set; then
5073 echo "#! /bin/sh" >conf$$.sh
5074 echo "exit 0" >>conf$$.sh
5075 chmod +x conf$$.sh
5076 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5077 PATH_SEPARATOR=';'
5078 else
5079 PATH_SEPARATOR=:
5080 fi
5081 rm -f conf$$.sh
5082fi
5083
5084
5085
5086if test "x$exec_prefix" = xNONE; then
5087 if test "x$prefix" = xNONE; then
5088 gcc_cv_tool_prefix=$ac_default_prefix
5089 else
5090 gcc_cv_tool_prefix=$prefix
5091 fi
5092else
5093 gcc_cv_tool_prefix=$exec_prefix
5094fi
5095
5096# If there is no compiler in the tree, use the PATH only. In any
5097# case, if there is no compiler in the tree nobody should use
5098# AS_FOR_TARGET and LD_FOR_TARGET.
5099if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5100 gcc_version=`cat $srcdir/gcc/BASE-VER`
5101 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5102 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5103 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5104 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5105 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5106 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5107else
5108 gcc_cv_tool_dirs=
5109fi
5110
5111if test x$build = x$target && test -n "$md_exec_prefix"; then
5112 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5113fi
5114
5115
5116
55ffb5ed
NN
5117copy_dirs=
5118
1c710c3c 5119
2aeb72e9 5120# Check whether --with-build-sysroot or --without-build-sysroot was given.
526635cb 5121if test "${with_build_sysroot+set}" = set; then
2aeb72e9
DD
5122 withval="$with_build_sysroot"
5123 if test x"$withval" != x ; then
526635cb
MM
5124 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5125 fi
5126else
5127 SYSROOT_CFLAGS_FOR_TARGET=
2aeb72e9 5128fi;
526635cb
MM
5129
5130
c8aea42c
PB
5131
5132# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5133if test "${with_debug_prefix_map+set}" = set; then
5134 withval="$with_debug_prefix_map"
5135 if test x"$withval" != x; then
5136 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5137 for debug_map in $withval; do
5138 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5139 done
5140 fi
5141else
5142 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5143fi;
5144
5145
55ffb5ed
NN
5146# Handle --with-headers=XXX. If the value is not "yes", the contents of
5147# the named directory are copied to $(tooldir)/sys-include.
5148if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5149 if test x${is_cross_compiler} = xno ; then
5150 echo 1>&2 '***' --with-headers is only supported when cross compiling
5151 exit 1
5152 fi
5153 if test x"${with_headers}" != xyes ; then
c3a86da9 5154 x=${gcc_cv_tool_prefix}
1c710c3c 5155 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5156 fi
5157fi
5158
5159# Handle --with-libs=XXX. If the value is not "yes", the contents of
5160# the name directories are copied to $(tooldir)/lib. Multiple directories
5161# are permitted.
5162if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5163 if test x${is_cross_compiler} = xno ; then
5164 echo 1>&2 '***' --with-libs is only supported when cross compiling
5165 exit 1
5166 fi
5167 if test x"${with_libs}" != xyes ; then
5168 # Copy the libraries in reverse order, so that files in the first named
5169 # library override files in subsequent libraries.
c3a86da9 5170 x=${gcc_cv_tool_prefix}
55ffb5ed 5171 for l in ${with_libs}; do
1c710c3c 5172 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5173 done
5174 fi
5175fi
5176
e8b05380
PB
5177# Set with_gnu_as and with_gnu_ld as appropriate.
5178#
5179# This is done by determining whether or not the appropriate directory
5180# is available, and by checking whether or not specific configurations
5181# have requested that this magic not happen.
1c710c3c
DJ
5182#
5183# The command line options always override the explicit settings in
e8b05380
PB
5184# configure.in, and the settings in configure.in override this magic.
5185#
1c710c3c 5186# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5187# want to do that, then you should use the --without-gnu-as and
5188# --without-gnu-ld options for the configure script.
5189
5190if test x${use_gnu_as} = x &&
5191 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5192 with_gnu_as=yes
5193 extra_host_args="$extra_host_args --with-gnu-as"
5194fi
5195
5196if test x${use_gnu_ld} = x &&
5197 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5198 with_gnu_ld=yes
5199 extra_host_args="$extra_host_args --with-gnu-ld"
5200fi
5201
5202# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5203# can detect this case.
5204
5205if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5206 with_newlib=yes
5207 extra_host_args="$extra_host_args --with-newlib"
5208fi
5209
55ffb5ed
NN
5210# Handle ${copy_dirs}
5211set fnord ${copy_dirs}
5212shift
5213while test $# != 0 ; do
5214 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5215 :
5216 else
5217 echo Copying $1 to $2
5218
5219 # Use the install script to create the directory and all required
5220 # parent directories.
5221 if test -d $2 ; then
5222 :
5223 else
5224 echo >config.temp
5225 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5226 fi
5227
5228 # Copy the directory, assuming we have tar.
5229 # FIXME: Should we use B in the second tar? Not all systems support it.
5230 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5231
5232 # It is the responsibility of the user to correctly adjust all
5233 # symlinks. If somebody can figure out how to handle them correctly
5234 # here, feel free to add the code.
5235
5236 echo $1 > $2/COPIED
5237 fi
5238 shift; shift
5239done
5240
e8b05380
PB
5241# Determine a target-dependent exec_prefix that the installed
5242# gcc will search in. Keep this list sorted by triplet, with
5243# the *-*-osname triplets last.
5244md_exec_prefix=
5245case "${target}" in
5246 alpha*-*-*vms*)
5247 md_exec_prefix=/gnu/lib/gcc-lib
5248 ;;
30b74385 5249 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
5250 md_exec_prefix=/dev/env/DJDIR/bin
5251 ;;
30b74385 5252 i[34567]86-*-sco3.2v5*)
e8b05380
PB
5253 if test $with_gnu_as = yes; then
5254 md_exec_prefix=/usr/gnu/bin
5255 else
5256 md_exec_prefix=/usr/ccs/bin/elf
5257 fi
5258 ;;
5259
5260 mn10300-*-* | \
5261 powerpc-*-chorusos* | \
5262 powerpc*-*-eabi* | \
5263 powerpc*-*-sysv* | \
5264 powerpc*-*-kaos* | \
5265 s390x-ibm-tpf*)
5266 md_exec_prefix=/usr/ccs/bin
5267 ;;
5268 sparc64-*-elf*)
5269 ;;
5270 v850*-*-*)
5271 md_exec_prefix=/usr/ccs/bin
5272 ;;
5273 xtensa-*-elf*)
5274 ;;
5275
5276 *-*-beos* | \
5277 *-*-elf* | \
5278 *-*-hpux* | \
5279 *-*-netware* | \
5280 *-*-nto-qnx* | \
5281 *-*-rtems* | \
5282 *-*-solaris2* | \
30b74385 5283 *-*-sysv[45]* | \
e8b05380
PB
5284 *-*-vxworks* | \
5285 *-wrs-windiss)
5286 md_exec_prefix=/usr/ccs/bin
5287 ;;
5288esac
5289
671aa708
NN
5290extra_arflags_for_target=
5291extra_nmflags_for_target=
5292extra_ranlibflags_for_target=
5293target_makefile_frag=/dev/null
5294case "${target}" in
3e19841a
PB
5295 mep*-*-*)
5296 target_makefile_frag="config/mt-mep"
5297 ;;
58e24147
AM
5298 spu-*-*)
5299 target_makefile_frag="config/mt-spu"
5300 ;;
4bf6c438
RS
5301 mips*-sde-elf*)
5302 target_makefile_frag="config/mt-sde"
5303 ;;
1ec3b87b
RS
5304 mipsisa*-*-elfoabi*)
5305 target_makefile_frag="config/mt-mips-elfoabi"
5306 ;;
61fec9ff 5307 *-*-netware*)
671aa708
NN
5308 target_makefile_frag="config/mt-netware"
5309 ;;
98a5bb3b
RM
5310 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5311 target_makefile_frag="config/mt-gnu"
671aa708
NN
5312 ;;
5313 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5314 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5315 # commands to handle both 32-bit and 64-bit objects. These flags are
5316 # harmless if we're using GNU nm or ar.
5317 extra_arflags_for_target=" -X32_64"
5318 extra_nmflags_for_target=" -B -X32_64"
5319 ;;
5320 *-*-darwin*)
5321 # ranlib from Darwin requires the -c flag to look at common symbols.
5322 extra_ranlibflags_for_target=" -c"
5323 ;;
5324 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5325 target_makefile_frag="config/mt-wince"
5326 ;;
5327esac
5328
5329alphaieee_frag=/dev/null
5330case $target in
5331 alpha*-*-*)
5332 # This just makes sure to use the -mieee option to build target libs.
5333 # This should probably be set individually by each library.
5334 alphaieee_frag="config/mt-alphaieee"
5335 ;;
5336esac
5337
5338# If --enable-target-optspace always use -Os instead of -O2 to build
5339# the target libraries, similarly if it is not specified, use -Os
5340# on selected platforms.
5341ospace_frag=/dev/null
5342case "${enable_target_optspace}:${target}" in
5343 yes:*)
5344 ospace_frag="config/mt-ospace"
5345 ;;
5346 :d30v-*)
5347 ospace_frag="config/mt-d30v"
5348 ;;
5349 :m32r-* | :d10v-* | :fr30-*)
5350 ospace_frag="config/mt-ospace"
5351 ;;
5352 no:* | :*)
5353 ;;
5354 *)
5355 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5356 ;;
5357esac
5358
671aa708
NN
5359# Default to using --with-stabs for certain targets.
5360if test x${with_stabs} = x ; then
5361 case "${target}" in
89a95129 5362 mips*-*-irix[56]*)
671aa708
NN
5363 ;;
5364 mips*-*-* | alpha*-*-osf*)
5365 with_stabs=yes;
5366 extra_host_args="${extra_host_args} --with-stabs"
5367 ;;
5368 esac
5369fi
5370
5371# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5372# them automatically.
5373case "${host}" in
1c710c3c 5374 hppa*64*-*-hpux11*)
671aa708
NN
5375 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5376 ;;
5377esac
5378
671aa708
NN
5379# Some systems (e.g., one of the i386-aix systems the gas testers are
5380# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5381tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5382build_tooldir=${tooldir}
5383
671aa708
NN
5384# Create a .gdbinit file which runs the one in srcdir
5385# and tells GDB to look there for source files.
5386
5387if test -r ${srcdir}/.gdbinit ; then
5388 case ${srcdir} in
5389 .) ;;
5390 *) cat > ./.gdbinit <<EOF
5391# ${NO_EDIT}
5392dir ${srcdir}
5393dir .
5394source ${srcdir}/.gdbinit
5395EOF
5396 ;;
5397 esac
5398fi
5399
671aa708
NN
5400# Make sure that the compiler is able to generate an executable. If it
5401# can't, we are probably in trouble. We don't care whether we can run the
5402# executable--we might be using a cross compiler--we only care whether it
5403# can be created. At this point the main configure script has set CC.
5404we_are_ok=no
5405echo "int main () { return 0; }" > conftest.c
5406${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5407if test $? = 0 ; then
5408 if test -s conftest || test -s conftest.exe ; then
5409 we_are_ok=yes
5410 fi
1c710c3c 5411fi
671aa708
NN
5412case $we_are_ok in
5413 no)
5414 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5415 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5416 rm -f conftest*
5417 exit 1
5418 ;;
5419esac
5420rm -f conftest*
5421
5422# The Solaris /usr/ucb/cc compiler does not appear to work.
5423case "${host}" in
5424 sparc-sun-solaris2*)
5425 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5426 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5427 could_use=
5428 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5429 if test -d /opt/cygnus/bin ; then
5430 if test "$could_use" = "" ; then
5431 could_use="/opt/cygnus/bin"
5432 else
5433 could_use="$could_use or /opt/cygnus/bin"
5434 fi
5435 fi
5436 if test "$could_use" = "" ; then
5437 echo "Warning: compilation may fail because you're using"
5438 echo "/usr/ucb/cc. You should change your PATH or CC "
5439 echo "variable and rerun configure."
5440 else
5441 echo "Warning: compilation may fail because you're using"
5442 echo "/usr/ucb/cc, when you should use the C compiler from"
5443 echo "$could_use. You should change your"
5444 echo "PATH or CC variable and rerun configure."
5445 fi
5446 fi
5447 ;;
5448esac
5449
671aa708
NN
5450case "${host}" in
5451 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5452 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
671aa708
NN
5453 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5454esac
5455
5456# Record target_configdirs and the configure arguments for target and
5457# build configuration in Makefile.
5458target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5459build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5460
671aa708
NN
5461# Determine whether gdb needs tk/tcl or not.
5462# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5463# and in that case we want gdb to be built without tk. Ugh!
5464# In fact I believe gdb is the *only* package directly dependent on tk,
5465# so we should be able to put the 'maybe's in unconditionally and
5466# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5467# 100% sure that that's safe though.
e914a571 5468
b4f96efe 5469gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5470case "$enable_gdbtk" in
5471 no)
5472 GDB_TK="" ;;
e914a571
AC
5473 yes)
5474 GDB_TK="${gdb_tk}" ;;
671aa708 5475 *)
e914a571
AC
5476 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5477 # distro. Eventually someone will fix this and move Insight, nee
5478 # gdbtk to a separate directory.
5479 if test -d ${srcdir}/gdb/gdbtk ; then
5480 GDB_TK="${gdb_tk}"
5481 else
5482 GDB_TK=""
5483 fi
5484 ;;
671aa708 5485esac
ef9db8d5
DJ
5486CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5487INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5488
60975492 5489# Strip out unwanted targets.
8b87bb96
NN
5490
5491# While at that, we remove Makefiles if we were started for recursive
5492# configuration, so that the top-level Makefile reconfigures them,
5493# like we used to do when configure itself was recursive.
8b87bb96 5494
60975492
PB
5495# Loop over modules. $extrasub must be used with care, limiting as
5496# much as possible the usage of range addresses. That's because autoconf
5497# splits the sed script to overcome limits in the number of commands,
5498# and relying on carefully-timed sed passes may turn out to be very hard
5499# to maintain later. In this particular case, you just have to be careful
5500# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5501
2aeb72e9 5502# Check whether --enable-bootstrap or --disable-bootstrap was given.
f516a7da 5503if test "${enable_bootstrap+set}" = set; then
2aeb72e9
DD
5504 enableval="$enable_bootstrap"
5505
f516a7da 5506else
ce521a9c 5507 enable_bootstrap=default
2aeb72e9 5508fi;
f516a7da 5509
ce521a9c
PB
5510# Issue errors and warnings for invalid/strange bootstrap combinations.
5511case "$configdirs" in
5512 *gcc*) have_compiler=yes ;;
5513 *) have_compiler=no ;;
5514esac
5515
5516case "$have_compiler:$host:$target:$enable_bootstrap" in
5517 *:*:*:no) ;;
5518
1ca26cd2 5519 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5520 # and we are in a native configuration.
5521 yes:$build:$build:default)
1ca26cd2 5522 enable_bootstrap=yes ;;
ce521a9c
PB
5523
5524 *:*:*:default)
5525 enable_bootstrap=no ;;
5526
5527 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5528 yes:$build:$build:yes)
ce521a9c
PB
5529 ;;
5530
5531 # Other configurations, but we have a compiler. Assume the user knows
5532 # what he's doing.
2d309510 5533 yes:*:*:yes)
1c710c3c
DJ
5534 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5535echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5536 ;;
5537
5538 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5539 no:*:*:yes)
1c710c3c
DJ
5540 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5541echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5542 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5543
5544 # Fail if wrong command line
5545 *)
1c710c3c
DJ
5546 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5547echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5548 { (exit 1); exit 1; }; }
ce521a9c
PB
5549 ;;
5550esac
5551
5552# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5553case "$enable_bootstrap" in
5554 yes)
5607edfd 5555 bootstrap_suffix=bootstrap ;;
f516a7da 5556 no)
5607edfd 5557 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
5558esac
5559
23f6b2f9 5560for module in ${build_configdirs} ; do
5607edfd
PB
5561 if test -z "${no_recursion}" \
5562 && test -f ${build_subdir}/${module}/Makefile; then
5563 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5564 rm -f ${build_subdir}/${module}/Makefile
5565 fi
5566 extrasub="$extrasub
5567/^@if build-$module\$/d
5568/^@endif build-$module\$/d
5569/^@if build-$module-$bootstrap_suffix\$/d
5570/^@endif build-$module-$bootstrap_suffix\$/d"
5571done
5572for module in ${configdirs} ; do
a6fbc1e2 5573 if test -z "${no_recursion}"; then
f063a9ed 5574 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
5575 if test -f ${file}; then
5576 echo 1>&2 "*** removing ${file} to force reconfigure"
5577 rm -f ${file}
5578 fi
5579 done
5607edfd
PB
5580 fi
5581 extrasub="$extrasub
5582/^@if $module\$/d
5583/^@endif $module\$/d
5584/^@if $module-$bootstrap_suffix\$/d
5585/^@endif $module-$bootstrap_suffix\$/d"
5586done
5587for module in ${target_configdirs} ; do
5588 if test -z "${no_recursion}" \
5589 && test -f ${target_subdir}/${module}/Makefile; then
5590 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5591 rm -f ${target_subdir}/${module}/Makefile
5592 fi
5593 extrasub="$extrasub
5594/^@if target-$module\$/d
5595/^@endif target-$module\$/d
5596/^@if target-$module-$bootstrap_suffix\$/d
5597/^@endif target-$module-$bootstrap_suffix\$/d"
5598done
5599
60975492
PB
5600extrasub="$extrasub
5601/^@if /,/^@endif /d"
671aa708
NN
5602
5603# Create the serialization dependencies. This uses a temporary file.
5604
2aeb72e9 5605# Check whether --enable-serial-configure or --disable-serial-configure was given.
ade82b16 5606if test "${enable_serial_configure+set}" = set; then
2aeb72e9 5607 enableval="$enable_serial_configure"
ade82b16 5608
2aeb72e9 5609fi;
ade82b16 5610
bf1d3e81
NN
5611case ${enable_serial_configure} in
5612 yes)
5613 enable_serial_build_configure=yes
5614 enable_serial_host_configure=yes
5615 enable_serial_target_configure=yes
5616 ;;
5617esac
5618
671aa708
NN
5619# These force 'configure's to be done one at a time, to avoid problems
5620# with contention over a shared config.cache.
5621rm -f serdep.tmp
ade82b16 5622echo '# serdep.tmp' > serdep.tmp
671aa708 5623olditem=
bf1d3e81 5624test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
5625for item in ${build_configdirs} ; do
5626 case ${olditem} in
5627 "") ;;
ade82b16 5628 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
5629 esac
5630 olditem=${item}
5631done
5632olditem=
bf1d3e81 5633test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
5634for item in ${configdirs} ; do
5635 case ${olditem} in
5636 "") ;;
ade82b16 5637 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
5638 esac
5639 olditem=${item}
5640done
5641olditem=
bf1d3e81 5642test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
5643for item in ${target_configdirs} ; do
5644 case ${olditem} in
5645 "") ;;
ade82b16 5646 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
5647 esac
5648 olditem=${item}
5649done
5650serialization_dependencies=serdep.tmp
5651
5652
ade82b16 5653# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
5654# target, nonopt, and variable assignments. These are the ones we
5655# might not want to pass down to subconfigures. Also strip
5656# program-prefix, program-suffix, and program-transform-name, so that
5657# we can pass down a consistent program-transform-name.
5658baseargs=
5659keep_next=no
5660skip_next=no
5661eval "set -- $ac_configure_args"
44bfc3ac
DJ
5662for ac_arg
5663do
1c710c3c
DJ
5664 if test X"$skip_next" = X"yes"; then
5665 skip_next=no
5666 continue
5667 fi
5668 if test X"$keep_next" = X"yes"; then
5669 case $ac_arg in
5670 *\'*)
5671 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5672 esac
5673 baseargs="$baseargs '$ac_arg'"
5674 keep_next=no
5675 continue
5676 fi
5677
5678 # Handle separated arguments. Based on the logic generated by
5679 # autoconf 2.59.
5680 case $ac_arg in
5681 *=* | --config-cache | -C | -disable-* | --disable-* \
5682 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5683 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5684 | -with-* | --with-* | -without-* | --without-* | --x)
5685 separate_arg=no
5686 ;;
5687 -*)
5688 separate_arg=yes
5689 ;;
5690 *)
5691 separate_arg=no
5692 ;;
5693 esac
5694
5695 case "$ac_arg" in
5696 --no*)
5697 continue
5698 ;;
5699 --c* | \
5700 --sr* | \
5701 --ho* | \
5702 --bu* | \
5703 --t* | \
5704 --program-* | \
5705 -cache_file* | \
5706 -srcdir* | \
5707 -host* | \
5708 -build* | \
5709 -target* | \
5710 -program-prefix* | \
5711 -program-suffix* | \
5712 -program-transform-name* )
5713 skip_next=$separate_arg
5714 continue
5715 ;;
5716 -*)
5717 # An option. Add it.
5718 case $ac_arg in
5719 *\'*)
5720 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5721 esac
5722 baseargs="$baseargs '$ac_arg'"
5723 keep_next=$separate_arg
5724 ;;
5725 *)
5726 # Either a variable assignment, or a nonopt (triplet). Don't
5727 # pass it down; let the Makefile handle this.
5728 continue
5729 ;;
5730 esac
5731done
5732# Remove the initial space we just introduced and, as these will be
5733# expanded by make, quote '$'.
5734baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 5735
43bb47c2
DJ
5736# Add in --program-transform-name, after --program-prefix and
5737# --program-suffix have been applied to it. Autoconf has already
5738# doubled dollar signs and backslashes in program_transform_name; we want
5739# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 5740# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
5741# Also, because we want to override the logic in subdir configure scripts to
5742# choose program_transform_name, replace any s,x,x, with s,y,y,.
5743sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5744${program_transform_name}
5745EOF_SED
5746gcc_transform_name=`cat conftestsed.out`
5747rm -f conftestsed.out
5748baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
5749if test "$silent" = yes; then
5750 baseargs="$baseargs --silent"
5751fi
43bb47c2 5752
671aa708
NN
5753# For the build-side libraries, we just need to pretend we're native,
5754# and not use the same cache file. Multilibs are neither needed nor
5755# desired.
e69bf64b 5756build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
5757
5758# For host modules, accept cache file option, or specification as blank.
5759case "${cache_file}" in
5760"") # empty
5761 cache_file_option="" ;;
5762/* | [A-Za-z]:[\\/]* ) # absolute path
5763 cache_file_option="--cache-file=${cache_file}" ;;
5764*) # relative path
5765 cache_file_option="--cache-file=../${cache_file}" ;;
5766esac
5767
09438bde
NN
5768# Host dirs don't like to share a cache file either, horribly enough.
5769# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 5770host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
5771
5772target_configargs=${baseargs}
5773
5774# Passing a --with-cross-host argument lets the target libraries know
5775# whether they are being built with a cross-compiler or being built
5776# native. However, it would be better to use other mechanisms to make the
5777# sorts of decisions they want to make on this basis. Please consider
5778# this option to be deprecated. FIXME.
5779if test x${is_cross_compiler} = xyes ; then
1c710c3c 5780 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
5781fi
5782
5783# Default to --enable-multilib.
5784if test x${enable_multilib} = x ; then
5785 target_configargs="--enable-multilib ${target_configargs}"
5786fi
5787
5788# Pass --with-newlib if appropriate. Note that target_configdirs has
5789# changed from the earlier setting of with_newlib.
5790if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5791 target_configargs="--with-newlib ${target_configargs}"
5792fi
5793
6b9eb62c
NN
5794# Different target subdirs use different values of certain variables
5795# (notably CXX). Worse, multilibs use *lots* of different values.
5796# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5797# it doesn't automatically accept command-line overrides of them.
5798# This means it's not safe for target subdirs to share a cache file,
5799# which is disgusting, but there you have it. Hopefully this can be
5800# fixed in future. It's still worthwhile to use a cache file for each
5801# directory. I think.
5802
bebcd931
MS
5803# Pass the appropriate --build, --host, --target and --cache-file arguments.
5804# We need to pass --target, as newer autoconf's requires consistency
5805# for target_alias and gcc doesn't manage it consistently.
e69bf64b 5806target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 5807
671aa708
NN
5808FLAGS_FOR_TARGET=
5809case " $target_configdirs " in
5810 *" newlib "*)
5811 case " $target_configargs " in
5812 *" --with-newlib "*)
5813 case "$target" in
5814 *-cygwin*)
aa8f1f57 5815 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
671aa708
NN
5816 esac
5817
5818 # If we're not building GCC, don't discard standard headers.
5819 if test -d ${srcdir}/gcc; then
5820 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5821
5822 if test "${build}" != "${host}"; then
5823 # On Canadian crosses, CC_FOR_TARGET will have already been set
5824 # by `configure', so we won't have an opportunity to add -Bgcc/
5825 # to it. This is right: we don't want to search that directory
5826 # for binaries, but we want the header files in there, so add
5827 # them explicitly.
215c351a 5828 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
5829
5830 # Someone might think of using the pre-installed headers on
5831 # Canadian crosses, in case the installed compiler is not fully
5832 # compatible with the compiler being built. In this case, it
5833 # would be better to flag an error than risking having
5834 # incompatible object files being constructed. We can't
5835 # guarantee that an error will be flagged, but let's hope the
5836 # compiler will do it, when presented with incompatible header
5837 # files.
5838 fi
5839 fi
5840
5841 case "${target}-${is_cross_compiler}" in
f2a0e225 5842 i[3456789]86-*-linux*-no)
671aa708
NN
5843 # Here host == target, so we don't need to build gcc,
5844 # so we don't want to discard standard headers.
5845 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5846 ;;
5847 *)
5848 # If we're building newlib, use its generic headers last, but search
5849 # for any libc-related directories first (so make it the last -B
5850 # switch).
5851 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
5852
5853 # If we're building libgloss, find the startup file, simulator library
5854 # and linker script.
5855 case " $target_configdirs " in
5856 *" libgloss "*)
5857 # Look for startup file, simulator library and maybe linker script.
5858 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5859 # Look for libnosys.a in case the target needs it.
5860 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5861 # Most targets have the linker script in the source directory.
5862 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5863 ;;
5864 esac
671aa708
NN
5865 ;;
5866 esac
5867 ;;
5868 esac
5869 ;;
5870esac
b91f0a41
CV
5871case "$target" in
5872*-mingw*)
5873 # Can't be handled as Cygwin above since Mingw does not use newlib.
5874 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
5875esac
671aa708 5876
6691a79e
ME
5877# Allow the user to override the flags for
5878# our build compiler if desired.
f019adc1
MF
5879if test x"${build}" = x"${host}" ; then
5880 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5881 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
5882 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
5883fi
6691a79e 5884
671aa708
NN
5885# On Canadian crosses, we'll be searching the right directories for
5886# the previously-installed cross compiler, so don't bother to add
5887# flags for directories within the install tree of the compiler
5888# being built; programs in there won't even run.
5889if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5890 # Search for pre-installed headers if nothing else fits.
9124bc53 5891 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
5892fi
5893
5894if test "x${use_gnu_ld}" = x &&
5895 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5896 # Arrange for us to find uninstalled linker scripts.
215c351a 5897 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
5898fi
5899
e88a2c09
DD
5900# Search for other target-specific linker scripts and such.
5901case "${target}" in
3e19841a
PB
5902 mep*)
5903 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5904 ;;
e88a2c09
DD
5905esac
5906
671aa708 5907# Makefile fragments.
7b61653a
PE
5908for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5909do
5910 eval fragval=\$$frag
5911 if test $fragval != /dev/null; then
5912 eval $frag=${srcdir}/$fragval
5913 fi
5914done
671aa708
NN
5915
5916
5917
5918
5919
5920# Miscellanea: directories, flags, etc.
5921
5922
5923
5924
5925
5926
5927
23f6b2f9 5928# Build module lists & subconfigure args.
671aa708
NN
5929
5930
5931
2abefe3d
PB
5932# Host module lists & subconfigure args.
5933
5934
5935
5936# Target module lists & subconfigure args.
5937
5938
5939
5940# Build tools.
5941
5942
5943
0999159b
PB
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
2abefe3d
PB
5958# Generate default definitions for YACC, M4, LEX and other programs that run
5959# on the build machine. These are used if the Makefile can't locate these
5960# programs in objdir.
5961MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5962
5963for ac_prog in 'bison -y' byacc yacc
5964do
1c710c3c 5965 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5966set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5967echo "$as_me:$LINENO: checking for $ac_word" >&5
5968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5969if test "${ac_cv_prog_YACC+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5971else
5972 if test -n "$YACC"; then
5973 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5974else
1c710c3c
DJ
5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976for as_dir in $PATH
5977do
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5982 ac_cv_prog_YACC="$ac_prog"
5983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 break 2
5985 fi
5986done
5987done
5988
2abefe3d
PB
5989fi
5990fi
1c710c3c 5991YACC=$ac_cv_prog_YACC
2abefe3d 5992if test -n "$YACC"; then
2aeb72e9
DD
5993 echo "$as_me:$LINENO: result: $YACC" >&5
5994echo "${ECHO_T}$YACC" >&6
2abefe3d 5995else
2aeb72e9
DD
5996 echo "$as_me:$LINENO: result: no" >&5
5997echo "${ECHO_T}no" >&6
2abefe3d
PB
5998fi
5999
1c710c3c 6000 test -n "$YACC" && break
2abefe3d
PB
6001done
6002test -n "$YACC" || YACC="$MISSING bison -y"
6003
6004case " $build_configdirs " in
6005 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6006 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6007esac
6008
6009for ac_prog in bison
6010do
1c710c3c 6011 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6012set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6013echo "$as_me:$LINENO: checking for $ac_word" >&5
6014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6015if test "${ac_cv_prog_BISON+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6017else
6018 if test -n "$BISON"; then
6019 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6020else
1c710c3c
DJ
6021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6028 ac_cv_prog_BISON="$ac_prog"
6029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6031 fi
6032done
6033done
6034
2abefe3d
PB
6035fi
6036fi
1c710c3c 6037BISON=$ac_cv_prog_BISON
2abefe3d 6038if test -n "$BISON"; then
2aeb72e9
DD
6039 echo "$as_me:$LINENO: result: $BISON" >&5
6040echo "${ECHO_T}$BISON" >&6
2abefe3d 6041else
2aeb72e9
DD
6042 echo "$as_me:$LINENO: result: no" >&5
6043echo "${ECHO_T}no" >&6
2abefe3d
PB
6044fi
6045
1c710c3c 6046 test -n "$BISON" && break
2abefe3d
PB
6047done
6048test -n "$BISON" || BISON="$MISSING bison"
6049
6050case " $build_configdirs " in
6051 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6052esac
6053
6054for ac_prog in gm4 gnum4 m4
6055do
1c710c3c 6056 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6057set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6058echo "$as_me:$LINENO: checking for $ac_word" >&5
6059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6060if test "${ac_cv_prog_M4+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6062else
6063 if test -n "$M4"; then
6064 ac_cv_prog_M4="$M4" # Let the user override the test.
6065else
1c710c3c
DJ
6066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067for as_dir in $PATH
6068do
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6073 ac_cv_prog_M4="$ac_prog"
6074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6076 fi
6077done
6078done
6079
2abefe3d
PB
6080fi
6081fi
1c710c3c 6082M4=$ac_cv_prog_M4
2abefe3d 6083if test -n "$M4"; then
2aeb72e9
DD
6084 echo "$as_me:$LINENO: result: $M4" >&5
6085echo "${ECHO_T}$M4" >&6
2abefe3d 6086else
2aeb72e9
DD
6087 echo "$as_me:$LINENO: result: no" >&5
6088echo "${ECHO_T}no" >&6
2abefe3d
PB
6089fi
6090
1c710c3c 6091 test -n "$M4" && break
2abefe3d
PB
6092done
6093test -n "$M4" || M4="$MISSING m4"
6094
6095case " $build_configdirs " in
6096 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6097esac
6098
6099for ac_prog in flex lex
6100do
1c710c3c 6101 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6102set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6103echo "$as_me:$LINENO: checking for $ac_word" >&5
6104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6105if test "${ac_cv_prog_LEX+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6107else
6108 if test -n "$LEX"; then
6109 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6110else
1c710c3c
DJ
6111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112for as_dir in $PATH
6113do
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6118 ac_cv_prog_LEX="$ac_prog"
6119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6121 fi
6122done
6123done
6124
2abefe3d
PB
6125fi
6126fi
1c710c3c 6127LEX=$ac_cv_prog_LEX
2abefe3d 6128if test -n "$LEX"; then
2aeb72e9
DD
6129 echo "$as_me:$LINENO: result: $LEX" >&5
6130echo "${ECHO_T}$LEX" >&6
2abefe3d 6131else
2aeb72e9
DD
6132 echo "$as_me:$LINENO: result: no" >&5
6133echo "${ECHO_T}no" >&6
2abefe3d
PB
6134fi
6135
1c710c3c 6136 test -n "$LEX" && break
2abefe3d
PB
6137done
6138test -n "$LEX" || LEX="$MISSING flex"
6139
6140case " $build_configdirs " in
6141 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6142 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6143esac
6144
6145for ac_prog in flex
6146do
1c710c3c 6147 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6148set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6149echo "$as_me:$LINENO: checking for $ac_word" >&5
6150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6151if test "${ac_cv_prog_FLEX+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6153else
6154 if test -n "$FLEX"; then
6155 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6156else
1c710c3c
DJ
6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH
6159do
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6164 ac_cv_prog_FLEX="$ac_prog"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6167 fi
6168done
6169done
6170
2abefe3d
PB
6171fi
6172fi
1c710c3c 6173FLEX=$ac_cv_prog_FLEX
2abefe3d 6174if test -n "$FLEX"; then
2aeb72e9
DD
6175 echo "$as_me:$LINENO: result: $FLEX" >&5
6176echo "${ECHO_T}$FLEX" >&6
2abefe3d 6177else
2aeb72e9
DD
6178 echo "$as_me:$LINENO: result: no" >&5
6179echo "${ECHO_T}no" >&6
2abefe3d
PB
6180fi
6181
1c710c3c 6182 test -n "$FLEX" && break
2abefe3d
PB
6183done
6184test -n "$FLEX" || FLEX="$MISSING flex"
6185
6186case " $build_configdirs " in
6187 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6188esac
6189
6190for ac_prog in makeinfo
6191do
1c710c3c 6192 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6193set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6194echo "$as_me:$LINENO: checking for $ac_word" >&5
6195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6196if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6198else
6199 if test -n "$MAKEINFO"; then
6200 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6201else
1c710c3c
DJ
6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6209 ac_cv_prog_MAKEINFO="$ac_prog"
6210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6212 fi
6213done
6214done
6215
2abefe3d
PB
6216fi
6217fi
1c710c3c 6218MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6219if test -n "$MAKEINFO"; then
2aeb72e9
DD
6220 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6221echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 6222else
2aeb72e9
DD
6223 echo "$as_me:$LINENO: result: no" >&5
6224echo "${ECHO_T}no" >&6
2abefe3d
PB
6225fi
6226
1c710c3c 6227 test -n "$MAKEINFO" && break
2abefe3d
PB
6228done
6229test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6230
6231case " $build_configdirs " in
6232 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6233 *)
6234
4fe7e755 6235 # For an installed makeinfo, we require it to be from texinfo 4.6 or
2abefe3d
PB
6236 # higher, else we use the "missing" dummy.
6237 if ${MAKEINFO} --version \
4fe7e755 6238 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
6239 :
6240 else
6241 MAKEINFO="$MISSING makeinfo"
6242 fi
6243 ;;
6244
6245esac
671aa708 6246
2abefe3d 6247# FIXME: expect and dejagnu may become build tools?
671aa708 6248
2abefe3d
PB
6249for ac_prog in expect
6250do
1c710c3c 6251 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6252set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6253echo "$as_me:$LINENO: checking for $ac_word" >&5
6254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6255if test "${ac_cv_prog_EXPECT+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6257else
6258 if test -n "$EXPECT"; then
6259 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6260else
1c710c3c
DJ
6261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262for as_dir in $PATH
6263do
6264 IFS=$as_save_IFS
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6268 ac_cv_prog_EXPECT="$ac_prog"
6269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 break 2
6271 fi
6272done
6273done
6274
2abefe3d
PB
6275fi
6276fi
1c710c3c 6277EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6278if test -n "$EXPECT"; then
2aeb72e9
DD
6279 echo "$as_me:$LINENO: result: $EXPECT" >&5
6280echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6281else
2aeb72e9
DD
6282 echo "$as_me:$LINENO: result: no" >&5
6283echo "${ECHO_T}no" >&6
2abefe3d 6284fi
671aa708 6285
1c710c3c 6286 test -n "$EXPECT" && break
2abefe3d
PB
6287done
6288test -n "$EXPECT" || EXPECT="expect"
671aa708 6289
2abefe3d
PB
6290case " $configdirs " in
6291 *" expect "*)
6292 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6293 ;;
6294esac
671aa708 6295
2abefe3d
PB
6296for ac_prog in runtest
6297do
1c710c3c 6298 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6299set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6300echo "$as_me:$LINENO: checking for $ac_word" >&5
6301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6302if test "${ac_cv_prog_RUNTEST+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6304else
6305 if test -n "$RUNTEST"; then
6306 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6307else
1c710c3c
DJ
6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6315 ac_cv_prog_RUNTEST="$ac_prog"
6316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6318 fi
6319done
6320done
6321
2abefe3d
PB
6322fi
6323fi
1c710c3c 6324RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6325if test -n "$RUNTEST"; then
2aeb72e9
DD
6326 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6327echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 6328else
2aeb72e9
DD
6329 echo "$as_me:$LINENO: result: no" >&5
6330echo "${ECHO_T}no" >&6
2abefe3d 6331fi
671aa708 6332
1c710c3c 6333 test -n "$RUNTEST" && break
2abefe3d
PB
6334done
6335test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6336
2abefe3d
PB
6337case " $configdirs " in
6338 *" dejagnu "*)
c394e891 6339 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6340 ;;
6341esac
671aa708
NN
6342
6343
671aa708 6344# Host tools.
ca9f4b81
AO
6345ncn_tool_prefix=
6346test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6347ncn_target_tool_prefix=
6348test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6349
278a7a38
AO
6350
6351
6352if test -n "$AR"; then
6353 ac_cv_prog_AR=$AR
6354elif test -n "$ac_cv_prog_AR"; then
6355 AR=$ac_cv_prog_AR
6356fi
6357
6358if test -n "$ac_cv_prog_AR"; then
6359 for ncn_progname in ar; do
6360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6361set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6362echo "$as_me:$LINENO: checking for $ac_word" >&5
6363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6364if test "${ac_cv_prog_AR+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6366else
6367 if test -n "$AR"; then
6368 ac_cv_prog_AR="$AR" # Let the user override the test.
6369else
6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH
6372do
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6377 ac_cv_prog_AR="${ncn_progname}"
6378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 break 2
6380 fi
6381done
6382done
6383
6384fi
6385fi
6386AR=$ac_cv_prog_AR
6387if test -n "$AR"; then
2aeb72e9
DD
6388 echo "$as_me:$LINENO: result: $AR" >&5
6389echo "${ECHO_T}$AR" >&6
278a7a38 6390else
2aeb72e9
DD
6391 echo "$as_me:$LINENO: result: no" >&5
6392echo "${ECHO_T}no" >&6
278a7a38
AO
6393fi
6394
6395 done
6396fi
6397
6398for ncn_progname in ar; do
2693c0b0
PB
6399 if test -n "$ncn_tool_prefix"; then
6400 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6401set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6402echo "$as_me:$LINENO: checking for $ac_word" >&5
6403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6404if test "${ac_cv_prog_AR+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6406else
6407 if test -n "$AR"; then
6408 ac_cv_prog_AR="$AR" # Let the user override the test.
6409else
1c710c3c
DJ
6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411for as_dir in $PATH
6412do
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6417 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 break 2
6420 fi
6421done
6422done
6423
ca9f4b81
AO
6424fi
6425fi
1c710c3c 6426AR=$ac_cv_prog_AR
ca9f4b81 6427if test -n "$AR"; then
2aeb72e9
DD
6428 echo "$as_me:$LINENO: result: $AR" >&5
6429echo "${ECHO_T}$AR" >&6
ca9f4b81 6430else
2aeb72e9
DD
6431 echo "$as_me:$LINENO: result: no" >&5
6432echo "${ECHO_T}no" >&6
ca9f4b81
AO
6433fi
6434
2693c0b0
PB
6435 fi
6436 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6438set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6439echo "$as_me:$LINENO: checking for $ac_word" >&5
6440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6441if test "${ac_cv_prog_AR+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6443else
2693c0b0 6444 if test -n "$AR"; then
af71363e
AS
6445 ac_cv_prog_AR="$AR" # Let the user override the test.
6446else
1c710c3c
DJ
6447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448for as_dir in $PATH
6449do
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6454 ac_cv_prog_AR="${ncn_progname}"
6455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6457 fi
6458done
6459done
6460
ca9f4b81
AO
6461fi
6462fi
1c710c3c 6463AR=$ac_cv_prog_AR
2693c0b0 6464if test -n "$AR"; then
2aeb72e9
DD
6465 echo "$as_me:$LINENO: result: $AR" >&5
6466echo "${ECHO_T}$AR" >&6
ca9f4b81 6467else
2aeb72e9
DD
6468 echo "$as_me:$LINENO: result: no" >&5
6469echo "${ECHO_T}no" >&6
ca9f4b81 6470fi
1c710c3c 6471
2693c0b0
PB
6472 fi
6473 test -n "$ac_cv_prog_AR" && break
6474done
6475
6476if test -z "$ac_cv_prog_AR" ; then
6477 set dummy ar
6478 if test $build = $host ; then
6479 AR="$2"
ca9f4b81 6480 else
2693c0b0 6481 AR="${ncn_tool_prefix}$2"
ca9f4b81 6482 fi
ca9f4b81
AO
6483fi
6484
278a7a38
AO
6485
6486
6487if test -n "$AS"; then
6488 ac_cv_prog_AS=$AS
6489elif test -n "$ac_cv_prog_AS"; then
6490 AS=$ac_cv_prog_AS
6491fi
6492
6493if test -n "$ac_cv_prog_AS"; then
6494 for ncn_progname in as; do
6495 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6496set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6497echo "$as_me:$LINENO: checking for $ac_word" >&5
6498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6499if test "${ac_cv_prog_AS+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6501else
6502 if test -n "$AS"; then
6503 ac_cv_prog_AS="$AS" # Let the user override the test.
6504else
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6512 ac_cv_prog_AS="${ncn_progname}"
6513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516done
6517done
6518
6519fi
6520fi
6521AS=$ac_cv_prog_AS
6522if test -n "$AS"; then
2aeb72e9
DD
6523 echo "$as_me:$LINENO: result: $AS" >&5
6524echo "${ECHO_T}$AS" >&6
278a7a38 6525else
2aeb72e9
DD
6526 echo "$as_me:$LINENO: result: no" >&5
6527echo "${ECHO_T}no" >&6
278a7a38
AO
6528fi
6529
6530 done
6531fi
6532
6533for ncn_progname in as; do
2693c0b0
PB
6534 if test -n "$ncn_tool_prefix"; then
6535 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6536set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6537echo "$as_me:$LINENO: checking for $ac_word" >&5
6538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6539if test "${ac_cv_prog_AS+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6541else
6542 if test -n "$AS"; then
6543 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6544else
1c710c3c
DJ
6545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6552 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
6555 fi
6556done
6557done
6558
ca9f4b81
AO
6559fi
6560fi
1c710c3c 6561AS=$ac_cv_prog_AS
ca9f4b81 6562if test -n "$AS"; then
2aeb72e9
DD
6563 echo "$as_me:$LINENO: result: $AS" >&5
6564echo "${ECHO_T}$AS" >&6
ca9f4b81 6565else
2aeb72e9
DD
6566 echo "$as_me:$LINENO: result: no" >&5
6567echo "${ECHO_T}no" >&6
ca9f4b81
AO
6568fi
6569
2693c0b0
PB
6570 fi
6571 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6573set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6574echo "$as_me:$LINENO: checking for $ac_word" >&5
6575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6576if test "${ac_cv_prog_AS+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6578else
2693c0b0
PB
6579 if test -n "$AS"; then
6580 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 6581else
1c710c3c
DJ
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6589 ac_cv_prog_AS="${ncn_progname}"
6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6592 fi
6593done
6594done
6595
ca9f4b81
AO
6596fi
6597fi
1c710c3c 6598AS=$ac_cv_prog_AS
2693c0b0 6599if test -n "$AS"; then
2aeb72e9
DD
6600 echo "$as_me:$LINENO: result: $AS" >&5
6601echo "${ECHO_T}$AS" >&6
ca9f4b81 6602else
2aeb72e9
DD
6603 echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6
ca9f4b81 6605fi
1c710c3c 6606
2693c0b0
PB
6607 fi
6608 test -n "$ac_cv_prog_AS" && break
6609done
6610
6611if test -z "$ac_cv_prog_AS" ; then
6612 set dummy as
6613 if test $build = $host ; then
6614 AS="$2"
ca9f4b81 6615 else
2693c0b0 6616 AS="${ncn_tool_prefix}$2"
ca9f4b81 6617 fi
ca9f4b81
AO
6618fi
6619
278a7a38
AO
6620
6621
6622if test -n "$DLLTOOL"; then
6623 ac_cv_prog_DLLTOOL=$DLLTOOL
6624elif test -n "$ac_cv_prog_DLLTOOL"; then
6625 DLLTOOL=$ac_cv_prog_DLLTOOL
6626fi
6627
6628if test -n "$ac_cv_prog_DLLTOOL"; then
6629 for ncn_progname in dlltool; do
6630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6631set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6632echo "$as_me:$LINENO: checking for $ac_word" >&5
6633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6634if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6636else
6637 if test -n "$DLLTOOL"; then
6638 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6639else
6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6647 ac_cv_prog_DLLTOOL="${ncn_progname}"
6648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6650 fi
6651done
6652done
6653
6654fi
6655fi
6656DLLTOOL=$ac_cv_prog_DLLTOOL
6657if test -n "$DLLTOOL"; then
2aeb72e9
DD
6658 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6659echo "${ECHO_T}$DLLTOOL" >&6
278a7a38 6660else
2aeb72e9
DD
6661 echo "$as_me:$LINENO: result: no" >&5
6662echo "${ECHO_T}no" >&6
278a7a38
AO
6663fi
6664
6665 done
6666fi
6667
6668for ncn_progname in dlltool; do
2693c0b0
PB
6669 if test -n "$ncn_tool_prefix"; then
6670 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6671set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6672echo "$as_me:$LINENO: checking for $ac_word" >&5
6673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6674if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6676else
6677 if test -n "$DLLTOOL"; then
6678 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6679else
1c710c3c
DJ
6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681for as_dir in $PATH
6682do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6687 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6690 fi
6691done
6692done
6693
ca9f4b81
AO
6694fi
6695fi
1c710c3c 6696DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 6697if test -n "$DLLTOOL"; then
2aeb72e9
DD
6698 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6699echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6700else
2aeb72e9
DD
6701 echo "$as_me:$LINENO: result: no" >&5
6702echo "${ECHO_T}no" >&6
ca9f4b81
AO
6703fi
6704
2693c0b0
PB
6705 fi
6706 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6708set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6709echo "$as_me:$LINENO: checking for $ac_word" >&5
6710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6711if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6713else
2693c0b0
PB
6714 if test -n "$DLLTOOL"; then
6715 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 6716else
1c710c3c
DJ
6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6724 ac_cv_prog_DLLTOOL="${ncn_progname}"
6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728done
6729done
6730
ca9f4b81
AO
6731fi
6732fi
1c710c3c 6733DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 6734if test -n "$DLLTOOL"; then
2aeb72e9
DD
6735 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6736echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6737else
2aeb72e9
DD
6738 echo "$as_me:$LINENO: result: no" >&5
6739echo "${ECHO_T}no" >&6
ca9f4b81 6740fi
1c710c3c 6741
2693c0b0
PB
6742 fi
6743 test -n "$ac_cv_prog_DLLTOOL" && break
6744done
6745
6746if test -z "$ac_cv_prog_DLLTOOL" ; then
6747 set dummy dlltool
6748 if test $build = $host ; then
6749 DLLTOOL="$2"
ca9f4b81 6750 else
2693c0b0 6751 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 6752 fi
ca9f4b81
AO
6753fi
6754
278a7a38
AO
6755
6756
6757if test -n "$LD"; then
6758 ac_cv_prog_LD=$LD
6759elif test -n "$ac_cv_prog_LD"; then
6760 LD=$ac_cv_prog_LD
6761fi
6762
6763if test -n "$ac_cv_prog_LD"; then
6764 for ncn_progname in ld; do
6765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6766set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6767echo "$as_me:$LINENO: checking for $ac_word" >&5
6768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6769if test "${ac_cv_prog_LD+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771else
6772 if test -n "$LD"; then
6773 ac_cv_prog_LD="$LD" # Let the user override the test.
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6782 ac_cv_prog_LD="${ncn_progname}"
6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786done
6787done
6788
6789fi
6790fi
6791LD=$ac_cv_prog_LD
6792if test -n "$LD"; then
2aeb72e9
DD
6793 echo "$as_me:$LINENO: result: $LD" >&5
6794echo "${ECHO_T}$LD" >&6
278a7a38 6795else
2aeb72e9
DD
6796 echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6
278a7a38
AO
6798fi
6799
6800 done
6801fi
6802
6803for ncn_progname in ld; do
2693c0b0
PB
6804 if test -n "$ncn_tool_prefix"; then
6805 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6806set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6807echo "$as_me:$LINENO: checking for $ac_word" >&5
6808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6809if test "${ac_cv_prog_LD+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6811else
6812 if test -n "$LD"; then
6813 ac_cv_prog_LD="$LD" # Let the user override the test.
6814else
1c710c3c
DJ
6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6822 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 break 2
6825 fi
6826done
6827done
6828
ca9f4b81
AO
6829fi
6830fi
1c710c3c 6831LD=$ac_cv_prog_LD
ca9f4b81 6832if test -n "$LD"; then
2aeb72e9
DD
6833 echo "$as_me:$LINENO: result: $LD" >&5
6834echo "${ECHO_T}$LD" >&6
ca9f4b81 6835else
2aeb72e9
DD
6836 echo "$as_me:$LINENO: result: no" >&5
6837echo "${ECHO_T}no" >&6
ca9f4b81
AO
6838fi
6839
2693c0b0
PB
6840 fi
6841 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6843set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6844echo "$as_me:$LINENO: checking for $ac_word" >&5
6845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6846if test "${ac_cv_prog_LD+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6848else
2693c0b0
PB
6849 if test -n "$LD"; then
6850 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 6851else
1c710c3c
DJ
6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853for as_dir in $PATH
6854do
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6859 ac_cv_prog_LD="${ncn_progname}"
6860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 break 2
6862 fi
6863done
6864done
6865
ca9f4b81
AO
6866fi
6867fi
1c710c3c 6868LD=$ac_cv_prog_LD
2693c0b0 6869if test -n "$LD"; then
2aeb72e9
DD
6870 echo "$as_me:$LINENO: result: $LD" >&5
6871echo "${ECHO_T}$LD" >&6
ca9f4b81 6872else
2aeb72e9
DD
6873 echo "$as_me:$LINENO: result: no" >&5
6874echo "${ECHO_T}no" >&6
ca9f4b81 6875fi
1c710c3c 6876
2693c0b0
PB
6877 fi
6878 test -n "$ac_cv_prog_LD" && break
6879done
6880
6881if test -z "$ac_cv_prog_LD" ; then
6882 set dummy ld
6883 if test $build = $host ; then
6884 LD="$2"
ca9f4b81 6885 else
2693c0b0 6886 LD="${ncn_tool_prefix}$2"
ca9f4b81 6887 fi
ca9f4b81
AO
6888fi
6889
278a7a38
AO
6890
6891
6892if test -n "$LIPO"; then
6893 ac_cv_prog_LIPO=$LIPO
6894elif test -n "$ac_cv_prog_LIPO"; then
6895 LIPO=$ac_cv_prog_LIPO
6896fi
6897
6898if test -n "$ac_cv_prog_LIPO"; then
6899 for ncn_progname in lipo; do
6900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6901set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6902echo "$as_me:$LINENO: checking for $ac_word" >&5
6903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6904if test "${ac_cv_prog_LIPO+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907 if test -n "$LIPO"; then
6908 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6917 ac_cv_prog_LIPO="${ncn_progname}"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921done
6922done
6923
6924fi
6925fi
6926LIPO=$ac_cv_prog_LIPO
6927if test -n "$LIPO"; then
2aeb72e9
DD
6928 echo "$as_me:$LINENO: result: $LIPO" >&5
6929echo "${ECHO_T}$LIPO" >&6
278a7a38 6930else
2aeb72e9
DD
6931 echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6
278a7a38
AO
6933fi
6934
6935 done
6936fi
6937
6938for ncn_progname in lipo; do
2abefe3d
PB
6939 if test -n "$ncn_tool_prefix"; then
6940 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6941set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6942echo "$as_me:$LINENO: checking for $ac_word" >&5
6943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6944if test "${ac_cv_prog_LIPO+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6946else
6947 if test -n "$LIPO"; then
6948 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6949else
1c710c3c
DJ
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6957 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6960 fi
6961done
6962done
6963
2abefe3d
PB
6964fi
6965fi
1c710c3c 6966LIPO=$ac_cv_prog_LIPO
2abefe3d 6967if test -n "$LIPO"; then
2aeb72e9
DD
6968 echo "$as_me:$LINENO: result: $LIPO" >&5
6969echo "${ECHO_T}$LIPO" >&6
2abefe3d 6970else
2aeb72e9
DD
6971 echo "$as_me:$LINENO: result: no" >&5
6972echo "${ECHO_T}no" >&6
2abefe3d
PB
6973fi
6974
6975 fi
6976 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6978set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6979echo "$as_me:$LINENO: checking for $ac_word" >&5
6980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6981if test "${ac_cv_prog_LIPO+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6983else
6984 if test -n "$LIPO"; then
6985 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6986else
1c710c3c
DJ
6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988for as_dir in $PATH
6989do
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6994 ac_cv_prog_LIPO="${ncn_progname}"
6995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 break 2
6997 fi
6998done
6999done
7000
2abefe3d
PB
7001fi
7002fi
1c710c3c 7003LIPO=$ac_cv_prog_LIPO
2abefe3d 7004if test -n "$LIPO"; then
2aeb72e9
DD
7005 echo "$as_me:$LINENO: result: $LIPO" >&5
7006echo "${ECHO_T}$LIPO" >&6
2abefe3d 7007else
2aeb72e9
DD
7008 echo "$as_me:$LINENO: result: no" >&5
7009echo "${ECHO_T}no" >&6
2abefe3d 7010fi
1c710c3c 7011
2abefe3d
PB
7012 fi
7013 test -n "$ac_cv_prog_LIPO" && break
7014done
7015
7016if test -z "$ac_cv_prog_LIPO" ; then
7017 set dummy lipo
7018 if test $build = $host ; then
7019 LIPO="$2"
7020 else
7021 LIPO="${ncn_tool_prefix}$2"
7022 fi
7023fi
7024
278a7a38
AO
7025
7026
7027if test -n "$NM"; then
7028 ac_cv_prog_NM=$NM
7029elif test -n "$ac_cv_prog_NM"; then
7030 NM=$ac_cv_prog_NM
7031fi
7032
7033if test -n "$ac_cv_prog_NM"; then
7034 for ncn_progname in nm; do
7035 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7036set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7037echo "$as_me:$LINENO: checking for $ac_word" >&5
7038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7039if test "${ac_cv_prog_NM+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7041else
7042 if test -n "$NM"; then
7043 ac_cv_prog_NM="$NM" # Let the user override the test.
7044else
1c710c3c
DJ
7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7052 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
7053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056done
7057done
7058
ca9f4b81
AO
7059fi
7060fi
1c710c3c 7061NM=$ac_cv_prog_NM
ca9f4b81 7062if test -n "$NM"; then
2aeb72e9
DD
7063 echo "$as_me:$LINENO: result: $NM" >&5
7064echo "${ECHO_T}$NM" >&6
ca9f4b81 7065else
2aeb72e9
DD
7066 echo "$as_me:$LINENO: result: no" >&5
7067echo "${ECHO_T}no" >&6
ca9f4b81
AO
7068fi
7069
278a7a38
AO
7070 done
7071fi
7072
7073for ncn_progname in nm; do
7074 if test -n "$ncn_tool_prefix"; then
7075 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7076set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7077echo "$as_me:$LINENO: checking for $ac_word" >&5
7078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7079if test "${ac_cv_prog_NM+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7081else
2693c0b0
PB
7082 if test -n "$NM"; then
7083 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 7084else
1c710c3c
DJ
7085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086for as_dir in $PATH
7087do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7092 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
7093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096done
7097done
7098
ca9f4b81
AO
7099fi
7100fi
1c710c3c 7101NM=$ac_cv_prog_NM
2693c0b0 7102if test -n "$NM"; then
2aeb72e9
DD
7103 echo "$as_me:$LINENO: result: $NM" >&5
7104echo "${ECHO_T}$NM" >&6
ca9f4b81 7105else
2aeb72e9
DD
7106 echo "$as_me:$LINENO: result: no" >&5
7107echo "${ECHO_T}no" >&6
ca9f4b81 7108fi
1c710c3c 7109
2693c0b0 7110 fi
278a7a38
AO
7111 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7113set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7114echo "$as_me:$LINENO: checking for $ac_word" >&5
7115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7116if test "${ac_cv_prog_NM+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119 if test -n "$NM"; then
7120 ac_cv_prog_NM="$NM" # Let the user override the test.
7121else
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7129 ac_cv_prog_NM="${ncn_progname}"
7130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 break 2
7132 fi
7133done
7134done
7135
7136fi
7137fi
7138NM=$ac_cv_prog_NM
7139if test -n "$NM"; then
2aeb72e9
DD
7140 echo "$as_me:$LINENO: result: $NM" >&5
7141echo "${ECHO_T}$NM" >&6
278a7a38 7142else
2aeb72e9
DD
7143 echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6
278a7a38
AO
7145fi
7146
7147 fi
7148 test -n "$ac_cv_prog_NM" && break
7149done
7150
7151if test -z "$ac_cv_prog_NM" ; then
7152 set dummy nm
7153 if test $build = $host ; then
7154 NM="$2"
7155 else
7156 NM="${ncn_tool_prefix}$2"
7157 fi
7158fi
7159
7160
7161
7162if test -n "$RANLIB"; then
7163 ac_cv_prog_RANLIB=$RANLIB
7164elif test -n "$ac_cv_prog_RANLIB"; then
7165 RANLIB=$ac_cv_prog_RANLIB
7166fi
7167
7168if test -n "$ac_cv_prog_RANLIB"; then
7169 for ncn_progname in ranlib; do
7170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7171set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7172echo "$as_me:$LINENO: checking for $ac_word" >&5
7173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7174if test "${ac_cv_prog_RANLIB+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177 if test -n "$RANLIB"; then
7178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7179else
7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181for as_dir in $PATH
7182do
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7187 ac_cv_prog_RANLIB="${ncn_progname}"
7188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 break 2
7190 fi
7191done
7192done
7193
7194fi
7195fi
7196RANLIB=$ac_cv_prog_RANLIB
7197if test -n "$RANLIB"; then
2aeb72e9
DD
7198 echo "$as_me:$LINENO: result: $RANLIB" >&5
7199echo "${ECHO_T}$RANLIB" >&6
278a7a38 7200else
2aeb72e9
DD
7201 echo "$as_me:$LINENO: result: no" >&5
7202echo "${ECHO_T}no" >&6
278a7a38
AO
7203fi
7204
7205 done
7206fi
ca9f4b81 7207
278a7a38 7208for ncn_progname in ranlib; do
2693c0b0
PB
7209 if test -n "$ncn_tool_prefix"; then
7210 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7211set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7212echo "$as_me:$LINENO: checking for $ac_word" >&5
7213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7214if test "${ac_cv_prog_RANLIB+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7216else
7217 if test -n "$RANLIB"; then
7218 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7219else
1c710c3c
DJ
7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7227 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 break 2
7230 fi
7231done
7232done
7233
ca9f4b81
AO
7234fi
7235fi
1c710c3c 7236RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7237if test -n "$RANLIB"; then
2aeb72e9
DD
7238 echo "$as_me:$LINENO: result: $RANLIB" >&5
7239echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7240else
2aeb72e9
DD
7241 echo "$as_me:$LINENO: result: no" >&5
7242echo "${ECHO_T}no" >&6
ca9f4b81
AO
7243fi
7244
2693c0b0
PB
7245 fi
7246 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7248set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7249echo "$as_me:$LINENO: checking for $ac_word" >&5
7250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7251if test "${ac_cv_prog_RANLIB+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7253else
2693c0b0
PB
7254 if test -n "$RANLIB"; then
7255 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7256else
1c710c3c
DJ
7257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258for as_dir in $PATH
7259do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7264 ac_cv_prog_RANLIB="${ncn_progname}"
7265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 break 2
7267 fi
7268done
7269done
7270
ca9f4b81
AO
7271fi
7272fi
1c710c3c 7273RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7274if test -n "$RANLIB"; then
2aeb72e9
DD
7275 echo "$as_me:$LINENO: result: $RANLIB" >&5
7276echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7277else
2aeb72e9
DD
7278 echo "$as_me:$LINENO: result: no" >&5
7279echo "${ECHO_T}no" >&6
ca9f4b81 7280fi
1c710c3c 7281
ca9f4b81 7282 fi
2693c0b0
PB
7283 test -n "$ac_cv_prog_RANLIB" && break
7284done
7285
7286if test -z "$ac_cv_prog_RANLIB" ; then
7287 RANLIB=":"
ca9f4b81
AO
7288fi
7289
278a7a38
AO
7290
7291
7292if test -n "$STRIP"; then
7293 ac_cv_prog_STRIP=$STRIP
7294elif test -n "$ac_cv_prog_STRIP"; then
7295 STRIP=$ac_cv_prog_STRIP
7296fi
7297
7298if test -n "$ac_cv_prog_STRIP"; then
7299 for ncn_progname in strip; do
7300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7301set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7302echo "$as_me:$LINENO: checking for $ac_word" >&5
7303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7304if test "${ac_cv_prog_STRIP+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7306else
7307 if test -n "$STRIP"; then
7308 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7317 ac_cv_prog_STRIP="${ncn_progname}"
7318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321done
7322done
7323
7324fi
7325fi
7326STRIP=$ac_cv_prog_STRIP
7327if test -n "$STRIP"; then
2aeb72e9
DD
7328 echo "$as_me:$LINENO: result: $STRIP" >&5
7329echo "${ECHO_T}$STRIP" >&6
278a7a38 7330else
2aeb72e9
DD
7331 echo "$as_me:$LINENO: result: no" >&5
7332echo "${ECHO_T}no" >&6
278a7a38
AO
7333fi
7334
7335 done
7336fi
7337
7338for ncn_progname in strip; do
2abefe3d
PB
7339 if test -n "$ncn_tool_prefix"; then
7340 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7341set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7342echo "$as_me:$LINENO: checking for $ac_word" >&5
7343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7344if test "${ac_cv_prog_STRIP+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7346else
7347 if test -n "$STRIP"; then
7348 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7349else
1c710c3c
DJ
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7357 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361done
7362done
7363
2abefe3d
PB
7364fi
7365fi
1c710c3c 7366STRIP=$ac_cv_prog_STRIP
2abefe3d 7367if test -n "$STRIP"; then
2aeb72e9
DD
7368 echo "$as_me:$LINENO: result: $STRIP" >&5
7369echo "${ECHO_T}$STRIP" >&6
2abefe3d 7370else
2aeb72e9
DD
7371 echo "$as_me:$LINENO: result: no" >&5
7372echo "${ECHO_T}no" >&6
2abefe3d
PB
7373fi
7374
7375 fi
7376 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7378set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7379echo "$as_me:$LINENO: checking for $ac_word" >&5
7380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7381if test "${ac_cv_prog_STRIP+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7383else
7384 if test -n "$STRIP"; then
7385 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7386else
1c710c3c
DJ
7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7394 ac_cv_prog_STRIP="${ncn_progname}"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398done
7399done
7400
2abefe3d
PB
7401fi
7402fi
1c710c3c 7403STRIP=$ac_cv_prog_STRIP
2abefe3d 7404if test -n "$STRIP"; then
2aeb72e9
DD
7405 echo "$as_me:$LINENO: result: $STRIP" >&5
7406echo "${ECHO_T}$STRIP" >&6
2abefe3d 7407else
2aeb72e9
DD
7408 echo "$as_me:$LINENO: result: no" >&5
7409echo "${ECHO_T}no" >&6
2abefe3d 7410fi
1c710c3c 7411
2abefe3d
PB
7412 fi
7413 test -n "$ac_cv_prog_STRIP" && break
7414done
7415
7416if test -z "$ac_cv_prog_STRIP" ; then
7417 STRIP=":"
7418fi
7419
278a7a38
AO
7420
7421
7422if test -n "$WINDRES"; then
7423 ac_cv_prog_WINDRES=$WINDRES
7424elif test -n "$ac_cv_prog_WINDRES"; then
7425 WINDRES=$ac_cv_prog_WINDRES
7426fi
7427
7428if test -n "$ac_cv_prog_WINDRES"; then
7429 for ncn_progname in windres; do
7430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7431set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7432echo "$as_me:$LINENO: checking for $ac_word" >&5
7433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7434if test "${ac_cv_prog_WINDRES+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436else
7437 if test -n "$WINDRES"; then
7438 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7439else
7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7447 ac_cv_prog_WINDRES="${ncn_progname}"
7448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2
7450 fi
7451done
7452done
7453
7454fi
7455fi
7456WINDRES=$ac_cv_prog_WINDRES
7457if test -n "$WINDRES"; then
2aeb72e9
DD
7458 echo "$as_me:$LINENO: result: $WINDRES" >&5
7459echo "${ECHO_T}$WINDRES" >&6
278a7a38 7460else
2aeb72e9
DD
7461 echo "$as_me:$LINENO: result: no" >&5
7462echo "${ECHO_T}no" >&6
278a7a38
AO
7463fi
7464
7465 done
7466fi
7467
7468for ncn_progname in windres; do
2693c0b0
PB
7469 if test -n "$ncn_tool_prefix"; then
7470 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7471set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7472echo "$as_me:$LINENO: checking for $ac_word" >&5
7473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7474if test "${ac_cv_prog_WINDRES+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7476else
7477 if test -n "$WINDRES"; then
7478 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7479else
1c710c3c
DJ
7480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7487 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7490 fi
7491done
7492done
7493
ca9f4b81
AO
7494fi
7495fi
1c710c3c 7496WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 7497if test -n "$WINDRES"; then
2aeb72e9
DD
7498 echo "$as_me:$LINENO: result: $WINDRES" >&5
7499echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7500else
2aeb72e9
DD
7501 echo "$as_me:$LINENO: result: no" >&5
7502echo "${ECHO_T}no" >&6
ca9f4b81
AO
7503fi
7504
2693c0b0
PB
7505 fi
7506 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7508set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7509echo "$as_me:$LINENO: checking for $ac_word" >&5
7510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7511if test "${ac_cv_prog_WINDRES+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7513else
2693c0b0
PB
7514 if test -n "$WINDRES"; then
7515 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 7516else
1c710c3c
DJ
7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518for as_dir in $PATH
7519do
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7524 ac_cv_prog_WINDRES="${ncn_progname}"
7525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 break 2
7527 fi
7528done
7529done
7530
ca9f4b81
AO
7531fi
7532fi
1c710c3c 7533WINDRES=$ac_cv_prog_WINDRES
2693c0b0 7534if test -n "$WINDRES"; then
2aeb72e9
DD
7535 echo "$as_me:$LINENO: result: $WINDRES" >&5
7536echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7537else
2aeb72e9
DD
7538 echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6
ca9f4b81 7540fi
1c710c3c 7541
2693c0b0
PB
7542 fi
7543 test -n "$ac_cv_prog_WINDRES" && break
7544done
7545
7546if test -z "$ac_cv_prog_WINDRES" ; then
7547 set dummy windres
7548 if test $build = $host ; then
7549 WINDRES="$2"
ca9f4b81 7550 else
2693c0b0 7551 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 7552 fi
ca9f4b81
AO
7553fi
7554
278a7a38
AO
7555
7556
901119ae
KT
7557if test -n "$WINDMC"; then
7558 ac_cv_prog_WINDMC=$WINDMC
7559elif test -n "$ac_cv_prog_WINDMC"; then
7560 WINDMC=$ac_cv_prog_WINDMC
7561fi
7562
7563if test -n "$ac_cv_prog_WINDMC"; then
7564 for ncn_progname in windmc; do
7565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7566set dummy ${ncn_progname}; ac_word=$2
7567echo "$as_me:$LINENO: checking for $ac_word" >&5
7568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7569if test "${ac_cv_prog_WINDMC+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572 if test -n "$WINDMC"; then
7573 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7574else
7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582 ac_cv_prog_WINDMC="${ncn_progname}"
7583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586done
7587done
7588
7589fi
7590fi
7591WINDMC=$ac_cv_prog_WINDMC
7592if test -n "$WINDMC"; then
7593 echo "$as_me:$LINENO: result: $WINDMC" >&5
7594echo "${ECHO_T}$WINDMC" >&6
7595else
7596 echo "$as_me:$LINENO: result: no" >&5
7597echo "${ECHO_T}no" >&6
7598fi
7599
7600 done
7601fi
7602
7603for ncn_progname in windmc; do
7604 if test -n "$ncn_tool_prefix"; then
7605 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7606set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7607echo "$as_me:$LINENO: checking for $ac_word" >&5
7608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7609if test "${ac_cv_prog_WINDMC+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7611else
7612 if test -n "$WINDMC"; then
7613 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7614else
7615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7622 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7625 fi
7626done
7627done
7628
7629fi
7630fi
7631WINDMC=$ac_cv_prog_WINDMC
7632if test -n "$WINDMC"; then
7633 echo "$as_me:$LINENO: result: $WINDMC" >&5
7634echo "${ECHO_T}$WINDMC" >&6
7635else
7636 echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6
7638fi
7639
7640 fi
7641 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7643set dummy ${ncn_progname}; ac_word=$2
7644echo "$as_me:$LINENO: checking for $ac_word" >&5
7645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7646if test "${ac_cv_prog_WINDMC+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7648else
7649 if test -n "$WINDMC"; then
7650 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7651else
7652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653for as_dir in $PATH
7654do
7655 IFS=$as_save_IFS
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659 ac_cv_prog_WINDMC="${ncn_progname}"
7660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 break 2
7662 fi
7663done
7664done
7665
7666fi
7667fi
7668WINDMC=$ac_cv_prog_WINDMC
7669if test -n "$WINDMC"; then
7670 echo "$as_me:$LINENO: result: $WINDMC" >&5
7671echo "${ECHO_T}$WINDMC" >&6
7672else
7673 echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6
7675fi
7676
7677 fi
7678 test -n "$ac_cv_prog_WINDMC" && break
7679done
7680
7681if test -z "$ac_cv_prog_WINDMC" ; then
7682 set dummy windmc
7683 if test $build = $host ; then
7684 WINDMC="$2"
7685 else
7686 WINDMC="${ncn_tool_prefix}$2"
7687 fi
7688fi
7689
7690
7691
278a7a38
AO
7692if test -n "$OBJCOPY"; then
7693 ac_cv_prog_OBJCOPY=$OBJCOPY
7694elif test -n "$ac_cv_prog_OBJCOPY"; then
7695 OBJCOPY=$ac_cv_prog_OBJCOPY
7696fi
7697
7698if test -n "$ac_cv_prog_OBJCOPY"; then
7699 for ncn_progname in objcopy; do
7700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7701set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7702echo "$as_me:$LINENO: checking for $ac_word" >&5
7703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7704if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706else
7707 if test -n "$OBJCOPY"; then
7708 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7709else
7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711for as_dir in $PATH
7712do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7717 ac_cv_prog_OBJCOPY="${ncn_progname}"
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7720 fi
7721done
7722done
7723
7724fi
7725fi
7726OBJCOPY=$ac_cv_prog_OBJCOPY
7727if test -n "$OBJCOPY"; then
2aeb72e9
DD
7728 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7729echo "${ECHO_T}$OBJCOPY" >&6
278a7a38 7730else
2aeb72e9
DD
7731 echo "$as_me:$LINENO: result: no" >&5
7732echo "${ECHO_T}no" >&6
278a7a38
AO
7733fi
7734
7735 done
7736fi
7737
7738for ncn_progname in objcopy; do
2693c0b0
PB
7739 if test -n "$ncn_tool_prefix"; then
7740 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7741set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7742echo "$as_me:$LINENO: checking for $ac_word" >&5
7743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7744if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7746else
7747 if test -n "$OBJCOPY"; then
7748 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7749else
1c710c3c
DJ
7750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751for as_dir in $PATH
7752do
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7757 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7760 fi
7761done
7762done
7763
ca9f4b81
AO
7764fi
7765fi
1c710c3c 7766OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 7767if test -n "$OBJCOPY"; then
2aeb72e9
DD
7768 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7769echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7770else
2aeb72e9
DD
7771 echo "$as_me:$LINENO: result: no" >&5
7772echo "${ECHO_T}no" >&6
ca9f4b81
AO
7773fi
7774
2693c0b0
PB
7775 fi
7776 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7778set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7779echo "$as_me:$LINENO: checking for $ac_word" >&5
7780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7781if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7783else
2693c0b0
PB
7784 if test -n "$OBJCOPY"; then
7785 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 7786else
1c710c3c
DJ
7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788for as_dir in $PATH
7789do
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7794 ac_cv_prog_OBJCOPY="${ncn_progname}"
7795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 break 2
7797 fi
7798done
7799done
7800
ca9f4b81
AO
7801fi
7802fi
1c710c3c 7803OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 7804if test -n "$OBJCOPY"; then
2aeb72e9
DD
7805 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7806echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7807else
2aeb72e9
DD
7808 echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6
ca9f4b81 7810fi
1c710c3c 7811
2693c0b0
PB
7812 fi
7813 test -n "$ac_cv_prog_OBJCOPY" && break
7814done
7815
7816if test -z "$ac_cv_prog_OBJCOPY" ; then
7817 set dummy objcopy
7818 if test $build = $host ; then
7819 OBJCOPY="$2"
ca9f4b81 7820 else
2693c0b0 7821 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 7822 fi
ca9f4b81
AO
7823fi
7824
278a7a38
AO
7825
7826
7827if test -n "$OBJDUMP"; then
7828 ac_cv_prog_OBJDUMP=$OBJDUMP
7829elif test -n "$ac_cv_prog_OBJDUMP"; then
7830 OBJDUMP=$ac_cv_prog_OBJDUMP
7831fi
7832
7833if test -n "$ac_cv_prog_OBJDUMP"; then
7834 for ncn_progname in objdump; do
7835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7836set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7837echo "$as_me:$LINENO: checking for $ac_word" >&5
7838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7839if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842 if test -n "$OBJDUMP"; then
7843 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7844else
7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7852 ac_cv_prog_OBJDUMP="${ncn_progname}"
7853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856done
7857done
7858
7859fi
7860fi
7861OBJDUMP=$ac_cv_prog_OBJDUMP
7862if test -n "$OBJDUMP"; then
2aeb72e9
DD
7863 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7864echo "${ECHO_T}$OBJDUMP" >&6
278a7a38 7865else
2aeb72e9
DD
7866 echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
278a7a38
AO
7868fi
7869
7870 done
7871fi
7872
7873for ncn_progname in objdump; do
2693c0b0
PB
7874 if test -n "$ncn_tool_prefix"; then
7875 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7876set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7877echo "$as_me:$LINENO: checking for $ac_word" >&5
7878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7879if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7881else
7882 if test -n "$OBJDUMP"; then
7883 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7884else
1c710c3c
DJ
7885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886for as_dir in $PATH
7887do
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7892 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7895 fi
7896done
7897done
7898
ca9f4b81
AO
7899fi
7900fi
1c710c3c 7901OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 7902if test -n "$OBJDUMP"; then
2aeb72e9
DD
7903 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7904echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7905else
2aeb72e9
DD
7906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
ca9f4b81
AO
7908fi
7909
2693c0b0
PB
7910 fi
7911 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7913set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7914echo "$as_me:$LINENO: checking for $ac_word" >&5
7915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7916if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7918else
2693c0b0
PB
7919 if test -n "$OBJDUMP"; then
7920 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 7921else
1c710c3c
DJ
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7929 ac_cv_prog_OBJDUMP="${ncn_progname}"
7930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933done
7934done
7935
ca9f4b81
AO
7936fi
7937fi
1c710c3c 7938OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 7939if test -n "$OBJDUMP"; then
2aeb72e9
DD
7940 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7941echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7942else
2aeb72e9
DD
7943 echo "$as_me:$LINENO: result: no" >&5
7944echo "${ECHO_T}no" >&6
ca9f4b81 7945fi
1c710c3c 7946
2693c0b0
PB
7947 fi
7948 test -n "$ac_cv_prog_OBJDUMP" && break
7949done
7950
7951if test -z "$ac_cv_prog_OBJDUMP" ; then
7952 set dummy objdump
7953 if test $build = $host ; then
7954 OBJDUMP="$2"
ca9f4b81 7955 else
2693c0b0 7956 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 7957 fi
ca9f4b81
AO
7958fi
7959
671aa708
NN
7960
7961
7962
7963
7964
2abefe3d 7965# Target tools.
1c710c3c 7966
2aeb72e9 7967# Check whether --with-build-time-tools or --without-build-time-tools was given.
e8b05380 7968if test "${with_build_time_tools+set}" = set; then
2aeb72e9
DD
7969 withval="$with_build_time_tools"
7970 case x"$withval" in
e8b05380
PB
7971 x/*) ;;
7972 *)
7973 with_build_time_tools=
1c710c3c
DJ
7974 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7975echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
7976 ;;
7977 esac
ca9f4b81 7978else
e8b05380 7979 with_build_time_tools=
2aeb72e9 7980fi;
ca9f4b81 7981
278a7a38
AO
7982
7983
7984if test -n "$CC_FOR_TARGET"; then
7985 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7986elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7987 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7988fi
7989
7990if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7991 for ncn_progname in cc gcc; do
7992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7993set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7994echo "$as_me:$LINENO: checking for $ac_word" >&5
7995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7996if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7998else
7999 if test -n "$CC_FOR_TARGET"; then
8000 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8001else
8002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003for as_dir in $PATH
8004do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8009 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8012 fi
8013done
8014done
8015
8016fi
8017fi
8018CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8019if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8020 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8021echo "${ECHO_T}$CC_FOR_TARGET" >&6
278a7a38 8022else
2aeb72e9
DD
8023 echo "$as_me:$LINENO: result: no" >&5
8024echo "${ECHO_T}no" >&6
278a7a38
AO
8025fi
8026
8027 done
8028fi
8029
8030if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8031 for ncn_progname in cc gcc; do
2aeb72e9
DD
8032 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8033echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8034 if test -x $with_build_time_tools/${ncn_progname}; then
8035 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8036 echo "$as_me:$LINENO: result: yes" >&5
8037echo "${ECHO_T}yes" >&6
72a7ab82 8038 break
e8b05380 8039 else
2aeb72e9
DD
8040 echo "$as_me:$LINENO: result: no" >&5
8041echo "${ECHO_T}no" >&6
72a7ab82
AP
8042 fi
8043 done
4de997d1
PB
8044fi
8045
e8b05380
PB
8046if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8047 for ncn_progname in cc gcc; do
8048 if test -n "$ncn_target_tool_prefix"; then
8049 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8050set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8051echo "$as_me:$LINENO: checking for $ac_word" >&5
8052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8053if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8055else
8056 if test -n "$CC_FOR_TARGET"; then
8057 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8058else
1c710c3c
DJ
8059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060for as_dir in $PATH
8061do
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8066 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8069 fi
8070done
8071done
8072
4de997d1
PB
8073fi
8074fi
1c710c3c 8075CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 8076if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8077 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8078echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8079else
2aeb72e9
DD
8080 echo "$as_me:$LINENO: result: no" >&5
8081echo "${ECHO_T}no" >&6
4de997d1
PB
8082fi
8083
e8b05380
PB
8084 fi
8085 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8087set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8088echo "$as_me:$LINENO: checking for $ac_word" >&5
8089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8090if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8092else
2693c0b0
PB
8093 if test -n "$CC_FOR_TARGET"; then
8094 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 8095else
1c710c3c
DJ
8096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097for as_dir in $PATH
8098do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8103 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8106 fi
8107done
8108done
8109
4de997d1
PB
8110fi
8111fi
1c710c3c 8112CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8113if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8114 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8115echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8116else
2aeb72e9
DD
8117 echo "$as_me:$LINENO: result: no" >&5
8118echo "${ECHO_T}no" >&6
4de997d1 8119fi
1c710c3c 8120
e8b05380
PB
8121 fi
8122 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8123 done
8124fi
1c710c3c 8125
2693c0b0
PB
8126if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8127 set dummy cc gcc
8128 if test $build = $target ; then
8129 CC_FOR_TARGET="$2"
4de997d1 8130 else
2693c0b0 8131 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8132 fi
1c00b503
PB
8133else
8134 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
8135fi
8136
278a7a38
AO
8137
8138
8139if test -n "$CXX_FOR_TARGET"; then
8140 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8141elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8142 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8143fi
8144
8145if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8146 for ncn_progname in c++ g++ cxx gxx; do
8147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8148set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8149echo "$as_me:$LINENO: checking for $ac_word" >&5
8150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8151if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8153else
8154 if test -n "$CXX_FOR_TARGET"; then
8155 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8156else
8157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158for as_dir in $PATH
8159do
8160 IFS=$as_save_IFS
8161 test -z "$as_dir" && as_dir=.
8162 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8164 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 break 2
8167 fi
8168done
8169done
8170
8171fi
8172fi
8173CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8174if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8175 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8176echo "${ECHO_T}$CXX_FOR_TARGET" >&6
278a7a38 8177else
2aeb72e9
DD
8178 echo "$as_me:$LINENO: result: no" >&5
8179echo "${ECHO_T}no" >&6
278a7a38
AO
8180fi
8181
8182 done
8183fi
8184
8185if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8186 for ncn_progname in c++ g++ cxx gxx; do
2aeb72e9
DD
8187 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8188echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8189 if test -x $with_build_time_tools/${ncn_progname}; then
8190 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8191 echo "$as_me:$LINENO: result: yes" >&5
8192echo "${ECHO_T}yes" >&6
e8b05380
PB
8193 break
8194 else
2aeb72e9
DD
8195 echo "$as_me:$LINENO: result: no" >&5
8196echo "${ECHO_T}no" >&6
e8b05380
PB
8197 fi
8198 done
8199fi
8200
8201if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8202 for ncn_progname in c++ g++ cxx gxx; do
8203 if test -n "$ncn_target_tool_prefix"; then
8204 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8205set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8206echo "$as_me:$LINENO: checking for $ac_word" >&5
8207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8208if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8210else
8211 if test -n "$CXX_FOR_TARGET"; then
8212 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8213else
1c710c3c
DJ
8214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215for as_dir in $PATH
8216do
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8221 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 break 2
8224 fi
8225done
8226done
8227
4de997d1
PB
8228fi
8229fi
1c710c3c 8230CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 8231if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8232 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8233echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8234else
2aeb72e9
DD
8235 echo "$as_me:$LINENO: result: no" >&5
8236echo "${ECHO_T}no" >&6
4de997d1
PB
8237fi
8238
e8b05380
PB
8239 fi
8240 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8242set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8243echo "$as_me:$LINENO: checking for $ac_word" >&5
8244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8245if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8247else
2693c0b0
PB
8248 if test -n "$CXX_FOR_TARGET"; then
8249 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 8250else
1c710c3c
DJ
8251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252for as_dir in $PATH
8253do
8254 IFS=$as_save_IFS
8255 test -z "$as_dir" && as_dir=.
8256 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8258 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8260 break 2
8261 fi
8262done
8263done
8264
4de997d1
PB
8265fi
8266fi
1c710c3c 8267CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8268if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8269 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8270echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8271else
2aeb72e9
DD
8272 echo "$as_me:$LINENO: result: no" >&5
8273echo "${ECHO_T}no" >&6
4de997d1 8274fi
1c710c3c 8275
e8b05380
PB
8276 fi
8277 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8278 done
8279fi
1c710c3c 8280
2693c0b0
PB
8281if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8282 set dummy c++ g++ cxx gxx
8283 if test $build = $target ; then
8284 CXX_FOR_TARGET="$2"
4de997d1 8285 else
2693c0b0 8286 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8287 fi
1c00b503
PB
8288else
8289 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
8290fi
8291
278a7a38
AO
8292
8293
8294if test -n "$GCC_FOR_TARGET"; then
8295 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8296elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8297 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8298fi
8299
8300if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8301 for ncn_progname in gcc; do
8302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8303set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8304echo "$as_me:$LINENO: checking for $ac_word" >&5
8305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8306if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8308else
8309 if test -n "$GCC_FOR_TARGET"; then
8310 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8311else
8312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313for as_dir in $PATH
8314do
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8319 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8322 fi
8323done
8324done
8325
8326fi
8327fi
8328GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8329if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8330 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8331echo "${ECHO_T}$GCC_FOR_TARGET" >&6
278a7a38 8332else
2aeb72e9
DD
8333 echo "$as_me:$LINENO: result: no" >&5
8334echo "${ECHO_T}no" >&6
278a7a38
AO
8335fi
8336
8337 done
8338fi
8339
8340if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8341 for ncn_progname in gcc; do
2aeb72e9
DD
8342 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8343echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8344 if test -x $with_build_time_tools/${ncn_progname}; then
8345 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8346 echo "$as_me:$LINENO: result: yes" >&5
8347echo "${ECHO_T}yes" >&6
e8b05380
PB
8348 break
8349 else
2aeb72e9
DD
8350 echo "$as_me:$LINENO: result: no" >&5
8351echo "${ECHO_T}no" >&6
e8b05380
PB
8352 fi
8353 done
8354fi
8355
8356if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8357 for ncn_progname in gcc; do
8358 if test -n "$ncn_target_tool_prefix"; then
8359 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8360set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8361echo "$as_me:$LINENO: checking for $ac_word" >&5
8362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8363if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8365else
e8b05380
PB
8366 if test -n "$GCC_FOR_TARGET"; then
8367 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8368else
1c710c3c
DJ
8369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370for as_dir in $PATH
8371do
8372 IFS=$as_save_IFS
8373 test -z "$as_dir" && as_dir=.
8374 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8376 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8378 break 2
8379 fi
8380done
8381done
8382
ca9f4b81
AO
8383fi
8384fi
1c710c3c 8385GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8386if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8387 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8388echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8389else
2aeb72e9
DD
8390 echo "$as_me:$LINENO: result: no" >&5
8391echo "${ECHO_T}no" >&6
ca9f4b81
AO
8392fi
8393
e8b05380
PB
8394 fi
8395 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8397set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8398echo "$as_me:$LINENO: checking for $ac_word" >&5
8399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8400if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8402else
e8b05380
PB
8403 if test -n "$GCC_FOR_TARGET"; then
8404 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8405else
1c710c3c
DJ
8406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407for as_dir in $PATH
8408do
8409 IFS=$as_save_IFS
8410 test -z "$as_dir" && as_dir=.
8411 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8413 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8415 break 2
8416 fi
8417done
8418done
8419
ca9f4b81
AO
8420fi
8421fi
1c710c3c 8422GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8423if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8424 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8425echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8426else
2aeb72e9
DD
8427 echo "$as_me:$LINENO: result: no" >&5
8428echo "${ECHO_T}no" >&6
ca9f4b81 8429fi
1c710c3c 8430
e8b05380
PB
8431 fi
8432 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8433 done
8434fi
1c710c3c 8435
e8b05380
PB
8436if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8437 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
8438else
8439 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
8440fi
8441
278a7a38
AO
8442
8443
8444if test -n "$GCJ_FOR_TARGET"; then
8445 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8446elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8447 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8448fi
8449
8450if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8451 for ncn_progname in gcj; do
8452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8453set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8454echo "$as_me:$LINENO: checking for $ac_word" >&5
8455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8456if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8458else
8459 if test -n "$GCJ_FOR_TARGET"; then
8460 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8461else
8462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463for as_dir in $PATH
8464do
8465 IFS=$as_save_IFS
8466 test -z "$as_dir" && as_dir=.
8467 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8469 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 break 2
8472 fi
8473done
8474done
8475
8476fi
8477fi
8478GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8479if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8480 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8481echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8482else
2aeb72e9
DD
8483 echo "$as_me:$LINENO: result: no" >&5
8484echo "${ECHO_T}no" >&6
278a7a38
AO
8485fi
8486
8487 done
8488fi
8489
8490if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8491 for ncn_progname in gcj; do
2aeb72e9
DD
8492 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8493echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8494 if test -x $with_build_time_tools/${ncn_progname}; then
8495 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8496 echo "$as_me:$LINENO: result: yes" >&5
8497echo "${ECHO_T}yes" >&6
e8b05380
PB
8498 break
8499 else
2aeb72e9
DD
8500 echo "$as_me:$LINENO: result: no" >&5
8501echo "${ECHO_T}no" >&6
e8b05380
PB
8502 fi
8503 done
8504fi
8505
8506if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8507 for ncn_progname in gcj; do
8508 if test -n "$ncn_target_tool_prefix"; then
8509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8510set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8511echo "$as_me:$LINENO: checking for $ac_word" >&5
8512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8513if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8515else
fb0103e5
RG
8516 if test -n "$GCJ_FOR_TARGET"; then
8517 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8518else
1c710c3c
DJ
8519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520for as_dir in $PATH
8521do
8522 IFS=$as_save_IFS
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8526 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8528 break 2
8529 fi
8530done
8531done
8532
e8b05380
PB
8533fi
8534fi
278a7a38
AO
8535GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8536if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8537 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8538echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8539else
2aeb72e9
DD
8540 echo "$as_me:$LINENO: result: no" >&5
8541echo "${ECHO_T}no" >&6
278a7a38
AO
8542fi
8543
8544 fi
8545 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8547set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8548echo "$as_me:$LINENO: checking for $ac_word" >&5
8549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8550if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8552else
8553 if test -n "$GCJ_FOR_TARGET"; then
8554 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8555else
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8563 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 break 2
8566 fi
8567done
8568done
8569
8570fi
8571fi
8572GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8573if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8574 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8575echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8576else
2aeb72e9
DD
8577 echo "$as_me:$LINENO: result: no" >&5
8578echo "${ECHO_T}no" >&6
278a7a38
AO
8579fi
8580
8581 fi
8582 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8583 done
8584fi
8585
8586if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8587 set dummy gcj
8588 if test $build = $target ; then
8589 GCJ_FOR_TARGET="$2"
8590 else
8591 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8592 fi
1c00b503
PB
8593else
8594 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
8595fi
8596
8597
8598
8599if test -n "$GFORTRAN_FOR_TARGET"; then
8600 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8601elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8602 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
8603fi
8604
278a7a38
AO
8605if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8606 for ncn_progname in gfortran; do
8607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 8608set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8609echo "$as_me:$LINENO: checking for $ac_word" >&5
8610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 8611if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 8612 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8613else
278a7a38
AO
8614 if test -n "$GFORTRAN_FOR_TARGET"; then
8615 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 8616else
1c710c3c
DJ
8617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618for as_dir in $PATH
8619do
8620 IFS=$as_save_IFS
8621 test -z "$as_dir" && as_dir=.
8622 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8624 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
8625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 break 2
8627 fi
8628done
8629done
8630
e8b05380
PB
8631fi
8632fi
278a7a38
AO
8633GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8634if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8635 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8636echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8637else
2aeb72e9
DD
8638 echo "$as_me:$LINENO: result: no" >&5
8639echo "${ECHO_T}no" >&6
e8b05380 8640fi
1c710c3c 8641
e8b05380
PB
8642 done
8643fi
1c710c3c 8644
278a7a38 8645if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8646 for ncn_progname in gfortran; do
2aeb72e9
DD
8647 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8648echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8649 if test -x $with_build_time_tools/${ncn_progname}; then
8650 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8651 echo "$as_me:$LINENO: result: yes" >&5
8652echo "${ECHO_T}yes" >&6
e8b05380
PB
8653 break
8654 else
2aeb72e9
DD
8655 echo "$as_me:$LINENO: result: no" >&5
8656echo "${ECHO_T}no" >&6
e8b05380
PB
8657 fi
8658 done
8659fi
8660
8661if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8662 for ncn_progname in gfortran; do
8663 if test -n "$ncn_target_tool_prefix"; then
8664 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8665set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8666echo "$as_me:$LINENO: checking for $ac_word" >&5
8667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8668if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8670else
8671 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
8672 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8673else
8674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675for as_dir in $PATH
8676do
8677 IFS=$as_save_IFS
8678 test -z "$as_dir" && as_dir=.
8679 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8681 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8683 break 2
8684 fi
8685done
8686done
8687
e8b05380
PB
8688fi
8689fi
1c710c3c 8690GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8691if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8692 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8693echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8694else
2aeb72e9
DD
8695 echo "$as_me:$LINENO: result: no" >&5
8696echo "${ECHO_T}no" >&6
e8b05380
PB
8697fi
8698
8699 fi
8700 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8702set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8703echo "$as_me:$LINENO: checking for $ac_word" >&5
8704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8705if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8707else
8708 if test -n "$GFORTRAN_FOR_TARGET"; then
8709 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8710else
1c710c3c
DJ
8711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712for as_dir in $PATH
8713do
8714 IFS=$as_save_IFS
8715 test -z "$as_dir" && as_dir=.
8716 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8718 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8720 break 2
8721 fi
8722done
8723done
8724
e8b05380
PB
8725fi
8726fi
1c710c3c 8727GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8728if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8729 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8730echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8731else
2aeb72e9
DD
8732 echo "$as_me:$LINENO: result: no" >&5
8733echo "${ECHO_T}no" >&6
e8b05380 8734fi
1c710c3c 8735
e8b05380
PB
8736 fi
8737 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8738 done
8739fi
1c710c3c 8740
e8b05380
PB
8741if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8742 set dummy gfortran
2693c0b0 8743 if test $build = $target ; then
e8b05380 8744 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 8745 else
e8b05380
PB
8746 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8747 fi
1c00b503
PB
8748else
8749 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
8750fi
8751
8752
8753
e8b05380
PB
8754cat > conftest.c << \EOF
8755#ifdef __GNUC__
8756 gcc_yay;
8757#endif
8758EOF
8759if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8760 have_gcc_for_target=yes
8761else
8762 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8763 have_gcc_for_target=no
8764fi
8765rm conftest.c
8766
8767
8768
8769
8770if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8771 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8772 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8773echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8774 if test -x $with_build_time_tools/ar; then
8775 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8776 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
2aeb72e9
DD
8777 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8778echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 8779 else
2aeb72e9
DD
8780 echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
d1f8db0c 8782 fi
e8b05380
PB
8783 elif test $build != $host && test $have_gcc_for_target = yes; then
8784 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
8785 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8786 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
8787 fi
8788fi
3e19841a 8789if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8790 # Extract the first word of "ar", so it can be a program name with args.
8791set dummy ar; ac_word=$2
2aeb72e9
DD
8792echo "$as_me:$LINENO: checking for $ac_word" >&5
8793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8794if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8796else
1c710c3c
DJ
8797 case $AR_FOR_TARGET in
8798 [\\/]* | ?:[\\/]*)
e8b05380
PB
8799 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8800 ;;
e8b05380 8801 *)
1c710c3c
DJ
8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $gcc_cv_tool_dirs
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8809 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 break 2
8812 fi
8813done
8814done
8815
e8b05380
PB
8816 ;;
8817esac
8818fi
1c710c3c 8819AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2aeb72e9 8820
e8b05380 8821if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8822 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8823echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8824else
2aeb72e9
DD
8825 echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6
4de997d1
PB
8827fi
8828
e8b05380
PB
8829fi
8830if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
8831
8832
8833if test -n "$AR_FOR_TARGET"; then
8834 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8835elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8836 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8837fi
8838
8839if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8840 for ncn_progname in ar; do
8841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8842set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8843echo "$as_me:$LINENO: checking for $ac_word" >&5
8844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8845if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847else
8848 if test -n "$AR_FOR_TARGET"; then
8849 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8850else
8851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852for as_dir in $PATH
8853do
8854 IFS=$as_save_IFS
8855 test -z "$as_dir" && as_dir=.
8856 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8858 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8860 break 2
8861 fi
8862done
8863done
8864
8865fi
8866fi
8867AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8868if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8869 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8870echo "${ECHO_T}$AR_FOR_TARGET" >&6
278a7a38 8871else
2aeb72e9
DD
8872 echo "$as_me:$LINENO: result: no" >&5
8873echo "${ECHO_T}no" >&6
278a7a38
AO
8874fi
8875
8876 done
8877fi
8878
8879if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8880 for ncn_progname in ar; do
2aeb72e9
DD
8881 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8882echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8883 if test -x $with_build_time_tools/${ncn_progname}; then
8884 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8885 echo "$as_me:$LINENO: result: yes" >&5
8886echo "${ECHO_T}yes" >&6
e8b05380
PB
8887 break
8888 else
2aeb72e9
DD
8889 echo "$as_me:$LINENO: result: no" >&5
8890echo "${ECHO_T}no" >&6
e8b05380
PB
8891 fi
8892 done
8893fi
8894
8895if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8896 for ncn_progname in ar; do
8897 if test -n "$ncn_target_tool_prefix"; then
8898 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8899set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8900echo "$as_me:$LINENO: checking for $ac_word" >&5
8901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8902if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8904else
e8b05380
PB
8905 if test -n "$AR_FOR_TARGET"; then
8906 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 8907else
1c710c3c
DJ
8908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909for as_dir in $PATH
8910do
8911 IFS=$as_save_IFS
8912 test -z "$as_dir" && as_dir=.
8913 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8915 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 break 2
8918 fi
8919done
8920done
8921
4de997d1
PB
8922fi
8923fi
1c710c3c 8924AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8925if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8926 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8927echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 8928else
2aeb72e9
DD
8929 echo "$as_me:$LINENO: result: no" >&5
8930echo "${ECHO_T}no" >&6
4de997d1
PB
8931fi
8932
e8b05380
PB
8933 fi
8934 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8936set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8937echo "$as_me:$LINENO: checking for $ac_word" >&5
8938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8939if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8941else
8942 if test -n "$AR_FOR_TARGET"; then
8943 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8944else
1c710c3c
DJ
8945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946for as_dir in $PATH
8947do
8948 IFS=$as_save_IFS
8949 test -z "$as_dir" && as_dir=.
8950 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8952 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8954 break 2
8955 fi
8956done
8957done
8958
e8b05380
PB
8959fi
8960fi
1c710c3c 8961AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8962if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8963 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8964echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8965else
2aeb72e9
DD
8966 echo "$as_me:$LINENO: result: no" >&5
8967echo "${ECHO_T}no" >&6
e8b05380 8968fi
1c710c3c 8969
e8b05380
PB
8970 fi
8971 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8972 done
8973fi
1c710c3c 8974
e8b05380
PB
8975if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8976 set dummy ar
8977 if test $build = $target ; then
8978 AR_FOR_TARGET="$2"
8979 else
8980 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 8981 fi
1c00b503
PB
8982else
8983 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
8984fi
8985
d1f8db0c
PB
8986else
8987 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
8988fi
8989
8990
8991
8992
8993if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8994 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8995 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8996echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8997 if test -x $with_build_time_tools/as; then
8998 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8999 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2aeb72e9
DD
9000 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9001echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 9002 else
2aeb72e9
DD
9003 echo "$as_me:$LINENO: result: no" >&5
9004echo "${ECHO_T}no" >&6
d1f8db0c 9005 fi
e8b05380
PB
9006 elif test $build != $host && test $have_gcc_for_target = yes; then
9007 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
9008 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9009 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
9010 fi
9011fi
3e19841a 9012if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9013 # Extract the first word of "as", so it can be a program name with args.
9014set dummy as; ac_word=$2
2aeb72e9
DD
9015echo "$as_me:$LINENO: checking for $ac_word" >&5
9016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9017if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9019else
1c710c3c
DJ
9020 case $AS_FOR_TARGET in
9021 [\\/]* | ?:[\\/]*)
e8b05380
PB
9022 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9023 ;;
e8b05380 9024 *)
1c710c3c
DJ
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026for as_dir in $gcc_cv_tool_dirs
9027do
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9032 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9035 fi
9036done
9037done
9038
e8b05380
PB
9039 ;;
9040esac
9041fi
1c710c3c 9042AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2aeb72e9 9043
e8b05380 9044if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9045 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9046echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9047else
2aeb72e9
DD
9048 echo "$as_me:$LINENO: result: no" >&5
9049echo "${ECHO_T}no" >&6
e8b05380
PB
9050fi
9051
9052fi
9053if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
9054
9055
9056if test -n "$AS_FOR_TARGET"; then
9057 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9058elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9059 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9060fi
9061
9062if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9063 for ncn_progname in as; do
9064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9065set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9066echo "$as_me:$LINENO: checking for $ac_word" >&5
9067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9068if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9070else
9071 if test -n "$AS_FOR_TARGET"; then
9072 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9073else
9074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075for as_dir in $PATH
9076do
9077 IFS=$as_save_IFS
9078 test -z "$as_dir" && as_dir=.
9079 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9081 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9083 break 2
9084 fi
9085done
9086done
9087
9088fi
9089fi
9090AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9091if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9092 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9093echo "${ECHO_T}$AS_FOR_TARGET" >&6
278a7a38 9094else
2aeb72e9
DD
9095 echo "$as_me:$LINENO: result: no" >&5
9096echo "${ECHO_T}no" >&6
278a7a38
AO
9097fi
9098
9099 done
9100fi
9101
9102if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9103 for ncn_progname in as; do
2aeb72e9
DD
9104 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9105echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9106 if test -x $with_build_time_tools/${ncn_progname}; then
9107 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9108 echo "$as_me:$LINENO: result: yes" >&5
9109echo "${ECHO_T}yes" >&6
e8b05380
PB
9110 break
9111 else
2aeb72e9
DD
9112 echo "$as_me:$LINENO: result: no" >&5
9113echo "${ECHO_T}no" >&6
e8b05380
PB
9114 fi
9115 done
9116fi
9117
9118if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9119 for ncn_progname in as; do
9120 if test -n "$ncn_target_tool_prefix"; then
9121 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9122set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9123echo "$as_me:$LINENO: checking for $ac_word" >&5
9124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9125if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9126 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9127else
9128 if test -n "$AS_FOR_TARGET"; then
9129 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9130else
1c710c3c
DJ
9131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132for as_dir in $PATH
9133do
9134 IFS=$as_save_IFS
9135 test -z "$as_dir" && as_dir=.
9136 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9138 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9140 break 2
9141 fi
9142done
9143done
9144
e8b05380
PB
9145fi
9146fi
1c710c3c 9147AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9148if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9149 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9150echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9151else
2aeb72e9
DD
9152 echo "$as_me:$LINENO: result: no" >&5
9153echo "${ECHO_T}no" >&6
e8b05380
PB
9154fi
9155
9156 fi
9157 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9159set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9160echo "$as_me:$LINENO: checking for $ac_word" >&5
9161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9162if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9164else
e8b05380
PB
9165 if test -n "$AS_FOR_TARGET"; then
9166 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9167else
1c710c3c
DJ
9168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169for as_dir in $PATH
9170do
9171 IFS=$as_save_IFS
9172 test -z "$as_dir" && as_dir=.
9173 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9175 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9177 break 2
9178 fi
9179done
9180done
9181
4de997d1
PB
9182fi
9183fi
1c710c3c 9184AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9185if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9186 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9187echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 9188else
2aeb72e9
DD
9189 echo "$as_me:$LINENO: result: no" >&5
9190echo "${ECHO_T}no" >&6
4de997d1 9191fi
1c710c3c 9192
e8b05380
PB
9193 fi
9194 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9195 done
9196fi
1c710c3c 9197
e8b05380
PB
9198if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9199 set dummy as
9200 if test $build = $target ; then
9201 AS_FOR_TARGET="$2"
9202 else
9203 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9204 fi
1c00b503
PB
9205else
9206 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 9207fi
2693c0b0 9208
d1f8db0c
PB
9209else
9210 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
9211fi
9212
e8b05380
PB
9213
9214
9215
9216if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9217 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9218 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9219echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9220 if test -x $with_build_time_tools/dlltool; then
9221 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9222 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2aeb72e9
DD
9223 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9224echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 9225 else
2aeb72e9
DD
9226 echo "$as_me:$LINENO: result: no" >&5
9227echo "${ECHO_T}no" >&6
d1f8db0c 9228 fi
e8b05380
PB
9229 elif test $build != $host && test $have_gcc_for_target = yes; then
9230 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
9231 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9232 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
9233 fi
9234fi
3e19841a 9235if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9236 # Extract the first word of "dlltool", so it can be a program name with args.
9237set dummy dlltool; ac_word=$2
2aeb72e9
DD
9238echo "$as_me:$LINENO: checking for $ac_word" >&5
9239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9240if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9242else
1c710c3c
DJ
9243 case $DLLTOOL_FOR_TARGET in
9244 [\\/]* | ?:[\\/]*)
e8b05380
PB
9245 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9246 ;;
e8b05380 9247 *)
1c710c3c
DJ
9248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249for as_dir in $gcc_cv_tool_dirs
9250do
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
9253 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9255 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9257 break 2
9258 fi
9259done
9260done
9261
e8b05380
PB
9262 ;;
9263esac
4de997d1 9264fi
1c710c3c 9265DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2aeb72e9 9266
e8b05380 9267if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9268 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9269echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9270else
2aeb72e9
DD
9271 echo "$as_me:$LINENO: result: no" >&5
9272echo "${ECHO_T}no" >&6
4de997d1
PB
9273fi
9274
e8b05380
PB
9275fi
9276if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9277
9278
9279if test -n "$DLLTOOL_FOR_TARGET"; then
9280 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9281elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9282 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9283fi
9284
9285if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9286 for ncn_progname in dlltool; do
9287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9288set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9289echo "$as_me:$LINENO: checking for $ac_word" >&5
9290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9291if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9293else
9294 if test -n "$DLLTOOL_FOR_TARGET"; then
9295 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9296else
9297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298for as_dir in $PATH
9299do
9300 IFS=$as_save_IFS
9301 test -z "$as_dir" && as_dir=.
9302 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9304 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9306 break 2
9307 fi
9308done
9309done
9310
9311fi
9312fi
9313DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9314if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9315 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9316echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
278a7a38 9317else
2aeb72e9
DD
9318 echo "$as_me:$LINENO: result: no" >&5
9319echo "${ECHO_T}no" >&6
278a7a38
AO
9320fi
9321
9322 done
9323fi
9324
9325if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9326 for ncn_progname in dlltool; do
2aeb72e9
DD
9327 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9328echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9329 if test -x $with_build_time_tools/${ncn_progname}; then
9330 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9331 echo "$as_me:$LINENO: result: yes" >&5
9332echo "${ECHO_T}yes" >&6
e8b05380
PB
9333 break
9334 else
2aeb72e9
DD
9335 echo "$as_me:$LINENO: result: no" >&5
9336echo "${ECHO_T}no" >&6
e8b05380
PB
9337 fi
9338 done
9339fi
9340
9341if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9342 for ncn_progname in dlltool; do
9343 if test -n "$ncn_target_tool_prefix"; then
9344 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9345set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9346echo "$as_me:$LINENO: checking for $ac_word" >&5
9347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9348if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9350else
e8b05380
PB
9351 if test -n "$DLLTOOL_FOR_TARGET"; then
9352 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9353else
1c710c3c
DJ
9354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355for as_dir in $PATH
9356do
9357 IFS=$as_save_IFS
9358 test -z "$as_dir" && as_dir=.
9359 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9361 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9363 break 2
9364 fi
9365done
9366done
9367
4de997d1
PB
9368fi
9369fi
1c710c3c 9370DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9371if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9372 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9373echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9374else
2aeb72e9
DD
9375 echo "$as_me:$LINENO: result: no" >&5
9376echo "${ECHO_T}no" >&6
4de997d1 9377fi
4de997d1 9378
e8b05380
PB
9379 fi
9380 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9382set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9383echo "$as_me:$LINENO: checking for $ac_word" >&5
9384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9385if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9387else
e8b05380
PB
9388 if test -n "$DLLTOOL_FOR_TARGET"; then
9389 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9390else
1c710c3c
DJ
9391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392for as_dir in $PATH
9393do
9394 IFS=$as_save_IFS
9395 test -z "$as_dir" && as_dir=.
9396 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9398 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9400 break 2
9401 fi
9402done
9403done
9404
4de997d1
PB
9405fi
9406fi
1c710c3c 9407DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9408if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9409 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9410echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9411else
2aeb72e9
DD
9412 echo "$as_me:$LINENO: result: no" >&5
9413echo "${ECHO_T}no" >&6
4de997d1 9414fi
1c710c3c 9415
e8b05380
PB
9416 fi
9417 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9418 done
9419fi
1c710c3c 9420
e8b05380
PB
9421if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9422 set dummy dlltool
9423 if test $build = $target ; then
9424 DLLTOOL_FOR_TARGET="$2"
9425 else
9426 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9427 fi
1c00b503
PB
9428else
9429 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
9430fi
9431
d1f8db0c
PB
9432else
9433 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
9434fi
9435
4de997d1 9436
e8b05380
PB
9437
9438
9439if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9440 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9441 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9442echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9443 if test -x $with_build_time_tools/ld; then
9444 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9445 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2aeb72e9
DD
9446 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9447echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 9448 else
2aeb72e9
DD
9449 echo "$as_me:$LINENO: result: no" >&5
9450echo "${ECHO_T}no" >&6
d1f8db0c 9451 fi
e8b05380
PB
9452 elif test $build != $host && test $have_gcc_for_target = yes; then
9453 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
9454 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9455 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 9456 fi
e8b05380 9457fi
3e19841a 9458if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9459 # Extract the first word of "ld", so it can be a program name with args.
9460set dummy ld; ac_word=$2
2aeb72e9
DD
9461echo "$as_me:$LINENO: checking for $ac_word" >&5
9462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9463if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9465else
1c710c3c
DJ
9466 case $LD_FOR_TARGET in
9467 [\\/]* | ?:[\\/]*)
e8b05380
PB
9468 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9469 ;;
e8b05380 9470 *)
1c710c3c
DJ
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472for as_dir in $gcc_cv_tool_dirs
9473do
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9478 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9480 break 2
9481 fi
9482done
9483done
9484
e8b05380
PB
9485 ;;
9486esac
4de997d1 9487fi
1c710c3c 9488LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2aeb72e9 9489
e8b05380 9490if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9491 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9492echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 9493else
2aeb72e9
DD
9494 echo "$as_me:$LINENO: result: no" >&5
9495echo "${ECHO_T}no" >&6
4de997d1 9496fi
2693c0b0 9497
e8b05380
PB
9498fi
9499if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
9500
9501
9502if test -n "$LD_FOR_TARGET"; then
9503 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9504elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9505 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9506fi
9507
9508if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9509 for ncn_progname in ld; do
9510 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9511set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9512echo "$as_me:$LINENO: checking for $ac_word" >&5
9513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9514if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516else
9517 if test -n "$LD_FOR_TARGET"; then
9518 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9519else
9520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9521for as_dir in $PATH
9522do
9523 IFS=$as_save_IFS
9524 test -z "$as_dir" && as_dir=.
9525 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9527 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9529 break 2
9530 fi
9531done
9532done
9533
9534fi
9535fi
9536LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9537if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9538 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9539echo "${ECHO_T}$LD_FOR_TARGET" >&6
278a7a38 9540else
2aeb72e9
DD
9541 echo "$as_me:$LINENO: result: no" >&5
9542echo "${ECHO_T}no" >&6
278a7a38
AO
9543fi
9544
9545 done
9546fi
9547
9548if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9549 for ncn_progname in ld; do
2aeb72e9
DD
9550 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9551echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9552 if test -x $with_build_time_tools/${ncn_progname}; then
9553 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9554 echo "$as_me:$LINENO: result: yes" >&5
9555echo "${ECHO_T}yes" >&6
e8b05380
PB
9556 break
9557 else
2aeb72e9
DD
9558 echo "$as_me:$LINENO: result: no" >&5
9559echo "${ECHO_T}no" >&6
e8b05380
PB
9560 fi
9561 done
ca9f4b81
AO
9562fi
9563
e8b05380
PB
9564if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9565 for ncn_progname in ld; do
9566 if test -n "$ncn_target_tool_prefix"; then
9567 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9568set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9569echo "$as_me:$LINENO: checking for $ac_word" >&5
9570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9571if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9573else
4de997d1
PB
9574 if test -n "$LD_FOR_TARGET"; then
9575 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9576else
1c710c3c
DJ
9577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578for as_dir in $PATH
9579do
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9584 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9586 break 2
9587 fi
9588done
9589done
9590
ca9f4b81
AO
9591fi
9592fi
1c710c3c 9593LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 9594if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9595 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9596echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9597else
2aeb72e9
DD
9598 echo "$as_me:$LINENO: result: no" >&5
9599echo "${ECHO_T}no" >&6
ca9f4b81
AO
9600fi
9601
e8b05380
PB
9602 fi
9603 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9605set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9606echo "$as_me:$LINENO: checking for $ac_word" >&5
9607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9608if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9610else
2693c0b0
PB
9611 if test -n "$LD_FOR_TARGET"; then
9612 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9613else
1c710c3c
DJ
9614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615for as_dir in $PATH
9616do
9617 IFS=$as_save_IFS
9618 test -z "$as_dir" && as_dir=.
9619 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9621 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9623 break 2
9624 fi
9625done
9626done
9627
ca9f4b81
AO
9628fi
9629fi
1c710c3c 9630LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 9631if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9632 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9633echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9634else
2aeb72e9
DD
9635 echo "$as_me:$LINENO: result: no" >&5
9636echo "${ECHO_T}no" >&6
ca9f4b81 9637fi
1c710c3c 9638
e8b05380
PB
9639 fi
9640 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9641 done
9642fi
1c710c3c 9643
2693c0b0
PB
9644if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9645 set dummy ld
9646 if test $build = $target ; then
9647 LD_FOR_TARGET="$2"
ca9f4b81 9648 else
2693c0b0 9649 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9650 fi
1c00b503
PB
9651else
9652 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
9653fi
9654
d1f8db0c
PB
9655else
9656 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
9657fi
9658
9659
9660
9661
9662if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9663 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9664 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9665echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9666 if test -x $with_build_time_tools/lipo; then
9667 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9668 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2aeb72e9
DD
9669 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9670echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 9671 else
2aeb72e9
DD
9672 echo "$as_me:$LINENO: result: no" >&5
9673echo "${ECHO_T}no" >&6
d1f8db0c 9674 fi
e8b05380
PB
9675 elif test $build != $host && test $have_gcc_for_target = yes; then
9676 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
9677 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9678 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
9679 fi
9680fi
278a7a38
AO
9681if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9682 # Extract the first word of "lipo", so it can be a program name with args.
9683set dummy lipo; ac_word=$2
2aeb72e9
DD
9684echo "$as_me:$LINENO: checking for $ac_word" >&5
9685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9686if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688else
9689 case $LIPO_FOR_TARGET in
9690 [\\/]* | ?:[\\/]*)
9691 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9692 ;;
9693 *)
9694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $gcc_cv_tool_dirs
9696do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9701 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9704 fi
9705done
9706done
9707
9708 ;;
9709esac
9710fi
9711LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2aeb72e9 9712
278a7a38 9713if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9714 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9715echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
278a7a38 9716else
2aeb72e9
DD
9717 echo "$as_me:$LINENO: result: no" >&5
9718echo "${ECHO_T}no" >&6
278a7a38
AO
9719fi
9720
9721fi
9722if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9723
9724
9725if test -n "$LIPO_FOR_TARGET"; then
9726 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9727elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9728 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9729fi
9730
9731if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9732 for ncn_progname in lipo; do
9733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9734set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9735echo "$as_me:$LINENO: checking for $ac_word" >&5
9736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9737if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 9738 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9739else
278a7a38
AO
9740 if test -n "$LIPO_FOR_TARGET"; then
9741 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9742else
9743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744for as_dir in $PATH
1c710c3c
DJ
9745do
9746 IFS=$as_save_IFS
9747 test -z "$as_dir" && as_dir=.
9748 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9750 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9752 break 2
9753 fi
9754done
9755done
9756
e8b05380 9757fi
278a7a38
AO
9758fi
9759LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 9760if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9761 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9762echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 9763else
2aeb72e9
DD
9764 echo "$as_me:$LINENO: result: no" >&5
9765echo "${ECHO_T}no" >&6
e8b05380
PB
9766fi
9767
278a7a38 9768 done
e8b05380 9769fi
278a7a38
AO
9770
9771if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9772 for ncn_progname in lipo; do
2aeb72e9
DD
9773 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9774echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9775 if test -x $with_build_time_tools/${ncn_progname}; then
9776 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9777 echo "$as_me:$LINENO: result: yes" >&5
9778echo "${ECHO_T}yes" >&6
e8b05380
PB
9779 break
9780 else
2aeb72e9
DD
9781 echo "$as_me:$LINENO: result: no" >&5
9782echo "${ECHO_T}no" >&6
e8b05380
PB
9783 fi
9784 done
9785fi
9786
9787if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9788 for ncn_progname in lipo; do
9789 if test -n "$ncn_target_tool_prefix"; then
9790 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9791set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9792echo "$as_me:$LINENO: checking for $ac_word" >&5
9793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9794if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9796else
9797 if test -n "$LIPO_FOR_TARGET"; then
9798 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9799else
1c710c3c
DJ
9800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9801for as_dir in $PATH
9802do
9803 IFS=$as_save_IFS
9804 test -z "$as_dir" && as_dir=.
9805 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9807 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9809 break 2
9810 fi
9811done
9812done
9813
040b1c5a
GK
9814fi
9815fi
1c710c3c 9816LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9817if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9818 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9819echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9820else
2aeb72e9
DD
9821 echo "$as_me:$LINENO: result: no" >&5
9822echo "${ECHO_T}no" >&6
040b1c5a
GK
9823fi
9824
e8b05380
PB
9825 fi
9826 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 9828set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9829echo "$as_me:$LINENO: checking for $ac_word" >&5
9830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9831if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9833else
9834 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
9835 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9836else
1c710c3c
DJ
9837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838for as_dir in $PATH
9839do
9840 IFS=$as_save_IFS
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9844 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9846 break 2
9847 fi
9848done
9849done
9850
040b1c5a
GK
9851fi
9852fi
1c710c3c 9853LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9854if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9855 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9856echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9857else
2aeb72e9
DD
9858 echo "$as_me:$LINENO: result: no" >&5
9859echo "${ECHO_T}no" >&6
040b1c5a 9860fi
1c710c3c 9861
e8b05380
PB
9862 fi
9863 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9864 done
9865fi
1c710c3c 9866
040b1c5a
GK
9867if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9868 set dummy lipo
9869 if test $build = $target ; then
9870 LIPO_FOR_TARGET="$2"
9871 else
9872 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9873 fi
1c00b503
PB
9874else
9875 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
9876fi
9877
d1f8db0c
PB
9878else
9879 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
9880fi
9881
9882
9883
9884
9885if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9886 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9887 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9888echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9889 if test -x $with_build_time_tools/nm; then
9890 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9891 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2aeb72e9
DD
9892 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9893echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 9894 else
2aeb72e9
DD
9895 echo "$as_me:$LINENO: result: no" >&5
9896echo "${ECHO_T}no" >&6
d1f8db0c 9897 fi
e8b05380
PB
9898 elif test $build != $host && test $have_gcc_for_target = yes; then
9899 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
9900 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9901 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
9902 fi
9903fi
3e19841a 9904if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9905 # Extract the first word of "nm", so it can be a program name with args.
9906set dummy nm; ac_word=$2
2aeb72e9
DD
9907echo "$as_me:$LINENO: checking for $ac_word" >&5
9908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9909if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9911else
1c710c3c
DJ
9912 case $NM_FOR_TARGET in
9913 [\\/]* | ?:[\\/]*)
e8b05380
PB
9914 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9915 ;;
e8b05380 9916 *)
1c710c3c
DJ
9917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918for as_dir in $gcc_cv_tool_dirs
9919do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9924 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 break 2
9927 fi
9928done
9929done
9930
e8b05380
PB
9931 ;;
9932esac
9933fi
1c710c3c 9934NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2aeb72e9 9935
e8b05380 9936if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9937 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9938echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 9939else
2aeb72e9
DD
9940 echo "$as_me:$LINENO: result: no" >&5
9941echo "${ECHO_T}no" >&6
e8b05380
PB
9942fi
9943
9944fi
9945if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
9946
9947
9948if test -n "$NM_FOR_TARGET"; then
9949 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9950elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9951 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9952fi
9953
9954if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9955 for ncn_progname in nm; do
9956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9957set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9958echo "$as_me:$LINENO: checking for $ac_word" >&5
9959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9960if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962else
9963 if test -n "$NM_FOR_TARGET"; then
9964 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9965else
9966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967for as_dir in $PATH
9968do
9969 IFS=$as_save_IFS
9970 test -z "$as_dir" && as_dir=.
9971 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9973 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9975 break 2
9976 fi
9977done
9978done
9979
9980fi
9981fi
9982NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9983if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9984 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9985echo "${ECHO_T}$NM_FOR_TARGET" >&6
278a7a38 9986else
2aeb72e9
DD
9987 echo "$as_me:$LINENO: result: no" >&5
9988echo "${ECHO_T}no" >&6
278a7a38
AO
9989fi
9990
9991 done
9992fi
9993
9994if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9995 for ncn_progname in nm; do
2aeb72e9
DD
9996 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9997echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9998 if test -x $with_build_time_tools/${ncn_progname}; then
9999 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10000 echo "$as_me:$LINENO: result: yes" >&5
10001echo "${ECHO_T}yes" >&6
e8b05380
PB
10002 break
10003 else
2aeb72e9
DD
10004 echo "$as_me:$LINENO: result: no" >&5
10005echo "${ECHO_T}no" >&6
e8b05380
PB
10006 fi
10007 done
10008fi
10009
10010if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10011 for ncn_progname in nm; do
10012 if test -n "$ncn_target_tool_prefix"; then
10013 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10014set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10015echo "$as_me:$LINENO: checking for $ac_word" >&5
10016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10017if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10019else
4de997d1
PB
10020 if test -n "$NM_FOR_TARGET"; then
10021 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10022else
1c710c3c
DJ
10023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024for as_dir in $PATH
10025do
10026 IFS=$as_save_IFS
10027 test -z "$as_dir" && as_dir=.
10028 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10030 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10032 break 2
10033 fi
10034done
10035done
10036
ca9f4b81
AO
10037fi
10038fi
1c710c3c 10039NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 10040if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10041 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10042echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10043else
2aeb72e9
DD
10044 echo "$as_me:$LINENO: result: no" >&5
10045echo "${ECHO_T}no" >&6
ca9f4b81
AO
10046fi
10047
e8b05380
PB
10048 fi
10049 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10050 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10051set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10052echo "$as_me:$LINENO: checking for $ac_word" >&5
10053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10054if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10056else
2693c0b0
PB
10057 if test -n "$NM_FOR_TARGET"; then
10058 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10059else
1c710c3c
DJ
10060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061for as_dir in $PATH
10062do
10063 IFS=$as_save_IFS
10064 test -z "$as_dir" && as_dir=.
10065 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10067 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10069 break 2
10070 fi
10071done
10072done
10073
ca9f4b81
AO
10074fi
10075fi
1c710c3c 10076NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 10077if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10078 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10079echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10080else
2aeb72e9
DD
10081 echo "$as_me:$LINENO: result: no" >&5
10082echo "${ECHO_T}no" >&6
ca9f4b81 10083fi
1c710c3c 10084
e8b05380
PB
10085 fi
10086 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10087 done
10088fi
1c710c3c 10089
2693c0b0
PB
10090if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10091 set dummy nm
10092 if test $build = $target ; then
10093 NM_FOR_TARGET="$2"
ca9f4b81 10094 else
2693c0b0 10095 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10096 fi
1c00b503
PB
10097else
10098 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
10099fi
10100
d1f8db0c
PB
10101else
10102 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
10103fi
10104
10105
10106
10107
10108if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10109 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10110 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10111echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10112 if test -x $with_build_time_tools/objdump; then
10113 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10114 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2aeb72e9
DD
10115 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10116echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 10117 else
2aeb72e9
DD
10118 echo "$as_me:$LINENO: result: no" >&5
10119echo "${ECHO_T}no" >&6
d1f8db0c 10120 fi
e8b05380
PB
10121 elif test $build != $host && test $have_gcc_for_target = yes; then
10122 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
10123 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10124 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
10125 fi
10126fi
3e19841a 10127if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10128 # Extract the first word of "objdump", so it can be a program name with args.
10129set dummy objdump; ac_word=$2
2aeb72e9
DD
10130echo "$as_me:$LINENO: checking for $ac_word" >&5
10131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10132if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10134else
1c710c3c
DJ
10135 case $OBJDUMP_FOR_TARGET in
10136 [\\/]* | ?:[\\/]*)
e8b05380
PB
10137 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10138 ;;
e8b05380 10139 *)
1c710c3c
DJ
10140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141for as_dir in $gcc_cv_tool_dirs
10142do
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
10145 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10147 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10149 break 2
10150 fi
10151done
10152done
10153
e8b05380
PB
10154 ;;
10155esac
10156fi
1c710c3c 10157OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2aeb72e9 10158
e8b05380 10159if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10160 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10161echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 10162else
2aeb72e9
DD
10163 echo "$as_me:$LINENO: result: no" >&5
10164echo "${ECHO_T}no" >&6
e8b05380
PB
10165fi
10166
10167fi
10168if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10169
10170
10171if test -n "$OBJDUMP_FOR_TARGET"; then
10172 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10173elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10174 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10175fi
10176
10177if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10178 for ncn_progname in objdump; do
10179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10180set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10181echo "$as_me:$LINENO: checking for $ac_word" >&5
10182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10183if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10185else
10186 if test -n "$OBJDUMP_FOR_TARGET"; then
10187 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10188else
10189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190for as_dir in $PATH
10191do
10192 IFS=$as_save_IFS
10193 test -z "$as_dir" && as_dir=.
10194 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10196 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10198 break 2
10199 fi
10200done
10201done
10202
10203fi
10204fi
10205OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10206if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10207 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10208echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
278a7a38 10209else
2aeb72e9
DD
10210 echo "$as_me:$LINENO: result: no" >&5
10211echo "${ECHO_T}no" >&6
278a7a38
AO
10212fi
10213
10214 done
10215fi
10216
10217if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10218 for ncn_progname in objdump; do
2aeb72e9
DD
10219 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10220echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10221 if test -x $with_build_time_tools/${ncn_progname}; then
10222 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10223 echo "$as_me:$LINENO: result: yes" >&5
10224echo "${ECHO_T}yes" >&6
e8b05380
PB
10225 break
10226 else
2aeb72e9
DD
10227 echo "$as_me:$LINENO: result: no" >&5
10228echo "${ECHO_T}no" >&6
e8b05380
PB
10229 fi
10230 done
10231fi
10232
10233if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10234 for ncn_progname in objdump; do
10235 if test -n "$ncn_target_tool_prefix"; then
10236 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10237set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10238echo "$as_me:$LINENO: checking for $ac_word" >&5
10239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10240if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10242else
10243 if test -n "$OBJDUMP_FOR_TARGET"; then
10244 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10245else
1c710c3c
DJ
10246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247for as_dir in $PATH
10248do
10249 IFS=$as_save_IFS
10250 test -z "$as_dir" && as_dir=.
10251 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10253 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10255 break 2
10256 fi
10257done
10258done
10259
d739199a
DJ
10260fi
10261fi
1c710c3c 10262OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10263if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10264 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10265echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10266else
2aeb72e9
DD
10267 echo "$as_me:$LINENO: result: no" >&5
10268echo "${ECHO_T}no" >&6
d739199a
DJ
10269fi
10270
e8b05380
PB
10271 fi
10272 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 10274set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10275echo "$as_me:$LINENO: checking for $ac_word" >&5
10276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10277if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10279else
10280 if test -n "$OBJDUMP_FOR_TARGET"; then
10281 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10282else
1c710c3c
DJ
10283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284for as_dir in $PATH
10285do
10286 IFS=$as_save_IFS
10287 test -z "$as_dir" && as_dir=.
10288 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10290 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 break 2
10293 fi
10294done
10295done
10296
d739199a
DJ
10297fi
10298fi
1c710c3c 10299OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10300if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10301 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10302echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10303else
2aeb72e9
DD
10304 echo "$as_me:$LINENO: result: no" >&5
10305echo "${ECHO_T}no" >&6
d739199a 10306fi
1c710c3c 10307
e8b05380
PB
10308 fi
10309 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10310 done
10311fi
1c710c3c 10312
d739199a
DJ
10313if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10314 set dummy objdump
10315 if test $build = $target ; then
10316 OBJDUMP_FOR_TARGET="$2"
10317 else
10318 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10319 fi
1c00b503
PB
10320else
10321 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
10322fi
10323
d1f8db0c
PB
10324else
10325 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
10326fi
10327
10328
10329
10330
10331if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10332 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10333 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10334echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10335 if test -x $with_build_time_tools/ranlib; then
10336 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10337 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2aeb72e9
DD
10338 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10339echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 10340 else
2aeb72e9
DD
10341 echo "$as_me:$LINENO: result: no" >&5
10342echo "${ECHO_T}no" >&6
d1f8db0c 10343 fi
e8b05380
PB
10344 elif test $build != $host && test $have_gcc_for_target = yes; then
10345 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
10346 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10347 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
10348 fi
10349fi
3e19841a 10350if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10351 # Extract the first word of "ranlib", so it can be a program name with args.
10352set dummy ranlib; ac_word=$2
2aeb72e9
DD
10353echo "$as_me:$LINENO: checking for $ac_word" >&5
10354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10355if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10357else
1c710c3c
DJ
10358 case $RANLIB_FOR_TARGET in
10359 [\\/]* | ?:[\\/]*)
e8b05380
PB
10360 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10361 ;;
e8b05380 10362 *)
1c710c3c
DJ
10363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364for as_dir in $gcc_cv_tool_dirs
10365do
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10370 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 break 2
10373 fi
10374done
10375done
10376
e8b05380
PB
10377 ;;
10378esac
10379fi
1c710c3c 10380RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2aeb72e9 10381
e8b05380 10382if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10383 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10384echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 10385else
2aeb72e9
DD
10386 echo "$as_me:$LINENO: result: no" >&5
10387echo "${ECHO_T}no" >&6
e8b05380
PB
10388fi
10389
10390fi
10391if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
10392
10393
10394if test -n "$RANLIB_FOR_TARGET"; then
10395 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10396elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10397 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10398fi
10399
10400if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10401 for ncn_progname in ranlib; do
10402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10403set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10404echo "$as_me:$LINENO: checking for $ac_word" >&5
10405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10406if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10408else
10409 if test -n "$RANLIB_FOR_TARGET"; then
10410 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10411else
10412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10413for as_dir in $PATH
10414do
10415 IFS=$as_save_IFS
10416 test -z "$as_dir" && as_dir=.
10417 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10419 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10421 break 2
10422 fi
10423done
10424done
10425
10426fi
10427fi
10428RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10429if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10430 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10431echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
278a7a38 10432else
2aeb72e9
DD
10433 echo "$as_me:$LINENO: result: no" >&5
10434echo "${ECHO_T}no" >&6
278a7a38
AO
10435fi
10436
10437 done
10438fi
10439
10440if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10441 for ncn_progname in ranlib; do
2aeb72e9
DD
10442 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10443echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10444 if test -x $with_build_time_tools/${ncn_progname}; then
10445 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10446 echo "$as_me:$LINENO: result: yes" >&5
10447echo "${ECHO_T}yes" >&6
e8b05380
PB
10448 break
10449 else
2aeb72e9
DD
10450 echo "$as_me:$LINENO: result: no" >&5
10451echo "${ECHO_T}no" >&6
e8b05380
PB
10452 fi
10453 done
10454fi
10455
10456if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10457 for ncn_progname in ranlib; do
10458 if test -n "$ncn_target_tool_prefix"; then
10459 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 10460set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10461echo "$as_me:$LINENO: checking for $ac_word" >&5
10462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10463if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10465else
4de997d1
PB
10466 if test -n "$RANLIB_FOR_TARGET"; then
10467 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10468else
1c710c3c
DJ
10469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470for as_dir in $PATH
10471do
10472 IFS=$as_save_IFS
10473 test -z "$as_dir" && as_dir=.
10474 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10476 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10478 break 2
10479 fi
10480done
10481done
10482
ca9f4b81
AO
10483fi
10484fi
1c710c3c 10485RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 10486if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10487 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10488echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10489else
2aeb72e9
DD
10490 echo "$as_me:$LINENO: result: no" >&5
10491echo "${ECHO_T}no" >&6
ca9f4b81
AO
10492fi
10493
e8b05380
PB
10494 fi
10495 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10497set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10498echo "$as_me:$LINENO: checking for $ac_word" >&5
10499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10500if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10502else
2693c0b0
PB
10503 if test -n "$RANLIB_FOR_TARGET"; then
10504 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10505else
1c710c3c
DJ
10506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10507for as_dir in $PATH
10508do
10509 IFS=$as_save_IFS
10510 test -z "$as_dir" && as_dir=.
10511 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10513 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10515 break 2
10516 fi
10517done
10518done
10519
ca9f4b81
AO
10520fi
10521fi
1c710c3c 10522RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 10523if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10524 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10525echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10526else
2aeb72e9
DD
10527 echo "$as_me:$LINENO: result: no" >&5
10528echo "${ECHO_T}no" >&6
ca9f4b81 10529fi
1c710c3c 10530
e8b05380
PB
10531 fi
10532 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10533 done
10534fi
1c710c3c 10535
e8b05380
PB
10536if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10537 set dummy ranlib
10538 if test $build = $target ; then
10539 RANLIB_FOR_TARGET="$2"
10540 else
10541 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10542 fi
1c00b503
PB
10543else
10544 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 10545fi
2693c0b0 10546
d1f8db0c
PB
10547else
10548 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
10549fi
10550
e8b05380
PB
10551
10552
10553
10554if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10555 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10556 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10557echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10558 if test -x $with_build_time_tools/strip; then
10559 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10560 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2aeb72e9
DD
10561 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10562echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 10563 else
2aeb72e9
DD
10564 echo "$as_me:$LINENO: result: no" >&5
10565echo "${ECHO_T}no" >&6
d1f8db0c 10566 fi
e8b05380
PB
10567 elif test $build != $host && test $have_gcc_for_target = yes; then
10568 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
10569 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10570 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
10571 fi
10572fi
3e19841a 10573if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10574 # Extract the first word of "strip", so it can be a program name with args.
10575set dummy strip; ac_word=$2
2aeb72e9
DD
10576echo "$as_me:$LINENO: checking for $ac_word" >&5
10577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10578if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10580else
1c710c3c
DJ
10581 case $STRIP_FOR_TARGET in
10582 [\\/]* | ?:[\\/]*)
e8b05380
PB
10583 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10584 ;;
e8b05380 10585 *)
1c710c3c
DJ
10586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587for as_dir in $gcc_cv_tool_dirs
10588do
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10593 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10595 break 2
10596 fi
10597done
10598done
10599
e8b05380
PB
10600 ;;
10601esac
10602fi
1c710c3c 10603STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2aeb72e9 10604
e8b05380 10605if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10606 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10607echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 10608else
2aeb72e9
DD
10609 echo "$as_me:$LINENO: result: no" >&5
10610echo "${ECHO_T}no" >&6
e8b05380
PB
10611fi
10612
10613fi
10614if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
10615
10616
10617if test -n "$STRIP_FOR_TARGET"; then
10618 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10619elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10620 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10621fi
10622
10623if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10624 for ncn_progname in strip; do
10625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10626set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10627echo "$as_me:$LINENO: checking for $ac_word" >&5
10628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10629if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631else
10632 if test -n "$STRIP_FOR_TARGET"; then
10633 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10634else
10635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10636for as_dir in $PATH
10637do
10638 IFS=$as_save_IFS
10639 test -z "$as_dir" && as_dir=.
10640 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10642 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10644 break 2
10645 fi
10646done
10647done
10648
10649fi
10650fi
10651STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10652if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10653 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10654echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
278a7a38 10655else
2aeb72e9
DD
10656 echo "$as_me:$LINENO: result: no" >&5
10657echo "${ECHO_T}no" >&6
278a7a38
AO
10658fi
10659
10660 done
10661fi
10662
10663if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10664 for ncn_progname in strip; do
2aeb72e9
DD
10665 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10666echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10667 if test -x $with_build_time_tools/${ncn_progname}; then
10668 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10669 echo "$as_me:$LINENO: result: yes" >&5
10670echo "${ECHO_T}yes" >&6
e8b05380
PB
10671 break
10672 else
2aeb72e9
DD
10673 echo "$as_me:$LINENO: result: no" >&5
10674echo "${ECHO_T}no" >&6
e8b05380
PB
10675 fi
10676 done
10677fi
10678
10679if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10680 for ncn_progname in strip; do
10681 if test -n "$ncn_target_tool_prefix"; then
10682 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10683set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10684echo "$as_me:$LINENO: checking for $ac_word" >&5
10685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10686if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
10688else
10689 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10690 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10691else
10692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693for as_dir in $PATH
10694do
10695 IFS=$as_save_IFS
10696 test -z "$as_dir" && as_dir=.
10697 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10699 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10701 break 2
10702 fi
10703done
10704done
10705
040b1c5a
GK
10706fi
10707fi
1c710c3c 10708STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10709if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10710 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10711echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10712else
2aeb72e9
DD
10713 echo "$as_me:$LINENO: result: no" >&5
10714echo "${ECHO_T}no" >&6
040b1c5a
GK
10715fi
10716
e8b05380
PB
10717 fi
10718 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10720set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10721echo "$as_me:$LINENO: checking for $ac_word" >&5
10722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10723if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10725else
10726 if test -n "$STRIP_FOR_TARGET"; then
10727 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10728else
1c710c3c
DJ
10729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730for as_dir in $PATH
10731do
10732 IFS=$as_save_IFS
10733 test -z "$as_dir" && as_dir=.
10734 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10736 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 break 2
10739 fi
10740done
10741done
10742
040b1c5a
GK
10743fi
10744fi
1c710c3c 10745STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10746if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10747 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10748echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10749else
2aeb72e9
DD
10750 echo "$as_me:$LINENO: result: no" >&5
10751echo "${ECHO_T}no" >&6
040b1c5a 10752fi
1c710c3c 10753
e8b05380
PB
10754 fi
10755 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10756 done
10757fi
1c710c3c 10758
040b1c5a
GK
10759if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10760 set dummy strip
10761 if test $build = $target ; then
10762 STRIP_FOR_TARGET="$2"
10763 else
10764 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10765 fi
1c00b503
PB
10766else
10767 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
10768fi
10769
d1f8db0c
PB
10770else
10771 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
10772fi
10773
10774
10775
10776
10777if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10778 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10779 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10780echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10781 if test -x $with_build_time_tools/windres; then
10782 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10783 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2aeb72e9
DD
10784 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10785echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 10786 else
2aeb72e9
DD
10787 echo "$as_me:$LINENO: result: no" >&5
10788echo "${ECHO_T}no" >&6
d1f8db0c 10789 fi
e8b05380
PB
10790 elif test $build != $host && test $have_gcc_for_target = yes; then
10791 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
10792 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10793 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
10794 fi
10795fi
3e19841a 10796if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10797 # Extract the first word of "windres", so it can be a program name with args.
10798set dummy windres; ac_word=$2
2aeb72e9
DD
10799echo "$as_me:$LINENO: checking for $ac_word" >&5
10800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10801if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10803else
1c710c3c
DJ
10804 case $WINDRES_FOR_TARGET in
10805 [\\/]* | ?:[\\/]*)
e8b05380
PB
10806 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10807 ;;
e8b05380 10808 *)
1c710c3c
DJ
10809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810for as_dir in $gcc_cv_tool_dirs
10811do
10812 IFS=$as_save_IFS
10813 test -z "$as_dir" && as_dir=.
10814 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10816 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 break 2
10819 fi
10820done
10821done
10822
e8b05380
PB
10823 ;;
10824esac
10825fi
1c710c3c 10826WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2aeb72e9 10827
e8b05380 10828if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10829 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10830echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 10831else
2aeb72e9
DD
10832 echo "$as_me:$LINENO: result: no" >&5
10833echo "${ECHO_T}no" >&6
e8b05380
PB
10834fi
10835
10836fi
10837if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
10838
10839
10840if test -n "$WINDRES_FOR_TARGET"; then
10841 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10842elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10843 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10844fi
10845
10846if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10847 for ncn_progname in windres; do
10848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10849set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10850echo "$as_me:$LINENO: checking for $ac_word" >&5
10851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10852if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10854else
10855 if test -n "$WINDRES_FOR_TARGET"; then
10856 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10857else
10858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859for as_dir in $PATH
10860do
10861 IFS=$as_save_IFS
10862 test -z "$as_dir" && as_dir=.
10863 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10865 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10867 break 2
10868 fi
10869done
10870done
10871
10872fi
10873fi
10874WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10875if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10876 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10877echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
278a7a38 10878else
2aeb72e9
DD
10879 echo "$as_me:$LINENO: result: no" >&5
10880echo "${ECHO_T}no" >&6
278a7a38
AO
10881fi
10882
10883 done
10884fi
10885
10886if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10887 for ncn_progname in windres; do
2aeb72e9
DD
10888 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10889echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10890 if test -x $with_build_time_tools/${ncn_progname}; then
10891 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10892 echo "$as_me:$LINENO: result: yes" >&5
10893echo "${ECHO_T}yes" >&6
e8b05380
PB
10894 break
10895 else
2aeb72e9
DD
10896 echo "$as_me:$LINENO: result: no" >&5
10897echo "${ECHO_T}no" >&6
e8b05380
PB
10898 fi
10899 done
10900fi
10901
10902if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10903 for ncn_progname in windres; do
10904 if test -n "$ncn_target_tool_prefix"; then
10905 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10906set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10907echo "$as_me:$LINENO: checking for $ac_word" >&5
10908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10909if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10911else
4de997d1
PB
10912 if test -n "$WINDRES_FOR_TARGET"; then
10913 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10914else
1c710c3c
DJ
10915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10916for as_dir in $PATH
10917do
10918 IFS=$as_save_IFS
10919 test -z "$as_dir" && as_dir=.
10920 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10922 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10924 break 2
10925 fi
10926done
10927done
10928
ca9f4b81
AO
10929fi
10930fi
1c710c3c 10931WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 10932if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10933 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10934echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10935else
2aeb72e9
DD
10936 echo "$as_me:$LINENO: result: no" >&5
10937echo "${ECHO_T}no" >&6
ca9f4b81
AO
10938fi
10939
e8b05380
PB
10940 fi
10941 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10942 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10943set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10944echo "$as_me:$LINENO: checking for $ac_word" >&5
10945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10946if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10948else
2693c0b0
PB
10949 if test -n "$WINDRES_FOR_TARGET"; then
10950 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10951else
1c710c3c
DJ
10952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953for as_dir in $PATH
10954do
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10959 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 break 2
10962 fi
10963done
10964done
10965
ca9f4b81
AO
10966fi
10967fi
1c710c3c 10968WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 10969if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10970 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10971echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10972else
2aeb72e9
DD
10973 echo "$as_me:$LINENO: result: no" >&5
10974echo "${ECHO_T}no" >&6
ca9f4b81 10975fi
1c710c3c 10976
e8b05380
PB
10977 fi
10978 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10979 done
10980fi
1c710c3c 10981
2693c0b0
PB
10982if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10983 set dummy windres
10984 if test $build = $target ; then
10985 WINDRES_FOR_TARGET="$2"
ca9f4b81 10986 else
2693c0b0 10987 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10988 fi
1c00b503
PB
10989else
10990 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
10991fi
10992
d1f8db0c
PB
10993else
10994 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
10995fi
10996
4977bab6 10997
901119ae
KT
10998
10999
11000if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11001 if test -n "$with_build_time_tools"; then
11002 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11003echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11004 if test -x $with_build_time_tools/windmc; then
11005 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11006 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11007 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11008echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11009 else
11010 echo "$as_me:$LINENO: result: no" >&5
11011echo "${ECHO_T}no" >&6
11012 fi
11013 elif test $build != $host && test $have_gcc_for_target = yes; then
11014 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
11015 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11016 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
11017 fi
11018fi
11019if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11020 # Extract the first word of "windmc", so it can be a program name with args.
11021set dummy windmc; ac_word=$2
11022echo "$as_me:$LINENO: checking for $ac_word" >&5
11023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11024if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11026else
11027 case $WINDMC_FOR_TARGET in
11028 [\\/]* | ?:[\\/]*)
11029 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11030 ;;
11031 *)
11032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033for as_dir in $gcc_cv_tool_dirs
11034do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11039 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11042 fi
11043done
11044done
11045
11046 ;;
11047esac
11048fi
11049WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11050
11051if test -n "$WINDMC_FOR_TARGET"; then
11052 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11053echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11054else
11055 echo "$as_me:$LINENO: result: no" >&5
11056echo "${ECHO_T}no" >&6
11057fi
11058
11059fi
11060if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11061
11062
11063if test -n "$WINDMC_FOR_TARGET"; then
11064 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11065elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11066 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11067fi
11068
11069if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11070 for ncn_progname in windmc; do
11071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11072set dummy ${ncn_progname}; ac_word=$2
11073echo "$as_me:$LINENO: checking for $ac_word" >&5
11074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11075if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11077else
11078 if test -n "$WINDMC_FOR_TARGET"; then
11079 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11080else
11081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082for as_dir in $PATH
11083do
11084 IFS=$as_save_IFS
11085 test -z "$as_dir" && as_dir=.
11086 for ac_exec_ext in '' $ac_executable_extensions; do
11087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11088 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11090 break 2
11091 fi
11092done
11093done
11094
11095fi
11096fi
11097WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11098if test -n "$WINDMC_FOR_TARGET"; then
11099 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11100echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11101else
11102 echo "$as_me:$LINENO: result: no" >&5
11103echo "${ECHO_T}no" >&6
11104fi
11105
11106 done
11107fi
11108
11109if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11110 for ncn_progname in windmc; do
11111 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11112echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11113 if test -x $with_build_time_tools/${ncn_progname}; then
11114 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11115 echo "$as_me:$LINENO: result: yes" >&5
11116echo "${ECHO_T}yes" >&6
11117 break
11118 else
11119 echo "$as_me:$LINENO: result: no" >&5
11120echo "${ECHO_T}no" >&6
11121 fi
11122 done
11123fi
11124
11125if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11126 for ncn_progname in windmc; do
11127 if test -n "$ncn_target_tool_prefix"; then
11128 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11129set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11130echo "$as_me:$LINENO: checking for $ac_word" >&5
11131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11132if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11134else
11135 if test -n "$WINDMC_FOR_TARGET"; then
11136 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11137else
11138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139for as_dir in $PATH
11140do
11141 IFS=$as_save_IFS
11142 test -z "$as_dir" && as_dir=.
11143 for ac_exec_ext in '' $ac_executable_extensions; do
11144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11145 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11147 break 2
11148 fi
11149done
11150done
11151
11152fi
11153fi
11154WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11155if test -n "$WINDMC_FOR_TARGET"; then
11156 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11157echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11158else
11159 echo "$as_me:$LINENO: result: no" >&5
11160echo "${ECHO_T}no" >&6
11161fi
11162
11163 fi
11164 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11166set dummy ${ncn_progname}; ac_word=$2
11167echo "$as_me:$LINENO: checking for $ac_word" >&5
11168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11169if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11171else
11172 if test -n "$WINDMC_FOR_TARGET"; then
11173 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11174else
11175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176for as_dir in $PATH
11177do
11178 IFS=$as_save_IFS
11179 test -z "$as_dir" && as_dir=.
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11182 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 break 2
11185 fi
11186done
11187done
11188
11189fi
11190fi
11191WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11192if test -n "$WINDMC_FOR_TARGET"; then
11193 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11194echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11195else
11196 echo "$as_me:$LINENO: result: no" >&5
11197echo "${ECHO_T}no" >&6
11198fi
11199
11200 fi
11201 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11202 done
11203fi
11204
11205if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11206 set dummy windmc
11207 if test $build = $target ; then
11208 WINDMC_FOR_TARGET="$2"
11209 else
11210 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11211 fi
1c00b503
PB
11212else
11213 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
11214fi
11215
11216else
11217 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11218fi
11219
11220
2abefe3d
PB
11221RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11222
2aeb72e9
DD
11223echo "$as_me:$LINENO: checking where to find the target ar" >&5
11224echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 11225if test "x${build}" != "x${host}" ; then
e8b05380
PB
11226 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11227 # We already found the complete path
172e41aa 11228 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11229 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11230echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11231 else
11232 # Canadian cross, just use what we found
2aeb72e9
DD
11233 echo "$as_me:$LINENO: result: pre-installed" >&5
11234echo "${ECHO_T}pre-installed" >&6
e8b05380 11235 fi
2abefe3d
PB
11236else
11237 ok=yes
11238 case " ${configdirs} " in
11239 *" binutils "*) ;;
11240 *) ok=no ;;
11241 esac
1c710c3c 11242
2abefe3d
PB
11243 if test $ok = yes; then
11244 # An in-tree tool is available and we can use it
11245 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
2aeb72e9
DD
11246 echo "$as_me:$LINENO: result: just compiled" >&5
11247echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11248 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11249 # We already found the complete path
172e41aa 11250 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11251 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11252echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11253 elif test "x$target" = "x$host"; then
11254 # We can use an host tool
11255 AR_FOR_TARGET='$(AR)'
2aeb72e9
DD
11256 echo "$as_me:$LINENO: result: host tool" >&5
11257echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11258 else
11259 # We need a cross tool
2aeb72e9
DD
11260 echo "$as_me:$LINENO: result: pre-installed" >&5
11261echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11262 fi
11263fi
0b0dc272 11264
2aeb72e9
DD
11265echo "$as_me:$LINENO: checking where to find the target as" >&5
11266echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 11267if test "x${build}" != "x${host}" ; then
e8b05380
PB
11268 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11269 # We already found the complete path
172e41aa 11270 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11271 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11272echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11273 else
11274 # Canadian cross, just use what we found
2aeb72e9
DD
11275 echo "$as_me:$LINENO: result: pre-installed" >&5
11276echo "${ECHO_T}pre-installed" >&6
e8b05380 11277 fi
2abefe3d
PB
11278else
11279 ok=yes
11280 case " ${configdirs} " in
11281 *" gas "*) ;;
11282 *) ok=no ;;
11283 esac
1c710c3c 11284
2abefe3d
PB
11285 if test $ok = yes; then
11286 # An in-tree tool is available and we can use it
11287 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
2aeb72e9
DD
11288 echo "$as_me:$LINENO: result: just compiled" >&5
11289echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11290 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11291 # We already found the complete path
172e41aa 11292 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11293 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11294echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11295 elif test "x$target" = "x$host"; then
11296 # We can use an host tool
11297 AS_FOR_TARGET='$(AS)'
2aeb72e9
DD
11298 echo "$as_me:$LINENO: result: host tool" >&5
11299echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11300 else
11301 # We need a cross tool
2aeb72e9
DD
11302 echo "$as_me:$LINENO: result: pre-installed" >&5
11303echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11304 fi
11305fi
0b0dc272 11306
2aeb72e9
DD
11307echo "$as_me:$LINENO: checking where to find the target cc" >&5
11308echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 11309if test "x${build}" != "x${host}" ; then
e8b05380
PB
11310 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11311 # We already found the complete path
172e41aa 11312 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11313 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11314echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11315 else
11316 # Canadian cross, just use what we found
2aeb72e9
DD
11317 echo "$as_me:$LINENO: result: pre-installed" >&5
11318echo "${ECHO_T}pre-installed" >&6
e8b05380 11319 fi
2abefe3d
PB
11320else
11321 ok=yes
11322 case " ${configdirs} " in
11323 *" gcc "*) ;;
11324 *) ok=no ;;
11325 esac
1c710c3c 11326
2abefe3d
PB
11327 if test $ok = yes; then
11328 # An in-tree tool is available and we can use it
11329 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11330 echo "$as_me:$LINENO: result: just compiled" >&5
11331echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11332 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11333 # We already found the complete path
172e41aa 11334 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11335 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11336echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11337 elif test "x$target" = "x$host"; then
11338 # We can use an host tool
11339 CC_FOR_TARGET='$(CC)'
2aeb72e9
DD
11340 echo "$as_me:$LINENO: result: host tool" >&5
11341echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11342 else
11343 # We need a cross tool
2aeb72e9
DD
11344 echo "$as_me:$LINENO: result: pre-installed" >&5
11345echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11346 fi
11347fi
0b0dc272 11348
2aeb72e9
DD
11349echo "$as_me:$LINENO: checking where to find the target c++" >&5
11350echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 11351if test "x${build}" != "x${host}" ; then
e8b05380
PB
11352 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11353 # We already found the complete path
172e41aa 11354 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11355 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11356echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11357 else
11358 # Canadian cross, just use what we found
2aeb72e9
DD
11359 echo "$as_me:$LINENO: result: pre-installed" >&5
11360echo "${ECHO_T}pre-installed" >&6
e8b05380 11361 fi
2abefe3d
PB
11362else
11363 ok=yes
11364 case " ${configdirs} " in
11365 *" gcc "*) ;;
11366 *) ok=no ;;
11367 esac
11368 case ,${enable_languages}, in
11369 *,c++,*) ;;
11370 *) ok=no ;;
11371 esac
11372 if test $ok = yes; then
11373 # An in-tree tool is available and we can use it
11374 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
2aeb72e9
DD
11375 echo "$as_me:$LINENO: result: just compiled" >&5
11376echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11377 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11378 # We already found the complete path
172e41aa 11379 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11380 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11381echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11382 elif test "x$target" = "x$host"; then
11383 # We can use an host tool
11384 CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11385 echo "$as_me:$LINENO: result: host tool" >&5
11386echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11387 else
11388 # We need a cross tool
2aeb72e9
DD
11389 echo "$as_me:$LINENO: result: pre-installed" >&5
11390echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11391 fi
11392fi
0b0dc272 11393
2aeb72e9
DD
11394echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11395echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 11396if test "x${build}" != "x${host}" ; then
e8b05380
PB
11397 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11398 # We already found the complete path
172e41aa 11399 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11400 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11401echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11402 else
11403 # Canadian cross, just use what we found
2aeb72e9
DD
11404 echo "$as_me:$LINENO: result: pre-installed" >&5
11405echo "${ECHO_T}pre-installed" >&6
e8b05380 11406 fi
2abefe3d
PB
11407else
11408 ok=yes
11409 case " ${configdirs} " in
11410 *" gcc "*) ;;
11411 *) ok=no ;;
11412 esac
11413 case ,${enable_languages}, in
11414 *,c++,*) ;;
11415 *) ok=no ;;
11416 esac
11417 if test $ok = yes; then
11418 # An in-tree tool is available and we can use it
11419 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
2aeb72e9
DD
11420 echo "$as_me:$LINENO: result: just compiled" >&5
11421echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11422 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11423 # We already found the complete path
172e41aa 11424 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11425 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11426echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11427 elif test "x$target" = "x$host"; then
11428 # We can use an host tool
11429 RAW_CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11430 echo "$as_me:$LINENO: result: host tool" >&5
11431echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11432 else
11433 # We need a cross tool
2aeb72e9
DD
11434 echo "$as_me:$LINENO: result: pre-installed" >&5
11435echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11436 fi
11437fi
0b0dc272 11438
2aeb72e9
DD
11439echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11440echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 11441if test "x${build}" != "x${host}" ; then
e8b05380
PB
11442 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11443 # We already found the complete path
172e41aa 11444 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11445 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11446echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11447 else
11448 # Canadian cross, just use what we found
2aeb72e9
DD
11449 echo "$as_me:$LINENO: result: pre-installed" >&5
11450echo "${ECHO_T}pre-installed" >&6
e8b05380 11451 fi
2abefe3d
PB
11452else
11453 ok=yes
11454 case " ${configdirs} " in
11455 *" binutils "*) ;;
11456 *) ok=no ;;
11457 esac
1c710c3c 11458
2abefe3d
PB
11459 if test $ok = yes; then
11460 # An in-tree tool is available and we can use it
11461 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
2aeb72e9
DD
11462 echo "$as_me:$LINENO: result: just compiled" >&5
11463echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11464 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11465 # We already found the complete path
172e41aa 11466 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11467 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11468echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11469 elif test "x$target" = "x$host"; then
11470 # We can use an host tool
11471 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
2aeb72e9
DD
11472 echo "$as_me:$LINENO: result: host tool" >&5
11473echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11474 else
11475 # We need a cross tool
2aeb72e9
DD
11476 echo "$as_me:$LINENO: result: pre-installed" >&5
11477echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11478 fi
11479fi
0b0dc272 11480
2aeb72e9
DD
11481echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11482echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 11483if test "x${build}" != "x${host}" ; then
e8b05380
PB
11484 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11485 # We already found the complete path
172e41aa 11486 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11487 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11488echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11489 else
11490 # Canadian cross, just use what we found
2aeb72e9
DD
11491 echo "$as_me:$LINENO: result: pre-installed" >&5
11492echo "${ECHO_T}pre-installed" >&6
e8b05380 11493 fi
2abefe3d
PB
11494else
11495 ok=yes
11496 case " ${configdirs} " in
11497 *" gcc "*) ;;
11498 *) ok=no ;;
11499 esac
1c710c3c 11500
2abefe3d
PB
11501 if test $ok = yes; then
11502 # An in-tree tool is available and we can use it
11503 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11504 echo "$as_me:$LINENO: result: just compiled" >&5
11505echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11506 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11507 # We already found the complete path
172e41aa 11508 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11509 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11510echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11511 elif test "x$target" = "x$host"; then
11512 # We can use an host tool
11513 GCC_FOR_TARGET='$()'
2aeb72e9
DD
11514 echo "$as_me:$LINENO: result: host tool" >&5
11515echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11516 else
11517 # We need a cross tool
2aeb72e9
DD
11518 echo "$as_me:$LINENO: result: pre-installed" >&5
11519echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11520 fi
11521fi
0b0dc272 11522
2aeb72e9
DD
11523echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11524echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 11525if test "x${build}" != "x${host}" ; then
e8b05380
PB
11526 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11527 # We already found the complete path
172e41aa 11528 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11529 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11530echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11531 else
11532 # Canadian cross, just use what we found
2aeb72e9
DD
11533 echo "$as_me:$LINENO: result: pre-installed" >&5
11534echo "${ECHO_T}pre-installed" >&6
e8b05380 11535 fi
2abefe3d
PB
11536else
11537 ok=yes
11538 case " ${configdirs} " in
11539 *" gcc "*) ;;
11540 *) ok=no ;;
11541 esac
11542 case ,${enable_languages}, in
11543 *,java,*) ;;
11544 *) ok=no ;;
11545 esac
11546 if test $ok = yes; then
11547 # An in-tree tool is available and we can use it
11548 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11549 echo "$as_me:$LINENO: result: just compiled" >&5
11550echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11551 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11552 # We already found the complete path
172e41aa 11553 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11554 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11555echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11556 elif test "x$target" = "x$host"; then
11557 # We can use an host tool
11558 GCJ_FOR_TARGET='$(GCJ)'
2aeb72e9
DD
11559 echo "$as_me:$LINENO: result: host tool" >&5
11560echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11561 else
11562 # We need a cross tool
2aeb72e9
DD
11563 echo "$as_me:$LINENO: result: pre-installed" >&5
11564echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11565 fi
11566fi
0b0dc272 11567
2aeb72e9
DD
11568echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11569echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 11570if test "x${build}" != "x${host}" ; then
e8b05380
PB
11571 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11572 # We already found the complete path
172e41aa 11573 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11574 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11575echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11576 else
11577 # Canadian cross, just use what we found
2aeb72e9
DD
11578 echo "$as_me:$LINENO: result: pre-installed" >&5
11579echo "${ECHO_T}pre-installed" >&6
e8b05380 11580 fi
2abefe3d
PB
11581else
11582 ok=yes
11583 case " ${configdirs} " in
11584 *" gcc "*) ;;
11585 *) ok=no ;;
11586 esac
11587 case ,${enable_languages}, in
11588 *,fortran,*) ;;
11589 *) ok=no ;;
11590 esac
11591 if test $ok = yes; then
11592 # An in-tree tool is available and we can use it
11593 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11594 echo "$as_me:$LINENO: result: just compiled" >&5
11595echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11596 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11597 # We already found the complete path
172e41aa 11598 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11599 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11600echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11601 elif test "x$target" = "x$host"; then
11602 # We can use an host tool
11603 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
2aeb72e9
DD
11604 echo "$as_me:$LINENO: result: host tool" >&5
11605echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11606 else
11607 # We need a cross tool
2aeb72e9
DD
11608 echo "$as_me:$LINENO: result: pre-installed" >&5
11609echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11610 fi
11611fi
0b0dc272 11612
2aeb72e9
DD
11613echo "$as_me:$LINENO: checking where to find the target ld" >&5
11614echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 11615if test "x${build}" != "x${host}" ; then
e8b05380
PB
11616 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11617 # We already found the complete path
172e41aa 11618 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11619 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11620echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11621 else
11622 # Canadian cross, just use what we found
2aeb72e9
DD
11623 echo "$as_me:$LINENO: result: pre-installed" >&5
11624echo "${ECHO_T}pre-installed" >&6
e8b05380 11625 fi
2abefe3d
PB
11626else
11627 ok=yes
11628 case " ${configdirs} " in
11629 *" ld "*) ;;
11630 *) ok=no ;;
11631 esac
1c710c3c 11632
2abefe3d
PB
11633 if test $ok = yes; then
11634 # An in-tree tool is available and we can use it
11635 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
2aeb72e9
DD
11636 echo "$as_me:$LINENO: result: just compiled" >&5
11637echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11638 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11639 # We already found the complete path
172e41aa 11640 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11641 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11642echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11643 elif test "x$target" = "x$host"; then
11644 # We can use an host tool
11645 LD_FOR_TARGET='$(LD)'
2aeb72e9
DD
11646 echo "$as_me:$LINENO: result: host tool" >&5
11647echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11648 else
11649 # We need a cross tool
2aeb72e9
DD
11650 echo "$as_me:$LINENO: result: pre-installed" >&5
11651echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11652 fi
11653fi
0b0dc272 11654
2aeb72e9
DD
11655echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11656echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 11657if test "x${build}" != "x${host}" ; then
e8b05380
PB
11658 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11659 # We already found the complete path
172e41aa 11660 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11661 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11662echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11663 else
11664 # Canadian cross, just use what we found
2aeb72e9
DD
11665 echo "$as_me:$LINENO: result: pre-installed" >&5
11666echo "${ECHO_T}pre-installed" >&6
e8b05380 11667 fi
2abefe3d 11668else
e8b05380
PB
11669 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11670 # We already found the complete path
172e41aa 11671 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11672 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11673echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 11674 elif test "x$target" = "x$host"; then
2abefe3d
PB
11675 # We can use an host tool
11676 LIPO_FOR_TARGET='$(LIPO)'
2aeb72e9
DD
11677 echo "$as_me:$LINENO: result: host tool" >&5
11678echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11679 else
11680 # We need a cross tool
2aeb72e9
DD
11681 echo "$as_me:$LINENO: result: pre-installed" >&5
11682echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11683 fi
11684fi
0b0dc272 11685
2aeb72e9
DD
11686echo "$as_me:$LINENO: checking where to find the target nm" >&5
11687echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 11688if test "x${build}" != "x${host}" ; then
e8b05380
PB
11689 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11690 # We already found the complete path
172e41aa 11691 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11692 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11693echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11694 else
11695 # Canadian cross, just use what we found
2aeb72e9
DD
11696 echo "$as_me:$LINENO: result: pre-installed" >&5
11697echo "${ECHO_T}pre-installed" >&6
e8b05380 11698 fi
2abefe3d
PB
11699else
11700 ok=yes
11701 case " ${configdirs} " in
11702 *" binutils "*) ;;
11703 *) ok=no ;;
11704 esac
1c710c3c 11705
2abefe3d
PB
11706 if test $ok = yes; then
11707 # An in-tree tool is available and we can use it
11708 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
2aeb72e9
DD
11709 echo "$as_me:$LINENO: result: just compiled" >&5
11710echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11711 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11712 # We already found the complete path
172e41aa 11713 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11714 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11715echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11716 elif test "x$target" = "x$host"; then
11717 # We can use an host tool
11718 NM_FOR_TARGET='$(NM)'
2aeb72e9
DD
11719 echo "$as_me:$LINENO: result: host tool" >&5
11720echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11721 else
11722 # We need a cross tool
2aeb72e9
DD
11723 echo "$as_me:$LINENO: result: pre-installed" >&5
11724echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11725 fi
11726fi
0b0dc272 11727
2aeb72e9
DD
11728echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11729echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 11730if test "x${build}" != "x${host}" ; then
e8b05380
PB
11731 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11732 # We already found the complete path
172e41aa 11733 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11734 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11735echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11736 else
11737 # Canadian cross, just use what we found
2aeb72e9
DD
11738 echo "$as_me:$LINENO: result: pre-installed" >&5
11739echo "${ECHO_T}pre-installed" >&6
e8b05380 11740 fi
2abefe3d
PB
11741else
11742 ok=yes
11743 case " ${configdirs} " in
11744 *" binutils "*) ;;
11745 *) ok=no ;;
11746 esac
1c710c3c 11747
2abefe3d
PB
11748 if test $ok = yes; then
11749 # An in-tree tool is available and we can use it
11750 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
2aeb72e9
DD
11751 echo "$as_me:$LINENO: result: just compiled" >&5
11752echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11753 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11754 # We already found the complete path
172e41aa 11755 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11756 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11757echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11758 elif test "x$target" = "x$host"; then
11759 # We can use an host tool
11760 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
2aeb72e9
DD
11761 echo "$as_me:$LINENO: result: host tool" >&5
11762echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11763 else
11764 # We need a cross tool
2aeb72e9
DD
11765 echo "$as_me:$LINENO: result: pre-installed" >&5
11766echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11767 fi
11768fi
0b0dc272 11769
2aeb72e9
DD
11770echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11771echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 11772if test "x${build}" != "x${host}" ; then
e8b05380
PB
11773 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11774 # We already found the complete path
172e41aa 11775 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11776 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11777echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11778 else
11779 # Canadian cross, just use what we found
2aeb72e9
DD
11780 echo "$as_me:$LINENO: result: pre-installed" >&5
11781echo "${ECHO_T}pre-installed" >&6
e8b05380 11782 fi
2abefe3d
PB
11783else
11784 ok=yes
11785 case " ${configdirs} " in
11786 *" binutils "*) ;;
11787 *) ok=no ;;
11788 esac
1c710c3c 11789
2abefe3d
PB
11790 if test $ok = yes; then
11791 # An in-tree tool is available and we can use it
11792 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
2aeb72e9
DD
11793 echo "$as_me:$LINENO: result: just compiled" >&5
11794echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11795 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11796 # We already found the complete path
172e41aa 11797 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11798 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11799echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11800 elif test "x$target" = "x$host"; then
11801 # We can use an host tool
11802 RANLIB_FOR_TARGET='$(RANLIB)'
2aeb72e9
DD
11803 echo "$as_me:$LINENO: result: host tool" >&5
11804echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11805 else
11806 # We need a cross tool
2aeb72e9
DD
11807 echo "$as_me:$LINENO: result: pre-installed" >&5
11808echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11809 fi
11810fi
0b0dc272 11811
2aeb72e9
DD
11812echo "$as_me:$LINENO: checking where to find the target strip" >&5
11813echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 11814if test "x${build}" != "x${host}" ; then
e8b05380
PB
11815 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11816 # We already found the complete path
172e41aa 11817 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11818 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11819echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11820 else
11821 # Canadian cross, just use what we found
2aeb72e9
DD
11822 echo "$as_me:$LINENO: result: pre-installed" >&5
11823echo "${ECHO_T}pre-installed" >&6
e8b05380 11824 fi
2abefe3d
PB
11825else
11826 ok=yes
11827 case " ${configdirs} " in
11828 *" binutils "*) ;;
11829 *) ok=no ;;
11830 esac
1c710c3c 11831
2abefe3d
PB
11832 if test $ok = yes; then
11833 # An in-tree tool is available and we can use it
11834 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
2aeb72e9
DD
11835 echo "$as_me:$LINENO: result: just compiled" >&5
11836echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11837 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11838 # We already found the complete path
172e41aa 11839 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11840 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11841echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11842 elif test "x$target" = "x$host"; then
11843 # We can use an host tool
11844 STRIP_FOR_TARGET='$(STRIP)'
2aeb72e9
DD
11845 echo "$as_me:$LINENO: result: host tool" >&5
11846echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11847 else
11848 # We need a cross tool
2aeb72e9
DD
11849 echo "$as_me:$LINENO: result: pre-installed" >&5
11850echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11851 fi
11852fi
0b0dc272 11853
2aeb72e9
DD
11854echo "$as_me:$LINENO: checking where to find the target windres" >&5
11855echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 11856if test "x${build}" != "x${host}" ; then
e8b05380
PB
11857 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11858 # We already found the complete path
172e41aa 11859 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11860 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11861echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11862 else
11863 # Canadian cross, just use what we found
2aeb72e9
DD
11864 echo "$as_me:$LINENO: result: pre-installed" >&5
11865echo "${ECHO_T}pre-installed" >&6
e8b05380 11866 fi
2abefe3d
PB
11867else
11868 ok=yes
11869 case " ${configdirs} " in
11870 *" binutils "*) ;;
11871 *) ok=no ;;
11872 esac
1c710c3c 11873
2abefe3d
PB
11874 if test $ok = yes; then
11875 # An in-tree tool is available and we can use it
11876 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
2aeb72e9
DD
11877 echo "$as_me:$LINENO: result: just compiled" >&5
11878echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11879 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11880 # We already found the complete path
172e41aa 11881 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11882 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11883echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11884 elif test "x$target" = "x$host"; then
11885 # We can use an host tool
11886 WINDRES_FOR_TARGET='$(WINDRES)'
2aeb72e9
DD
11887 echo "$as_me:$LINENO: result: host tool" >&5
11888echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11889 else
11890 # We need a cross tool
2aeb72e9
DD
11891 echo "$as_me:$LINENO: result: pre-installed" >&5
11892echo "${ECHO_T}pre-installed" >&6
2abefe3d 11893 fi
671aa708 11894fi
be912515 11895
901119ae
KT
11896echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11897echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11898if test "x${build}" != "x${host}" ; then
11899 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11900 # We already found the complete path
11901 ac_dir=`dirname $WINDMC_FOR_TARGET`
11902 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11903echo "${ECHO_T}pre-installed in $ac_dir" >&6
11904 else
11905 # Canadian cross, just use what we found
11906 echo "$as_me:$LINENO: result: pre-installed" >&5
11907echo "${ECHO_T}pre-installed" >&6
11908 fi
11909else
11910 ok=yes
11911 case " ${configdirs} " in
11912 *" binutils "*) ;;
11913 *) ok=no ;;
11914 esac
11915
11916 if test $ok = yes; then
11917 # An in-tree tool is available and we can use it
11918 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11919 echo "$as_me:$LINENO: result: just compiled" >&5
11920echo "${ECHO_T}just compiled" >&6
11921 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11922 # We already found the complete path
11923 ac_dir=`dirname $WINDMC_FOR_TARGET`
11924 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11925echo "${ECHO_T}pre-installed in $ac_dir" >&6
11926 elif test "x$target" = "x$host"; then
11927 # We can use an host tool
11928 WINDMC_FOR_TARGET='$(WINDMC)'
11929 echo "$as_me:$LINENO: result: host tool" >&5
11930echo "${ECHO_T}host tool" >&6
11931 else
11932 # We need a cross tool
11933 echo "$as_me:$LINENO: result: pre-installed" >&5
11934echo "${ECHO_T}pre-installed" >&6
11935 fi
11936fi
11937
be912515
NN
11938
11939
2abefe3d 11940
0b0dc272 11941
671aa708
NN
11942# Certain tools may need extra flags.
11943AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11944RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11945NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11946
2abefe3d
PB
11947# When building target libraries, except in a Canadian cross, we use
11948# the same toolchain as the compiler we just built.
11949COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11950COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11951COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11952if test $host = $build; then
11953 case " $configdirs " in
11954 *" gcc "*)
11955 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11956 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11957 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11958 ;;
11959 esac
11960fi
11961
11962
11963
11964
11965
2aeb72e9
DD
11966echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11967echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11968# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee03dc5e 11969if test "${enable_maintainer_mode+set}" = set; then
2aeb72e9
DD
11970 enableval="$enable_maintainer_mode"
11971 USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
11972else
11973 USE_MAINTAINER_MODE=no
2aeb72e9
DD
11974fi;
11975echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11976echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
11977
11978
11979if test "$USE_MAINTAINER_MODE" = yes; then
11980 MAINTAINER_MODE_TRUE=
11981 MAINTAINER_MODE_FALSE='#'
11982else
11983 MAINTAINER_MODE_TRUE='#'
11984 MAINTAINER_MODE_FALSE=
1c710c3c 11985fi
ee03dc5e
AO
11986MAINT=$MAINTAINER_MODE_TRUE
11987
2805b53a
NN
11988# ---------------------
11989# GCC bootstrap support
11990# ---------------------
11991
11992# Stage specific cflags for build.
11993stage1_cflags="-g"
11994case $build in
11995 vax-*-*)
11996 case ${GCC} in
11997 yes) stage1_cflags="-g -Wa,-J" ;;
11998 *) stage1_cflags="-g -J" ;;
11999 esac ;;
2805b53a
NN
12000esac
12001
0b50988a
EB
12002# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12003if test "$GCC" = yes; then
12004 saved_CFLAGS="$CFLAGS"
12005
12006 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12007 CFLAGS="$CFLAGS -fkeep-inline-functions"
2aeb72e9
DD
12008 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12009echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
1c710c3c
DJ
12010 cat >conftest.$ac_ext <<_ACEOF
12011/* confdefs.h. */
12012_ACEOF
12013cat confdefs.h >>conftest.$ac_ext
12014cat >>conftest.$ac_ext <<_ACEOF
12015/* end confdefs.h. */
12016
9cc1244e
JJ
12017#if (__GNUC__ < 3) \
12018 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12019 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12020#error http://gcc.gnu.org/PR29382
12021#endif
12022
1c710c3c
DJ
12023int
12024main ()
12025{
12026
12027 ;
12028 return 0;
12029}
12030_ACEOF
12031rm -f conftest.$ac_objext
2aeb72e9
DD
12032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12033 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
12034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
12039 (exit $ac_status); } &&
12040 { ac_try='test -z "$ac_c_werror_flag"
12041 || test ! -s conftest.err'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try='test -s conftest.$ac_objext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 echo "$as_me:$LINENO: result: yes" >&5
12054echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
12055else
12056 echo "$as_me: failed program was:" >&5
12057sed 's/^/| /' conftest.$ac_ext >&5
12058
2aeb72e9
DD
12059echo "$as_me:$LINENO: result: no" >&5
12060echo "${ECHO_T}no" >&6
1c710c3c 12061fi
2aeb72e9 12062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
12063
12064 CFLAGS="$saved_CFLAGS"
12065fi
12066
12067
2805b53a 12068
8efea775 12069# Enable --enable-checking in stage1 of the compiler.
2aeb72e9 12070# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
8efea775 12071if test "${enable_stage1_checking+set}" = set; then
2aeb72e9
DD
12072 enableval="$enable_stage1_checking"
12073 stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 12074else
e643dc23 12075 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 12076 stage1_checking=--enable-checking=yes,types
8efea775 12077else
e643dc23 12078 stage1_checking=--enable-checking=$enable_checking,types
8efea775 12079fi
2aeb72e9 12080fi;
8efea775
PB
12081
12082
2805b53a 12083# Enable -Werror in bootstrap stage2 and later.
2aeb72e9 12084# Check whether --enable-werror or --disable-werror was given.
2805b53a 12085if test "${enable_werror+set}" = set; then
2aeb72e9
DD
12086 enableval="$enable_werror"
12087
2805b53a 12088else
416cfb5e 12089 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 12090 enable_werror=yes
88fceb68
PB
12091else
12092 enable_werror=no
12093fi
2aeb72e9 12094fi;
09a9c095
NN
12095case ${enable_werror} in
12096 yes) stage2_werror_flag="--enable-werror-always" ;;
12097 *) stage2_werror_flag="" ;;
2805b53a
NN
12098esac
12099
12100
32845532 12101# Flags needed to enable html installing and building
1c710c3c 12102
2aeb72e9 12103# Check whether --with-datarootdir or --without-datarootdir was given.
32845532 12104if test "${with_datarootdir+set}" = set; then
2aeb72e9
DD
12105 withval="$with_datarootdir"
12106 datarootdir="\${prefix}/${withval}"
32845532
CD
12107else
12108 datarootdir="\${prefix}/share"
2aeb72e9 12109fi;
32845532
CD
12110
12111
2aeb72e9 12112# Check whether --with-docdir or --without-docdir was given.
32845532 12113if test "${with_docdir+set}" = set; then
2aeb72e9
DD
12114 withval="$with_docdir"
12115 docdir="\${prefix}/${withval}"
32845532
CD
12116else
12117 docdir="\${datarootdir}/doc"
2aeb72e9 12118fi;
32845532
CD
12119
12120
2aeb72e9 12121# Check whether --with-pdfdir or --without-pdfdir was given.
9c4d2493 12122if test "${with_pdfdir+set}" = set; then
2aeb72e9
DD
12123 withval="$with_pdfdir"
12124 pdfdir="\${prefix}/${withval}"
9c4d2493
BM
12125else
12126 pdfdir="\${docdir}"
2aeb72e9 12127fi;
9c4d2493
BM
12128
12129
2aeb72e9 12130# Check whether --with-htmldir or --without-htmldir was given.
32845532 12131if test "${with_htmldir+set}" = set; then
2aeb72e9
DD
12132 withval="$with_htmldir"
12133 htmldir="\${prefix}/${withval}"
32845532
CD
12134else
12135 htmldir="\${docdir}"
2aeb72e9 12136fi;
32845532
CD
12137
12138
12139
12140
172e41aa 12141
11a67599 12142
2aeb72e9 12143 ac_config_files="$ac_config_files Makefile"
1c710c3c 12144cat >confcache <<\_ACEOF
671aa708
NN
12145# This file is a shell script that caches the results of configure
12146# tests run on this system so they can be shared between configure
1c710c3c
DJ
12147# scripts and configure runs, see configure's option --config-cache.
12148# It is not useful on other systems. If it contains results you don't
12149# want to keep, you may remove or edit it.
671aa708 12150#
1c710c3c
DJ
12151# config.status only pays attention to the cache file if you give it
12152# the --recheck option to rerun configure.
671aa708 12153#
1c710c3c
DJ
12154# `ac_cv_env_foo' variables (set or unset) will be overridden when
12155# loading this file, other *unset* `ac_cv_foo' will be assigned the
12156# following values.
12157
12158_ACEOF
12159
671aa708
NN
12160# The following way of writing the cache mishandles newlines in values,
12161# but we know of no workaround that is simple, portable, and efficient.
2aeb72e9 12162# So, don't put newlines in cache variables' values.
671aa708
NN
12163# Ultrix sh set writes to stderr and can't be redirected directly,
12164# and sets the high bit in the cache file unless we assign to the vars.
2aeb72e9 12165{
1c710c3c 12166 (set) 2>&1 |
2aeb72e9
DD
12167 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12168 *ac_space=\ *)
1c710c3c
DJ
12169 # `set' does not quote correctly, so add quotes (double-quote
12170 # substitution turns \\\\ into \\, and sed turns \\ into \).
12171 sed -n \
12172 "s/'/'\\\\''/g;
12173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2aeb72e9 12174 ;;
1c710c3c
DJ
12175 *)
12176 # `set' quotes correctly as required by POSIX, so do not add quotes.
2aeb72e9
DD
12177 sed -n \
12178 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 12179 ;;
2aeb72e9
DD
12180 esac;
12181} |
1c710c3c
DJ
12182 sed '
12183 t clear
2aeb72e9 12184 : clear
1c710c3c
DJ
12185 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12186 t end
2aeb72e9
DD
12187 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12188 : end' >>confcache
12189if diff $cache_file confcache >/dev/null 2>&1; then :; else
12190 if test -w $cache_file; then
12191 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1c710c3c 12192 cat confcache >$cache_file
671aa708 12193 else
2aeb72e9 12194 echo "not updating unwritable cache $cache_file"
671aa708 12195 fi
4977bab6 12196fi
671aa708 12197rm -f confcache
79c06341 12198
671aa708
NN
12199test "x$prefix" = xNONE && prefix=$ac_default_prefix
12200# Let make expand exec_prefix.
12201test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 12202
2aeb72e9
DD
12203# VPATH may cause trouble with some makes, so we remove $(srcdir),
12204# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12205# trailing colons and then remove the whole line if VPATH becomes empty
12206# (actually we leave an empty line to preserve line numbers).
12207if test "x$srcdir" = x.; then
12208 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12209s/:*\$(srcdir):*/:/;
12210s/:*\${srcdir}:*/:/;
12211s/:*@srcdir@:*/:/;
12212s/^\([^=]*=[ ]*\):*/\1/;
12213s/:*$//;
12214s/^[^=]*=[ ]*$//;
12215}'
12216fi
12217
671aa708
NN
12218# Transform confdefs.h into DEFS.
12219# Protect against shell expansion while executing Makefile rules.
12220# Protect against Makefile macro expansion.
1c710c3c
DJ
12221#
12222# If the first sed substitution is executed (which looks for macros that
2aeb72e9 12223# take arguments), then we branch to the quote section. Otherwise,
1c710c3c 12224# look for a macro that doesn't take arguments.
2aeb72e9 12225cat >confdef2opt.sed <<\_ACEOF
1c710c3c 12226t clear
2aeb72e9
DD
12227: clear
12228s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12229t quote
2aeb72e9 12230s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12231t quote
2aeb72e9
DD
12232d
12233: quote
12234s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12235s,\[,\\&,g
12236s,\],\\&,g
12237s,\$,$$,g
12238p
12239_ACEOF
12240# We use echo to avoid assuming a particular line-breaking character.
12241# The extra dot is to prevent the shell from consuming trailing
12242# line-breaks from the sub-command output. A line-break within
12243# single-quotes doesn't work because, if this script is created in a
12244# platform that uses two characters for line-breaks (e.g., DOS), tr
12245# would break.
12246ac_LF_and_DOT=`echo; echo .`
12247DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12248rm -f confdef2opt.sed
1c710c3c
DJ
12249
12250
12251ac_libobjs=
12252ac_ltlibobjs=
12253for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12254 # 1. Remove the extension, and $U if already installed.
2aeb72e9
DD
12255 ac_i=`echo "$ac_i" |
12256 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12257 # 2. Add them.
12258 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12259 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1c710c3c
DJ
12260done
12261LIBOBJS=$ac_libobjs
fb0103e5 12262
1c710c3c 12263LTLIBOBJS=$ac_ltlibobjs
0b0dc272 12264
af71363e 12265
1c710c3c
DJ
12266
12267: ${CONFIG_STATUS=./config.status}
12268ac_clean_files_save=$ac_clean_files
12269ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12270{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12271echo "$as_me: creating $CONFIG_STATUS" >&6;}
12272cat >$CONFIG_STATUS <<_ACEOF
12273#! $SHELL
12274# Generated by $as_me.
671aa708 12275# Run this file to recreate the current configuration.
671aa708 12276# Compiler output produced by configure, useful for debugging
1c710c3c 12277# configure, is in config.log if it exists.
0b0dc272 12278
1c710c3c
DJ
12279debug=false
12280ac_cs_recheck=false
12281ac_cs_silent=false
12282SHELL=\${CONFIG_SHELL-$SHELL}
12283_ACEOF
12284
12285cat >>$CONFIG_STATUS <<\_ACEOF
12286## --------------------- ##
12287## M4sh Initialization. ##
12288## --------------------- ##
12289
2aeb72e9 12290# Be Bourne compatible
1c710c3c
DJ
12291if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12292 emulate sh
12293 NULLCMD=:
12294 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12295 # is contrary to our usage. Disable this feature.
12296 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
12297elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12298 set -o posix
1c710c3c 12299fi
2aeb72e9 12300DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
12301
12302# Support unset when possible.
12303if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12304 as_unset=unset
12305else
12306 as_unset=false
12307fi
12308
12309
12310# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 12311$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
12312PS1='$ '
12313PS2='> '
12314PS4='+ '
12315
12316# NLS nuisances.
12317for as_var in \
12318 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12319 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12320 LC_TELEPHONE LC_TIME
12321do
12322 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12323 eval $as_var=C; export $as_var
12324 else
2aeb72e9 12325 $as_unset $as_var
1c710c3c
DJ
12326 fi
12327done
12328
12329# Required to use basename.
2aeb72e9 12330if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12331 as_expr=expr
12332else
12333 as_expr=false
12334fi
12335
2aeb72e9 12336if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
12337 as_basename=basename
12338else
12339 as_basename=false
12340fi
12341
12342
12343# Name of the executable.
2aeb72e9 12344as_me=`$as_basename "$0" ||
1c710c3c
DJ
12345$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12346 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
12347 X"$0" : 'X\(/\)$' \| \
12348 . : '\(.\)' 2>/dev/null ||
1c710c3c 12349echo X/"$0" |
2aeb72e9
DD
12350 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12351 /^X\/\(\/\/\)$/{ s//\1/; q; }
12352 /^X\/\(\/\).*/{ s//\1/; q; }
12353 s/.*/./; q'`
1c710c3c 12354
2aeb72e9
DD
12355
12356# PATH needs CR, and LINENO needs CR and PATH.
12357# Avoid depending upon Character Ranges.
12358as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12359as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12360as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12361as_cr_digits='0123456789'
12362as_cr_alnum=$as_cr_Letters$as_cr_digits
12363
12364# The user is always right.
12365if test "${PATH_SEPARATOR+set}" != set; then
12366 echo "#! /bin/sh" >conf$$.sh
12367 echo "exit 0" >>conf$$.sh
12368 chmod +x conf$$.sh
12369 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12370 PATH_SEPARATOR=';'
12371 else
12372 PATH_SEPARATOR=:
12373 fi
12374 rm -f conf$$.sh
12375fi
1c710c3c
DJ
12376
12377
2aeb72e9
DD
12378 as_lineno_1=$LINENO
12379 as_lineno_2=$LINENO
12380 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12381 test "x$as_lineno_1" != "x$as_lineno_2" &&
12382 test "x$as_lineno_3" = "x$as_lineno_2" || {
12383 # Find who we are. Look in the path if we contain no path at all
12384 # relative or not.
12385 case $0 in
12386 *[\\/]* ) as_myself=$0 ;;
12387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388for as_dir in $PATH
12389do
12390 IFS=$as_save_IFS
12391 test -z "$as_dir" && as_dir=.
12392 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12393done
1c710c3c 12394
2aeb72e9
DD
12395 ;;
12396 esac
12397 # We did not find ourselves, most probably we were run as `sh COMMAND'
12398 # in which case we are not to be found in the path.
12399 if test "x$as_myself" = x; then
12400 as_myself=$0
12401 fi
12402 if test ! -f "$as_myself"; then
12403 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12404echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12405 { (exit 1); exit 1; }; }
12406 fi
12407 case $CONFIG_SHELL in
12408 '')
12409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12411do
12412 IFS=$as_save_IFS
12413 test -z "$as_dir" && as_dir=.
12414 for as_base in sh bash ksh sh5; do
12415 case $as_dir in
12416 /*)
12417 if ("$as_dir/$as_base" -c '
1c710c3c
DJ
12418 as_lineno_1=$LINENO
12419 as_lineno_2=$LINENO
2aeb72e9 12420 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1c710c3c 12421 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
12422 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12423 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12424 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12425 CONFIG_SHELL=$as_dir/$as_base
12426 export CONFIG_SHELL
12427 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12428 fi;;
12429 esac
12430 done
12431done
12432;;
12433 esac
1c710c3c
DJ
12434
12435 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12436 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
12437 # line-number line before each line; the second 'sed' does the real
12438 # work. The second script uses 'N' to pair each line-number line
12439 # with the numbered line, and appends trailing '-' during
12440 # substitution so that $LINENO is not a special case at line end.
1c710c3c 12441 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
12442 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12443 sed '=' <$as_myself |
1c710c3c
DJ
12444 sed '
12445 N
2aeb72e9
DD
12446 s,$,-,
12447 : loop
12448 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 12449 t loop
2aeb72e9
DD
12450 s,-$,,
12451 s,^['$as_cr_digits']*\n,,
1c710c3c 12452 ' >$as_me.lineno &&
2aeb72e9
DD
12453 chmod +x $as_me.lineno ||
12454 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12455echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1c710c3c
DJ
12456 { (exit 1); exit 1; }; }
12457
12458 # Don't try to exec as it changes $[0], causing all sort of problems
12459 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
12460 # original and so on. Autoconf is especially sensible to this).
12461 . ./$as_me.lineno
1c710c3c
DJ
12462 # Exit status is that of the last command.
12463 exit
12464}
12465
12466
2aeb72e9
DD
12467case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12468 *c*,-n*) ECHO_N= ECHO_C='
12469' ECHO_T=' ' ;;
12470 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12471 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
12472esac
12473
2aeb72e9 12474if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12475 as_expr=expr
12476else
12477 as_expr=false
12478fi
12479
12480rm -f conf$$ conf$$.exe conf$$.file
12481echo >conf$$.file
12482if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
12483 # We could just check for DJGPP; but this test a) works b) is more generic
12484 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12485 if test -f conf$$.exe; then
12486 # Don't use ln at all; we don't have any links
1c710c3c 12487 as_ln_s='cp -p'
2aeb72e9
DD
12488 else
12489 as_ln_s='ln -s'
12490 fi
1c710c3c
DJ
12491elif ln conf$$.file conf$$ 2>/dev/null; then
12492 as_ln_s=ln
12493else
12494 as_ln_s='cp -p'
12495fi
2aeb72e9 12496rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
12497
12498if mkdir -p . 2>/dev/null; then
12499 as_mkdir_p=:
12500else
12501 test -d ./-p && rmdir ./-p
12502 as_mkdir_p=false
12503fi
12504
2aeb72e9 12505as_executable_p="test -f"
1c710c3c
DJ
12506
12507# Sed expression to map a string onto a valid CPP name.
12508as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12509
12510# Sed expression to map a string onto a valid variable name.
12511as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12512
12513
2aeb72e9
DD
12514# IFS
12515# We need space, tab and new line, in precisely that order.
12516as_nl='
12517'
12518IFS=" $as_nl"
12519
12520# CDPATH.
12521$as_unset CDPATH
12522
1c710c3c
DJ
12523exec 6>&1
12524
2aeb72e9 12525# Open the log real soon, to keep \$[0] and so on meaningful, and to
1c710c3c 12526# report actual input values of CONFIG_FILES etc. instead of their
2aeb72e9
DD
12527# values after options handling. Logging --version etc. is OK.
12528exec 5>>config.log
12529{
12530 echo
12531 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12532## Running $as_me. ##
12533_ASBOX
12534} >&5
12535cat >&5 <<_CSEOF
12536
1c710c3c 12537This file was extended by $as_me, which was
2aeb72e9 12538generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
12539
12540 CONFIG_FILES = $CONFIG_FILES
12541 CONFIG_HEADERS = $CONFIG_HEADERS
12542 CONFIG_LINKS = $CONFIG_LINKS
12543 CONFIG_COMMANDS = $CONFIG_COMMANDS
12544 $ $0 $@
12545
2aeb72e9
DD
12546_CSEOF
12547echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12548echo >&5
1c710c3c
DJ
12549_ACEOF
12550
12551# Files that config.status was made for.
2aeb72e9
DD
12552if test -n "$ac_config_files"; then
12553 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12554fi
1c710c3c 12555
2aeb72e9
DD
12556if test -n "$ac_config_headers"; then
12557 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12558fi
12559
12560if test -n "$ac_config_links"; then
12561 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12562fi
12563
12564if test -n "$ac_config_commands"; then
12565 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12566fi
1c710c3c
DJ
12567
12568cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9 12569
1c710c3c
DJ
12570ac_cs_usage="\
12571\`$as_me' instantiates files from templates according to the
12572current configuration.
12573
12574Usage: $0 [OPTIONS] [FILE]...
12575
12576 -h, --help print this help, then exit
2aeb72e9 12577 -V, --version print version number, then exit
1c710c3c
DJ
12578 -q, --quiet do not print progress messages
12579 -d, --debug don't remove temporary files
12580 --recheck update $as_me by reconfiguring in the same conditions
12581 --file=FILE[:TEMPLATE]
12582 instantiate the configuration file FILE
12583
12584Configuration files:
12585$config_files
12586
12587Report bugs to <bug-autoconf@gnu.org>."
11a67599 12588_ACEOF
2aeb72e9 12589
1c710c3c
DJ
12590cat >>$CONFIG_STATUS <<_ACEOF
12591ac_cs_version="\\
12592config.status
2aeb72e9
DD
12593configured by $0, generated by GNU Autoconf 2.59,
12594 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 12595
2aeb72e9 12596Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
12597This config.status script is free software; the Free Software Foundation
12598gives unlimited permission to copy, distribute and modify it."
2aeb72e9
DD
12599srcdir=$srcdir
12600INSTALL="$INSTALL"
1c710c3c
DJ
12601_ACEOF
12602
12603cat >>$CONFIG_STATUS <<\_ACEOF
12604# If no file are specified by the user, then we need to provide default
12605# value. By we need to know if files were specified by the user.
12606ac_need_defaults=:
12607while test $# != 0
a4b9e93e 12608do
1c710c3c
DJ
12609 case $1 in
12610 --*=*)
2aeb72e9
DD
12611 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12612 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1c710c3c
DJ
12613 ac_shift=:
12614 ;;
2aeb72e9 12615 -*)
1c710c3c
DJ
12616 ac_option=$1
12617 ac_optarg=$2
12618 ac_shift=shift
12619 ;;
2aeb72e9
DD
12620 *) # This is not an option, so the user has probably given explicit
12621 # arguments.
12622 ac_option=$1
12623 ac_need_defaults=false;;
1c710c3c
DJ
12624 esac
12625
12626 case $ac_option in
12627 # Handling of the options.
2aeb72e9
DD
12628_ACEOF
12629cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 12630 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 12631 ac_cs_recheck=: ;;
2aeb72e9
DD
12632 --version | --vers* | -V )
12633 echo "$ac_cs_version"; exit 0 ;;
12634 --he | --h)
12635 # Conflict between --help and --header
12636 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12637Try \`$0 --help' for more information." >&5
12638echo "$as_me: error: ambiguous option: $1
12639Try \`$0 --help' for more information." >&2;}
12640 { (exit 1); exit 1; }; };;
12641 --help | --hel | -h )
12642 echo "$ac_cs_usage"; exit 0 ;;
12643 --debug | --d* | -d )
1c710c3c
DJ
12644 debug=: ;;
12645 --file | --fil | --fi | --f )
12646 $ac_shift
12647 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12648 ac_need_defaults=false;;
2aeb72e9
DD
12649 --header | --heade | --head | --hea )
12650 $ac_shift
12651 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12652 ac_need_defaults=false;;
1c710c3c
DJ
12653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12654 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12655 ac_cs_silent=: ;;
12656
12657 # This is an error.
2aeb72e9
DD
12658 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12659Try \`$0 --help' for more information." >&5
12660echo "$as_me: error: unrecognized option: $1
12661Try \`$0 --help' for more information." >&2;}
1c710c3c
DJ
12662 { (exit 1); exit 1; }; } ;;
12663
2aeb72e9 12664 *) ac_config_targets="$ac_config_targets $1" ;;
1c710c3c 12665
0b0dc272 12666 esac
1c710c3c 12667 shift
0b0dc272
AM
12668done
12669
1c710c3c 12670ac_configure_extra_args=
0b0dc272 12671
1c710c3c
DJ
12672if $ac_cs_silent; then
12673 exec 6>/dev/null
12674 ac_configure_extra_args="$ac_configure_extra_args --silent"
12675fi
0b0dc272 12676
1c710c3c
DJ
12677_ACEOF
12678cat >>$CONFIG_STATUS <<_ACEOF
12679if \$ac_cs_recheck; then
2aeb72e9
DD
12680 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12681 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
12682fi
12683
12684_ACEOF
12685
1c710c3c 12686
11a67599 12687
2aeb72e9
DD
12688
12689
12690cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
12691for ac_config_target in $ac_config_targets
12692do
2aeb72e9
DD
12693 case "$ac_config_target" in
12694 # Handling of arguments.
12695 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1c710c3c
DJ
12696 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12697echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12698 { (exit 1); exit 1; }; };;
12699 esac
12700done
12701
12702# If the user did not use the arguments to specify the items to instantiate,
12703# then the envvar interface is used. Set only those that are not.
12704# We use the long form for the default assignment because of an extremely
12705# bizarre bug on SunOS 4.1.3.
12706if $ac_need_defaults; then
12707 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12708fi
12709
12710# Have a temporary directory for convenience. Make it in the build tree
2aeb72e9 12711# simply because there is no reason to put it here, and in addition,
1c710c3c 12712# creating and moving files from /tmp can sometimes cause problems.
2aeb72e9 12713# Create a temporary directory, and hook for its removal unless debugging.
1c710c3c
DJ
12714$debug ||
12715{
2aeb72e9 12716 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1c710c3c
DJ
12717 trap '{ (exit 1); exit 1; }' 1 2 13 15
12718}
2aeb72e9 12719
1c710c3c
DJ
12720# Create a (secure) tmp directory for tmp files.
12721
12722{
2aeb72e9 12723 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
12724 test -n "$tmp" && test -d "$tmp"
12725} ||
12726{
2aeb72e9
DD
12727 tmp=./confstat$$-$RANDOM
12728 (umask 077 && mkdir $tmp)
1c710c3c
DJ
12729} ||
12730{
12731 echo "$me: cannot create a temporary directory in ." >&2
12732 { (exit 1); exit 1; }
12733}
12734
2aeb72e9
DD
12735_ACEOF
12736
12737cat >>$CONFIG_STATUS <<_ACEOF
12738
1c710c3c 12739#
2aeb72e9 12740# CONFIG_FILES section.
1c710c3c
DJ
12741#
12742
12743# No need to generate the scripts if there are no CONFIG_FILES.
12744# This happens for instance when ./config.status config.h
2aeb72e9
DD
12745if test -n "\$CONFIG_FILES"; then
12746 # Protect against being on the right side of a sed subst in config.status.
12747 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12748 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12749s,@SHELL@,$SHELL,;t t
12750s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12751s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12752s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12753s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12754s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12755s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12756s,@exec_prefix@,$exec_prefix,;t t
12757s,@prefix@,$prefix,;t t
12758s,@program_transform_name@,$program_transform_name,;t t
12759s,@bindir@,$bindir,;t t
12760s,@sbindir@,$sbindir,;t t
12761s,@libexecdir@,$libexecdir,;t t
12762s,@datadir@,$datadir,;t t
12763s,@sysconfdir@,$sysconfdir,;t t
12764s,@sharedstatedir@,$sharedstatedir,;t t
12765s,@localstatedir@,$localstatedir,;t t
12766s,@libdir@,$libdir,;t t
12767s,@includedir@,$includedir,;t t
12768s,@oldincludedir@,$oldincludedir,;t t
12769s,@infodir@,$infodir,;t t
12770s,@mandir@,$mandir,;t t
12771s,@build_alias@,$build_alias,;t t
12772s,@host_alias@,$host_alias,;t t
12773s,@target_alias@,$target_alias,;t t
12774s,@DEFS@,$DEFS,;t t
12775s,@ECHO_C@,$ECHO_C,;t t
12776s,@ECHO_N@,$ECHO_N,;t t
12777s,@ECHO_T@,$ECHO_T,;t t
12778s,@LIBS@,$LIBS,;t t
12779s,@build@,$build,;t t
12780s,@build_cpu@,$build_cpu,;t t
12781s,@build_vendor@,$build_vendor,;t t
12782s,@build_os@,$build_os,;t t
12783s,@build_noncanonical@,$build_noncanonical,;t t
12784s,@host_noncanonical@,$host_noncanonical,;t t
12785s,@target_noncanonical@,$target_noncanonical,;t t
12786s,@host@,$host,;t t
12787s,@host_cpu@,$host_cpu,;t t
12788s,@host_vendor@,$host_vendor,;t t
12789s,@host_os@,$host_os,;t t
12790s,@target@,$target,;t t
12791s,@target_cpu@,$target_cpu,;t t
12792s,@target_vendor@,$target_vendor,;t t
12793s,@target_os@,$target_os,;t t
12794s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12795s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12796s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12797s,@LN@,$LN,;t t
12798s,@LN_S@,$LN_S,;t t
12799s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12800s,@build_libsubdir@,$build_libsubdir,;t t
12801s,@build_subdir@,$build_subdir,;t t
12802s,@host_subdir@,$host_subdir,;t t
12803s,@target_subdir@,$target_subdir,;t t
12804s,@CC@,$CC,;t t
12805s,@CFLAGS@,$CFLAGS,;t t
12806s,@LDFLAGS@,$LDFLAGS,;t t
12807s,@CPPFLAGS@,$CPPFLAGS,;t t
12808s,@ac_ct_CC@,$ac_ct_CC,;t t
12809s,@EXEEXT@,$EXEEXT,;t t
12810s,@OBJEXT@,$OBJEXT,;t t
12811s,@CXX@,$CXX,;t t
12812s,@CXXFLAGS@,$CXXFLAGS,;t t
12813s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12814s,@GNATBIND@,$GNATBIND,;t t
12815s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12816s,@GNATMAKE@,$GNATMAKE,;t t
12817s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12818s,@do_compare@,$do_compare,;t t
12819s,@gmplibs@,$gmplibs,;t t
12820s,@gmpinc@,$gmpinc,;t t
12821s,@stage1_languages@,$stage1_languages,;t t
12822s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
c8aea42c 12823s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
2aeb72e9
DD
12824s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12825s,@tooldir@,$tooldir,;t t
12826s,@build_tooldir@,$build_tooldir,;t t
12827s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12828s,@GDB_TK@,$GDB_TK,;t t
12829s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12830s,@build_configargs@,$build_configargs,;t t
12831s,@build_configdirs@,$build_configdirs,;t t
12832s,@host_configargs@,$host_configargs,;t t
12833s,@configdirs@,$configdirs,;t t
12834s,@target_configargs@,$target_configargs,;t t
0999159b
PB
12835s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12836s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
2aeb72e9 12837s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
0999159b
PB
12838s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12839s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12840s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12841s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12842s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12843s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12844s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12845s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12846s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12847s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12848s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12849s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
2aeb72e9
DD
12850s,@config_shell@,$config_shell,;t t
12851s,@YACC@,$YACC,;t t
12852s,@BISON@,$BISON,;t t
12853s,@M4@,$M4,;t t
12854s,@LEX@,$LEX,;t t
12855s,@FLEX@,$FLEX,;t t
12856s,@MAKEINFO@,$MAKEINFO,;t t
12857s,@EXPECT@,$EXPECT,;t t
12858s,@RUNTEST@,$RUNTEST,;t t
12859s,@AR@,$AR,;t t
12860s,@AS@,$AS,;t t
12861s,@DLLTOOL@,$DLLTOOL,;t t
12862s,@LD@,$LD,;t t
12863s,@LIPO@,$LIPO,;t t
12864s,@NM@,$NM,;t t
12865s,@RANLIB@,$RANLIB,;t t
12866s,@STRIP@,$STRIP,;t t
12867s,@WINDRES@,$WINDRES,;t t
901119ae 12868s,@WINDMC@,$WINDMC,;t t
2aeb72e9
DD
12869s,@OBJCOPY@,$OBJCOPY,;t t
12870s,@OBJDUMP@,$OBJDUMP,;t t
2aeb72e9
DD
12871s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12872s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12873s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12874s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12875s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12876s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12877s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12878s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12879s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12880s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12881s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12882s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12883s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12884s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12885s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
901119ae 12886s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
2aeb72e9
DD
12887s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12888s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12889s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12890s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12891s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12892s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12893s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12894s,@MAINT@,$MAINT,;t t
12895s,@stage1_cflags@,$stage1_cflags,;t t
12896s,@stage1_checking@,$stage1_checking,;t t
12897s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12898s,@datarootdir@,$datarootdir,;t t
12899s,@docdir@,$docdir,;t t
12900s,@pdfdir@,$pdfdir,;t t
12901s,@htmldir@,$htmldir,;t t
12902s,@LIBOBJS@,$LIBOBJS,;t t
12903s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12904/@serialization_dependencies@/r $serialization_dependencies
12905s,@serialization_dependencies@,,;t t
12906/@host_makefile_frag@/r $host_makefile_frag
12907s,@host_makefile_frag@,,;t t
12908/@target_makefile_frag@/r $target_makefile_frag
12909s,@target_makefile_frag@,,;t t
12910/@alphaieee_frag@/r $alphaieee_frag
12911s,@alphaieee_frag@,,;t t
12912/@ospace_frag@/r $ospace_frag
12913s,@ospace_frag@,,;t t
12914CEOF
79c06341 12915
1c710c3c
DJ
12916_ACEOF
12917
2aeb72e9
DD
12918 cat >>$CONFIG_STATUS <<\_ACEOF
12919 # Split the substitutions into bite-sized pieces for seds with
12920 # small command number limits, like on Digital OSF/1 and HP-UX.
12921 ac_max_sed_lines=48
12922 ac_sed_frag=1 # Number of current file.
12923 ac_beg=1 # First line for current file.
12924 ac_end=$ac_max_sed_lines # Line after last line for current file.
12925 ac_more_lines=:
12926 ac_sed_cmds=
12927 while $ac_more_lines; do
12928 if test $ac_beg -gt 1; then
12929 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12930 else
12931 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12932 fi
12933 if test ! -s $tmp/subs.frag; then
12934 ac_more_lines=false
12935 else
12936 # The purpose of the label and of the branching condition is to
12937 # speed up the sed processing (if there are no `@' at all, there
12938 # is no need to browse any of the substitutions).
12939 # These are the two extra sed commands mentioned above.
12940 (echo ':t
12941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12942 if test -z "$ac_sed_cmds"; then
12943 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12944 else
12945 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12946 fi
12947 ac_sed_frag=`expr $ac_sed_frag + 1`
12948 ac_beg=$ac_end
12949 ac_end=`expr $ac_end + $ac_max_sed_lines`
12950 fi
12951 done
12952 if test -z "$ac_sed_cmds"; then
12953 ac_sed_cmds=cat
11a67599 12954 fi
2aeb72e9 12955fi # test -n "$CONFIG_FILES"
11a67599 12956
11a67599 12957_ACEOF
1c710c3c 12958cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9
DD
12959for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12960 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12961 case $ac_file in
12962 - | *:- | *:-:* ) # input from stdin
12963 cat >$tmp/stdin
12964 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12965 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12966 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12967 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12968 * ) ac_file_in=$ac_file.in ;;
11a67599
ZW
12969 esac
12970
2aeb72e9
DD
12971 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12972 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1c710c3c
DJ
12973$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12974 X"$ac_file" : 'X\(//\)[^/]' \| \
12975 X"$ac_file" : 'X\(//\)$' \| \
2aeb72e9
DD
12976 X"$ac_file" : 'X\(/\)' \| \
12977 . : '\(.\)' 2>/dev/null ||
1c710c3c 12978echo X"$ac_file" |
2aeb72e9
DD
12979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12981 /^X\(\/\/\)$/{ s//\1/; q; }
12982 /^X\(\/\).*/{ s//\1/; q; }
12983 s/.*/./; q'`
12984 { if $as_mkdir_p; then
12985 mkdir -p "$ac_dir"
12986 else
12987 as_dir="$ac_dir"
1c710c3c 12988 as_dirs=
2aeb72e9
DD
12989 while test ! -d "$as_dir"; do
12990 as_dirs="$as_dir $as_dirs"
12991 as_dir=`(dirname "$as_dir") 2>/dev/null ||
1c710c3c
DJ
12992$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12993 X"$as_dir" : 'X\(//\)[^/]' \| \
12994 X"$as_dir" : 'X\(//\)$' \| \
2aeb72e9
DD
12995 X"$as_dir" : 'X\(/\)' \| \
12996 . : '\(.\)' 2>/dev/null ||
1c710c3c 12997echo X"$as_dir" |
2aeb72e9
DD
12998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13000 /^X\(\/\/\)$/{ s//\1/; q; }
13001 /^X\(\/\).*/{ s//\1/; q; }
13002 s/.*/./; q'`
1c710c3c 13003 done
2aeb72e9
DD
13004 test ! -n "$as_dirs" || mkdir $as_dirs
13005 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13006echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1c710c3c 13007 { (exit 1); exit 1; }; }; }
2aeb72e9 13008
1c710c3c 13009 ac_builddir=.
0b0dc272 13010
2aeb72e9 13011if test "$ac_dir" != .; then
1c710c3c 13012 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
13013 # A "../" for each directory in $ac_dir_suffix.
13014 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13015else
13016 ac_dir_suffix= ac_top_builddir=
13017fi
1c710c3c
DJ
13018
13019case $srcdir in
2aeb72e9 13020 .) # No --srcdir option. We are building in place.
1c710c3c 13021 ac_srcdir=.
2aeb72e9
DD
13022 if test -z "$ac_top_builddir"; then
13023 ac_top_srcdir=.
13024 else
13025 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13026 fi ;;
13027 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 13028 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
13029 ac_top_srcdir=$srcdir ;;
13030 *) # Relative path.
13031 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13032 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1c710c3c 13033esac
a4b9e93e 13034
2aeb72e9
DD
13035# Do not use `cd foo && pwd` to compute absolute paths, because
13036# the directories may not exist.
13037case `pwd` in
13038.) ac_abs_builddir="$ac_dir";;
13039*)
13040 case "$ac_dir" in
13041 .) ac_abs_builddir=`pwd`;;
13042 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13043 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13044 esac;;
13045esac
13046case $ac_abs_builddir in
13047.) ac_abs_top_builddir=${ac_top_builddir}.;;
13048*)
13049 case ${ac_top_builddir}. in
13050 .) ac_abs_top_builddir=$ac_abs_builddir;;
13051 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13052 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13053 esac;;
13054esac
13055case $ac_abs_builddir in
13056.) ac_abs_srcdir=$ac_srcdir;;
13057*)
13058 case $ac_srcdir in
13059 .) ac_abs_srcdir=$ac_abs_builddir;;
13060 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13061 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13062 esac;;
13063esac
13064case $ac_abs_builddir in
13065.) ac_abs_top_srcdir=$ac_top_srcdir;;
13066*)
13067 case $ac_top_srcdir in
13068 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13069 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13070 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13071 esac;;
13072esac
0b0dc272 13073
1c710c3c
DJ
13074
13075 case $INSTALL in
13076 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2aeb72e9 13077 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 13078 esac
11a67599 13079
2aeb72e9
DD
13080 if test x"$ac_file" != x-; then
13081 { echo "$as_me:$LINENO: creating $ac_file" >&5
13082echo "$as_me: creating $ac_file" >&6;}
13083 rm -f "$ac_file"
13084 fi
13085 # Let's still pretend it is `configure' which instantiates (i.e., don't
13086 # use $as_me), people would be surprised to read:
13087 # /* config.h. Generated by config.status. */
13088 if test x"$ac_file" = x-; then
13089 configure_input=
13090 else
13091 configure_input="$ac_file. "
13092 fi
13093 configure_input=$configure_input"Generated from `echo $ac_file_in |
13094 sed 's,.*/,,'` by configure."
13095
13096 # First look for the input files in the build tree, otherwise in the
13097 # src tree.
13098 ac_file_inputs=`IFS=:
13099 for f in $ac_file_in; do
13100 case $f in
13101 -) echo $tmp/stdin ;;
13102 [\\/$]*)
13103 # Absolute (can't be DOS-style, as IFS=:)
13104 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13105echo "$as_me: error: cannot find input file: $f" >&2;}
13106 { (exit 1); exit 1; }; }
13107 echo "$f";;
13108 *) # Relative
13109 if test -f "$f"; then
13110 # Build tree
13111 echo "$f"
13112 elif test -f "$srcdir/$f"; then
13113 # Source tree
13114 echo "$srcdir/$f"
13115 else
13116 # /dev/null tree
13117 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13118echo "$as_me: error: cannot find input file: $f" >&2;}
13119 { (exit 1); exit 1; }; }
13120 fi;;
13121 esac
13122 done` || { (exit 1); exit 1; }
11a67599 13123_ACEOF
1c710c3c
DJ
13124cat >>$CONFIG_STATUS <<_ACEOF
13125 sed "$ac_vpsub
13126$extrasub
13127_ACEOF
13128cat >>$CONFIG_STATUS <<\_ACEOF
13129:t
13130/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2aeb72e9
DD
13131s,@configure_input@,$configure_input,;t t
13132s,@srcdir@,$ac_srcdir,;t t
13133s,@abs_srcdir@,$ac_abs_srcdir,;t t
13134s,@top_srcdir@,$ac_top_srcdir,;t t
13135s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13136s,@builddir@,$ac_builddir,;t t
13137s,@abs_builddir@,$ac_abs_builddir,;t t
13138s,@top_builddir@,$ac_top_builddir,;t t
13139s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13140s,@INSTALL@,$ac_INSTALL,;t t
13141" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13142 rm -f $tmp/stdin
13143 if test x"$ac_file" != x-; then
13144 mv $tmp/out $ac_file
13145 else
13146 cat $tmp/out
13147 rm -f $tmp/out
13148 fi
11a67599 13149
2aeb72e9
DD
13150done
13151_ACEOF
11a67599 13152
2aeb72e9 13153cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 13154
1c710c3c
DJ
13155{ (exit 0); exit 0; }
13156_ACEOF
671aa708 13157chmod +x $CONFIG_STATUS
1c710c3c
DJ
13158ac_clean_files=$ac_clean_files_save
13159
13160
13161# configure is writing to config.log, and then calls config.status.
13162# config.status does its own redirection, appending to config.log.
13163# Unfortunately, on DOS this fails, as config.log is still kept open
13164# by configure, so config.status won't be able to write to it; its
13165# output is simply discarded. So we exec the FD to /dev/null,
13166# effectively closing config.log, so it can be properly (re)opened and
13167# appended to by config.status. When coming back to configure, we
13168# need to make the FD available again.
13169if test "$no_create" != yes; then
13170 ac_cs_success=:
13171 ac_config_status_args=
13172 test "$silent" = yes &&
13173 ac_config_status_args="$ac_config_status_args --quiet"
13174 exec 5>/dev/null
13175 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13176 exec 5>>config.log
13177 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13178 # would make configure fail if this is the last instruction.
13179 $ac_cs_success || { (exit 1); exit 1; }
13180fi
79c06341 13181
This page took 2.483991 seconds and 5 git commands to generate.