PR other/35151
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
c6b750e1 3# Generated by GNU Autoconf 2.59.
a0da8069 4#
c6b750e1 5# Copyright (C) 2003 Free Software Foundation, Inc.
a0da8069
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c6b750e1
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
a0da8069 243
c6b750e1
DJ
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
a0da8069 254ac_default_prefix=/usr/local
c6b750e1
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
7f6ef0c0 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
a0da8069
NN
277
278# Initialize some variables set by options.
c6b750e1
DJ
279ac_init_help=
280ac_init_version=false
a0da8069
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
c6b750e1 283cache_file=/dev/null
a0da8069 284exec_prefix=NONE
a0da8069 285no_create=
a0da8069
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
a0da8069
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
c6b750e1
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
252b5132 315
a0da8069
NN
316ac_prev=
317for ac_option
318do
a0da8069
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
252b5132 325
c6b750e1 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
c6b750e1 330 case $ac_option in
a0da8069
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 335 bindir=$ac_optarg ;;
a0da8069
NN
336
337 -build | --build | --buil | --bui | --bu)
c6b750e1 338 ac_prev=build_alias ;;
a0da8069 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 340 build_alias=$ac_optarg ;;
a0da8069
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
a0da8069
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
c6b750e1 356 datadir=$ac_optarg ;;
a0da8069
NN
357
358 -disable-* | --disable-*)
c6b750e1 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 360 # Reject names that are not valid shell variable names.
c6b750e1
DJ
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
a0da8069
NN
366
367 -enable-* | --enable-*)
c6b750e1 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 369 # Reject names that are not valid shell variable names.
c6b750e1
DJ
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
376 *) ac_optarg=yes ;;
377 esac
c6b750e1 378 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
c6b750e1 387 exec_prefix=$ac_optarg ;;
a0da8069
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
c6b750e1
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
a0da8069
NN
399
400 -host | --host | --hos | --ho)
c6b750e1 401 ac_prev=host_alias ;;
a0da8069 402 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 403 host_alias=$ac_optarg ;;
a0da8069
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 410 includedir=$ac_optarg ;;
a0da8069
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 415 infodir=$ac_optarg ;;
a0da8069
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 420 libdir=$ac_optarg ;;
a0da8069
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
c6b750e1 427 libexecdir=$ac_optarg ;;
a0da8069
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 436 localstatedir=$ac_optarg ;;
a0da8069
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 441 mandir=$ac_optarg ;;
a0da8069
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 448 | --no-cr | --no-c | -n)
a0da8069
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 462 oldincludedir=$ac_optarg ;;
a0da8069
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 467 prefix=$ac_optarg ;;
a0da8069
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 474 program_prefix=$ac_optarg ;;
a0da8069
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 481 program_suffix=$ac_optarg ;;
a0da8069
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 498 program_transform_name=$ac_optarg ;;
a0da8069
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
c6b750e1 508 sbindir=$ac_optarg ;;
a0da8069
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
c6b750e1 519 sharedstatedir=$ac_optarg ;;
a0da8069
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
c6b750e1 524 site=$ac_optarg ;;
a0da8069
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 529 srcdir=$ac_optarg ;;
a0da8069
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 536 sysconfdir=$ac_optarg ;;
a0da8069
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 539 ac_prev=target_alias ;;
a0da8069 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 541 target_alias=$ac_optarg ;;
a0da8069
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
c6b750e1
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
a0da8069
NN
548
549 -with-* | --with-*)
c6b750e1 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 551 # Reject names that are not valid shell variable names.
c6b750e1
DJ
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
a0da8069 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
558 *) ac_optarg=yes ;;
559 esac
c6b750e1 560 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
561
562 -without-* | --without-*)
c6b750e1 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 564 # Reject names that are not valid shell variable names.
c6b750e1
DJ
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
a0da8069
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 580 x_includes=$ac_optarg ;;
a0da8069
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 587 x_libraries=$ac_optarg ;;
a0da8069 588
c6b750e1
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
a0da8069
NN
592 ;;
593
c6b750e1
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
a0da8069 604 *)
c6b750e1
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
c6b750e1
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
a0da8069 619fi
a0da8069 620
c6b750e1
DJ
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
a0da8069 631
c6b750e1
DJ
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 635do
c6b750e1
DJ
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
a0da8069
NN
641 esac
642done
643
c6b750e1
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
376a0e54 650
c6b750e1
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
a0da8069 666
a0da8069
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
c6b750e1
DJ
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
a0da8069
NN
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
a0da8069 695 else
c6b750e1
DJ
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
9cc8ae67
PB
716ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
717
c6b750e1
DJ
718ac_env_CC_set=${CC+set}
719ac_env_CC_value=$CC
720ac_cv_env_CC_set=${CC+set}
721ac_cv_env_CC_value=$CC
722ac_env_CFLAGS_set=${CFLAGS+set}
723ac_env_CFLAGS_value=$CFLAGS
724ac_cv_env_CFLAGS_set=${CFLAGS+set}
725ac_cv_env_CFLAGS_value=$CFLAGS
726ac_env_LDFLAGS_set=${LDFLAGS+set}
727ac_env_LDFLAGS_value=$LDFLAGS
728ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
729ac_cv_env_LDFLAGS_value=$LDFLAGS
730ac_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_env_CPPFLAGS_value=$CPPFLAGS
732ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
733ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
734ac_env_CXX_set=${CXX+set}
735ac_env_CXX_value=$CXX
736ac_cv_env_CXX_set=${CXX+set}
737ac_cv_env_CXX_value=$CXX
738ac_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_env_CXXFLAGS_value=$CXXFLAGS
740ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
741ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
742ac_env_AR_set=${AR+set}
743ac_env_AR_value=$AR
744ac_cv_env_AR_set=${AR+set}
745ac_cv_env_AR_value=$AR
746ac_env_AS_set=${AS+set}
747ac_env_AS_value=$AS
748ac_cv_env_AS_set=${AS+set}
749ac_cv_env_AS_value=$AS
750ac_env_DLLTOOL_set=${DLLTOOL+set}
751ac_env_DLLTOOL_value=$DLLTOOL
752ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
753ac_cv_env_DLLTOOL_value=$DLLTOOL
754ac_env_LD_set=${LD+set}
755ac_env_LD_value=$LD
756ac_cv_env_LD_set=${LD+set}
757ac_cv_env_LD_value=$LD
758ac_env_LIPO_set=${LIPO+set}
759ac_env_LIPO_value=$LIPO
760ac_cv_env_LIPO_set=${LIPO+set}
761ac_cv_env_LIPO_value=$LIPO
762ac_env_NM_set=${NM+set}
763ac_env_NM_value=$NM
764ac_cv_env_NM_set=${NM+set}
765ac_cv_env_NM_value=$NM
766ac_env_RANLIB_set=${RANLIB+set}
767ac_env_RANLIB_value=$RANLIB
768ac_cv_env_RANLIB_set=${RANLIB+set}
769ac_cv_env_RANLIB_value=$RANLIB
770ac_env_STRIP_set=${STRIP+set}
771ac_env_STRIP_value=$STRIP
772ac_cv_env_STRIP_set=${STRIP+set}
773ac_cv_env_STRIP_value=$STRIP
774ac_env_WINDRES_set=${WINDRES+set}
775ac_env_WINDRES_value=$WINDRES
776ac_cv_env_WINDRES_set=${WINDRES+set}
777ac_cv_env_WINDRES_value=$WINDRES
0c24b341
NC
778ac_env_WINDMC_set=${WINDMC+set}
779ac_env_WINDMC_value=$WINDMC
780ac_cv_env_WINDMC_set=${WINDMC+set}
781ac_cv_env_WINDMC_value=$WINDMC
9a819804
AO
782ac_env_OBJCOPY_set=${OBJCOPY+set}
783ac_env_OBJCOPY_value=$OBJCOPY
784ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
785ac_cv_env_OBJCOPY_value=$OBJCOPY
786ac_env_OBJDUMP_set=${OBJDUMP+set}
787ac_env_OBJDUMP_value=$OBJDUMP
788ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
789ac_cv_env_OBJDUMP_value=$OBJDUMP
790ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
793ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
794ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
797ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
798ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
801ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
802ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
805ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
806ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
809ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
810ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
813ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
814ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
817ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
818ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
821ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
822ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
825ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
826ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
829ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
830ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
833ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
834ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
837ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
838ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
841ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
842ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
845ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
846ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
848ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
849ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
0c24b341
NC
850ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
852ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
853ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
c6b750e1
DJ
854
855#
856# Report the --help message.
857#
858if test "$ac_init_help" = "long"; then
859 # Omit some internal or obsolete options to make the list less imposing.
860 # This message is too long to be a string in the A/UX 3.1 sh.
861 cat <<_ACEOF
862\`configure' configures this package to adapt to many kinds of systems.
863
864Usage: $0 [OPTION]... [VAR=VALUE]...
865
866To assign environment variables (e.g., CC, CFLAGS...), specify them as
867VAR=VALUE. See below for descriptions of some of the useful variables.
868
869Defaults for the options are specified in brackets.
870
871Configuration:
872 -h, --help display this help and exit
873 --help=short display options specific to this package
874 --help=recursive display the short help of all the included packages
875 -V, --version display version information and exit
876 -q, --quiet, --silent do not print \`checking...' messages
877 --cache-file=FILE cache test results in FILE [disabled]
878 -C, --config-cache alias for \`--cache-file=config.cache'
879 -n, --no-create do not create output files
880 --srcdir=DIR find the sources in DIR [configure dir or \`..']
881
882_ACEOF
883
884 cat <<_ACEOF
885Installation directories:
886 --prefix=PREFIX install architecture-independent files in PREFIX
887 [$ac_default_prefix]
888 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
889 [PREFIX]
890
891By default, \`make install' will install all the files in
892\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
893an installation prefix other than \`$ac_default_prefix' using \`--prefix',
894for instance \`--prefix=\$HOME'.
895
896For better control, use the options below.
897
898Fine tuning of the installation directories:
899 --bindir=DIR user executables [EPREFIX/bin]
900 --sbindir=DIR system admin executables [EPREFIX/sbin]
901 --libexecdir=DIR program executables [EPREFIX/libexec]
902 --datadir=DIR read-only architecture-independent data [PREFIX/share]
903 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
904 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
905 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
906 --libdir=DIR object code libraries [EPREFIX/lib]
907 --includedir=DIR C header files [PREFIX/include]
908 --oldincludedir=DIR C header files for non-gcc [/usr/include]
909 --infodir=DIR info documentation [PREFIX/info]
910 --mandir=DIR man documentation [PREFIX/man]
911_ACEOF
912
913 cat <<\_ACEOF
914
915Program names:
916 --program-prefix=PREFIX prepend PREFIX to installed program names
917 --program-suffix=SUFFIX append SUFFIX to installed program names
918 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
919
920System types:
921 --build=BUILD configure for building on BUILD [guessed]
922 --host=HOST cross-compile to build programs to run on HOST [BUILD]
923 --target=TARGET configure for building compilers for TARGET [HOST]
924_ACEOF
a0da8069 925fi
a0da8069 926
c6b750e1
DJ
927if test -n "$ac_init_help"; then
928
929 cat <<\_ACEOF
930
931Optional Features:
932 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
933 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
93f9b408 934 --enable-gold use gold instead of ld
521ec477
DD
935 --enable-libada build libada directory
936 --enable-libssp build libssp directory
937 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 938 stage1. Mostly useful for compiler development.
521ec477
DD
939 --enable-objc-gc enable use of Boehm's garbage collector with the
940 GNU Objective-C runtime
941 --enable-bootstrap enable bootstrapping [yes if native build]
942 --enable-serial-[{host,target,build}-]configure
943 force sequential configuration of
c6b750e1 944 sub-packages for the host, target or build
521ec477 945 machine, or all sub-packages
c6b750e1
DJ
946 --enable-maintainer-mode enable make rules and dependencies not useful
947 (and sometimes confusing) to the casual installer
521ec477
DD
948 --enable-stage1-checking[=all] choose additional checking for stage1
949 of the compiler
c6b750e1
DJ
950 --enable-werror enable -Werror in bootstrap stage2 and later
951
952Optional Packages:
953 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
954 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
955 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
956 --with-mpfr-dir=PATH this option has been REMOVED
957 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
958 Equivalent to --with-mpfr-include=PATH/include
959 plus --with-mpfr-lib=PATH/lib
960 --with-mpfr-include=PATH
521ec477
DD
961 specify directory for installed MPFR include files
962 --with-mpfr-lib=PATH specify directory for the installed MPFR library
963 --with-gmp-dir=PATH this option has been REMOVED
964 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
965 Equivalent to --with-gmp-include=PATH/include
966 plus --with-gmp-lib=PATH/lib
521ec477
DD
967 --with-gmp-include=PATH specify directory for installed GMP include files
968 --with-gmp-lib=PATH specify directory for the installed GMP library
969 --with-build-sysroot=SYSROOT
c6b750e1 970 use sysroot as the system root during the build
8a6ee3ab
JM
971 --with-debug-prefix-map='A=B C=D ...'
972 map A to B, C to D ... in debug information
521ec477 973 --with-build-time-tools=PATH
c6b750e1 974 use given path to find target tools during the build
521ec477
DD
975 --with-datarootdir use datarootdir as the data root directory.
976 --with-docdir install documentation in this directory.
977 --with-pdfdir install pdf in this directory.
978 --with-htmldir install html in this directory.
c6b750e1
DJ
979
980Some influential environment variables:
981 CC C compiler command
982 CFLAGS C compiler flags
983 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
984 nonstandard directory <lib dir>
985 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
986 headers in a nonstandard directory <include dir>
18f6b6ee
PB
987 CXX C++ compiler command
988 CXXFLAGS C++ compiler flags
9a819804
AO
989 AR AR for the host
990 AS AS for the host
991 DLLTOOL DLLTOOL for the host
992 LD LD for the host
993 LIPO LIPO for the host
994 NM NM for the host
995 RANLIB RANLIB for the host
996 STRIP STRIP for the host
997 WINDRES WINDRES for the host
0c24b341 998 WINDMC WINDMC for the host
9a819804
AO
999 OBJCOPY OBJCOPY for the host
1000 OBJDUMP OBJDUMP for the host
1001 CC_FOR_TARGET
1002 CC for the target
1003 CXX_FOR_TARGET
1004 CXX for the target
1005 GCC_FOR_TARGET
1006 GCC for the target
1007 GCJ_FOR_TARGET
1008 GCJ for the target
1009 GFORTRAN_FOR_TARGET
1010 GFORTRAN for the target
1011 AR_FOR_TARGET
1012 AR for the target
1013 AS_FOR_TARGET
1014 AS for the target
1015 DLLTOOL_FOR_TARGET
1016 DLLTOOL for the target
1017 LD_FOR_TARGET
1018 LD for the target
1019 LIPO_FOR_TARGET
1020 LIPO for the target
1021 NM_FOR_TARGET
1022 NM for the target
1023 OBJDUMP_FOR_TARGET
1024 OBJDUMP for the target
1025 RANLIB_FOR_TARGET
1026 RANLIB for the target
1027 STRIP_FOR_TARGET
1028 STRIP for the target
1029 WINDRES_FOR_TARGET
1030 WINDRES for the target
0c24b341
NC
1031 WINDMC_FOR_TARGET
1032 WINDMC for the target
c6b750e1
DJ
1033
1034Use these variables to override the choices made by `configure' or to help
1035it to find libraries and programs with nonstandard names/locations.
1036
1037_ACEOF
1038fi
1039
1040if test "$ac_init_help" = "recursive"; then
1041 # If there are subdirs, report their specific --help.
1042 ac_popdir=`pwd`
1043 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1044 test -d $ac_dir || continue
1045 ac_builddir=.
1046
1047if test "$ac_dir" != .; then
1048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1049 # A "../" for each directory in $ac_dir_suffix.
1050 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1051else
1052 ac_dir_suffix= ac_top_builddir=
1053fi
1054
1055case $srcdir in
1056 .) # No --srcdir option. We are building in place.
1057 ac_srcdir=.
1058 if test -z "$ac_top_builddir"; then
1059 ac_top_srcdir=.
1060 else
1061 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1062 fi ;;
1063 [\\/]* | ?:[\\/]* ) # Absolute path.
1064 ac_srcdir=$srcdir$ac_dir_suffix;
1065 ac_top_srcdir=$srcdir ;;
1066 *) # Relative path.
1067 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1068 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1069esac
1070
1071# Do not use `cd foo && pwd` to compute absolute paths, because
1072# the directories may not exist.
1073case `pwd` in
1074.) ac_abs_builddir="$ac_dir";;
1075*)
1076 case "$ac_dir" in
1077 .) ac_abs_builddir=`pwd`;;
1078 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1079 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1080 esac;;
1081esac
1082case $ac_abs_builddir in
1083.) ac_abs_top_builddir=${ac_top_builddir}.;;
1084*)
1085 case ${ac_top_builddir}. in
1086 .) ac_abs_top_builddir=$ac_abs_builddir;;
1087 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1089 esac;;
1090esac
1091case $ac_abs_builddir in
1092.) ac_abs_srcdir=$ac_srcdir;;
1093*)
1094 case $ac_srcdir in
1095 .) ac_abs_srcdir=$ac_abs_builddir;;
1096 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1097 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1098 esac;;
1099esac
1100case $ac_abs_builddir in
1101.) ac_abs_top_srcdir=$ac_top_srcdir;;
1102*)
1103 case $ac_top_srcdir in
1104 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1105 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1107 esac;;
1108esac
1109
1110 cd $ac_dir
1111 # Check for guested configure; otherwise get Cygnus style configure.
1112 if test -f $ac_srcdir/configure.gnu; then
1113 echo
1114 $SHELL $ac_srcdir/configure.gnu --help=recursive
1115 elif test -f $ac_srcdir/configure; then
1116 echo
1117 $SHELL $ac_srcdir/configure --help=recursive
1118 elif test -f $ac_srcdir/configure.ac ||
1119 test -f $ac_srcdir/configure.in; then
1120 echo
1121 $ac_configure --help
1122 else
1123 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1124 fi
1125 cd $ac_popdir
1126 done
1127fi
1128
1129test -n "$ac_init_help" && exit 0
1130if $ac_init_version; then
1131 cat <<\_ACEOF
1132
1133Copyright (C) 2003 Free Software Foundation, Inc.
1134This configure script is free software; the Free Software Foundation
1135gives unlimited permission to copy, distribute and modify it.
1136_ACEOF
1137 exit 0
1138fi
1139exec 5>config.log
1140cat >&5 <<_ACEOF
1141This file contains any messages produced by compilers while
1142running configure, to aid debugging if configure makes a mistake.
1143
1144It was created by $as_me, which was
1145generated by GNU Autoconf 2.59. Invocation command line was
1146
1147 $ $0 $@
1148
1149_ACEOF
1150{
1151cat <<_ASUNAME
1152## --------- ##
1153## Platform. ##
1154## --------- ##
1155
1156hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1157uname -m = `(uname -m) 2>/dev/null || echo unknown`
1158uname -r = `(uname -r) 2>/dev/null || echo unknown`
1159uname -s = `(uname -s) 2>/dev/null || echo unknown`
1160uname -v = `(uname -v) 2>/dev/null || echo unknown`
1161
1162/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1163/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1164
1165/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1166/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1167/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1168hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1169/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1170/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1171/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1172
1173_ASUNAME
1174
1175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1176for as_dir in $PATH
1177do
1178 IFS=$as_save_IFS
1179 test -z "$as_dir" && as_dir=.
1180 echo "PATH: $as_dir"
1181done
1182
1183} >&5
1184
1185cat >&5 <<_ACEOF
1186
1187
1188## ----------- ##
1189## Core tests. ##
1190## ----------- ##
1191
1192_ACEOF
1193
1194
1195# Keep a trace of the command line.
1196# Strip out --no-create and --no-recursion so they do not pile up.
1197# Strip out --silent because we don't want to record it for future runs.
1198# Also quote any args containing shell meta-characters.
1199# Make two passes to allow for proper duplicate-argument suppression.
1200ac_configure_args=
1201ac_configure_args0=
1202ac_configure_args1=
1203ac_sep=
1204ac_must_keep_next=false
1205for ac_pass in 1 2
1206do
1207 for ac_arg
1208 do
1209 case $ac_arg in
1210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212 | -silent | --silent | --silen | --sile | --sil)
1213 continue ;;
1214 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1215 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1216 esac
1217 case $ac_pass in
1218 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1219 2)
1220 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1221 if test $ac_must_keep_next = true; then
1222 ac_must_keep_next=false # Got value, back to normal.
1223 else
1224 case $ac_arg in
1225 *=* | --config-cache | -C | -disable-* | --disable-* \
1226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1228 | -with-* | --with-* | -without-* | --without-* | --x)
1229 case "$ac_configure_args0 " in
1230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1231 esac
1232 ;;
1233 -* ) ac_must_keep_next=true ;;
1234 esac
1235 fi
1236 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1237 # Get rid of the leading space.
1238 ac_sep=" "
1239 ;;
1240 esac
1241 done
1242done
1243$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1244$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1245
1246# When interrupted or exit'd, cleanup temporary files, and complete
1247# config.log. We remove comments because anyway the quotes in there
1248# would cause problems or look ugly.
1249# WARNING: Be sure not to use single quotes in there, as some shells,
1250# such as our DU 5.0 friend, will then `close' the trap.
1251trap 'exit_status=$?
1252 # Save into config.log some information that might help in debugging.
1253 {
1254 echo
1255
1256 cat <<\_ASBOX
1257## ---------------- ##
1258## Cache variables. ##
1259## ---------------- ##
1260_ASBOX
1261 echo
1262 # The following way of writing the cache mishandles newlines in values,
1263{
1264 (set) 2>&1 |
1265 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1266 *ac_space=\ *)
1267 sed -n \
1268 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1270 ;;
1271 *)
1272 sed -n \
1273 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1274 ;;
1275 esac;
1276}
1277 echo
1278
1279 cat <<\_ASBOX
1280## ----------------- ##
1281## Output variables. ##
1282## ----------------- ##
1283_ASBOX
1284 echo
1285 for ac_var in $ac_subst_vars
1286 do
1287 eval ac_val=$`echo $ac_var`
1288 echo "$ac_var='"'"'$ac_val'"'"'"
1289 done | sort
1290 echo
1291
1292 if test -n "$ac_subst_files"; then
1293 cat <<\_ASBOX
1294## ------------- ##
1295## Output files. ##
1296## ------------- ##
1297_ASBOX
1298 echo
1299 for ac_var in $ac_subst_files
1300 do
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1305 fi
1306
1307 if test -s confdefs.h; then
1308 cat <<\_ASBOX
1309## ----------- ##
1310## confdefs.h. ##
1311## ----------- ##
1312_ASBOX
1313 echo
1314 sed "/^$/d" confdefs.h | sort
1315 echo
1316 fi
1317 test "$ac_signal" != 0 &&
1318 echo "$as_me: caught signal $ac_signal"
1319 echo "$as_me: exit $exit_status"
1320 } >&5
1321 rm -f core *.core &&
1322 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1323 exit $exit_status
1324 ' 0
1325for ac_signal in 1 2 13 15; do
1326 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1327done
1328ac_signal=0
1329
1330# confdefs.h avoids OS command line length limits that DEFS can exceed.
1331rm -rf conftest* confdefs.h
1332# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1333echo >confdefs.h
1334
1335# Predefined preprocessor variables.
1336
1337cat >>confdefs.h <<_ACEOF
1338#define PACKAGE_NAME "$PACKAGE_NAME"
1339_ACEOF
1340
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_VERSION "$PACKAGE_VERSION"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_STRING "$PACKAGE_STRING"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1359_ACEOF
1360
1361
1362# Let the site file select an alternate cache file if it wants to.
a0da8069 1363# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1364if test -z "$CONFIG_SITE"; then
1365 if test "x$prefix" != xNONE; then
1366 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1367 else
1368 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1369 fi
1370fi
1371for ac_site_file in $CONFIG_SITE; do
1372 if test -r "$ac_site_file"; then
c6b750e1
DJ
1373 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1374echo "$as_me: loading site script $ac_site_file" >&6;}
1375 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1376 . "$ac_site_file"
1377 fi
1378done
1379
1380if test -r "$cache_file"; then
c6b750e1
DJ
1381 # Some versions of bash will fail to source /dev/null (special
1382 # files actually), so we avoid doing that.
1383 if test -f "$cache_file"; then
1384 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1385echo "$as_me: loading cache $cache_file" >&6;}
1386 case $cache_file in
1387 [\\/]* | ?:[\\/]* ) . $cache_file;;
1388 *) . ./$cache_file;;
1389 esac
1390 fi
a0da8069 1391else
c6b750e1
DJ
1392 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1393echo "$as_me: creating cache $cache_file" >&6;}
1394 >$cache_file
1395fi
1396
1397# Check that the precious variables saved in the cache have kept the same
1398# value.
1399ac_cache_corrupted=false
1400for ac_var in `(set) 2>&1 |
1401 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1402 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1403 eval ac_new_set=\$ac_env_${ac_var}_set
1404 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1405 eval ac_new_val="\$ac_env_${ac_var}_value"
1406 case $ac_old_set,$ac_new_set in
1407 set,)
1408 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1409echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1410 ac_cache_corrupted=: ;;
1411 ,set)
1412 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1413echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1414 ac_cache_corrupted=: ;;
1415 ,);;
1416 *)
1417 if test "x$ac_old_val" != "x$ac_new_val"; then
1418 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1419echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1420 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1421echo "$as_me: former value: $ac_old_val" >&2;}
1422 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1423echo "$as_me: current value: $ac_new_val" >&2;}
1424 ac_cache_corrupted=:
1425 fi;;
1426 esac
1427 # Pass precious variables to config.status.
1428 if test "$ac_new_set" = set; then
1429 case $ac_new_val in
1430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1431 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1432 *) ac_arg=$ac_var=$ac_new_val ;;
1433 esac
1434 case " $ac_configure_args " in
1435 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1436 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1437 esac
1438 fi
1439done
1440if $ac_cache_corrupted; then
1441 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1442echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1443 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1444echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1445 { (exit 1); exit 1; }; }
a0da8069
NN
1446fi
1447
1448ac_ext=c
a0da8069 1449ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1452ac_compiler_gnu=$ac_cv_c_compiler_gnu
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
a0da8069
NN
1466
1467
75778ec4 1468
c6b750e1
DJ
1469
1470
1471
1472
1473
1474# Find the build, host, and target systems.
a0da8069 1475ac_aux_dir=
315b3b02 1476for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1477 if test -f $ac_dir/install-sh; then
1478 ac_aux_dir=$ac_dir
1479 ac_install_sh="$ac_aux_dir/install-sh -c"
1480 break
1481 elif test -f $ac_dir/install.sh; then
1482 ac_aux_dir=$ac_dir
1483 ac_install_sh="$ac_aux_dir/install.sh -c"
1484 break
c6b750e1
DJ
1485 elif test -f $ac_dir/shtool; then
1486 ac_aux_dir=$ac_dir
1487 ac_install_sh="$ac_aux_dir/shtool install -c"
1488 break
a0da8069
NN
1489 fi
1490done
1491if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1492 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1493echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1494 { (exit 1); exit 1; }; }
a0da8069 1495fi
c6b750e1
DJ
1496ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1497ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1498ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1499
c6b750e1
DJ
1500# Make sure we can run config.sub.
1501$ac_config_sub sun4 >/dev/null 2>&1 ||
1502 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1503echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1504 { (exit 1); exit 1; }; }
1505
1506echo "$as_me:$LINENO: checking build system type" >&5
1507echo $ECHO_N "checking build system type... $ECHO_C" >&6
1508if test "${ac_cv_build+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511 ac_cv_build_alias=$build_alias
1512test -z "$ac_cv_build_alias" &&
1513 ac_cv_build_alias=`$ac_config_guess`
1514test -z "$ac_cv_build_alias" &&
1515 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1516echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1517 { (exit 1); exit 1; }; }
1518ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1519 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1520echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1521 { (exit 1); exit 1; }; }
1522
1523fi
1524echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1525echo "${ECHO_T}$ac_cv_build" >&6
1526build=$ac_cv_build
1527build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1528build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1529build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1530
a0da8069 1531
c6b750e1
DJ
1532 case ${build_alias} in
1533 "") build_noncanonical=${build} ;;
1534 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1535esac
1536
1537
cac3d6c4 1538
c6b750e1
DJ
1539 case ${host_alias} in
1540 "") host_noncanonical=${build_noncanonical} ;;
1541 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1542esac
1543
cac3d6c4 1544
c6b750e1
DJ
1545
1546 case ${target_alias} in
1547 "") target_noncanonical=${host_noncanonical} ;;
1548 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1549esac
1550
cac3d6c4 1551
c6b750e1
DJ
1552
1553
1554test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1555 test "$program_prefix$program_suffix$program_transform_name" = \
1556 NONENONEs,x,x, &&
c6b750e1 1557 program_transform_name=s,y,y,
cac3d6c4 1558
c6b750e1
DJ
1559echo "$as_me:$LINENO: checking host system type" >&5
1560echo $ECHO_N "checking host system type... $ECHO_C" >&6
1561if test "${ac_cv_host+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1563else
c6b750e1
DJ
1564 ac_cv_host_alias=$host_alias
1565test -z "$ac_cv_host_alias" &&
1566 ac_cv_host_alias=$ac_cv_build_alias
1567ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1569echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1571
1572fi
1573echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1574echo "${ECHO_T}$ac_cv_host" >&6
1575host=$ac_cv_host
1576host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581echo "$as_me:$LINENO: checking target system type" >&5
1582echo $ECHO_N "checking target system type... $ECHO_C" >&6
1583if test "${ac_cv_target+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586 ac_cv_target_alias=$target_alias
1587test "x$ac_cv_target_alias" = "x" &&
1588 ac_cv_target_alias=$ac_cv_host_alias
1589ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1593
cac3d6c4 1594fi
c6b750e1
DJ
1595echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1596echo "${ECHO_T}$ac_cv_target" >&6
1597target=$ac_cv_target
1598target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603# The aliases save the names the user supplied, while $host etc.
1604# will get canonicalized.
1605test -n "$target_alias" &&
1606 test "$program_prefix$program_suffix$program_transform_name" = \
1607 NONENONEs,x,x, &&
1608 program_prefix=${target_alias}-
a0da8069 1609test "$program_prefix" != NONE &&
c6b750e1 1610 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1611# Use a double $ so make ignores it.
1612test "$program_suffix" != NONE &&
c6b750e1
DJ
1613 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1614# Double any \ or $. echo might interpret backslashes.
1615# By default was `s,x,x', remove it if useless.
1616cat <<\_ACEOF >conftest.sed
1617s/[\\$]/&&/g;s/;s,x,x,$//
1618_ACEOF
1619program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1620rm conftest.sed
cac3d6c4 1621
a0da8069
NN
1622
1623
e5c3f801
NN
1624# Get 'install' or 'install-sh' and its variants.
1625# Find a good install program. We prefer a C program (faster),
1626# so one script is as good as another. But avoid the broken or
1627# incompatible versions:
1628# SysV /etc/install, /usr/sbin/install
1629# SunOS /usr/etc/install
1630# IRIX /sbin/install
1631# AIX /bin/install
c6b750e1 1632# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1633# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1634# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1635# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1636# OS/2's system install, which has a completely different semantic
e5c3f801 1637# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 1638# Reject install programs that cannot install multiple files.
c6b750e1
DJ
1639echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1640echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1641if test -z "$INSTALL"; then
c6b750e1
DJ
1642if test "${ac_cv_path_install+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646for as_dir in $PATH
1647do
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 # Account for people who put trailing slashes in PATH elements.
1651case $as_dir/ in
1652 ./ | .// | /cC/* | \
1653 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1654 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1655 /usr/ucb/* ) ;;
1656 *)
1657 # OSF1 and SCO ODT 3.0 have their own names for install.
1658 # Don't use installbsd from OSF since it installs stuff as root
1659 # by default.
1660 for ac_prog in ginstall scoinst install; do
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1663 if test $ac_prog = install &&
c6b750e1 1664 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1665 # AIX install. It has an incompatible calling convention.
1666 :
c6b750e1
DJ
1667 elif test $ac_prog = install &&
1668 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1669 # program-specific install script used by HP pwplus--don't use.
1670 :
e5c3f801 1671 else
58c85be7
RW
1672 rm -rf conftest.one conftest.two conftest.dir
1673 echo one > conftest.one
1674 echo two > conftest.two
1675 mkdir conftest.dir
1676 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1677 test -s conftest.one && test -s conftest.two &&
1678 test -s conftest.dir/conftest.one &&
1679 test -s conftest.dir/conftest.two
1680 then
1681 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1682 break 3
1683 fi
e5c3f801
NN
1684 fi
1685 fi
1686 done
c6b750e1
DJ
1687 done
1688 ;;
1689esac
1690done
1691
58c85be7 1692rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
1693
1694fi
1695 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1696 INSTALL=$ac_cv_path_install
e5c3f801 1697 else
58c85be7
RW
1698 # As a last resort, use the slow shell script. Don't cache a
1699 # value for INSTALL within a source directory, because that will
e5c3f801 1700 # break other packages using the cache if that directory is
58c85be7 1701 # removed, or if the value is a relative name.
c6b750e1 1702 INSTALL=$ac_install_sh
e5c3f801
NN
1703 fi
1704fi
c6b750e1
DJ
1705echo "$as_me:$LINENO: result: $INSTALL" >&5
1706echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1707
1708# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1709# It thinks the first close brace ends the variable substitution.
1710test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1711
c6b750e1 1712test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1713
1714test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1715
c6b750e1
DJ
1716echo "$as_me:$LINENO: checking whether ln works" >&5
1717echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1718if test "${acx_cv_prog_LN+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1720else
1721 rm -f conftestdata_t
1722echo >conftestdata_f
1723if ln conftestdata_f conftestdata_t 2>/dev/null
1724then
1725 acx_cv_prog_LN=ln
1726else
1727 acx_cv_prog_LN=no
1728fi
1729rm -f conftestdata_f conftestdata_t
1730
1731fi
1732if test $acx_cv_prog_LN = no; then
1733 LN="cp"
c6b750e1
DJ
1734 echo "$as_me:$LINENO: result: no, using $LN" >&5
1735echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1736else
1737 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1738 echo "$as_me:$LINENO: result: yes" >&5
1739echo "${ECHO_T}yes" >&6
656fdd47
PB
1740fi
1741
c6b750e1
DJ
1742echo "$as_me:$LINENO: checking whether ln -s works" >&5
1743echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1744LN_S=$as_ln_s
1745if test "$LN_S" = "ln -s"; then
1746 echo "$as_me:$LINENO: result: yes" >&5
1747echo "${ECHO_T}yes" >&6
cac3d6c4 1748else
c6b750e1
DJ
1749 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1750echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1751fi
1752
e5c3f801 1753
252b5132 1754### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1755### If we are on Windows, search for the shell. This will permit people
1756### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1757### without also having to set CONFIG_SHELL. This code will work when
1758### using bash, which sets OSTYPE.
1759case "${OSTYPE}" in
1760*win32*)
a0da8069
NN
1761 if test x${CONFIG_SHELL} = x ; then
1762 if test ! -f /bin/sh ; then
1763 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1764 CONFIG_SHELL=${SHELL}
1765 export CONFIG_SHELL
1766 else
1767 for prog in sh sh.exe bash bash.exe; do
1768 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1769 for dir in $PATH; do
1770 test -z "$dir" && dir=.
1771 if test -f $dir/$prog; then
1772 CONFIG_SHELL=$dir/$prog
1773 export CONFIG_SHELL
1774 break
1775 fi
1776 done
1777 IFS="$save_ifs"
1778 test -n "${CONFIG_SHELL}" && break
1779 done
1780 fi
1781 fi
1782 fi
1783 ;;
1784esac
1785
1786config_shell=${CONFIG_SHELL-/bin/sh}
1787
252b5132
RH
1788progname=$0
1789# if PWD already has a value, it is probably wrong.
a0da8069 1790if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1791
92f01d61
JM
1792# Export original configure arguments for use by sub-configures.
1793# Quote arguments with shell meta charatcers.
1794TOPLEVEL_CONFIGURE_ARGUMENTS=
1795set -- "$progname" "$@"
a4708fba
JM
1796for ac_arg
1797do
92f01d61 1798 case "$ac_arg" in
ffa8bd48 1799 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
92f01d61
JM
1800 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1801 # if the argument is of the form -foo=baz, quote the baz part only
1802 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1803 *) ;;
1804 esac
1805 # Add the quoted argument to the list.
1806 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1807done
2444379b
BE
1808if test "$silent" = yes; then
1809 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1810fi
92f01d61
JM
1811# Remove the initial space we just introduced and, as these will be
1812# expanded by make, quote '$'.
1813TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1814
75205f78 1815
a0da8069 1816moveifchange=${srcdir}/move-if-change
252b5132 1817
0fdbe983
DJ
1818srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1819
1820# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1821# a relative path.
1822if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1823 INSTALL="${srcpwd}/install-sh -c"
1824fi
1825
a0da8069
NN
1826# Set srcdir to "." if that's what it is.
1827# This is important for multilib support.
1828pwd=`${PWDCMD-pwd}`
a0da8069
NN
1829if test "${pwd}" = "${srcpwd}" ; then
1830 srcdir=.
252b5132
RH
1831fi
1832
a0da8069 1833topsrcdir=$srcpwd
252b5132 1834
a0da8069 1835extra_host_args=
afefada0 1836
a0da8069
NN
1837### To add a new directory to the tree, first choose whether it is a target
1838### or a host dependent tool. Then put it into the appropriate list
1839### (library or tools, host or target), doing a dependency sort.
252b5132 1840
c6b750e1 1841# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1842# configdirs, or target_configdirs; see the serialization section below.
252b5132 1843
c6b750e1
DJ
1844# Dependency sorting is only needed when *configuration* must be done in
1845# a particular order. In all cases a dependency should be specified in
a0da8069 1846# the Makefile, whether or not it's implicitly specified here.
252b5132 1847
a0da8069
NN
1848# Double entries in build_configdirs, configdirs, or target_configdirs may
1849# cause circular dependencies and break everything horribly.
252b5132 1850
6a9cf61e
PB
1851# these library is used by various programs built for the build
1852# environment
1853#
1854build_libs="build-libiberty"
1855
1856# these tools are built for the build environment
ee025550 1857build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1858
a0da8069
NN
1859# these libraries are used by various programs built for the host environment
1860#
4b900473 1861host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1862
a0da8069
NN
1863# these tools are built for the host environment
1864# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1865# know that we are building the simulator.
1866# binutils, gas and ld appear in that order because it makes sense to run
1867# "make check" in that particular order.
93f9b408 1868# If --enable-gold is used, "gold" will replace "ld".
b00612cc 1869host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
a0da8069
NN
1870
1871# libgcj represents the runtime libraries only used by gcj.
1872libgcj="target-libffi \
a0da8069
NN
1873 target-zlib \
1874 target-qthreads \
1875 target-libjava"
1876
1877# these libraries are built for the target environment, and are built after
1878# the host libraries and the host tools (which may be a cross compiler)
1879#
b1299c4e
DJ
1880target_libraries="target-libgcc \
1881 target-libiberty \
a0da8069
NN
1882 target-libgloss \
1883 target-newlib \
cff87f51 1884 target-libgomp \
b9459e83 1885 target-libstdc++-v3 \
4b1cb4fe 1886 target-libmudflap \
bb780410 1887 target-libssp \
4b1cb4fe 1888 target-libgfortran \
4f0ef2d8 1889 target-boehm-gc \
83326456 1890 ${libgcj} \
a2592b1b 1891 target-libobjc \
cff87f51 1892 target-libada"
a0da8069 1893
9c14acb8
NN
1894# these tools are built using the target libraries, and are intended to
1895# run only in the target environment
a0da8069 1896#
9c14acb8 1897# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1898# list belongs in this list. those programs are also very likely
1899# candidates for the "native_only" list which follows
1900#
a3dd767d 1901target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1902
a0da8069 1903################################################################################
252b5132 1904
a0da8069
NN
1905## All tools belong in one of the four categories, and are assigned above
1906## We assign ${configdirs} this way to remove all embedded newlines. This
1907## is important because configure will choke if they ever get through.
1908## ${configdirs} is directories we build using the host tools.
1909## ${target_configdirs} is directories we build using the target tools.
a0da8069 1910configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1911target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1912build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1913
9cc8ae67
PB
1914
1915
a0da8069 1916################################################################################
252b5132 1917
a0da8069 1918srcname="gnu development package"
252b5132 1919
a0da8069
NN
1920# This gets set non-empty for some net releases of packages.
1921appdirs=""
252b5132 1922
a0da8069
NN
1923# Define is_cross_compiler to save on calls to 'test'.
1924is_cross_compiler=
1925if test x"${host}" = x"${target}" ; then
1926 is_cross_compiler=no
252b5132 1927else
a0da8069 1928 is_cross_compiler=yes
c6b750e1 1929fi
252b5132 1930
9175bfc0 1931# Find the build and target subdir names.
dd12c3a8 1932
66a79c16
DJ
1933# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1934# have matching libraries, they should use host libraries: Makefile.tpl
1935# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1936# However, they still use the build modules, because the corresponding
1937# host modules (e.g. bison) are only built for the host when bootstrap
1938# finishes. So:
1939# - build_subdir is where we find build modules, and never changes.
1940# - build_libsubdir is where we find build libraries, and can be overridden.
1941
1942# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1943build_subdir="build-${build_noncanonical}"
c6b750e1 1944
66a79c16
DJ
1945# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1946if test "${with_build_libsubdir+set}" = set; then
1947 withval="$with_build_libsubdir"
1948 build_libsubdir="$withval"
1949else
1950 build_libsubdir="$build_subdir"
c6b750e1 1951fi;
b00612cc
PB
1952# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1953if ( test $srcdir = . && test -d gcc ) \
1954 || test -d $srcdir/../host-${host_noncanonical}; then
1955 host_subdir="host-${host_noncanonical}"
1956else
1957 host_subdir=.
1958fi
dd12c3a8
NN
1959# No prefix.
1960target_subdir=${target_noncanonical}
c6b750e1 1961
252b5132 1962
a0da8069
NN
1963# Skipdirs are removed silently.
1964skipdirs=
1965# Noconfigdirs are removed loudly.
1966noconfigdirs=""
252b5132 1967
a0da8069
NN
1968use_gnu_ld=
1969# Make sure we don't let GNU ld be added if we didn't want it.
1970if test x$with_gnu_ld = xno ; then
1971 use_gnu_ld=no
93f9b408 1972 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
1973fi
1974
a0da8069
NN
1975use_gnu_as=
1976# Make sure we don't let GNU as be added if we didn't want it.
1977if test x$with_gnu_as = xno ; then
1978 use_gnu_as=no
1979 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1980fi
1981
c6b750e1 1982# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1983# it's not even worth trying to configure, much less build, that tool.
252b5132 1984
a0da8069
NN
1985case ${with_x} in
1986 yes | "") ;; # the default value for this tree is that X11 is available
1987 no)
675c6968 1988 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1989 # We won't be able to build gdbtk without X.
c6b750e1 1990 enable_gdbtk=no
a0da8069
NN
1991 ;;
1992 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1993esac
252b5132 1994
a0da8069 1995# Some tools are only suitable for building in a "native" situation.
c6b750e1 1996# Remove these if host!=target.
701628f5 1997native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
252b5132 1998
a0da8069
NN
1999# Similarly, some are only suitable for cross toolchains.
2000# Remove these if host=target.
2001cross_only="target-libgloss target-newlib target-opcodes"
2002
2003case $is_cross_compiler in
2004 no) skipdirs="${skipdirs} ${cross_only}" ;;
2005 yes) skipdirs="${skipdirs} ${native_only}" ;;
2006esac
252b5132 2007
a0da8069
NN
2008# If both --with-headers and --with-libs are specified, default to
2009# --without-newlib.
32be62b5
RS
2010if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2011 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2012 if test x"${with_newlib}" = x ; then
2013 with_newlib=no
2014 fi
252b5132
RH
2015fi
2016
a0da8069
NN
2017# Recognize --with-newlib/--without-newlib.
2018case ${with_newlib} in
2019 no) skipdirs="${skipdirs} target-newlib" ;;
2020 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2021esac
252b5132 2022
93f9b408
ILT
2023# Handle --enable-gold.
2024
2025# Check whether --enable-gold or --disable-gold was given.
2026if test "${enable_gold+set}" = set; then
2027 enableval="$enable_gold"
2028 ENABLE_GOLD=$enableval
2029else
2030 ENABLE_GOLD=no
2031fi;
2032if test "${ENABLE_GOLD}" = "yes"; then
2033 # Check for ELF target.
2034 is_elf=no
2035 case "${target}" in
2036 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2037 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2038 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2039 case "${target}" in
2040 *-*-linux*aout* | *-*-linux*oldld*)
2041 ;;
2042 *)
2043 is_elf=yes
2044 ;;
2045 esac
2046 esac
2047
2048 if test "$is_elf" = "yes"; then
2049 # Check for target supported by gold.
2050 case "${target}" in
2051 i?86-*-* | x86_64-*-*)
2052 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2053 ;;
2054 esac
2055 fi
2056fi
2057
a0da8069 2058# Configure extra directories which are host specific
252b5132 2059
a0da8069
NN
2060case "${host}" in
2061 *-cygwin*)
2062 configdirs="$configdirs libtermcap" ;;
2063esac
252b5132 2064
59f7ec45
HPN
2065# A target can indicate whether a language isn't supported for some reason.
2066# Only spaces may be used in this macro; not newlines or tabs.
2067unsupported_languages=
2068
c6b750e1 2069# Remove more programs from consideration, based on the host or
a0da8069
NN
2070# target this usually means that a port of the program doesn't
2071# exist yet.
252b5132 2072
a0da8069
NN
2073case "${host}" in
2074 hppa*64*-*-*)
2075 noconfigdirs="$noconfigdirs byacc"
2076 ;;
ec11bdc6 2077 i[3456789]86-*-vsta)
675c6968 2078 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2079 ;;
ec11bdc6 2080 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2081 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2082 ;;
2d1e8239
NC
2083 x86_64-*-mingw*)
2084 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2085 ;;
ec11bdc6 2086 i[3456789]86-*-mingw32*)
675c6968 2087 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2088 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2089 ;;
ec11bdc6 2090 i[3456789]86-*-beos*)
675c6968 2091 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2092 ;;
a0da8069 2093 *-*-cygwin*)
a92834c8 2094 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2095 ;;
2096 *-*-netbsd*)
a92834c8 2097 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2098 ;;
2099 ppc*-*-pe)
675c6968 2100 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2101 ;;
2102 powerpc-*-beos*)
675c6968 2103 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2104 ;;
a0da8069 2105esac
252b5132 2106
4b1cb4fe 2107
a2592b1b
DD
2108# Check whether --enable-libada or --disable-libada was given.
2109if test "${enable_libada+set}" = set; then
2110 enableval="$enable_libada"
2111 ENABLE_LIBADA=$enableval
2112else
2113 ENABLE_LIBADA=yes
c6b750e1 2114fi;
a2592b1b 2115if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2116 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2117fi
2118
5f128533
KH
2119# Check whether --enable-libssp or --disable-libssp was given.
2120if test "${enable_libssp+set}" = set; then
2121 enableval="$enable_libssp"
2122 ENABLE_LIBSSP=$enableval
2123else
2124 ENABLE_LIBSSP=yes
c6b750e1 2125fi;
5f128533 2126
a0da8069
NN
2127# Save it here so that, even in case of --enable-libgcj, if the Java
2128# front-end isn't enabled, we still get libgcj disabled.
2129libgcj_saved=$libgcj
2130case $enable_libgcj in
2131yes)
2132 # If we reset it here, it won't get added to noconfigdirs in the
2133 # target-specific build rules, so it will be forcibly enabled
2134 # (unless the Java language itself isn't enabled).
2135 libgcj=
2136 ;;
2137no)
2138 # Make sure we get it printed in the list of not supported target libs.
2139 noconfigdirs="$noconfigdirs ${libgcj}"
2140 ;;
2141esac
252b5132 2142
4b1cb4fe 2143
a6df5a19
PB
2144# Disable libmudflap on some systems.
2145if test x$enable_libmudflap = x ; then
3e707e94 2146 case "${target}" in
0ebe98fb 2147 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2148 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2149 ;;
2150 *-*-freebsd*)
2151 # Enable libmudflap by default in FreeBSD.
2152 ;;
2153 *)
2154 # Disable it by default everywhere else.
2155 noconfigdirs="$noconfigdirs target-libmudflap"
2156 ;;
2157 esac
a6df5a19 2158fi
4b1cb4fe 2159
a6df5a19
PB
2160# Disable libgomp on non POSIX hosted systems.
2161if test x$enable_libgomp = x ; then
b3ded179
PB
2162 # Enable libgomp by default on hosted POSIX systems.
2163 case "${target}" in
2164 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2165 ;;
2166 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2167 ;;
64ce424c 2168 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2169 ;;
2170 *-*-darwin* | *-*-aix*)
2171 ;;
2172 *)
2173 noconfigdirs="$noconfigdirs target-libgomp"
2174 ;;
2175 esac
a6df5a19 2176fi
b3ded179 2177
691bb5a1
DD
2178# Default libgloss CPU subdirectory.
2179libgloss_dir="$target_cpu"
4b1cb4fe 2180
a0da8069
NN
2181case "${target}" in
2182 *-*-chorusos)
54d1c879 2183 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2184 ;;
c9b68031 2185 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
b3f16a9b 2186 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2187 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2188 ;;
04d1ab34 2189 *-*-darwin*)
d320aacb 2190 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2191 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2192 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2193 ;;
a0da8069 2194 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2195 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2196 ;;
de0b4a87 2197 *-*-freebsd*)
4b1cb4fe
DD
2198 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2199 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2200 && test -f /usr/local/include/gmp.h; then
2201 with_gmp=/usr/local
2202 fi
2203
2204 # Skip some stuff that's unsupported on some FreeBSD configurations.
2205 case "${target}" in
2206 i*86-*-*) ;;
2207 alpha*-*-*) ;;
2208 *)
54d1c879 2209 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2210 ;;
2211 esac
2212 ;;
f8a495c8
NC
2213 *-*-kaos*)
2214 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2215 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2216 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2217 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2218 noconfigdirs="$noconfigdirs target-libgloss"
2219 ;;
a0da8069
NN
2220 *-*-netbsd*)
2221 # Skip some stuff on all NetBSD configurations.
2222 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2223
2224 # Skip some stuff that's unsupported on some NetBSD configurations.
2225 case "${target}" in
2226 i*86-*-netbsdelf*) ;;
5b474aa8 2227 arm*-*-netbsdelf*) ;;
a0da8069 2228 *)
54d1c879 2229 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2230 ;;
2231 esac
2232 ;;
2a3124ca 2233 *-*-netware*)
54d1c879 2234 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2235 ;;
2236 *-*-rtems*)
54d1c879 2237 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2238 ;;
1587117a
EC
2239 # The tpf target doesn't support gdb yet.
2240 *-*-tpf*)
54d1c879 2241 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2242 ;;
c1968181 2243 *-*-uclinux*)
54d1c879 2244 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2245 ;;
a0da8069 2246 *-*-vxworks*)
54d1c879 2247 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2248 ;;
2249 alpha*-dec-osf*)
2250 # ld works, but does not support shared libraries.
2251 # newlib is not 64 bit ready. I'm not sure about fileutils.
2252 # gas doesn't generate exception information.
2253 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2254 ;;
2255 alpha*-*-*vms*)
54d1c879 2256 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2257 ;;
2258 alpha*-*-linux*)
2259 # newlib is not 64 bit ready
2260 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2261 ;;
a0da8069
NN
2262 alpha*-*-*)
2263 # newlib is not 64 bit ready
54d1c879 2264 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2265 ;;
4a18bd6b 2266 am33_2.0-*-linux*)
54d1c879 2267 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2268 ;;
a0da8069 2269 sh-*-linux*)
54d1c879 2270 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2271 ;;
a0da8069 2272 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2273 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2274 noconfigdirs="$noconfigdirs target-examples"
2275 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2276 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2277 noconfigdirs="$noconfigdirs expect dejagnu"
2278 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2279 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2280 noconfigdirs="$noconfigdirs target-newlib"
2281 case "${host}" in
2282 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2283 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2284 ;;
2285 esac
691bb5a1 2286 libgloss_dir=wince
a0da8069
NN
2287 ;;
2288 arc-*-*)
54d1c879 2289 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2290 ;;
caeba88f 2291 arm-semi-aof )
caeba88f 2292 ;;
a0da8069 2293 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2294 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2295 libgloss_dir=arm
a0da8069 2296 ;;
11b04d1f 2297 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2298 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2299 libgloss_dir=arm
a0da8069 2300 ;;
bd70a46f 2301 arm*-*-linux-gnueabi)
6d18b86b
AH
2302 noconfigdirs="$noconfigdirs target-qthreads"
2303 noconfigdirs="$noconfigdirs target-libobjc"
a5b3b4dd
DD
2304 case ${with_newlib} in
2305 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2306 esac
691bb5a1 2307 libgloss_dir=arm
bd70a46f 2308 ;;
df4a6958 2309 arm*-*-symbianelf*)
54d1c879 2310 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2311 libgloss_dir=arm
df4a6958 2312 ;;
a0da8069 2313 arm-*-pe*)
54d1c879 2314 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2315 ;;
a0da8069 2316 thumb-*-coff)
54d1c879 2317 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2318 ;;
2319 thumb-*-elf)
54d1c879 2320 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2321 ;;
a0da8069 2322 thumb-*-pe)
54d1c879 2323 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2324 ;;
2325 arm-*-riscix*)
54d1c879 2326 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2327 ;;
2328 avr-*-*)
54d1c879 2329 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2330 ;;
376a0e54 2331 bfin-*-*)
00d89675 2332 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2333 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2334 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2335 fi
2336 ;;
a0da8069 2337 c4x-*-* | tic4x-*-*)
54d1c879 2338 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2339 ;;
2340 c54x*-*-* | tic54x-*-*)
54d1c879 2341 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2342 ;;
c7e66c6d 2343 cris-*-* | crisv32-*-*)
59f7ec45 2344 unsupported_languages="$unsupported_languages java"
c7e66c6d 2345 case "${target}" in
2faa2958 2346 *-*-aout)
096f7d00 2347 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2348 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2349 *-*-elf)
5e818318 2350 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2351 *-*-linux*)
5e818318 2352 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2353 *)
096f7d00 2354 unsupported_languages="$unsupported_languages fortran"
54d1c879 2355 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2356 esac
691bb5a1 2357 libgloss_dir=cris
a0da8069 2358 ;;
3e707e94 2359 crx-*-*)
54d1c879 2360 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2361 ;;
a0da8069 2362 d10v-*-*)
54d1c879 2363 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2364 ;;
2365 d30v-*-*)
54d1c879 2366 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2367 ;;
691bb5a1
DD
2368 ep9312-*-elf | ep9312-*-coff)
2369 libgloss_dir=arm
2370 ;;
a0da8069 2371 fr30-*-elf*)
54d1c879 2372 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2373 ;;
2374 frv-*-*)
54d1c879 2375 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2376 ;;
2377 h8300*-*-*)
54d1c879 2378 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2379 ;;
2380 h8500-*-*)
54d1c879 2381 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2382 ;;
caeba88f 2383 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2384 ;;
a0da8069
NN
2385 hppa*64*-*-linux* | parisc*64*-*-linux*)
2386 # In this case, it's because the hppa64-linux target is for
2387 # the kernel only at this point and has no libc, and thus no
2388 # headers, crt*.o, etc., all of which are needed by these.
2389 noconfigdirs="$noconfigdirs target-zlib"
2390 ;;
5dcac624
DA
2391 parisc*-*-linux* | hppa*-*-linux*)
2392 ;;
a0da8069 2393 hppa*-*-*elf* | \
a0da8069
NN
2394 hppa*-*-lites* | \
2395 hppa*-*-openbsd* | \
2396 hppa*64*-*-*)
54d1c879 2397 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2398 ;;
2399 hppa*-hp-hpux11*)
2400 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2401 ;;
691bb5a1
DD
2402 hppa*-*-pro*)
2403 libgloss_dir=pa
2404 ;;
a0da8069
NN
2405 hppa*-*-*)
2406 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2407 # build on HP-UX 10.20.
54d1c879 2408 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2409 ;;
b07c2aad 2410 i960-*-*)
54d1c879 2411 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2412 ;;
a0da8069
NN
2413 ia64*-*-elf*)
2414 # No gdb support yet.
675c6968 2415 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2416 ;;
2417 ia64*-**-hpux*)
2418 # No gdb or ld support yet.
54d1c879 2419 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2420 ;;
caeba88f 2421 i370-*-opened*)
caeba88f 2422 ;;
ec11bdc6 2423 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2424 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2425 libgloss_dir=i386
a0da8069 2426 ;;
ec11bdc6 2427 i[3456789]86-*-linux*)
a0da8069
NN
2428 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2429 # not build java stuff by default.
2430 case "${target}" in
2431 *-*-*libc1*)
54d1c879 2432 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2433 esac
2434
2435 # This section makes it possible to build newlib natively on linux.
2436 # If we are using a cross compiler then don't configure newlib.
2437 if test x${is_cross_compiler} != xno ; then
bba45b8b 2438 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2439 fi
2440 noconfigdirs="$noconfigdirs target-libgloss"
2441 # If we are not using a cross compiler, do configure newlib.
2442 # Note however, that newlib will only be configured in this situation
2443 # if the --with-newlib option has been given, because otherwise
2444 # 'target-newlib' will appear in skipdirs.
2445 ;;
ec11bdc6 2446 i[3456789]86-*-mingw32*)
45055374
CV
2447 target_configdirs="$target_configdirs target-winsup"
2448 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2449 ;;
2d1e8239
NC
2450 x86_64-*-mingw*)
2451 target_configdirs="$target_configdirs target-winsup"
2452 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2453 ;;
a0da8069
NN
2454 *-*-cygwin*)
2455 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2456 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2457 # always build newlib if winsup directory is present.
45055374 2458 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2459 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2460 elif test -d "$srcdir/newlib"; then
45055374 2461 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2462 fi
c6b750e1 2463 ;;
caeba88f
AL
2464 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2465 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2466 ;;
ec11bdc6 2467 i[3456789]86-*-pe)
54d1c879 2468 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2469 ;;
ec11bdc6 2470 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2471 # The linker does not yet know about weak symbols in COFF,
2472 # and is not configured to handle mixed ELF and COFF.
54d1c879 2473 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2474 ;;
ec11bdc6 2475 i[3456789]86-*-sco*)
54d1c879 2476 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2477 ;;
ec11bdc6 2478 i[3456789]86-*-solaris2*)
a0da8069
NN
2479 noconfigdirs="$noconfigdirs target-libgloss"
2480 ;;
ec11bdc6 2481 i[3456789]86-*-sysv4*)
54d1c879 2482 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2483 ;;
ec11bdc6 2484 i[3456789]86-*-beos*)
54d1c879 2485 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2486 ;;
b59bea8a 2487 i[3456789]86-*-rdos*)
2429c060
PB
2488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2489 ;;
b07c2aad 2490 m32r-*-*)
54d1c879 2491 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2492 ;;
a0da8069 2493 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2494 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2495 libgloss_dir=m68hc11
a0da8069
NN
2496 ;;
2497 m68k-*-elf*)
54d1c879 2498 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2499 ;;
2500 m68k-*-coff*)
54d1c879 2501 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2502 ;;
691bb5a1
DD
2503 m68*-*-* | fido-*-*)
2504 libgloss_dir=m68k
2505 ;;
a0da8069
NN
2506 mcore-*-pe*)
2507 # The EPOC C++ environment does not support exceptions or rtti,
2508 # and so building libstdc++-v3 tends not to always work.
2509 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2510 ;;
2511 mmix-*-*)
59f7ec45 2512 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2513 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2514 ;;
2515 mn10200-*-*)
54d1c879 2516 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2517 ;;
2518 mn10300-*-*)
54d1c879 2519 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2520 ;;
4970f871 2521 mt-*-*)
cdb9b172
AH
2522 noconfigdirs="$noconfigdirs sim"
2523 ;;
a0da8069
NN
2524 powerpc-*-aix*)
2525 # copied from rs6000-*-* entry
54d1c879 2526 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2527 ;;
2528 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2529 target_configdirs="$target_configdirs target-winsup"
54d1c879 2530 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2531 # always build newlib.
2532 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2533 ;;
2534 # This is temporary until we can link against shared libraries
2535 powerpcle-*-solaris*)
54d1c879 2536 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2537 libgloss_dir=rs6000
a0da8069
NN
2538 ;;
2539 powerpc-*-beos*)
54d1c879 2540 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2541 ;;
a0da8069 2542 powerpc-*-eabi)
54d1c879 2543 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2544 libgloss_dir=rs6000
caeba88f
AL
2545 ;;
2546 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2547 libgloss_dir=rs6000
a0da8069 2548 ;;
a0da8069 2549 rs6000-*-lynxos*)
54d1c879 2550 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2551 ;;
2552 rs6000-*-aix*)
54d1c879 2553 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2554 ;;
2555 rs6000-*-*)
54d1c879 2556 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2557 ;;
2558 m68k-apollo-*)
54d1c879 2559 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2560 ;;
5bd8be13
RS
2561 mips*-sde-elf*)
2562 skipdirs="$skipdirs target-libiberty"
2563 noconfigdirs="$noconfigdirs ${libgcj}"
2564 if test x$with_newlib = xyes; then
2565 noconfigdirs="$noconfigdirs gprof"
2566 fi
2567 libgloss_dir=mips
2568 ;;
a0da8069 2569 mips*-*-irix5*)
54d1c879 2570 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2571 ;;
2572 mips*-*-irix6*)
a0da8069
NN
2573 # Linking libjava exceeds command-line length limits on at least
2574 # IRIX 6.2, but not on IRIX 6.5.
2575 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2576 # <oldham@codesourcery.com>
54d1c879 2577 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2578 ;;
a0da8069 2579 mips*-*-bsd*)
54d1c879 2580 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2581 ;;
a0da8069
NN
2582 mips*-*-linux*)
2583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2584 ;;
2585 mips*-*-*)
54d1c879 2586 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2587 libgloss_dir=mips
a0da8069
NN
2588 ;;
2589 romp-*-*)
54d1c879 2590 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2591 ;;
dbf85af7 2592 sh-*-* | sh64-*-*)
a0da8069 2593 case "${host}" in
ec11bdc6
DD
2594 i[3456789]86-*-vsta) ;; # don't add gprof back in
2595 i[3456789]86-*-go32*) ;; # don't add gprof back in
2596 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2597 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2598 esac
54d1c879 2599 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2600 ;;
691bb5a1
DD
2601 sparclet-*-aout* | sparc86x-*-*)
2602 libgloss_dir=sparc
2603 ;;
a0da8069 2604 sparc-*-elf*)
54d1c879 2605 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2606 ;;
2607 sparc64-*-elf*)
54d1c879 2608 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2609 libgloss_dir=sparc
a0da8069
NN
2610 ;;
2611 sparclite-*-*)
54d1c879 2612 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2613 libgloss_dir=sparc
a0da8069
NN
2614 ;;
2615 sparc-*-sunos4*)
54d1c879 2616 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2617 if test x${is_cross_compiler} != xno ; then
2618 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2619 else
2620 use_gnu_ld=no
2621 fi
2622 ;;
e3c770b1 2623 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2624 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2625 ;;
a0da8069
NN
2626 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2627 ;;
2839fe5d
BE
2628 spu-*-*)
2629 skipdirs="target-libssp"
2630 ;;
a0da8069 2631 v810-*-*)
54d1c879 2632 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2633 ;;
2634 v850-*-*)
54d1c879 2635 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2636 ;;
2637 v850e-*-*)
54d1c879 2638 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2639 ;;
2640 v850ea-*-*)
54d1c879 2641 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2642 ;;
2643 vax-*-vms)
54d1c879 2644 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2645 ;;
2646 vax-*-*)
54d1c879 2647 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2648 ;;
8b66833e 2649 xtensa*-*-*)
54d1c879 2650 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2651 ;;
a0da8069 2652 ip2k-*-*)
54d1c879 2653 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2654 ;;
de0b4a87 2655 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2657 ;;
2658 *-*-lynxos*)
54d1c879 2659 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2660 ;;
a0da8069 2661 *-*-*)
54d1c879 2662 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2663 ;;
2664esac
252b5132 2665
a0da8069
NN
2666# If we aren't building newlib, then don't build libgloss, since libgloss
2667# depends upon some newlib header files.
2668case "${noconfigdirs}" in
2669 *target-libgloss*) ;;
2670 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2671esac
2672
a0da8069
NN
2673# Work in distributions that contain no compiler tools, like Autoconf.
2674tentative_cc=""
2675host_makefile_frag=/dev/null
2676if test -d ${srcdir}/config ; then
2677case "${host}" in
2678 m68k-hp-hpux*)
2679 # Avoid "too much defining" errors from HPUX compiler.
2680 tentative_cc="cc -Wp,-H256000"
2681 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2682 # If it's HP/UX ar, this should be harmless.
2683 RANLIB="ar ts"
2684 ;;
2685 m68k-apollo-sysv*)
2686 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2687 ;;
2688 m68k-apollo-bsd*)
2689 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2690 # chokes on bfd, the compiler won't let you assign integers to enums, and
2691 # other problems. Defining CC to gcc is a questionable way to say "don't use
2692 # the apollo compiler" (the preferred version of GCC could be called cc,
2693 # or whatever), but I'm not sure leaving CC as cc is any better...
2694 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2695 # Used to have BISON=yacc.
2696 tentative_cc=gcc
2697 ;;
2698 m88k-dg-dgux*)
2699 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2700 ;;
2701 m88k-harris-cxux*)
2702 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2703 tentative_cc="cc -Xa"
2704 host_makefile_frag="config/mh-cxux"
2705 ;;
2706 m88k-motorola-sysv*)
2707 ;;
2708 mips*-dec-ultrix*)
2709 tentative_cc="cc -Wf,-XNg1000"
2710 host_makefile_frag="config/mh-decstation"
2711 ;;
2712 mips*-nec-sysv4*)
2713 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2714 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2715 host_makefile_frag="config/mh-necv4"
2716 ;;
2717 mips*-sgi-irix4*)
2718 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2719 # environment. Also bump switch table size so that cp-parse will
2720 # compile. Bump string length limit so linker builds.
2721 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2722 ;;
2723 mips*-*-sysv4*)
2724 host_makefile_frag="config/mh-sysv4"
2725 ;;
2726 mips*-*-sysv*)
2727 # This is for a MIPS running RISC/os 4.52C.
2728
2729 # This is needed for GDB, but needs to be in the top-level make because
2730 # if a library is compiled with the bsd headers and gets linked with the
2731 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2732 # a different size).
2733 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2734 # known except to select the sysv environment. Could we use /proc instead?
2735 # These "sysv environments" and "bsd environments" often end up being a pain.
2736 #
2737 # This is not part of CFLAGS because perhaps not all C compilers have this
2738 # option.
2739 tentative_cc="cc -systype sysv"
2740 ;;
2741 i370-ibm-opened*)
2742 tentative_cc="c89"
2743 ;;
ec11bdc6 2744 i[3456789]86-*-sysv5*)
a0da8069
NN
2745 host_makefile_frag="config/mh-sysv5"
2746 ;;
ec11bdc6 2747 i[3456789]86-*-dgux*)
a0da8069
NN
2748 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2749 host_makefile_frag="config/mh-dgux386"
2750 ;;
ec11bdc6 2751 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2752 # The MetaWare compiler will generate a copyright message unless you
2753 # turn it off by adding the -Hnocopyr flag.
2754 tentative_cc="cc -Hnocopyr"
2755 ;;
ec11bdc6 2756 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2757 # for an NCR 3000 (i486/SVR4) system.
2758 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2759 # This compiler not only emits obnoxious copyright messages every time
2760 # you run it, but it chokes and dies on a whole bunch of GNU source
2761 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2762 tentative_cc="/usr/ccs/ATT/cc"
2763 host_makefile_frag="config/mh-ncr3000"
2764 ;;
ec11bdc6 2765 i[3456789]86-*-sco3.2v5*)
a0da8069 2766 ;;
ec11bdc6 2767 i[3456789]86-*-sco*)
a0da8069
NN
2768 # The native C compiler botches some simple uses of const. Unfortunately,
2769 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2770 tentative_cc="cc -Dconst="
2771 host_makefile_frag="config/mh-sco"
2772 ;;
ec11bdc6 2773 i[3456789]86-*-udk*)
a0da8069
NN
2774 host_makefile_frag="config/mh-sysv5"
2775 ;;
ec11bdc6 2776 i[3456789]86-*-solaris2*)
a0da8069
NN
2777 host_makefile_frag="config/mh-sysv4"
2778 ;;
ec11bdc6 2779 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2780 host_makefile_frag="config/mh-djgpp"
2781 ;;
2782 *-cygwin*)
2783 host_makefile_frag="config/mh-cygwin"
2784 ;;
8a1599ab 2785 *-mingw*)
84e7906e 2786 host_makefile_frag="config/mh-mingw"
2d1e8239 2787 ;;
a0da8069
NN
2788 *-interix*)
2789 host_makefile_frag="config/mh-interix"
2790 ;;
2791 vax-*-ultrix2*)
2792 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2793 tentative_cc=gcc
2794 ;;
2795 *-*-solaris2*)
2796 host_makefile_frag="config/mh-solaris"
2797 ;;
2798 m68k-sun-sunos*)
2799 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2800 # without overflowing the jump tables (-J says to use a 32 bit table)
2801 tentative_cc="cc -J"
2802 ;;
2803 *-hp-hpux*)
2804 tentative_cc="cc -Wp,-H256000"
2805 ;;
2806 *-*-hiux*)
2807 tentative_cc="cc -Wp,-H256000"
2808 ;;
2809 rs6000-*-lynxos*)
2810 # /bin/cc is less than useful for our purposes. Always use GCC
2811 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2812 host_makefile_frag="config/mh-lynxrs6k"
2813 ;;
0df3d27f
PB
2814 powerpc-*-darwin*)
2815 host_makefile_frag="config/mh-ppc-darwin"
2816 ;;
f6d183c0
PB
2817 powerpc-*-aix*)
2818 host_makefile_frag="config/mh-ppc-aix"
2819 ;;
2820 rs6000-*-aix*)
2821 host_makefile_frag="config/mh-ppc-aix"
2822 ;;
a0da8069
NN
2823 *-*-lynxos*)
2824 # /bin/cc is less than useful for our purposes. Always use GCC
2825 tentative_cc="/bin/gcc"
2826 ;;
2827 *-*-sysv4*)
2828 host_makefile_frag="config/mh-sysv4"
2829 ;;
fe69863c
DD
2830 # This is placed last to prevent interfering with the cases above.
2831 i[3456789]86-*-*)
2832 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2833 host_makefile_frag="config/mh-x86omitfp"
2834 ;;
a0da8069
NN
2835esac
2836fi
2837
9e07f89d
NN
2838# If we aren't going to be using gcc, see if we can extract a definition
2839# of CC from the fragment.
2840# Actually, use the 'pre-extracted' version above.
2841if test -z "${CC}" && test "${build}" = "${host}" ; then
2842 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2843 found=
2844 for dir in $PATH; do
2845 test -z "$dir" && dir=.
2846 if test -f $dir/gcc; then
2847 found=yes
2848 break
2849 fi
2850 done
2851 IFS="$save_ifs"
2852 if test -z "${found}" && test -n "${tentative_cc}" ; then
2853 CC=$tentative_cc
2854 fi
2855fi
2856
2857if test "${build}" != "${host}" ; then
1576798e
PB
2858 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2859 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2860 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2861 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2862 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2863 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2864 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2865 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2866 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2867 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2868 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2869 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2870else
2871 AR_FOR_BUILD="\$(AR)"
2872 AS_FOR_BUILD="\$(AS)"
512b7dfb 2873 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2874 CXX_FOR_BUILD="\$(CXX)"
2875 GCJ_FOR_BUILD="\$(GCJ)"
2876 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2877 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2878 LD_FOR_BUILD="\$(LD)"
2879 NM_FOR_BUILD="\$(NM)"
2880 RANLIB_FOR_BUILD="\$(RANLIB)"
2881 WINDRES_FOR_BUILD="\$(WINDRES)"
2882 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2883fi
2884
2885ac_ext=c
c6b750e1
DJ
2886ac_cpp='$CPP $CPPFLAGS'
2887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890if test -n "$ac_tool_prefix"; then
2891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2892set dummy ${ac_tool_prefix}gcc; ac_word=$2
2893echo "$as_me:$LINENO: checking for $ac_word" >&5
2894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2895if test "${ac_cv_prog_CC+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2897else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900else
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 break 2
2911 fi
2912done
2913done
2914
2915fi
2916fi
2917CC=$ac_cv_prog_CC
2918if test -n "$CC"; then
2919 echo "$as_me:$LINENO: result: $CC" >&5
2920echo "${ECHO_T}$CC" >&6
2921else
2922 echo "$as_me:$LINENO: result: no" >&5
2923echo "${ECHO_T}no" >&6
2924fi
2925
2926fi
2927if test -z "$ac_cv_prog_CC"; then
2928 ac_ct_CC=$CC
6a9cf61e 2929 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2930set dummy gcc; ac_word=$2
c6b750e1
DJ
2931echo "$as_me:$LINENO: checking for $ac_word" >&5
2932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2933if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2935else
2936 if test -n "$ac_ct_CC"; then
2937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_ac_ct_CC="gcc"
2947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950done
2951done
2952
2953fi
2954fi
2955ac_ct_CC=$ac_cv_prog_ac_ct_CC
2956if test -n "$ac_ct_CC"; then
2957 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2958echo "${ECHO_T}$ac_ct_CC" >&6
2959else
2960 echo "$as_me:$LINENO: result: no" >&5
2961echo "${ECHO_T}no" >&6
2962fi
2963
2964 CC=$ac_ct_CC
2965else
2966 CC="$ac_cv_prog_CC"
2967fi
2968
2969if test -z "$CC"; then
2970 if test -n "$ac_tool_prefix"; then
2971 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2972set dummy ${ac_tool_prefix}cc; ac_word=$2
2973echo "$as_me:$LINENO: checking for $ac_word" >&5
2974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2975if test "${ac_cv_prog_CC+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2977else
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2980else
c6b750e1
DJ
2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982for as_dir in $PATH
2983do
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988 ac_cv_prog_CC="${ac_tool_prefix}cc"
2989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2991 fi
2992done
2993done
2994
9e07f89d
NN
2995fi
2996fi
c6b750e1 2997CC=$ac_cv_prog_CC
9e07f89d 2998if test -n "$CC"; then
c6b750e1
DJ
2999 echo "$as_me:$LINENO: result: $CC" >&5
3000echo "${ECHO_T}$CC" >&6
9e07f89d 3001else
c6b750e1
DJ
3002 echo "$as_me:$LINENO: result: no" >&5
3003echo "${ECHO_T}no" >&6
9e07f89d
NN
3004fi
3005
c6b750e1
DJ
3006fi
3007if test -z "$ac_cv_prog_CC"; then
3008 ac_ct_CC=$CC
3009 # Extract the first word of "cc", so it can be a program name with args.
3010set dummy cc; ac_word=$2
3011echo "$as_me:$LINENO: checking for $ac_word" >&5
3012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3013if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015else
3016 if test -n "$ac_ct_CC"; then
3017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026 ac_cv_prog_ac_ct_CC="cc"
3027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3029 fi
3030done
3031done
3032
3033fi
3034fi
3035ac_ct_CC=$ac_cv_prog_ac_ct_CC
3036if test -n "$ac_ct_CC"; then
3037 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3038echo "${ECHO_T}$ac_ct_CC" >&6
3039else
3040 echo "$as_me:$LINENO: result: no" >&5
3041echo "${ECHO_T}no" >&6
3042fi
3043
3044 CC=$ac_ct_CC
3045else
3046 CC="$ac_cv_prog_CC"
3047fi
3048
3049fi
9e07f89d
NN
3050if test -z "$CC"; then
3051 # Extract the first word of "cc", so it can be a program name with args.
3052set dummy cc; ac_word=$2
c6b750e1
DJ
3053echo "$as_me:$LINENO: checking for $ac_word" >&5
3054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3055if test "${ac_cv_prog_CC+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3057else
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
3060else
9e07f89d 3061 ac_prog_rejected=no
c6b750e1
DJ
3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063for as_dir in $PATH
3064do
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3070 ac_prog_rejected=yes
3071 continue
3072 fi
3073 ac_cv_prog_CC="cc"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3076 fi
3077done
3078done
3079
9e07f89d
NN
3080if test $ac_prog_rejected = yes; then
3081 # We found a bogon in the path, so make sure we never use it.
3082 set dummy $ac_cv_prog_CC
3083 shift
c6b750e1 3084 if test $# != 0; then
9e07f89d
NN
3085 # We chose a different compiler from the bogus one.
3086 # However, it has the same basename, so the bogon will be chosen
3087 # first if we set CC to just the basename; use the full file name.
3088 shift
c6b750e1 3089 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3090 fi
3091fi
3092fi
3093fi
c6b750e1 3094CC=$ac_cv_prog_CC
9e07f89d 3095if test -n "$CC"; then
c6b750e1
DJ
3096 echo "$as_me:$LINENO: result: $CC" >&5
3097echo "${ECHO_T}$CC" >&6
9e07f89d 3098else
c6b750e1
DJ
3099 echo "$as_me:$LINENO: result: no" >&5
3100echo "${ECHO_T}no" >&6
9e07f89d
NN
3101fi
3102
c6b750e1
DJ
3103fi
3104if test -z "$CC"; then
3105 if test -n "$ac_tool_prefix"; then
3106 for ac_prog in cl
3107 do
3108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3110echo "$as_me:$LINENO: checking for $ac_word" >&5
3111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3112if test "${ac_cv_prog_CC+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3114else
3115 if test -n "$CC"; then
3116 ac_cv_prog_CC="$CC" # Let the user override the test.
3117else
c6b750e1
DJ
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
376a0e54 3128 fi
c6b750e1
DJ
3129done
3130done
cac3d6c4 3131
c6b750e1
DJ
3132fi
3133fi
3134CC=$ac_cv_prog_CC
3135if test -n "$CC"; then
3136 echo "$as_me:$LINENO: result: $CC" >&5
3137echo "${ECHO_T}$CC" >&6
cac3d6c4 3138else
c6b750e1
DJ
3139 echo "$as_me:$LINENO: result: no" >&5
3140echo "${ECHO_T}no" >&6
9e07f89d 3141fi
cac3d6c4 3142
c6b750e1
DJ
3143 test -n "$CC" && break
3144 done
cac3d6c4 3145fi
c6b750e1
DJ
3146if test -z "$CC"; then
3147 ac_ct_CC=$CC
3148 for ac_prog in cl
3149do
3150 # Extract the first word of "$ac_prog", so it can be a program name with args.
3151set dummy $ac_prog; ac_word=$2
3152echo "$as_me:$LINENO: checking for $ac_word" >&5
3153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3154if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3156else
c6b750e1
DJ
3157 if test -n "$ac_ct_CC"; then
3158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3159else
c6b750e1
DJ
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167 ac_cv_prog_ac_ct_CC="$ac_prog"
3168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3170 fi
3171done
3172done
3173
cac3d6c4
CM
3174fi
3175fi
c6b750e1
DJ
3176ac_ct_CC=$ac_cv_prog_ac_ct_CC
3177if test -n "$ac_ct_CC"; then
3178 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3179echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3180else
c6b750e1
DJ
3181 echo "$as_me:$LINENO: result: no" >&5
3182echo "${ECHO_T}no" >&6
cac3d6c4 3183fi
376a0e54 3184
c6b750e1
DJ
3185 test -n "$ac_ct_CC" && break
3186done
3187
3188 CC=$ac_ct_CC
3189fi
3190
3191fi
3192
3193
3194test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3195See \`config.log' for more details." >&5
3196echo "$as_me: error: no acceptable C compiler found in \$PATH
3197See \`config.log' for more details." >&2;}
3198 { (exit 1); exit 1; }; }
3199
3200# Provide some information about the compiler.
3201echo "$as_me:$LINENO:" \
3202 "checking for C compiler version" >&5
3203ac_compiler=`set X $ac_compile; echo $2`
3204{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3205 (eval $ac_compiler --version </dev/null >&5) 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }
3209{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3210 (eval $ac_compiler -v </dev/null >&5) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }
3214{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3215 (eval $ac_compiler -V </dev/null >&5) 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }
3219
3220cat >conftest.$ac_ext <<_ACEOF
3221/* confdefs.h. */
3222_ACEOF
3223cat confdefs.h >>conftest.$ac_ext
3224cat >>conftest.$ac_ext <<_ACEOF
3225/* end confdefs.h. */
3226
3227int
3228main ()
3229{
3230
3231 ;
3232 return 0;
3233}
3234_ACEOF
3235ac_clean_files_save=$ac_clean_files
3236ac_clean_files="$ac_clean_files a.out a.exe b.out"
3237# Try to create an executable without -o first, disregard a.out.
3238# It will help us diagnose broken compilers, and finding out an intuition
3239# of exeext.
3240echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3241echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3242ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3243if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3244 (eval $ac_link_default) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; then
3248 # Find the output, starting from the most likely. This scheme is
3249# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3250# resort.
3251
3252# Be careful to initialize this variable, since it used to be cached.
3253# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3254ac_cv_exeext=
3255# b.out is created by i960 compilers.
3256for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3257do
3258 test -f "$ac_file" || continue
3259 case $ac_file in
3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3261 ;;
3262 conftest.$ac_ext )
3263 # This is the source file.
3264 ;;
3265 [ab].out )
3266 # We found the default executable, but exeext='' is most
3267 # certainly right.
3268 break;;
3269 *.* )
3270 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3271 # FIXME: I believe we export ac_cv_exeext for Libtool,
3272 # but it would be cool to find out if it's true. Does anybody
3273 # maintain Libtool? --akim.
3274 export ac_cv_exeext
3275 break;;
3276 * )
3277 break;;
3278 esac
3279done
3280else
3281 echo "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
3284{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3285See \`config.log' for more details." >&5
3286echo "$as_me: error: C compiler cannot create executables
3287See \`config.log' for more details." >&2;}
3288 { (exit 77); exit 77; }; }
3289fi
3290
3291ac_exeext=$ac_cv_exeext
3292echo "$as_me:$LINENO: result: $ac_file" >&5
3293echo "${ECHO_T}$ac_file" >&6
3294
3295# Check the compiler produces executables we can run. If not, either
3296# the compiler is broken, or we cross compile.
3297echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3298echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3299# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3300# If not cross compiling, check that we can run a simple program.
3301if test "$cross_compiling" != yes; then
3302 if { ac_try='./$ac_file'
3303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304 (eval $ac_try) 2>&5
3305 ac_status=$?
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; }; then
3308 cross_compiling=no
3309 else
3310 if test "$cross_compiling" = maybe; then
3311 cross_compiling=yes
3312 else
3313 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3314If you meant to cross compile, use \`--host'.
3315See \`config.log' for more details." >&5
3316echo "$as_me: error: cannot run C compiled programs.
3317If you meant to cross compile, use \`--host'.
3318See \`config.log' for more details." >&2;}
3319 { (exit 1); exit 1; }; }
3320 fi
3321 fi
3322fi
3323echo "$as_me:$LINENO: result: yes" >&5
3324echo "${ECHO_T}yes" >&6
3325
3326rm -f a.out a.exe conftest$ac_cv_exeext b.out
3327ac_clean_files=$ac_clean_files_save
3328# Check the compiler produces executables we can run. If not, either
3329# the compiler is broken, or we cross compile.
3330echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3331echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3332echo "$as_me:$LINENO: result: $cross_compiling" >&5
3333echo "${ECHO_T}$cross_compiling" >&6
3334
3335echo "$as_me:$LINENO: checking for suffix of executables" >&5
3336echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3338 (eval $ac_link) 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; then
3342 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3343# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3344# work properly (i.e., refer to `conftest.exe'), while it won't with
3345# `rm'.
3346for ac_file in conftest.exe conftest conftest.*; do
3347 test -f "$ac_file" || continue
3348 case $ac_file in
3349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3350 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3351 export ac_cv_exeext
3352 break;;
3353 * ) break;;
3354 esac
3355done
3356else
3357 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3358See \`config.log' for more details." >&5
3359echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3360See \`config.log' for more details." >&2;}
3361 { (exit 1); exit 1; }; }
3362fi
3363
3364rm -f conftest$ac_cv_exeext
3365echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3366echo "${ECHO_T}$ac_cv_exeext" >&6
3367
3368rm -f conftest.$ac_ext
3369EXEEXT=$ac_cv_exeext
3370ac_exeext=$EXEEXT
3371echo "$as_me:$LINENO: checking for suffix of object files" >&5
3372echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3373if test "${ac_cv_objext+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375else
3376 cat >conftest.$ac_ext <<_ACEOF
3377/* confdefs.h. */
3378_ACEOF
3379cat confdefs.h >>conftest.$ac_ext
3380cat >>conftest.$ac_ext <<_ACEOF
3381/* end confdefs.h. */
3382
3383int
3384main ()
3385{
3386
3387 ;
3388 return 0;
3389}
3390_ACEOF
3391rm -f conftest.o conftest.obj
3392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3393 (eval $ac_compile) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; then
3397 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3398 case $ac_file in
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3400 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3401 break;;
3402 esac
3403done
cac3d6c4 3404else
c6b750e1
DJ
3405 echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3409See \`config.log' for more details." >&5
3410echo "$as_me: error: cannot compute suffix of object files: cannot compile
3411See \`config.log' for more details." >&2;}
3412 { (exit 1); exit 1; }; }
3413fi
3414
3415rm -f conftest.$ac_cv_objext conftest.$ac_ext
3416fi
3417echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3418echo "${ECHO_T}$ac_cv_objext" >&6
3419OBJEXT=$ac_cv_objext
3420ac_objext=$OBJEXT
3421echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3422echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3423if test "${ac_cv_c_compiler_gnu+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3425else
3426 cat >conftest.$ac_ext <<_ACEOF
3427/* confdefs.h. */
3428_ACEOF
3429cat confdefs.h >>conftest.$ac_ext
3430cat >>conftest.$ac_ext <<_ACEOF
3431/* end confdefs.h. */
3432
3433int
3434main ()
3435{
3436#ifndef __GNUC__
3437 choke me
3438#endif
3439
3440 ;
3441 return 0;
3442}
3443_ACEOF
3444rm -f conftest.$ac_objext
3445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3446 (eval $ac_compile) 2>conftest.er1
3447 ac_status=$?
3448 grep -v '^ *+' conftest.er1 >conftest.err
3449 rm -f conftest.er1
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } &&
3453 { ac_try='test -z "$ac_c_werror_flag"
3454 || test ! -s conftest.err'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 (eval $ac_try) 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; } &&
3460 { ac_try='test -s conftest.$ac_objext'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 (eval $ac_try) 2>&5
3463 ac_status=$?
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; }; then
3466 ac_compiler_gnu=yes
3467else
3468 echo "$as_me: failed program was:" >&5
3469sed 's/^/| /' conftest.$ac_ext >&5
3470
3471ac_compiler_gnu=no
3472fi
3473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3474ac_cv_c_compiler_gnu=$ac_compiler_gnu
3475
3476fi
3477echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3478echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3479GCC=`test $ac_compiler_gnu = yes && echo yes`
3480ac_test_CFLAGS=${CFLAGS+set}
3481ac_save_CFLAGS=$CFLAGS
3482CFLAGS="-g"
3483echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3484echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3485if test "${ac_cv_prog_cc_g+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487else
3488 cat >conftest.$ac_ext <<_ACEOF
3489/* confdefs.h. */
3490_ACEOF
3491cat confdefs.h >>conftest.$ac_ext
3492cat >>conftest.$ac_ext <<_ACEOF
3493/* end confdefs.h. */
3494
3495int
3496main ()
3497{
3498
3499 ;
3500 return 0;
3501}
3502_ACEOF
3503rm -f conftest.$ac_objext
3504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3505 (eval $ac_compile) 2>conftest.er1
3506 ac_status=$?
3507 grep -v '^ *+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } &&
3512 { ac_try='test -z "$ac_c_werror_flag"
3513 || test ! -s conftest.err'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 (eval $ac_try) 2>&5
3516 ac_status=$?
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; } &&
3519 { ac_try='test -s conftest.$ac_objext'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 (eval $ac_try) 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
9e07f89d
NN
3525 ac_cv_prog_cc_g=yes
3526else
c6b750e1
DJ
3527 echo "$as_me: failed program was:" >&5
3528sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3529
c6b750e1 3530ac_cv_prog_cc_g=no
376a0e54 3531fi
c6b750e1
DJ
3532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3533fi
3534echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3535echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3536if test "$ac_test_CFLAGS" = set; then
c6b750e1 3537 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3538elif test $ac_cv_prog_cc_g = yes; then
3539 if test "$GCC" = yes; then
3540 CFLAGS="-g -O2"
3541 else
3542 CFLAGS="-g"
3543 fi
3544else
3545 if test "$GCC" = yes; then
3546 CFLAGS="-O2"
3547 else
3548 CFLAGS=
3549 fi
3550fi
c6b750e1
DJ
3551echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3552echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3553if test "${ac_cv_prog_cc_stdc+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555else
3556 ac_cv_prog_cc_stdc=no
3557ac_save_CC=$CC
3558cat >conftest.$ac_ext <<_ACEOF
3559/* confdefs.h. */
3560_ACEOF
3561cat confdefs.h >>conftest.$ac_ext
3562cat >>conftest.$ac_ext <<_ACEOF
3563/* end confdefs.h. */
3564#include <stdarg.h>
3565#include <stdio.h>
3566#include <sys/types.h>
3567#include <sys/stat.h>
3568/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3569struct buf { int x; };
3570FILE * (*rcsopen) (struct buf *, struct stat *, int);
3571static char *e (p, i)
3572 char **p;
3573 int i;
3574{
3575 return p[i];
3576}
3577static char *f (char * (*g) (char **, int), char **p, ...)
3578{
3579 char *s;
3580 va_list v;
3581 va_start (v,p);
3582 s = g (p, va_arg (v,int));
3583 va_end (v);
3584 return s;
3585}
3586
3587/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3588 function prototypes and stuff, but not '\xHH' hex character constants.
3589 These don't provoke an error unfortunately, instead are silently treated
3590 as 'x'. The following induces an error, until -std1 is added to get
3591 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3592 array size at least. It's necessary to write '\x00'==0 to get something
3593 that's true only with -std1. */
3594int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3595
3596int test (int i, double x);
3597struct s1 {int (*f) (int a);};
3598struct s2 {int (*f) (double a);};
3599int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3600int argc;
3601char **argv;
3602int
3603main ()
3604{
3605return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3606 ;
3607 return 0;
3608}
3609_ACEOF
3610# Don't try gcc -ansi; that turns off useful extensions and
3611# breaks some systems' header files.
3612# AIX -qlanglvl=ansi
3613# Ultrix and OSF/1 -std1
3614# HP-UX 10.20 and later -Ae
3615# HP-UX older versions -Aa -D_HPUX_SOURCE
3616# SVR4 -Xc -D__EXTENSIONS__
3617for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3618do
3619 CC="$ac_save_CC $ac_arg"
3620 rm -f conftest.$ac_objext
3621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3622 (eval $ac_compile) 2>conftest.er1
3623 ac_status=$?
3624 grep -v '^ *+' conftest.er1 >conftest.err
3625 rm -f conftest.er1
3626 cat conftest.err >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } &&
3629 { ac_try='test -z "$ac_c_werror_flag"
3630 || test ! -s conftest.err'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 (eval $ac_try) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; } &&
3636 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3642 ac_cv_prog_cc_stdc=$ac_arg
3643break
3644else
3645 echo "$as_me: failed program was:" >&5
3646sed 's/^/| /' conftest.$ac_ext >&5
3647
3648fi
3649rm -f conftest.err conftest.$ac_objext
3650done
3651rm -f conftest.$ac_ext conftest.$ac_objext
3652CC=$ac_save_CC
3653
3654fi
3655
3656case "x$ac_cv_prog_cc_stdc" in
3657 x|xno)
3658 echo "$as_me:$LINENO: result: none needed" >&5
3659echo "${ECHO_T}none needed" >&6 ;;
3660 *)
3661 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3662echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3663 CC="$CC $ac_cv_prog_cc_stdc" ;;
3664esac
3665
3666# Some people use a C++ compiler to compile C. Since we use `exit',
3667# in C++ we need to declare it. In case someone uses the same compiler
3668# for both compiling C and C++ we need to have the C++ compiler decide
3669# the declaration of exit, since it's the most demanding environment.
3670cat >conftest.$ac_ext <<_ACEOF
3671#ifndef __cplusplus
3672 choke me
3673#endif
3674_ACEOF
3675rm -f conftest.$ac_objext
3676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3677 (eval $ac_compile) 2>conftest.er1
3678 ac_status=$?
3679 grep -v '^ *+' conftest.er1 >conftest.err
3680 rm -f conftest.er1
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } &&
3684 { ac_try='test -z "$ac_c_werror_flag"
3685 || test ! -s conftest.err'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 (eval $ac_try) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; } &&
3691 { ac_try='test -s conftest.$ac_objext'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 for ac_declaration in \
3698 '' \
3699 'extern "C" void std::exit (int) throw (); using std::exit;' \
3700 'extern "C" void std::exit (int); using std::exit;' \
3701 'extern "C" void exit (int) throw ();' \
3702 'extern "C" void exit (int);' \
3703 'void exit (int);'
3704do
3705 cat >conftest.$ac_ext <<_ACEOF
3706/* confdefs.h. */
3707_ACEOF
3708cat confdefs.h >>conftest.$ac_ext
3709cat >>conftest.$ac_ext <<_ACEOF
3710/* end confdefs.h. */
3711$ac_declaration
3712#include <stdlib.h>
3713int
3714main ()
3715{
3716exit (42);
3717 ;
3718 return 0;
3719}
3720_ACEOF
3721rm -f conftest.$ac_objext
3722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3723 (eval $ac_compile) 2>conftest.er1
3724 ac_status=$?
3725 grep -v '^ *+' conftest.er1 >conftest.err
3726 rm -f conftest.er1
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } &&
3730 { ac_try='test -z "$ac_c_werror_flag"
3731 || test ! -s conftest.err'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 (eval $ac_try) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; } &&
3737 { ac_try='test -s conftest.$ac_objext'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739 (eval $ac_try) 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; }; then
3743 :
3744else
3745 echo "$as_me: failed program was:" >&5
3746sed 's/^/| /' conftest.$ac_ext >&5
3747
3748continue
3749fi
3750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3751 cat >conftest.$ac_ext <<_ACEOF
3752/* confdefs.h. */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h. */
3757$ac_declaration
3758int
3759main ()
3760{
3761exit (42);
3762 ;
3763 return 0;
3764}
3765_ACEOF
3766rm -f conftest.$ac_objext
3767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768 (eval $ac_compile) 2>conftest.er1
3769 ac_status=$?
3770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } &&
3775 { ac_try='test -z "$ac_c_werror_flag"
3776 || test ! -s conftest.err'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 (eval $ac_try) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; } &&
3782 { ac_try='test -s conftest.$ac_objext'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 (eval $ac_try) 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3788 break
3789else
3790 echo "$as_me: failed program was:" >&5
3791sed 's/^/| /' conftest.$ac_ext >&5
3792
3793fi
3794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3795done
3796rm -f conftest*
3797if test -n "$ac_declaration"; then
3798 echo '#ifdef __cplusplus' >>confdefs.h
3799 echo $ac_declaration >>confdefs.h
3800 echo '#endif' >>confdefs.h
3801fi
3802
3803else
3804 echo "$as_me: failed program was:" >&5
3805sed 's/^/| /' conftest.$ac_ext >&5
3806
3807fi
3808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3809ac_ext=c
3810ac_cpp='$CPP $CPPFLAGS'
3811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3814
18f6b6ee
PB
3815ac_ext=cc
3816ac_cpp='$CXXCPP $CPPFLAGS'
3817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3820if test -n "$ac_tool_prefix"; then
3821 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3822 do
3823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3824set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3825echo "$as_me:$LINENO: checking for $ac_word" >&5
3826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827if test "${ac_cv_prog_CXX+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830 if test -n "$CXX"; then
3831 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3832else
3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH
3835do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3843 fi
3844done
3845done
512b7dfb 3846
18f6b6ee
PB
3847fi
3848fi
3849CXX=$ac_cv_prog_CXX
3850if test -n "$CXX"; then
3851 echo "$as_me:$LINENO: result: $CXX" >&5
3852echo "${ECHO_T}$CXX" >&6
3853else
3854 echo "$as_me:$LINENO: result: no" >&5
3855echo "${ECHO_T}no" >&6
3856fi
3857
3858 test -n "$CXX" && break
3859 done
3860fi
3861if test -z "$CXX"; then
3862 ac_ct_CXX=$CXX
3863 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3864do
3865 # Extract the first word of "$ac_prog", so it can be a program name with args.
3866set dummy $ac_prog; ac_word=$2
3867echo "$as_me:$LINENO: checking for $ac_word" >&5
3868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3869if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871else
3872 if test -n "$ac_ct_CXX"; then
3873 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3874else
3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876for as_dir in $PATH
3877do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_ac_ct_CXX="$ac_prog"
3883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
512b7dfb 3885 fi
18f6b6ee
PB
3886done
3887done
512b7dfb 3888
18f6b6ee
PB
3889fi
3890fi
3891ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3892if test -n "$ac_ct_CXX"; then
3893 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3894echo "${ECHO_T}$ac_ct_CXX" >&6
3895else
3896 echo "$as_me:$LINENO: result: no" >&5
3897echo "${ECHO_T}no" >&6
3898fi
3899
3900 test -n "$ac_ct_CXX" && break
3901done
3902test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3903
3904 CXX=$ac_ct_CXX
3905fi
3906
3907
3908# Provide some information about the compiler.
3909echo "$as_me:$LINENO:" \
3910 "checking for C++ compiler version" >&5
3911ac_compiler=`set X $ac_compile; echo $2`
3912{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3913 (eval $ac_compiler --version </dev/null >&5) 2>&5
3914 ac_status=$?
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); }
3917{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3918 (eval $ac_compiler -v </dev/null >&5) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }
3922{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3923 (eval $ac_compiler -V </dev/null >&5) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }
3927
3928echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3929echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3930if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932else
3933 cat >conftest.$ac_ext <<_ACEOF
3934/* confdefs.h. */
3935_ACEOF
3936cat confdefs.h >>conftest.$ac_ext
3937cat >>conftest.$ac_ext <<_ACEOF
3938/* end confdefs.h. */
3939
3940int
3941main ()
3942{
3943#ifndef __GNUC__
3944 choke me
3945#endif
3946
3947 ;
3948 return 0;
3949}
3950_ACEOF
3951rm -f conftest.$ac_objext
3952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3953 (eval $ac_compile) 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } &&
3960 { ac_try='test -z "$ac_cxx_werror_flag"
3961 || test ! -s conftest.err'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 (eval $ac_try) 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; } &&
3967 { ac_try='test -s conftest.$ac_objext'
3968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 (eval $ac_try) 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 ac_compiler_gnu=yes
3974else
3975 echo "$as_me: failed program was:" >&5
3976sed 's/^/| /' conftest.$ac_ext >&5
3977
3978ac_compiler_gnu=no
3979fi
3980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3981ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3982
3983fi
3984echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3985echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3986GXX=`test $ac_compiler_gnu = yes && echo yes`
3987ac_test_CXXFLAGS=${CXXFLAGS+set}
3988ac_save_CXXFLAGS=$CXXFLAGS
3989CXXFLAGS="-g"
3990echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3991echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3992if test "${ac_cv_prog_cxx_g+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994else
3995 cat >conftest.$ac_ext <<_ACEOF
3996/* confdefs.h. */
3997_ACEOF
3998cat confdefs.h >>conftest.$ac_ext
3999cat >>conftest.$ac_ext <<_ACEOF
4000/* end confdefs.h. */
4001
4002int
4003main ()
4004{
4005
4006 ;
4007 return 0;
4008}
4009_ACEOF
4010rm -f conftest.$ac_objext
4011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4012 (eval $ac_compile) 2>conftest.er1
4013 ac_status=$?
4014 grep -v '^ *+' conftest.er1 >conftest.err
4015 rm -f conftest.er1
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } &&
4019 { ac_try='test -z "$ac_cxx_werror_flag"
4020 || test ! -s conftest.err'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; } &&
4026 { ac_try='test -s conftest.$ac_objext'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; }; then
4032 ac_cv_prog_cxx_g=yes
4033else
4034 echo "$as_me: failed program was:" >&5
4035sed 's/^/| /' conftest.$ac_ext >&5
4036
4037ac_cv_prog_cxx_g=no
4038fi
4039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4040fi
4041echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4042echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4043if test "$ac_test_CXXFLAGS" = set; then
4044 CXXFLAGS=$ac_save_CXXFLAGS
4045elif test $ac_cv_prog_cxx_g = yes; then
4046 if test "$GXX" = yes; then
4047 CXXFLAGS="-g -O2"
4048 else
4049 CXXFLAGS="-g"
4050 fi
4051else
4052 if test "$GXX" = yes; then
4053 CXXFLAGS="-O2"
4054 else
4055 CXXFLAGS=
4056 fi
4057fi
4058for ac_declaration in \
4059 '' \
4060 'extern "C" void std::exit (int) throw (); using std::exit;' \
4061 'extern "C" void std::exit (int); using std::exit;' \
4062 'extern "C" void exit (int) throw ();' \
4063 'extern "C" void exit (int);' \
4064 'void exit (int);'
4065do
4066 cat >conftest.$ac_ext <<_ACEOF
4067/* confdefs.h. */
4068_ACEOF
4069cat confdefs.h >>conftest.$ac_ext
4070cat >>conftest.$ac_ext <<_ACEOF
4071/* end confdefs.h. */
4072$ac_declaration
4073#include <stdlib.h>
4074int
4075main ()
4076{
4077exit (42);
4078 ;
4079 return 0;
4080}
4081_ACEOF
4082rm -f conftest.$ac_objext
4083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4084 (eval $ac_compile) 2>conftest.er1
4085 ac_status=$?
4086 grep -v '^ *+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } &&
4091 { ac_try='test -z "$ac_cxx_werror_flag"
4092 || test ! -s conftest.err'
4093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 (eval $ac_try) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; } &&
4098 { ac_try='test -s conftest.$ac_objext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 (eval $ac_try) 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4104 :
4105else
4106 echo "$as_me: failed program was:" >&5
4107sed 's/^/| /' conftest.$ac_ext >&5
4108
4109continue
4110fi
4111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4112 cat >conftest.$ac_ext <<_ACEOF
4113/* confdefs.h. */
4114_ACEOF
4115cat confdefs.h >>conftest.$ac_ext
4116cat >>conftest.$ac_ext <<_ACEOF
4117/* end confdefs.h. */
4118$ac_declaration
4119int
4120main ()
4121{
4122exit (42);
4123 ;
4124 return 0;
4125}
4126_ACEOF
4127rm -f conftest.$ac_objext
4128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4129 (eval $ac_compile) 2>conftest.er1
4130 ac_status=$?
4131 grep -v '^ *+' conftest.er1 >conftest.err
4132 rm -f conftest.er1
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_cxx_werror_flag"
4137 || test ! -s conftest.err'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try='test -s conftest.$ac_objext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 break
4150else
4151 echo "$as_me: failed program was:" >&5
4152sed 's/^/| /' conftest.$ac_ext >&5
4153
4154fi
4155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4156done
4157rm -f conftest*
4158if test -n "$ac_declaration"; then
4159 echo '#ifdef __cplusplus' >>confdefs.h
4160 echo $ac_declaration >>confdefs.h
4161 echo '#endif' >>confdefs.h
4162fi
4163
4164ac_ext=c
4165ac_cpp='$CPP $CPPFLAGS'
4166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169
4170
4171# We must set the default linker to the linker used by gcc for the correct
4172# operation of libtool. If LD is not defined and we are using gcc, try to
4173# set the LD default to the ld used by gcc.
4174if test -z "$LD"; then
4175 if test "$GCC" = yes; then
4176 case $build in
4177 *-*-mingw*)
4178 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4179 *)
4180 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4181 esac
4182 case $gcc_prog_ld in
4183 # Accept absolute paths.
4184 [\\/]* | [A-Za-z]:[\\/]*)
4185 LD="$gcc_prog_ld" ;;
4186 esac
4187 fi
512b7dfb
PB
4188fi
4189
4190
4191
4192
c6b750e1 4193if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4194 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4195set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4196echo "$as_me:$LINENO: checking for $ac_word" >&5
4197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4198if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4199 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4200else
512b7dfb
PB
4201 if test -n "$GNATBIND"; then
4202 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4203else
c6b750e1
DJ
4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4211 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4214 fi
4215done
4216done
4217
9e07f89d
NN
4218fi
4219fi
512b7dfb
PB
4220GNATBIND=$ac_cv_prog_GNATBIND
4221if test -n "$GNATBIND"; then
4222 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4223echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4224else
c6b750e1
DJ
4225 echo "$as_me:$LINENO: result: no" >&5
4226echo "${ECHO_T}no" >&6
9e07f89d
NN
4227fi
4228
c6b750e1 4229fi
512b7dfb
PB
4230if test -z "$ac_cv_prog_GNATBIND"; then
4231 ac_ct_GNATBIND=$GNATBIND
4232 # Extract the first word of "gnatbind", so it can be a program name with args.
4233set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4234echo "$as_me:$LINENO: checking for $ac_word" >&5
4235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4236if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4237 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4238else
512b7dfb
PB
4239 if test -n "$ac_ct_GNATBIND"; then
4240 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4241else
c6b750e1
DJ
4242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4249 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4252 fi
4253done
4254done
4255
512b7dfb 4256 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4257fi
4258fi
512b7dfb
PB
4259ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4260if test -n "$ac_ct_GNATBIND"; then
4261 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4262echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4263else
c6b750e1
DJ
4264 echo "$as_me:$LINENO: result: no" >&5
4265echo "${ECHO_T}no" >&6
9e07f89d
NN
4266fi
4267
512b7dfb 4268 GNATBIND=$ac_ct_GNATBIND
24ff9987 4269else
512b7dfb 4270 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4271fi
4272
7df2cd5d 4273if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4274 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4275set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4276echo "$as_me:$LINENO: checking for $ac_word" >&5
4277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4278if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280else
512b7dfb
PB
4281 if test -n "$GNATMAKE"; then
4282 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4283else
4284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285for as_dir in $PATH
4286do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4291 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4294 fi
4295done
4296done
4297
4298fi
4299fi
512b7dfb
PB
4300GNATMAKE=$ac_cv_prog_GNATMAKE
4301if test -n "$GNATMAKE"; then
4302 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4303echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4304else
4305 echo "$as_me:$LINENO: result: no" >&5
4306echo "${ECHO_T}no" >&6
4307fi
4308
4309fi
512b7dfb
PB
4310if test -z "$ac_cv_prog_GNATMAKE"; then
4311 ac_ct_GNATMAKE=$GNATMAKE
4312 # Extract the first word of "gnatmake", so it can be a program name with args.
4313set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4314echo "$as_me:$LINENO: checking for $ac_word" >&5
4315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4316if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4318else
512b7dfb
PB
4319 if test -n "$ac_ct_GNATMAKE"; then
4320 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4321else
4322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323for as_dir in $PATH
4324do
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4329 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 break 2
4332 fi
4333done
4334done
4335
512b7dfb 4336 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4337fi
4338fi
512b7dfb
PB
4339ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4340if test -n "$ac_ct_GNATMAKE"; then
4341 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4342echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4343else
4344 echo "$as_me:$LINENO: result: no" >&5
4345echo "${ECHO_T}no" >&6
4346fi
4347
512b7dfb 4348 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4349else
512b7dfb 4350 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4351fi
4352
c6b750e1
DJ
4353echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4354echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4355if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4357else
4358 cat >conftest.adb <<EOF
4359procedure conftest is begin null; end conftest;
4360EOF
4361acx_cv_cc_gcc_supports_ada=no
4362# There is a bug in old released versions of GCC which causes the
4363# driver to exit successfully when the appropriate language module
4364# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4365# Therefore we must check for the error message as well as an
4366# unsuccessful exit.
b8908782
DD
4367# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4368# given a .adb file, but produce no object file. So we must check
4369# if an object file was really produced to guard against this.
9e07f89d 4370errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4371if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4372 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4373fi
4374rm -f conftest.*
4375fi
c6b750e1
DJ
4376echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4377echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4378
512b7dfb 4379if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4380 have_gnat=yes
4381else
4382 have_gnat=no
4383fi
4384
c6b750e1
DJ
4385echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4386echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4387if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4389else
4390 echo abfoo >t1
4391 echo cdfoo >t2
4392 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4393 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4394 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4395 :
4396 else
4397 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4398 fi
4399 fi
b8908782
DD
4400 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4401 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4402 :
b8908782
DD
4403 else
4404 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4405 fi
4406 fi
4407 rm t1 t2
4408
4409fi
c6b750e1
DJ
4410echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4411echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4412do_compare="$gcc_cv_prog_cmp_skip"
4413
4414
9e07f89d 4415
11b04d1f 4416# Check for GMP and MPFR
4b900473 4417gmplibs="-lmpfr -lgmp"
4b1cb4fe 4418gmpinc=
4b900473
PB
4419have_gmp=no
4420
11b04d1f
DD
4421# Specify a location for mpfr
4422# check for this first so it ends up on the link line before gmp.
c6b750e1 4423
11b04d1f
DD
4424# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4425if test "${with_mpfr_dir+set}" = set; then
4426 withval="$with_mpfr_dir"
c6b750e1
DJ
4427 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4428Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4429echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4430Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4431 { (exit 1); exit 1; }; }
4432fi;
11b04d1f
DD
4433
4434
11b04d1f
DD
4435# Check whether --with-mpfr or --without-mpfr was given.
4436if test "${with_mpfr+set}" = set; then
4437 withval="$with_mpfr"
c6b750e1
DJ
4438
4439fi;
11b04d1f 4440
8a0d8a5c
PB
4441# Check whether --with-mpfr_include or --without-mpfr_include was given.
4442if test "${with_mpfr_include+set}" = set; then
4443 withval="$with_mpfr_include"
c6b750e1
DJ
4444
4445fi;
8a0d8a5c
PB
4446
4447# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4448if test "${with_mpfr_lib+set}" = set; then
4449 withval="$with_mpfr_lib"
8a0d8a5c 4450
c6b750e1 4451fi;
11b04d1f
DD
4452
4453if test "x$with_mpfr" != x; then
4454 gmplibs="-L$with_mpfr/lib $gmplibs"
4455 gmpinc="-I$with_mpfr/include"
4456fi
8a0d8a5c
PB
4457if test "x$with_mpfr_include" != x; then
4458 gmpinc="-I$with_mpfr_include"
4459fi
4460if test "x$with_mpfr_lib" != x; then
4461 gmplibs="-L$with_mpfr_lib $gmplibs"
4462fi
4b900473
PB
4463if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4464 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4465 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4466 # Do not test the mpfr version. Assume that it is sufficient, since
4467 # it is in the source tree, and the library has not been built yet
4468 # but it would be included on the link line in the version check below
4469 # hence making the test fail.
4470 have_gmp=yes
4471fi
11b04d1f 4472
4b1cb4fe 4473# Specify a location for gmp
c6b750e1 4474
4b1cb4fe
DD
4475# Check whether --with-gmp-dir or --without-gmp-dir was given.
4476if test "${with_gmp_dir+set}" = set; then
4477 withval="$with_gmp_dir"
c6b750e1
DJ
4478 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4479Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4480echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4481Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4482 { (exit 1); exit 1; }; }
4483fi;
4b1cb4fe
DD
4484
4485
4b1cb4fe
DD
4486# Check whether --with-gmp or --without-gmp was given.
4487if test "${with_gmp+set}" = set; then
4488 withval="$with_gmp"
c6b750e1
DJ
4489
4490fi;
4b1cb4fe 4491
8a0d8a5c
PB
4492# Check whether --with-gmp_include or --without-gmp_include was given.
4493if test "${with_gmp_include+set}" = set; then
4494 withval="$with_gmp_include"
c6b750e1
DJ
4495
4496fi;
8a0d8a5c
PB
4497
4498# Check whether --with-gmp_lib or --without-gmp_lib was given.
4499if test "${with_gmp_lib+set}" = set; then
4500 withval="$with_gmp_lib"
8a0d8a5c 4501
c6b750e1 4502fi;
8a0d8a5c 4503
4b1cb4fe 4504
11b04d1f
DD
4505if test "x$with_gmp" != x; then
4506 gmplibs="-L$with_gmp/lib $gmplibs"
4507 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4508fi
8a0d8a5c
PB
4509if test "x$with_gmp_include" != x; then
4510 gmpinc="-I$with_gmp_include $gmpinc"
4511fi
4512if test "x$with_gmp_lib" != x; then
4513 gmplibs="-L$with_gmp_lib $gmplibs"
4514fi
4b900473
PB
4515if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4516 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4517 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4518 # Do not test the gmp version. Assume that it is sufficient, since
4519 # it is in the source tree, and the library has not been built yet
4520 # but it would be included on the link line in the version check below
4521 # hence making the test fail.
4522 have_gmp=yes
4523fi
4b1cb4fe 4524
ceb92e78 4525if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4526 have_gmp=yes
4527 saved_CFLAGS="$CFLAGS"
4528 CFLAGS="$CFLAGS $gmpinc"
4529 # Check GMP actually works
c6b750e1
DJ
4530 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4531echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4532
4533cat >conftest.$ac_ext <<_ACEOF
4534/* confdefs.h. */
4535_ACEOF
4536cat confdefs.h >>conftest.$ac_ext
4537cat >>conftest.$ac_ext <<_ACEOF
4538/* end confdefs.h. */
4b1cb4fe 4539#include "gmp.h"
c6b750e1
DJ
4540int
4541main ()
4542{
4b1cb4fe 4543
4b900473
PB
4544 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4545 choke me
4546 #endif
c6b750e1
DJ
4547
4548 ;
4549 return 0;
4550}
4551_ACEOF
4552rm -f conftest.$ac_objext
4553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4554 (eval $ac_compile) 2>conftest.er1
4555 ac_status=$?
4556 grep -v '^ *+' conftest.er1 >conftest.err
4557 rm -f conftest.er1
4558 cat conftest.err >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } &&
4561 { ac_try='test -z "$ac_c_werror_flag"
4562 || test ! -s conftest.err'
4563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564 (eval $ac_try) 2>&5
4565 ac_status=$?
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; } &&
4568 { ac_try='test -s conftest.$ac_objext'
4569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570 (eval $ac_try) 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4574 echo "$as_me:$LINENO: result: yes" >&5
4575echo "${ECHO_T}yes" >&6
4576else
4577 echo "$as_me: failed program was:" >&5
4578sed 's/^/| /' conftest.$ac_ext >&5
4579
4580echo "$as_me:$LINENO: result: no" >&5
4581echo "${ECHO_T}no" >&6; have_gmp=no
4582fi
4583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4584
4b900473
PB
4585 if test x"$have_gmp" = xyes; then
4586 saved_LIBS="$LIBS"
4587 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4588 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4589echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4590 cat >conftest.$ac_ext <<_ACEOF
4591/* confdefs.h. */
4592_ACEOF
4593cat confdefs.h >>conftest.$ac_ext
4594cat >>conftest.$ac_ext <<_ACEOF
4595/* end confdefs.h. */
9b134994 4596#include <gmp.h>
4b900473 4597 #include <mpfr.h>
c6b750e1
DJ
4598int
4599main ()
4600{
9b134994 4601
57c53b2b 4602 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4b900473
PB
4603 choke me
4604 #endif
a3ca38d2
DD
4605 mpfr_t n;
4606 mpfr_t x;
4b900473 4607 int t;
a3ca38d2
DD
4608 mpfr_init (n);
4609 mpfr_init (x);
4b900473
PB
4610 mpfr_atan2 (n, n, x, GMP_RNDN);
4611 mpfr_erfc (n, x, GMP_RNDN);
4612 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4613
4614 ;
4615 return 0;
4616}
4617_ACEOF
4618rm -f conftest.$ac_objext conftest$ac_exeext
4619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4620 (eval $ac_link) 2>conftest.er1
4621 ac_status=$?
4622 grep -v '^ *+' conftest.er1 >conftest.err
4623 rm -f conftest.er1
4624 cat conftest.err >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } &&
4627 { ac_try='test -z "$ac_c_werror_flag"
4628 || test ! -s conftest.err'
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); }; } &&
4634 { ac_try='test -s conftest$ac_exeext'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 (eval $ac_try) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 cat >conftest.$ac_ext <<_ACEOF
4641/* confdefs.h. */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h. */
4b1cb4fe 4646#include <gmp.h>
4b900473 4647 #include <mpfr.h>
c6b750e1
DJ
4648int
4649main ()
4650{
9dbaa842 4651
57c53b2b 4652 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4b900473
PB
4653 choke me
4654 #endif
4655 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4656
4657 ;
4658 return 0;
4659}
4660_ACEOF
4661rm -f conftest.$ac_objext conftest$ac_exeext
4662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4663 (eval $ac_link) 2>conftest.er1
4664 ac_status=$?
4665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -z "$ac_c_werror_flag"
4671 || test ! -s conftest.err'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 (eval $ac_try) 2>&5
4674 ac_status=$?
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; } &&
4677 { ac_try='test -s conftest$ac_exeext'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 (eval $ac_try) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 echo "$as_me:$LINENO: result: yes" >&5
4684echo "${ECHO_T}yes" >&6
4685else
4686 echo "$as_me: failed program was:" >&5
4687sed 's/^/| /' conftest.$ac_ext >&5
4688
4689echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4690echo "${ECHO_T}buggy but acceptable" >&6
4691fi
4692rm -f conftest.err conftest.$ac_objext \
4693 conftest$ac_exeext conftest.$ac_ext
4694else
4695 echo "$as_me: failed program was:" >&5
4696sed 's/^/| /' conftest.$ac_ext >&5
4697
4698echo "$as_me:$LINENO: result: no" >&5
4699echo "${ECHO_T}no" >&6; have_gmp=no
4700fi
4701rm -f conftest.err conftest.$ac_objext \
4702 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4703 LIBS="$saved_LIBS"
4704 fi
4705 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4706
4b900473 4707 if test x$have_gmp != xyes; then
57c53b2b 4708 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
c6b750e1
DJ
4709Try the --with-gmp and/or --with-mpfr options to specify their locations.
4710Copies of these libraries' source code can be found at their respective
4711hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4712See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4713If you obtained GMP and/or MPFR from a vendor distribution package, make
4714sure that you have installed both the libraries and the header files.
4715They may be located in separate packages." >&5
57c53b2b 4716echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
9dbaa842
DD
4717Try the --with-gmp and/or --with-mpfr options to specify their locations.
4718Copies of these libraries' source code can be found at their respective
4719hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4720See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4721If you obtained GMP and/or MPFR from a vendor distribution package, make
4722sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4723They may be located in separate packages." >&2;}
4724 { (exit 1); exit 1; }; }
4b900473 4725 fi
9dbaa842
DD
4726fi
4727
11b04d1f 4728# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4729
4730
4731
947f426e 4732# By default, C is the only stage 1 language.
9b134994 4733stage1_languages=,c,
1d39f329 4734
9e07f89d
NN
4735# Figure out what language subdirectories are present.
4736# Look if the user specified --enable-languages="..."; if not, use
4737# the environment variable $LANGUAGES if defined. $LANGUAGES might
4738# go away some day.
4739# NB: embedded tabs in this IF block -- do not untabify
4740if test -d ${srcdir}/gcc; then
4741 if test x"${enable_languages+set}" != xset; then
4742 if test x"${LANGUAGES+set}" = xset; then
4743 enable_languages="${LANGUAGES}"
4744 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4745 else
4746 enable_languages=all
4747 fi
4748 else
4749 if test x"${enable_languages}" = x ||
4750 test x"${enable_languages}" = xyes;
4751 then
4752 echo configure.in: --enable-languages needs at least one language argument 1>&2
4753 exit 1
4754 fi
4755 fi
4756 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4757
096f7d00
DE
4758 # 'f95' is the old name for the 'fortran' language. We issue a warning
4759 # and make the substitution.
4760 case ,${enable_languages}, in
4761 *,f95,*)
4762 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4763 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4764 ;;
4765 esac
4766
9e07f89d
NN
4767 # First scan to see if an enabled language requires some other language.
4768 # We assume that a given config-lang.in will list all the language
4769 # front ends it requires, even if some are required indirectly.
4770 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4771 case ${lang_frag} in
4772 ..) ;;
4773 # The odd quoting in the next line works around
4774 # an apparent bug in bash 1.12 on linux.
4775 ${srcdir}/gcc/[*]/config-lang.in) ;;
4776 *)
4777 # From the config-lang.in, get $language, $lang_requires
4778 language=
4779 lang_requires=
4780 . ${lang_frag}
4781 for other in ${lang_requires} ; do
4782 case ,${enable_languages}, in
4783 *,$other,*) ;;
4784 *,all,*) ;;
4785 *,$language,*)
4786 echo " \`$other' language required by \`$language'; enabling" 1>&2
4787 enable_languages="${enable_languages},${other}"
4788 ;;
4789 esac
4790 done
4791 ;;
4792 esac
4793 done
4794
9b134994 4795 new_enable_languages=,c,
9e07f89d 4796 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4797 potential_languages=,c,
9e07f89d
NN
4798
4799 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4800 case ${lang_frag} in
4801 ..) ;;
4802 # The odd quoting in the next line works around
4803 # an apparent bug in bash 1.12 on linux.
4804 ${srcdir}/gcc/[*]/config-lang.in) ;;
4805 *)
c6b750e1 4806 # From the config-lang.in, get $language, $target_libs,
1d39f329 4807 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4808 language=
4809 target_libs=
4810 lang_dirs=
64ce424c 4811 subdir_requires=
9b134994
PB
4812 boot_language=no
4813 build_by_default=yes
9e07f89d 4814 . ${lang_frag}
9b134994
PB
4815 if test x${language} = x; then
4816 echo "${lang_frag} doesn't set \$language." 1>&2
4817 exit 1
4818 fi
4819
4820 case ,${enable_languages}, in
4821 *,${language},*)
9e07f89d
NN
4822 # Language was explicitly selected; include it.
4823 add_this_lang=yes
4824 ;;
9b134994
PB
4825 *,all,*)
4826 # 'all' was selected, select it if it is a default language
4827 add_this_lang=${build_by_default}
9e07f89d
NN
4828 ;;
4829 *)
4830 add_this_lang=no
4831 ;;
4832 esac
4b1cb4fe 4833
64ce424c 4834 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4835 for i in $subdir_requires; do
3d3adb43 4836 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4837 case ,${enable_languages}, in
4838 *,${language},*)
4839 # Specifically requested language; tell them.
c6b750e1
DJ
4840 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4841echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4842 { (exit 1); exit 1; }; }
64ce424c
PB
4843 ;;
4844 *)
4845 # Silently disable.
9b134994 4846 add_this_lang=unsupported
64ce424c
PB
4847 ;;
4848 esac
4849 done
4850
9b134994
PB
4851 # Disable Ada if no preexisting GNAT is available.
4852 case ,${enable_languages},:${language}:${have_gnat} in
4853 *,${language},*:ada:no)
4854 # Specifically requested language; tell them.
c6b750e1
DJ
4855 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4856echo "$as_me: error: GNAT is required to build $language" >&2;}
4857 { (exit 1); exit 1; }; }
9b134994
PB
4858 ;;
4859 *:ada:no)
4860 # Silently disable.
4861 add_this_lang=unsupported
4862 ;;
4863 esac
4864
59f7ec45
HPN
4865 # Disable a language that is unsupported by the target.
4866 case " $unsupported_languages " in
4867 *" $language "*)
9b134994 4868 add_this_lang=unsupported
59f7ec45
HPN
4869 ;;
4870 esac
4871
4b1cb4fe 4872 case $add_this_lang in
9b134994 4873 unsupported)
9e07f89d 4874 # Remove language-dependent dirs.
1d39f329
NN
4875 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4876 ;;
9b134994
PB
4877 no)
4878 # Remove language-dependent dirs; still show language as supported.
4879 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4880 potential_languages="${potential_languages}${language},"
4881 ;;
4882 yes)
4883 new_enable_languages="${new_enable_languages}${language},"
4884 potential_languages="${potential_languages}${language},"
1d39f329
NN
4885 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4886 case ${boot_language} in
4887 yes)
4fa63067 4888 # Add to (comma-separated) list of stage 1 languages.
9b134994 4889 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4890 ;;
4891 esac
4892 ;;
9e07f89d
NN
4893 esac
4894 ;;
4895 esac
4896 done
4897
9b134994
PB
4898 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4899if test "${enable_stage1_languages+set}" = set; then
4900 enableval="$enable_stage1_languages"
4901 case ,${enable_stage1_languages}, in
4902 ,no,|,,)
4903 # Set it to something that will have no effect in the loop below
4904 enable_stage1_languages=c ;;
4905 ,yes,)
4906 enable_stage1_languages=`echo $new_enable_languages | \
4907 sed -e "s/^,//" -e "s/,$//" ` ;;
4908 *,all,*)
4909 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4910 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4911 esac
4912
4913 # Add "good" languages from enable_stage1_languages to stage1_languages,
4914 # while "bad" languages go in missing_languages. Leave no duplicates.
4915 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4916 case $potential_languages in
4917 *,$i,*)
4918 case $stage1_languages in
4919 *,$i,*) ;;
4920 *) stage1_languages="$stage1_languages$i," ;;
4921 esac ;;
4922 *)
4923 case $missing_languages in
4924 *,$i,*) ;;
4925 *) missing_languages="$missing_languages$i," ;;
4926 esac ;;
4927 esac
4928 done
c6b750e1 4929fi;
9b134994
PB
4930
4931 # Remove leading/trailing commas that were added for simplicity
4932 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4933 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4934 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4935 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4936
9e07f89d 4937 if test "x$missing_languages" != x; then
c6b750e1 4938 { { echo "$as_me:$LINENO: error:
27258dd4 4939The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4940Supported languages are: ${potential_languages}" >&5
4941echo "$as_me: error:
4942The following requested languages could not be built: ${missing_languages}
4943Supported languages are: ${potential_languages}" >&2;}
4944 { (exit 1); exit 1; }; }
9e07f89d 4945 fi
9e07f89d
NN
4946 if test "x$new_enable_languages" != "x$enable_languages"; then
4947 echo The following languages will be built: ${new_enable_languages}
9b134994 4948 enable_languages="$new_enable_languages"
9e07f89d 4949 fi
9b134994 4950
c6b750e1 4951
81ec575a 4952 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4953fi
4954
a6df5a19
PB
4955# Handle --disable-<component> generically.
4956for dir in $configdirs $build_configdirs $target_configdirs ; do
4957 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
4958 varname=`echo $dirname | sed -e s/+/_/g`
4959 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
4960 noconfigdirs="$noconfigdirs $dir"
4961 fi
4962done
4963
4f0ef2d8
CD
4964# Check for Boehm's garbage collector
4965# Check whether --enable-objc-gc or --disable-objc-gc was given.
4966if test "${enable_objc_gc+set}" = set; then
4967 enableval="$enable_objc_gc"
4968 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4969 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4970 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4971echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4972 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4973 ;;
4974esac
c6b750e1 4975fi;
4f0ef2d8
CD
4976
4977# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4978case ,${enable_languages},:${enable_objc_gc} in
4979 *,objc,*:yes)
4f0ef2d8
CD
4980 # Keep target-boehm-gc if requested for Objective-C.
4981 ;;
4f0ef2d8 4982 *)
d42c4017
DA
4983 # Otherwise remove target-boehm-gc depending on target-libjava.
4984 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4985 noconfigdirs="$noconfigdirs target-boehm-gc"
4986 fi
4f0ef2d8
CD
4987 ;;
4988esac
4989
caeba88f
AL
4990# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4991# $build_configdirs and $target_configdirs.
9e07f89d
NN
4992# If we have the source for $noconfigdirs entries, add them to $notsupp.
4993
4994notsupp=""
4995for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4996 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4997 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4998 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4999 if test -r $srcdir/$dirname/configure ; then
5000 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5001 true
5002 else
5003 notsupp="$notsupp $dir"
5004 fi
5005 fi
5006 fi
caeba88f
AL
5007 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5008 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5009 if test -r $srcdir/$dirname/configure ; then
5010 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5011 true
5012 else
5013 notsupp="$notsupp $dir"
5014 fi
5015 fi
5016 fi
9e07f89d
NN
5017 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5018 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5019 if test -r $srcdir/$dirname/configure ; then
5020 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5021 true
5022 else
5023 notsupp="$notsupp $dir"
5024 fi
5025 fi
5026 fi
5027done
5028
5029# Sometimes the tools are distributed with libiberty but with no other
5030# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5031# Don't let libgcc imply libiberty either.
9e07f89d 5032if test -n "${target_configdirs}" ; then
f86e35b8 5033 libgcc=
9e07f89d
NN
5034 others=
5035 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5036 if test "$i" = "libgcc"; then
5037 libgcc=target-libgcc
5038 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5039 if test -r $srcdir/$i/configure ; then
5040 others=yes;
5041 break;
5042 fi
5043 fi
5044 done
5045 if test -z "${others}" ; then
f86e35b8 5046 target_configdirs=$libgcc
9e07f89d
NN
5047 fi
5048fi
5049
5050# Quietly strip out all directories which aren't configurable in this tree.
5051# This relies on all configurable subdirectories being autoconfiscated, which
5052# is now the case.
6a9cf61e
PB
5053build_configdirs_all="$build_configdirs"
5054build_configdirs=
5055for i in ${build_configdirs_all} ; do
c6b750e1 5056 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5057 if test -f ${srcdir}/$j/configure ; then
5058 build_configdirs="${build_configdirs} $i"
5059 fi
5060done
5061
9e07f89d
NN
5062configdirs_all="$configdirs"
5063configdirs=
5064for i in ${configdirs_all} ; do
5065 if test -f ${srcdir}/$i/configure ; then
5066 configdirs="${configdirs} $i"
5067 fi
5068done
6a9cf61e 5069
9e07f89d
NN
5070target_configdirs_all="$target_configdirs"
5071target_configdirs=
5072for i in ${target_configdirs_all} ; do
c6b750e1 5073 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5074 if test -f ${srcdir}/$j/configure ; then
5075 target_configdirs="${target_configdirs} $i"
5076 fi
5077done
5078
5079# Produce a warning message for the subdirs we can't configure.
5080# This isn't especially interesting in the Cygnus tree, but in the individual
5081# FSF releases, it's important to let people know when their machine isn't
5082# supported by the one or two programs in a package.
5083
5084if test -n "${notsupp}" && test -z "${norecursion}" ; then
5085 # If $appdirs is non-empty, at least one of those directories must still
5086 # be configured, or we error out. (E.g., if the gas release supports a
5087 # specified target in some subdirs but not the gas subdir, we shouldn't
5088 # pretend that all is well.)
5089 if test -n "$appdirs" ; then
5090 for dir in $appdirs ; do
5091 if test -r $dir/Makefile.in ; then
5092 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5093 appdirs=""
5094 break
5095 fi
6a9cf61e 5096 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5097 appdirs=""
5098 break
5099 fi
5100 fi
5101 done
5102 if test -n "$appdirs" ; then
5103 echo "*** This configuration is not supported by this package." 1>&2
5104 exit 1
5105 fi
5106 fi
5107 # Okay, some application will build, or we don't care to check. Still
5108 # notify of subdirs not getting built.
5109 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5110 echo " ${notsupp}" 1>&2
5111 echo " (Any other directories should still work fine.)" 1>&2
5112fi
5113
5114case "$host" in
5115 *msdosdjgpp*)
5116 enable_gdbtk=no ;;
5117esac
5118
18f6b6ee
PB
5119# To find our prefix, in gcc_cv_tool_prefix.
5120
5121# The user is always right.
5122if test "${PATH_SEPARATOR+set}" != set; then
5123 echo "#! /bin/sh" >conf$$.sh
5124 echo "exit 0" >>conf$$.sh
5125 chmod +x conf$$.sh
5126 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5127 PATH_SEPARATOR=';'
5128 else
5129 PATH_SEPARATOR=:
5130 fi
5131 rm -f conf$$.sh
5132fi
5133
5134
5135
5136if test "x$exec_prefix" = xNONE; then
5137 if test "x$prefix" = xNONE; then
5138 gcc_cv_tool_prefix=$ac_default_prefix
5139 else
5140 gcc_cv_tool_prefix=$prefix
5141 fi
5142else
5143 gcc_cv_tool_prefix=$exec_prefix
5144fi
5145
5146# If there is no compiler in the tree, use the PATH only. In any
5147# case, if there is no compiler in the tree nobody should use
5148# AS_FOR_TARGET and LD_FOR_TARGET.
5149if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5150 gcc_version=`cat $srcdir/gcc/BASE-VER`
5151 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5152 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5153 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5154 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5155 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5156 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5157else
5158 gcc_cv_tool_dirs=
5159fi
5160
5161if test x$build = x$target && test -n "$md_exec_prefix"; then
5162 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5163fi
5164
5165
5166
9e07f89d
NN
5167copy_dirs=
5168
c6b750e1 5169
a19b6204
MM
5170# Check whether --with-build-sysroot or --without-build-sysroot was given.
5171if test "${with_build_sysroot+set}" = set; then
5172 withval="$with_build_sysroot"
5173 if test x"$withval" != x ; then
5174 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5175 fi
5176else
5177 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5178fi;
a19b6204
MM
5179
5180
8a6ee3ab
JM
5181
5182# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5183if test "${with_debug_prefix_map+set}" = set; then
5184 withval="$with_debug_prefix_map"
5185 if test x"$withval" != x; then
5186 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5187 for debug_map in $withval; do
5188 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5189 done
5190 fi
5191else
5192 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5193fi;
5194
5195
7f6ef0c0
PB
5196# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5197# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5198# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5199# We want to ensure that TARGET libraries (which we know are built with
5200# gcc) are built with "-O2 -g", so include those options when setting
5201# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5202if test "x$CFLAGS_FOR_TARGET" = x; then
5203 CFLAGS_FOR_TARGET=$CFLAGS
5204 case " $CFLAGS " in
5205 *" -O2 "*) ;;
5206 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5207 esac
5208 case " $CFLAGS " in
5209 *" -g "* | *" -g3 "*) ;;
5210 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5211 esac
5212fi
5213
5214
5215if test "x$CXXFLAGS_FOR_TARGET" = x; then
5216 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5217 case " $CXXFLAGS " in
5218 *" -O2 "*) ;;
5219 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5220 esac
5221 case " $CXXFLAGS " in
5222 *" -g "* | *" -g3 "*) ;;
5223 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5224 esac
5225fi
5226
5227
9e07f89d
NN
5228# Handle --with-headers=XXX. If the value is not "yes", the contents of
5229# the named directory are copied to $(tooldir)/sys-include.
5230if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5231 if test x${is_cross_compiler} = xno ; then
5232 echo 1>&2 '***' --with-headers is only supported when cross compiling
5233 exit 1
5234 fi
5235 if test x"${with_headers}" != xyes ; then
18f6b6ee 5236 x=${gcc_cv_tool_prefix}
c6b750e1 5237 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5238 fi
5239fi
5240
5241# Handle --with-libs=XXX. If the value is not "yes", the contents of
5242# the name directories are copied to $(tooldir)/lib. Multiple directories
5243# are permitted.
5244if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5245 if test x${is_cross_compiler} = xno ; then
5246 echo 1>&2 '***' --with-libs is only supported when cross compiling
5247 exit 1
5248 fi
5249 if test x"${with_libs}" != xyes ; then
5250 # Copy the libraries in reverse order, so that files in the first named
5251 # library override files in subsequent libraries.
18f6b6ee 5252 x=${gcc_cv_tool_prefix}
9e07f89d 5253 for l in ${with_libs}; do
c6b750e1 5254 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5255 done
5256 fi
5257fi
5258
2429c060
PB
5259# Set with_gnu_as and with_gnu_ld as appropriate.
5260#
5261# This is done by determining whether or not the appropriate directory
5262# is available, and by checking whether or not specific configurations
5263# have requested that this magic not happen.
c6b750e1
DJ
5264#
5265# The command line options always override the explicit settings in
2429c060
PB
5266# configure.in, and the settings in configure.in override this magic.
5267#
c6b750e1 5268# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5269# want to do that, then you should use the --without-gnu-as and
5270# --without-gnu-ld options for the configure script.
5271
5272if test x${use_gnu_as} = x &&
5273 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5274 with_gnu_as=yes
5275 extra_host_args="$extra_host_args --with-gnu-as"
5276fi
5277
5278if test x${use_gnu_ld} = x &&
93f9b408 5279 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
5280 with_gnu_ld=yes
5281 extra_host_args="$extra_host_args --with-gnu-ld"
5282fi
5283
5284# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5285# can detect this case.
5286
5287if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5288 with_newlib=yes
5289 extra_host_args="$extra_host_args --with-newlib"
5290fi
5291
9e07f89d
NN
5292# Handle ${copy_dirs}
5293set fnord ${copy_dirs}
5294shift
5295while test $# != 0 ; do
5296 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5297 :
5298 else
5299 echo Copying $1 to $2
5300
5301 # Use the install script to create the directory and all required
5302 # parent directories.
5303 if test -d $2 ; then
5304 :
5305 else
5306 echo >config.temp
5307 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5308 fi
5309
5310 # Copy the directory, assuming we have tar.
5311 # FIXME: Should we use B in the second tar? Not all systems support it.
5312 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5313
5314 # It is the responsibility of the user to correctly adjust all
5315 # symlinks. If somebody can figure out how to handle them correctly
5316 # here, feel free to add the code.
5317
5318 echo $1 > $2/COPIED
5319 fi
5320 shift; shift
5321done
5322
2429c060
PB
5323# Determine a target-dependent exec_prefix that the installed
5324# gcc will search in. Keep this list sorted by triplet, with
5325# the *-*-osname triplets last.
5326md_exec_prefix=
5327case "${target}" in
5328 alpha*-*-*vms*)
5329 md_exec_prefix=/gnu/lib/gcc-lib
5330 ;;
521ec477 5331 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5332 md_exec_prefix=/dev/env/DJDIR/bin
5333 ;;
521ec477 5334 i[34567]86-*-sco3.2v5*)
2429c060
PB
5335 if test $with_gnu_as = yes; then
5336 md_exec_prefix=/usr/gnu/bin
5337 else
5338 md_exec_prefix=/usr/ccs/bin/elf
5339 fi
5340 ;;
5341
5342 mn10300-*-* | \
5343 powerpc-*-chorusos* | \
5344 powerpc*-*-eabi* | \
5345 powerpc*-*-sysv* | \
5346 powerpc*-*-kaos* | \
5347 s390x-ibm-tpf*)
5348 md_exec_prefix=/usr/ccs/bin
5349 ;;
5350 sparc64-*-elf*)
5351 ;;
5352 v850*-*-*)
5353 md_exec_prefix=/usr/ccs/bin
5354 ;;
8b66833e 5355 xtensa*-*-elf*)
2429c060
PB
5356 ;;
5357
5358 *-*-beos* | \
5359 *-*-elf* | \
5360 *-*-hpux* | \
5361 *-*-netware* | \
5362 *-*-nto-qnx* | \
5363 *-*-rtems* | \
5364 *-*-solaris2* | \
521ec477 5365 *-*-sysv[45]* | \
2429c060
PB
5366 *-*-vxworks* | \
5367 *-wrs-windiss)
5368 md_exec_prefix=/usr/ccs/bin
5369 ;;
5370esac
5371
a0da8069
NN
5372extra_arflags_for_target=
5373extra_nmflags_for_target=
5374extra_ranlibflags_for_target=
5375target_makefile_frag=/dev/null
5376case "${target}" in
4e206d7e
DB
5377 mep*-*-*)
5378 target_makefile_frag="config/mt-mep"
5379 ;;
77d7106f
AM
5380 spu-*-*)
5381 target_makefile_frag="config/mt-spu"
5382 ;;
429acdec
RS
5383 mips*-sde-elf*)
5384 target_makefile_frag="config/mt-sde"
5385 ;;
f3b1e08e
RS
5386 mipsisa*-*-elfoabi*)
5387 target_makefile_frag="config/mt-mips-elfoabi"
5388 ;;
2a3124ca 5389 *-*-netware*)
a0da8069
NN
5390 target_makefile_frag="config/mt-netware"
5391 ;;
3d6dfe0f
NN
5392 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5393 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5394 ;;
5395 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5396 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5397 # commands to handle both 32-bit and 64-bit objects. These flags are
5398 # harmless if we're using GNU nm or ar.
5399 extra_arflags_for_target=" -X32_64"
5400 extra_nmflags_for_target=" -B -X32_64"
5401 ;;
5402 *-*-darwin*)
5403 # ranlib from Darwin requires the -c flag to look at common symbols.
5404 extra_ranlibflags_for_target=" -c"
5405 ;;
5406 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5407 target_makefile_frag="config/mt-wince"
5408 ;;
5409esac
5410
5411alphaieee_frag=/dev/null
5412case $target in
5413 alpha*-*-*)
5414 # This just makes sure to use the -mieee option to build target libs.
5415 # This should probably be set individually by each library.
5416 alphaieee_frag="config/mt-alphaieee"
5417 ;;
5418esac
5419
5420# If --enable-target-optspace always use -Os instead of -O2 to build
5421# the target libraries, similarly if it is not specified, use -Os
5422# on selected platforms.
5423ospace_frag=/dev/null
5424case "${enable_target_optspace}:${target}" in
5425 yes:*)
5426 ospace_frag="config/mt-ospace"
5427 ;;
5428 :d30v-*)
5429 ospace_frag="config/mt-d30v"
5430 ;;
5431 :m32r-* | :d10v-* | :fr30-*)
5432 ospace_frag="config/mt-ospace"
5433 ;;
5434 no:* | :*)
5435 ;;
5436 *)
5437 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5438 ;;
5439esac
5440
a0da8069
NN
5441# Default to using --with-stabs for certain targets.
5442if test x${with_stabs} = x ; then
5443 case "${target}" in
e31d1ea3 5444 mips*-*-irix[56]*)
a0da8069
NN
5445 ;;
5446 mips*-*-* | alpha*-*-osf*)
5447 with_stabs=yes;
5448 extra_host_args="${extra_host_args} --with-stabs"
5449 ;;
5450 esac
5451fi
5452
5453# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5454# them automatically.
5455case "${host}" in
c6b750e1 5456 hppa*64*-*-hpux11*)
a0da8069
NN
5457 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5458 ;;
5459esac
5460
a0da8069
NN
5461# Some systems (e.g., one of the i386-aix systems the gas testers are
5462# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5463tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5464build_tooldir=${tooldir}
5465
a0da8069
NN
5466# Create a .gdbinit file which runs the one in srcdir
5467# and tells GDB to look there for source files.
5468
5469if test -r ${srcdir}/.gdbinit ; then
5470 case ${srcdir} in
5471 .) ;;
5472 *) cat > ./.gdbinit <<EOF
5473# ${NO_EDIT}
5474dir ${srcdir}
5475dir .
5476source ${srcdir}/.gdbinit
5477EOF
5478 ;;
5479 esac
5480fi
5481
a0da8069
NN
5482# Make sure that the compiler is able to generate an executable. If it
5483# can't, we are probably in trouble. We don't care whether we can run the
5484# executable--we might be using a cross compiler--we only care whether it
5485# can be created. At this point the main configure script has set CC.
5486we_are_ok=no
5487echo "int main () { return 0; }" > conftest.c
5488${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5489if test $? = 0 ; then
5490 if test -s conftest || test -s conftest.exe ; then
5491 we_are_ok=yes
5492 fi
c6b750e1 5493fi
a0da8069
NN
5494case $we_are_ok in
5495 no)
5496 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5497 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5498 rm -f conftest*
5499 exit 1
5500 ;;
5501esac
5502rm -f conftest*
5503
5504# The Solaris /usr/ucb/cc compiler does not appear to work.
5505case "${host}" in
5506 sparc-sun-solaris2*)
5507 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5508 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5509 could_use=
5510 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5511 if test -d /opt/cygnus/bin ; then
5512 if test "$could_use" = "" ; then
5513 could_use="/opt/cygnus/bin"
5514 else
5515 could_use="$could_use or /opt/cygnus/bin"
5516 fi
5517 fi
5518 if test "$could_use" = "" ; then
5519 echo "Warning: compilation may fail because you're using"
5520 echo "/usr/ucb/cc. You should change your PATH or CC "
5521 echo "variable and rerun configure."
5522 else
5523 echo "Warning: compilation may fail because you're using"
5524 echo "/usr/ucb/cc, when you should use the C compiler from"
5525 echo "$could_use. You should change your"
5526 echo "PATH or CC variable and rerun configure."
5527 fi
5528 fi
5529 ;;
5530esac
5531
a0da8069
NN
5532case "${host}" in
5533 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5534 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5535 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5536esac
5537
5538# Record target_configdirs and the configure arguments for target and
5539# build configuration in Makefile.
5540target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5541build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5542
a0da8069
NN
5543# Determine whether gdb needs tk/tcl or not.
5544# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5545# and in that case we want gdb to be built without tk. Ugh!
5546# In fact I believe gdb is the *only* package directly dependent on tk,
5547# so we should be able to put the 'maybe's in unconditionally and
5548# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5549# 100% sure that that's safe though.
c180f501 5550
675c6968 5551gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5552case "$enable_gdbtk" in
5553 no)
5554 GDB_TK="" ;;
c180f501
AC
5555 yes)
5556 GDB_TK="${gdb_tk}" ;;
a0da8069 5557 *)
c180f501
AC
5558 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5559 # distro. Eventually someone will fix this and move Insight, nee
5560 # gdbtk to a separate directory.
5561 if test -d ${srcdir}/gdb/gdbtk ; then
5562 GDB_TK="${gdb_tk}"
5563 else
5564 GDB_TK=""
5565 fi
5566 ;;
a0da8069 5567esac
907be67c
DJ
5568CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5569INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5570
6bd3dfaa 5571# Strip out unwanted targets.
dd12c3a8
NN
5572
5573# While at that, we remove Makefiles if we were started for recursive
5574# configuration, so that the top-level Makefile reconfigures them,
5575# like we used to do when configure itself was recursive.
dd12c3a8 5576
6bd3dfaa
PB
5577# Loop over modules. $extrasub must be used with care, limiting as
5578# much as possible the usage of range addresses. That's because autoconf
5579# splits the sed script to overcome limits in the number of commands,
5580# and relying on carefully-timed sed passes may turn out to be very hard
5581# to maintain later. In this particular case, you just have to be careful
5582# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5583
319cab08
PB
5584# Check whether --enable-bootstrap or --disable-bootstrap was given.
5585if test "${enable_bootstrap+set}" = set; then
5586 enableval="$enable_bootstrap"
c6b750e1 5587
319cab08 5588else
9cb3fa6f 5589 enable_bootstrap=default
c6b750e1 5590fi;
319cab08 5591
9cb3fa6f
PB
5592# Issue errors and warnings for invalid/strange bootstrap combinations.
5593case "$configdirs" in
5594 *gcc*) have_compiler=yes ;;
5595 *) have_compiler=no ;;
5596esac
5597
5598case "$have_compiler:$host:$target:$enable_bootstrap" in
5599 *:*:*:no) ;;
5600
0aed8855 5601 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5602 # and we are in a native configuration.
5603 yes:$build:$build:default)
0aed8855 5604 enable_bootstrap=yes ;;
9cb3fa6f
PB
5605
5606 *:*:*:default)
5607 enable_bootstrap=no ;;
5608
5609 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5610 yes:$build:$build:yes)
9cb3fa6f
PB
5611 ;;
5612
5613 # Other configurations, but we have a compiler. Assume the user knows
5614 # what he's doing.
80911fe1 5615 yes:*:*:yes)
c6b750e1
DJ
5616 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5617echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5618 ;;
5619
5620 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5621 no:*:*:yes)
c6b750e1
DJ
5622 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5623echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5624 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5625
5626 # Fail if wrong command line
5627 *)
c6b750e1
DJ
5628 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5629echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5630 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5631 ;;
5632esac
5633
5634# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5635case "$enable_bootstrap" in
5636 yes)
498d4a71 5637 bootstrap_suffix=bootstrap ;;
319cab08 5638 no)
498d4a71 5639 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5640esac
5641
6a9cf61e 5642for module in ${build_configdirs} ; do
498d4a71
CF
5643 if test -z "${no_recursion}" \
5644 && test -f ${build_subdir}/${module}/Makefile; then
5645 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5646 rm -f ${build_subdir}/${module}/Makefile
5647 fi
5648 extrasub="$extrasub
5649/^@if build-$module\$/d
5650/^@endif build-$module\$/d
5651/^@if build-$module-$bootstrap_suffix\$/d
5652/^@endif build-$module-$bootstrap_suffix\$/d"
5653done
5654for module in ${configdirs} ; do
80911fe1 5655 if test -z "${no_recursion}"; then
8cf39b1b 5656 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5657 if test -f ${file}; then
5658 echo 1>&2 "*** removing ${file} to force reconfigure"
5659 rm -f ${file}
5660 fi
5661 done
498d4a71
CF
5662 fi
5663 extrasub="$extrasub
5664/^@if $module\$/d
5665/^@endif $module\$/d
5666/^@if $module-$bootstrap_suffix\$/d
5667/^@endif $module-$bootstrap_suffix\$/d"
5668done
5669for module in ${target_configdirs} ; do
5670 if test -z "${no_recursion}" \
5671 && test -f ${target_subdir}/${module}/Makefile; then
5672 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5673 rm -f ${target_subdir}/${module}/Makefile
5674 fi
5675 extrasub="$extrasub
5676/^@if target-$module\$/d
5677/^@endif target-$module\$/d
5678/^@if target-$module-$bootstrap_suffix\$/d
5679/^@endif target-$module-$bootstrap_suffix\$/d"
5680done
5681
6bd3dfaa
PB
5682extrasub="$extrasub
5683/^@if /,/^@endif /d"
a0da8069
NN
5684
5685# Create the serialization dependencies. This uses a temporary file.
5686
e6bfb94a
AO
5687# Check whether --enable-serial-configure or --disable-serial-configure was given.
5688if test "${enable_serial_configure+set}" = set; then
5689 enableval="$enable_serial_configure"
e6bfb94a 5690
c6b750e1 5691fi;
e6bfb94a 5692
1047cb91
DD
5693case ${enable_serial_configure} in
5694 yes)
5695 enable_serial_build_configure=yes
5696 enable_serial_host_configure=yes
5697 enable_serial_target_configure=yes
5698 ;;
5699esac
5700
a0da8069
NN
5701# These force 'configure's to be done one at a time, to avoid problems
5702# with contention over a shared config.cache.
5703rm -f serdep.tmp
e6bfb94a 5704echo '# serdep.tmp' > serdep.tmp
a0da8069 5705olditem=
1047cb91 5706test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5707for item in ${build_configdirs} ; do
5708 case ${olditem} in
5709 "") ;;
e6bfb94a 5710 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5711 esac
5712 olditem=${item}
5713done
5714olditem=
1047cb91 5715test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5716for item in ${configdirs} ; do
5717 case ${olditem} in
5718 "") ;;
e6bfb94a 5719 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5720 esac
5721 olditem=${item}
5722done
5723olditem=
1047cb91 5724test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5725for item in ${target_configdirs} ; do
5726 case ${olditem} in
5727 "") ;;
e6bfb94a 5728 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5729 esac
5730 olditem=${item}
5731done
5732serialization_dependencies=serdep.tmp
5733
5734
e6bfb94a 5735# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5736# target, nonopt, and variable assignments. These are the ones we
5737# might not want to pass down to subconfigures. Also strip
5738# program-prefix, program-suffix, and program-transform-name, so that
5739# we can pass down a consistent program-transform-name.
5740baseargs=
5741keep_next=no
5742skip_next=no
5743eval "set -- $ac_configure_args"
18f6b6ee
PB
5744for ac_arg
5745do
c6b750e1
DJ
5746 if test X"$skip_next" = X"yes"; then
5747 skip_next=no
5748 continue
5749 fi
5750 if test X"$keep_next" = X"yes"; then
5751 case $ac_arg in
5752 *\'*)
5753 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5754 esac
5755 baseargs="$baseargs '$ac_arg'"
5756 keep_next=no
5757 continue
5758 fi
5759
5760 # Handle separated arguments. Based on the logic generated by
5761 # autoconf 2.59.
5762 case $ac_arg in
5763 *=* | --config-cache | -C | -disable-* | --disable-* \
5764 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5765 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5766 | -with-* | --with-* | -without-* | --without-* | --x)
5767 separate_arg=no
5768 ;;
5769 -*)
5770 separate_arg=yes
5771 ;;
5772 *)
5773 separate_arg=no
5774 ;;
5775 esac
5776
5777 case "$ac_arg" in
5778 --no*)
5779 continue
5780 ;;
5781 --c* | \
5782 --sr* | \
5783 --ho* | \
5784 --bu* | \
5785 --t* | \
5786 --program-* | \
5787 -cache_file* | \
5788 -srcdir* | \
5789 -host* | \
5790 -build* | \
5791 -target* | \
5792 -program-prefix* | \
5793 -program-suffix* | \
5794 -program-transform-name* )
5795 skip_next=$separate_arg
5796 continue
5797 ;;
5798 -*)
5799 # An option. Add it.
5800 case $ac_arg in
5801 *\'*)
5802 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5803 esac
5804 baseargs="$baseargs '$ac_arg'"
5805 keep_next=$separate_arg
5806 ;;
5807 *)
5808 # Either a variable assignment, or a nonopt (triplet). Don't
5809 # pass it down; let the Makefile handle this.
5810 continue
5811 ;;
5812 esac
5813done
5814# Remove the initial space we just introduced and, as these will be
5815# expanded by make, quote '$'.
5816baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5817
f27d4f92
DJ
5818# Add in --program-transform-name, after --program-prefix and
5819# --program-suffix have been applied to it. Autoconf has already
5820# doubled dollar signs and backslashes in program_transform_name; we want
5821# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5822# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5823# Also, because we want to override the logic in subdir configure scripts to
5824# choose program_transform_name, replace any s,x,x, with s,y,y,.
5825sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5826${program_transform_name}
5827EOF_SED
5828gcc_transform_name=`cat conftestsed.out`
5829rm -f conftestsed.out
5830baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5831if test "$silent" = yes; then
5832 baseargs="$baseargs --silent"
5833fi
f27d4f92 5834
a0da8069
NN
5835# For the build-side libraries, we just need to pretend we're native,
5836# and not use the same cache file. Multilibs are neither needed nor
5837# desired.
4b900473 5838build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5839
5840# For host modules, accept cache file option, or specification as blank.
5841case "${cache_file}" in
5842"") # empty
5843 cache_file_option="" ;;
5844/* | [A-Za-z]:[\\/]* ) # absolute path
5845 cache_file_option="--cache-file=${cache_file}" ;;
5846*) # relative path
5847 cache_file_option="--cache-file=../${cache_file}" ;;
5848esac
5849
82252c06
NN
5850# Host dirs don't like to share a cache file either, horribly enough.
5851# This seems to be due to autoconf 2.5x stupidity.
4b900473 5852host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5853
5854target_configargs=${baseargs}
5855
5856# Passing a --with-cross-host argument lets the target libraries know
5857# whether they are being built with a cross-compiler or being built
5858# native. However, it would be better to use other mechanisms to make the
5859# sorts of decisions they want to make on this basis. Please consider
5860# this option to be deprecated. FIXME.
5861if test x${is_cross_compiler} = xyes ; then
c6b750e1 5862 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5863fi
5864
5865# Default to --enable-multilib.
5866if test x${enable_multilib} = x ; then
5867 target_configargs="--enable-multilib ${target_configargs}"
5868fi
5869
5870# Pass --with-newlib if appropriate. Note that target_configdirs has
5871# changed from the earlier setting of with_newlib.
5872if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5873 target_configargs="--with-newlib ${target_configargs}"
5874fi
5875
95036d20
NN
5876# Different target subdirs use different values of certain variables
5877# (notably CXX). Worse, multilibs use *lots* of different values.
5878# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5879# it doesn't automatically accept command-line overrides of them.
5880# This means it's not safe for target subdirs to share a cache file,
5881# which is disgusting, but there you have it. Hopefully this can be
5882# fixed in future. It's still worthwhile to use a cache file for each
5883# directory. I think.
5884
ae380b45
MS
5885# Pass the appropriate --build, --host, --target and --cache-file arguments.
5886# We need to pass --target, as newer autoconf's requires consistency
5887# for target_alias and gcc doesn't manage it consistently.
4b900473 5888target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5889
a0da8069
NN
5890FLAGS_FOR_TARGET=
5891case " $target_configdirs " in
5892 *" newlib "*)
5893 case " $target_configargs " in
5894 *" --with-newlib "*)
5895 case "$target" in
5896 *-cygwin*)
564b43e5 5897 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
a0da8069
NN
5898 esac
5899
5900 # If we're not building GCC, don't discard standard headers.
5901 if test -d ${srcdir}/gcc; then
5902 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5903
5904 if test "${build}" != "${host}"; then
5905 # On Canadian crosses, CC_FOR_TARGET will have already been set
5906 # by `configure', so we won't have an opportunity to add -Bgcc/
5907 # to it. This is right: we don't want to search that directory
5908 # for binaries, but we want the header files in there, so add
5909 # them explicitly.
b00612cc 5910 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5911
5912 # Someone might think of using the pre-installed headers on
5913 # Canadian crosses, in case the installed compiler is not fully
5914 # compatible with the compiler being built. In this case, it
5915 # would be better to flag an error than risking having
5916 # incompatible object files being constructed. We can't
5917 # guarantee that an error will be flagged, but let's hope the
5918 # compiler will do it, when presented with incompatible header
5919 # files.
5920 fi
5921 fi
5922
5923 case "${target}-${is_cross_compiler}" in
ec11bdc6 5924 i[3456789]86-*-linux*-no)
a0da8069
NN
5925 # Here host == target, so we don't need to build gcc,
5926 # so we don't want to discard standard headers.
5927 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5928 ;;
5929 *)
5930 # If we're building newlib, use its generic headers last, but search
5931 # for any libc-related directories first (so make it the last -B
5932 # switch).
5933 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
5934
5935 # If we're building libgloss, find the startup file, simulator library
5936 # and linker script.
5937 case " $target_configdirs " in
5938 *" libgloss "*)
5939 # Look for startup file, simulator library and maybe linker script.
5940 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5941 # Look for libnosys.a in case the target needs it.
5942 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5943 # Most targets have the linker script in the source directory.
5944 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5945 ;;
5946 esac
a0da8069
NN
5947 ;;
5948 esac
5949 ;;
5950 esac
5951 ;;
5952esac
45055374
CV
5953case "$target" in
5954*-mingw*)
5955 # Can't be handled as Cygwin above since Mingw does not use newlib.
5956 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' ;;
5957esac
a0da8069 5958
5fbad20a
DD
5959# Allow the user to override the flags for
5960# our build compiler if desired.
c66487f8
NC
5961if test x"${build}" = x"${host}" ; then
5962 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5963 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
5964 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
5965fi
5fbad20a 5966
a0da8069
NN
5967# On Canadian crosses, we'll be searching the right directories for
5968# the previously-installed cross compiler, so don't bother to add
5969# flags for directories within the install tree of the compiler
5970# being built; programs in there won't even run.
5971if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5972 # Search for pre-installed headers if nothing else fits.
bba45b8b 5973 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
5974fi
5975
5976if test "x${use_gnu_ld}" = x &&
5977 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5978 # Arrange for us to find uninstalled linker scripts.
b00612cc 5979 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5980fi
5981
a481dbb7
DD
5982# Search for other target-specific linker scripts and such.
5983case "${target}" in
4e206d7e
DB
5984 mep*)
5985 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5986 ;;
5987esac
5988
a0da8069 5989# Makefile fragments.
3e707e94
PB
5990for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5991do
5992 eval fragval=\$$frag
5993 if test $fragval != /dev/null; then
5994 eval $frag=${srcdir}/$fragval
5995 fi
5996done
a0da8069
NN
5997
5998
5999
6000
6001
6002# Miscellanea: directories, flags, etc.
6003
6004
6005
6006
6007
6008
6009
6a9cf61e 6010# Build module lists & subconfigure args.
a0da8069
NN
6011
6012
6013
be01d343
PB
6014# Host module lists & subconfigure args.
6015
6016
6017
6018# Target module lists & subconfigure args.
6019
6020
6021
6022# Build tools.
6023
6024
6025
1576798e
PB
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
be01d343
PB
6040# Generate default definitions for YACC, M4, LEX and other programs that run
6041# on the build machine. These are used if the Makefile can't locate these
6042# programs in objdir.
6043MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6044
6045for ac_prog in 'bison -y' byacc yacc
6046do
c6b750e1 6047 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6048set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6049echo "$as_me:$LINENO: checking for $ac_word" >&5
6050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6051if test "${ac_cv_prog_YACC+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6053else
6054 if test -n "$YACC"; then
6055 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6056else
c6b750e1
DJ
6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058for as_dir in $PATH
6059do
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064 ac_cv_prog_YACC="$ac_prog"
6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 break 2
6067 fi
6068done
6069done
6070
be01d343
PB
6071fi
6072fi
c6b750e1 6073YACC=$ac_cv_prog_YACC
be01d343 6074if test -n "$YACC"; then
c6b750e1
DJ
6075 echo "$as_me:$LINENO: result: $YACC" >&5
6076echo "${ECHO_T}$YACC" >&6
be01d343 6077else
c6b750e1
DJ
6078 echo "$as_me:$LINENO: result: no" >&5
6079echo "${ECHO_T}no" >&6
be01d343
PB
6080fi
6081
c6b750e1 6082 test -n "$YACC" && break
be01d343
PB
6083done
6084test -n "$YACC" || YACC="$MISSING bison -y"
6085
6086case " $build_configdirs " in
6087 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6088 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6089esac
6090
6091for ac_prog in bison
6092do
c6b750e1 6093 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6094set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6095echo "$as_me:$LINENO: checking for $ac_word" >&5
6096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6097if test "${ac_cv_prog_BISON+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6099else
6100 if test -n "$BISON"; then
6101 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6102else
c6b750e1
DJ
6103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104for as_dir in $PATH
6105do
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110 ac_cv_prog_BISON="$ac_prog"
6111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6113 fi
6114done
6115done
6116
be01d343
PB
6117fi
6118fi
c6b750e1 6119BISON=$ac_cv_prog_BISON
be01d343 6120if test -n "$BISON"; then
c6b750e1
DJ
6121 echo "$as_me:$LINENO: result: $BISON" >&5
6122echo "${ECHO_T}$BISON" >&6
be01d343 6123else
c6b750e1
DJ
6124 echo "$as_me:$LINENO: result: no" >&5
6125echo "${ECHO_T}no" >&6
be01d343
PB
6126fi
6127
c6b750e1 6128 test -n "$BISON" && break
be01d343
PB
6129done
6130test -n "$BISON" || BISON="$MISSING bison"
6131
6132case " $build_configdirs " in
6133 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6134esac
6135
6136for ac_prog in gm4 gnum4 m4
6137do
c6b750e1 6138 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6139set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6140echo "$as_me:$LINENO: checking for $ac_word" >&5
6141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6142if test "${ac_cv_prog_M4+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6144else
6145 if test -n "$M4"; then
6146 ac_cv_prog_M4="$M4" # Let the user override the test.
6147else
c6b750e1
DJ
6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155 ac_cv_prog_M4="$ac_prog"
6156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6158 fi
6159done
6160done
6161
be01d343
PB
6162fi
6163fi
c6b750e1 6164M4=$ac_cv_prog_M4
be01d343 6165if test -n "$M4"; then
c6b750e1
DJ
6166 echo "$as_me:$LINENO: result: $M4" >&5
6167echo "${ECHO_T}$M4" >&6
be01d343 6168else
c6b750e1
DJ
6169 echo "$as_me:$LINENO: result: no" >&5
6170echo "${ECHO_T}no" >&6
be01d343
PB
6171fi
6172
c6b750e1 6173 test -n "$M4" && break
be01d343
PB
6174done
6175test -n "$M4" || M4="$MISSING m4"
6176
6177case " $build_configdirs " in
6178 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6179esac
6180
6181for ac_prog in flex lex
6182do
c6b750e1 6183 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6184set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6185echo "$as_me:$LINENO: checking for $ac_word" >&5
6186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6187if test "${ac_cv_prog_LEX+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6189else
6190 if test -n "$LEX"; then
6191 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6192else
c6b750e1
DJ
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6200 ac_cv_prog_LEX="$ac_prog"
6201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204done
6205done
6206
be01d343
PB
6207fi
6208fi
c6b750e1 6209LEX=$ac_cv_prog_LEX
be01d343 6210if test -n "$LEX"; then
c6b750e1
DJ
6211 echo "$as_me:$LINENO: result: $LEX" >&5
6212echo "${ECHO_T}$LEX" >&6
be01d343 6213else
c6b750e1
DJ
6214 echo "$as_me:$LINENO: result: no" >&5
6215echo "${ECHO_T}no" >&6
be01d343
PB
6216fi
6217
c6b750e1 6218 test -n "$LEX" && break
be01d343
PB
6219done
6220test -n "$LEX" || LEX="$MISSING flex"
6221
6222case " $build_configdirs " in
6223 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6224 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6225esac
6226
6227for ac_prog in flex
6228do
c6b750e1 6229 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6230set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6231echo "$as_me:$LINENO: checking for $ac_word" >&5
6232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6233if test "${ac_cv_prog_FLEX+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6235else
6236 if test -n "$FLEX"; then
6237 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6238else
c6b750e1
DJ
6239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240for as_dir in $PATH
6241do
6242 IFS=$as_save_IFS
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6246 ac_cv_prog_FLEX="$ac_prog"
6247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 break 2
6249 fi
6250done
6251done
6252
be01d343
PB
6253fi
6254fi
c6b750e1 6255FLEX=$ac_cv_prog_FLEX
be01d343 6256if test -n "$FLEX"; then
c6b750e1
DJ
6257 echo "$as_me:$LINENO: result: $FLEX" >&5
6258echo "${ECHO_T}$FLEX" >&6
be01d343 6259else
c6b750e1
DJ
6260 echo "$as_me:$LINENO: result: no" >&5
6261echo "${ECHO_T}no" >&6
be01d343
PB
6262fi
6263
c6b750e1 6264 test -n "$FLEX" && break
be01d343
PB
6265done
6266test -n "$FLEX" || FLEX="$MISSING flex"
6267
6268case " $build_configdirs " in
6269 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6270esac
6271
6272for ac_prog in makeinfo
6273do
c6b750e1 6274 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6275set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6276echo "$as_me:$LINENO: checking for $ac_word" >&5
6277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6278if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6280else
6281 if test -n "$MAKEINFO"; then
6282 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6283else
c6b750e1
DJ
6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6291 ac_cv_prog_MAKEINFO="$ac_prog"
6292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6294 fi
6295done
6296done
6297
be01d343
PB
6298fi
6299fi
c6b750e1 6300MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6301if test -n "$MAKEINFO"; then
c6b750e1
DJ
6302 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6303echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6304else
c6b750e1
DJ
6305 echo "$as_me:$LINENO: result: no" >&5
6306echo "${ECHO_T}no" >&6
be01d343
PB
6307fi
6308
c6b750e1 6309 test -n "$MAKEINFO" && break
be01d343
PB
6310done
6311test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6312
6313case " $build_configdirs " in
6314 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6315 *)
6316
625a61cd 6317 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6318 # higher, else we use the "missing" dummy.
6319 if ${MAKEINFO} --version \
625a61cd 6320 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6321 :
6322 else
6323 MAKEINFO="$MISSING makeinfo"
6324 fi
6325 ;;
6326
6327esac
a0da8069 6328
be01d343 6329# FIXME: expect and dejagnu may become build tools?
a0da8069 6330
be01d343
PB
6331for ac_prog in expect
6332do
c6b750e1 6333 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6334set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6335echo "$as_me:$LINENO: checking for $ac_word" >&5
6336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6337if test "${ac_cv_prog_EXPECT+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6339else
6340 if test -n "$EXPECT"; then
6341 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6342else
c6b750e1
DJ
6343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350 ac_cv_prog_EXPECT="$ac_prog"
6351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6353 fi
6354done
6355done
6356
be01d343
PB
6357fi
6358fi
c6b750e1 6359EXPECT=$ac_cv_prog_EXPECT
be01d343 6360if test -n "$EXPECT"; then
c6b750e1
DJ
6361 echo "$as_me:$LINENO: result: $EXPECT" >&5
6362echo "${ECHO_T}$EXPECT" >&6
be01d343 6363else
c6b750e1
DJ
6364 echo "$as_me:$LINENO: result: no" >&5
6365echo "${ECHO_T}no" >&6
be01d343 6366fi
a0da8069 6367
c6b750e1 6368 test -n "$EXPECT" && break
be01d343
PB
6369done
6370test -n "$EXPECT" || EXPECT="expect"
a0da8069 6371
be01d343
PB
6372case " $configdirs " in
6373 *" expect "*)
6374 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6375 ;;
6376esac
a0da8069 6377
be01d343
PB
6378for ac_prog in runtest
6379do
c6b750e1 6380 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6381set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6382echo "$as_me:$LINENO: checking for $ac_word" >&5
6383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6384if test "${ac_cv_prog_RUNTEST+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6386else
6387 if test -n "$RUNTEST"; then
6388 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6389else
c6b750e1
DJ
6390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391for as_dir in $PATH
6392do
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6397 ac_cv_prog_RUNTEST="$ac_prog"
6398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 break 2
6400 fi
6401done
6402done
6403
be01d343
PB
6404fi
6405fi
c6b750e1 6406RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6407if test -n "$RUNTEST"; then
c6b750e1
DJ
6408 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6409echo "${ECHO_T}$RUNTEST" >&6
be01d343 6410else
c6b750e1
DJ
6411 echo "$as_me:$LINENO: result: no" >&5
6412echo "${ECHO_T}no" >&6
be01d343 6413fi
a0da8069 6414
c6b750e1 6415 test -n "$RUNTEST" && break
be01d343
PB
6416done
6417test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6418
be01d343
PB
6419case " $configdirs " in
6420 *" dejagnu "*)
6b89cc21 6421 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6422 ;;
6423esac
a0da8069
NN
6424
6425
a0da8069 6426# Host tools.
859789af
AC
6427ncn_tool_prefix=
6428test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6429ncn_target_tool_prefix=
6430test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6431
9a819804
AO
6432
6433
6434if test -n "$AR"; then
6435 ac_cv_prog_AR=$AR
6436elif test -n "$ac_cv_prog_AR"; then
6437 AR=$ac_cv_prog_AR
6438fi
6439
6440if test -n "$ac_cv_prog_AR"; then
6441 for ncn_progname in ar; do
6442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6443set dummy ${ncn_progname}; ac_word=$2
6444echo "$as_me:$LINENO: checking for $ac_word" >&5
6445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6446if test "${ac_cv_prog_AR+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448else
6449 if test -n "$AR"; then
6450 ac_cv_prog_AR="$AR" # Let the user override the test.
6451else
6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459 ac_cv_prog_AR="${ncn_progname}"
6460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6462 fi
6463done
6464done
6465
6466fi
6467fi
6468AR=$ac_cv_prog_AR
6469if test -n "$AR"; then
6470 echo "$as_me:$LINENO: result: $AR" >&5
6471echo "${ECHO_T}$AR" >&6
6472else
6473 echo "$as_me:$LINENO: result: no" >&5
6474echo "${ECHO_T}no" >&6
6475fi
6476
6477 done
6478fi
6479
6480for ncn_progname in ar; do
05cbd757
PB
6481 if test -n "$ncn_tool_prefix"; then
6482 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6483set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6484echo "$as_me:$LINENO: checking for $ac_word" >&5
6485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6486if test "${ac_cv_prog_AR+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6488else
6489 if test -n "$AR"; then
6490 ac_cv_prog_AR="$AR" # Let the user override the test.
6491else
c6b750e1
DJ
6492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493for as_dir in $PATH
6494do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6502 fi
6503done
6504done
6505
859789af
AC
6506fi
6507fi
c6b750e1 6508AR=$ac_cv_prog_AR
859789af 6509if test -n "$AR"; then
c6b750e1
DJ
6510 echo "$as_me:$LINENO: result: $AR" >&5
6511echo "${ECHO_T}$AR" >&6
859789af 6512else
c6b750e1
DJ
6513 echo "$as_me:$LINENO: result: no" >&5
6514echo "${ECHO_T}no" >&6
859789af
AC
6515fi
6516
05cbd757
PB
6517 fi
6518 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6520set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6521echo "$as_me:$LINENO: checking for $ac_word" >&5
6522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6523if test "${ac_cv_prog_AR+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6525else
05cbd757
PB
6526 if test -n "$AR"; then
6527 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6528else
c6b750e1
DJ
6529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530for as_dir in $PATH
6531do
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6536 ac_cv_prog_AR="${ncn_progname}"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 break 2
6539 fi
6540done
6541done
6542
859789af
AC
6543fi
6544fi
c6b750e1 6545AR=$ac_cv_prog_AR
05cbd757 6546if test -n "$AR"; then
c6b750e1
DJ
6547 echo "$as_me:$LINENO: result: $AR" >&5
6548echo "${ECHO_T}$AR" >&6
859789af 6549else
c6b750e1
DJ
6550 echo "$as_me:$LINENO: result: no" >&5
6551echo "${ECHO_T}no" >&6
859789af 6552fi
c6b750e1 6553
05cbd757
PB
6554 fi
6555 test -n "$ac_cv_prog_AR" && break
6556done
6557
6558if test -z "$ac_cv_prog_AR" ; then
6559 set dummy ar
6560 if test $build = $host ; then
6561 AR="$2"
859789af 6562 else
05cbd757 6563 AR="${ncn_tool_prefix}$2"
859789af 6564 fi
859789af
AC
6565fi
6566
9a819804
AO
6567
6568
6569if test -n "$AS"; then
6570 ac_cv_prog_AS=$AS
6571elif test -n "$ac_cv_prog_AS"; then
6572 AS=$ac_cv_prog_AS
6573fi
6574
6575if test -n "$ac_cv_prog_AS"; then
6576 for ncn_progname in as; do
6577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6578set dummy ${ncn_progname}; ac_word=$2
6579echo "$as_me:$LINENO: checking for $ac_word" >&5
6580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6581if test "${ac_cv_prog_AS+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6583else
6584 if test -n "$AS"; then
6585 ac_cv_prog_AS="$AS" # Let the user override the test.
6586else
6587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588for as_dir in $PATH
6589do
6590 IFS=$as_save_IFS
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6594 ac_cv_prog_AS="${ncn_progname}"
6595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 break 2
6597 fi
6598done
6599done
6600
6601fi
6602fi
6603AS=$ac_cv_prog_AS
6604if test -n "$AS"; then
6605 echo "$as_me:$LINENO: result: $AS" >&5
6606echo "${ECHO_T}$AS" >&6
6607else
6608 echo "$as_me:$LINENO: result: no" >&5
6609echo "${ECHO_T}no" >&6
6610fi
6611
6612 done
6613fi
6614
6615for ncn_progname in as; do
05cbd757
PB
6616 if test -n "$ncn_tool_prefix"; then
6617 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6618set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6619echo "$as_me:$LINENO: checking for $ac_word" >&5
6620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6621if test "${ac_cv_prog_AS+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6623else
6624 if test -n "$AS"; then
6625 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6626else
6627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628for as_dir in $PATH
6629do
6630 IFS=$as_save_IFS
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6634 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 break 2
6637 fi
6638done
6639done
6640
859789af
AC
6641fi
6642fi
c6b750e1 6643AS=$ac_cv_prog_AS
859789af 6644if test -n "$AS"; then
c6b750e1
DJ
6645 echo "$as_me:$LINENO: result: $AS" >&5
6646echo "${ECHO_T}$AS" >&6
859789af 6647else
c6b750e1
DJ
6648 echo "$as_me:$LINENO: result: no" >&5
6649echo "${ECHO_T}no" >&6
859789af
AC
6650fi
6651
05cbd757
PB
6652 fi
6653 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6655set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6656echo "$as_me:$LINENO: checking for $ac_word" >&5
6657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6658if test "${ac_cv_prog_AS+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6660else
05cbd757
PB
6661 if test -n "$AS"; then
6662 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6663else
c6b750e1
DJ
6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665for as_dir in $PATH
6666do
6667 IFS=$as_save_IFS
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671 ac_cv_prog_AS="${ncn_progname}"
6672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 break 2
6674 fi
6675done
6676done
6677
859789af
AC
6678fi
6679fi
c6b750e1 6680AS=$ac_cv_prog_AS
05cbd757 6681if test -n "$AS"; then
c6b750e1
DJ
6682 echo "$as_me:$LINENO: result: $AS" >&5
6683echo "${ECHO_T}$AS" >&6
859789af 6684else
c6b750e1
DJ
6685 echo "$as_me:$LINENO: result: no" >&5
6686echo "${ECHO_T}no" >&6
859789af 6687fi
c6b750e1 6688
05cbd757
PB
6689 fi
6690 test -n "$ac_cv_prog_AS" && break
6691done
6692
6693if test -z "$ac_cv_prog_AS" ; then
6694 set dummy as
6695 if test $build = $host ; then
6696 AS="$2"
859789af 6697 else
05cbd757 6698 AS="${ncn_tool_prefix}$2"
859789af 6699 fi
859789af
AC
6700fi
6701
9a819804
AO
6702
6703
6704if test -n "$DLLTOOL"; then
6705 ac_cv_prog_DLLTOOL=$DLLTOOL
6706elif test -n "$ac_cv_prog_DLLTOOL"; then
6707 DLLTOOL=$ac_cv_prog_DLLTOOL
6708fi
6709
6710if test -n "$ac_cv_prog_DLLTOOL"; then
6711 for ncn_progname in dlltool; do
6712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6713set dummy ${ncn_progname}; ac_word=$2
6714echo "$as_me:$LINENO: checking for $ac_word" >&5
6715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6716if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718else
6719 if test -n "$DLLTOOL"; then
6720 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6721else
6722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723for as_dir in $PATH
6724do
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_DLLTOOL="${ncn_progname}"
6730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 break 2
6732 fi
6733done
6734done
6735
6736fi
6737fi
6738DLLTOOL=$ac_cv_prog_DLLTOOL
6739if test -n "$DLLTOOL"; then
6740 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6741echo "${ECHO_T}$DLLTOOL" >&6
6742else
6743 echo "$as_me:$LINENO: result: no" >&5
6744echo "${ECHO_T}no" >&6
6745fi
6746
6747 done
6748fi
6749
6750for ncn_progname in dlltool; do
05cbd757
PB
6751 if test -n "$ncn_tool_prefix"; then
6752 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6753set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6754echo "$as_me:$LINENO: checking for $ac_word" >&5
6755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6756if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6758else
6759 if test -n "$DLLTOOL"; then
6760 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6761else
c6b750e1
DJ
6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763for as_dir in $PATH
6764do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773done
6774done
6775
859789af
AC
6776fi
6777fi
c6b750e1 6778DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6779if test -n "$DLLTOOL"; then
c6b750e1
DJ
6780 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6781echo "${ECHO_T}$DLLTOOL" >&6
859789af 6782else
c6b750e1
DJ
6783 echo "$as_me:$LINENO: result: no" >&5
6784echo "${ECHO_T}no" >&6
859789af
AC
6785fi
6786
05cbd757
PB
6787 fi
6788 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6790set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6791echo "$as_me:$LINENO: checking for $ac_word" >&5
6792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6793if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6795else
05cbd757
PB
6796 if test -n "$DLLTOOL"; then
6797 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6798else
c6b750e1
DJ
6799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800for as_dir in $PATH
6801do
6802 IFS=$as_save_IFS
6803 test -z "$as_dir" && as_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6806 ac_cv_prog_DLLTOOL="${ncn_progname}"
6807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 break 2
6809 fi
6810done
6811done
6812
859789af
AC
6813fi
6814fi
c6b750e1 6815DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6816if test -n "$DLLTOOL"; then
c6b750e1
DJ
6817 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6818echo "${ECHO_T}$DLLTOOL" >&6
859789af 6819else
c6b750e1
DJ
6820 echo "$as_me:$LINENO: result: no" >&5
6821echo "${ECHO_T}no" >&6
859789af 6822fi
c6b750e1 6823
05cbd757
PB
6824 fi
6825 test -n "$ac_cv_prog_DLLTOOL" && break
6826done
6827
6828if test -z "$ac_cv_prog_DLLTOOL" ; then
6829 set dummy dlltool
6830 if test $build = $host ; then
6831 DLLTOOL="$2"
859789af 6832 else
05cbd757 6833 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6834 fi
859789af
AC
6835fi
6836
9a819804
AO
6837
6838
6839if test -n "$LD"; then
6840 ac_cv_prog_LD=$LD
6841elif test -n "$ac_cv_prog_LD"; then
6842 LD=$ac_cv_prog_LD
6843fi
6844
6845if test -n "$ac_cv_prog_LD"; then
6846 for ncn_progname in ld; do
6847 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6848set dummy ${ncn_progname}; ac_word=$2
6849echo "$as_me:$LINENO: checking for $ac_word" >&5
6850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6851if test "${ac_cv_prog_LD+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853else
6854 if test -n "$LD"; then
6855 ac_cv_prog_LD="$LD" # Let the user override the test.
6856else
6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6864 ac_cv_prog_LD="${ncn_progname}"
6865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868done
6869done
6870
6871fi
6872fi
6873LD=$ac_cv_prog_LD
6874if test -n "$LD"; then
6875 echo "$as_me:$LINENO: result: $LD" >&5
6876echo "${ECHO_T}$LD" >&6
6877else
6878 echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6
6880fi
6881
6882 done
6883fi
6884
6885for ncn_progname in ld; do
05cbd757
PB
6886 if test -n "$ncn_tool_prefix"; then
6887 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6888set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6889echo "$as_me:$LINENO: checking for $ac_word" >&5
6890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6891if test "${ac_cv_prog_LD+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6893else
6894 if test -n "$LD"; then
6895 ac_cv_prog_LD="$LD" # Let the user override the test.
6896else
c6b750e1
DJ
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6904 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908done
6909done
6910
859789af
AC
6911fi
6912fi
c6b750e1 6913LD=$ac_cv_prog_LD
859789af 6914if test -n "$LD"; then
c6b750e1
DJ
6915 echo "$as_me:$LINENO: result: $LD" >&5
6916echo "${ECHO_T}$LD" >&6
859789af 6917else
c6b750e1
DJ
6918 echo "$as_me:$LINENO: result: no" >&5
6919echo "${ECHO_T}no" >&6
859789af
AC
6920fi
6921
05cbd757
PB
6922 fi
6923 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6924 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6925set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6926echo "$as_me:$LINENO: checking for $ac_word" >&5
6927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6928if test "${ac_cv_prog_LD+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6930else
05cbd757
PB
6931 if test -n "$LD"; then
6932 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6933else
c6b750e1
DJ
6934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935for as_dir in $PATH
6936do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6941 ac_cv_prog_LD="${ncn_progname}"
6942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945done
6946done
6947
859789af
AC
6948fi
6949fi
c6b750e1 6950LD=$ac_cv_prog_LD
05cbd757 6951if test -n "$LD"; then
c6b750e1
DJ
6952 echo "$as_me:$LINENO: result: $LD" >&5
6953echo "${ECHO_T}$LD" >&6
859789af 6954else
c6b750e1
DJ
6955 echo "$as_me:$LINENO: result: no" >&5
6956echo "${ECHO_T}no" >&6
859789af 6957fi
c6b750e1 6958
05cbd757
PB
6959 fi
6960 test -n "$ac_cv_prog_LD" && break
6961done
6962
6963if test -z "$ac_cv_prog_LD" ; then
6964 set dummy ld
6965 if test $build = $host ; then
6966 LD="$2"
859789af 6967 else
05cbd757 6968 LD="${ncn_tool_prefix}$2"
859789af 6969 fi
859789af
AC
6970fi
6971
9a819804
AO
6972
6973
6974if test -n "$LIPO"; then
6975 ac_cv_prog_LIPO=$LIPO
6976elif test -n "$ac_cv_prog_LIPO"; then
6977 LIPO=$ac_cv_prog_LIPO
6978fi
6979
6980if test -n "$ac_cv_prog_LIPO"; then
6981 for ncn_progname in lipo; do
6982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6983set dummy ${ncn_progname}; ac_word=$2
6984echo "$as_me:$LINENO: checking for $ac_word" >&5
6985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6986if test "${ac_cv_prog_LIPO+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989 if test -n "$LIPO"; then
6990 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6991else
6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_LIPO="${ncn_progname}"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003done
7004done
7005
7006fi
7007fi
7008LIPO=$ac_cv_prog_LIPO
7009if test -n "$LIPO"; then
7010 echo "$as_me:$LINENO: result: $LIPO" >&5
7011echo "${ECHO_T}$LIPO" >&6
7012else
7013 echo "$as_me:$LINENO: result: no" >&5
7014echo "${ECHO_T}no" >&6
7015fi
7016
7017 done
7018fi
7019
7020for ncn_progname in lipo; do
be01d343
PB
7021 if test -n "$ncn_tool_prefix"; then
7022 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7023set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7024echo "$as_me:$LINENO: checking for $ac_word" >&5
7025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7026if test "${ac_cv_prog_LIPO+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7028else
7029 if test -n "$LIPO"; then
7030 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7031else
c6b750e1
DJ
7032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7042 fi
7043done
7044done
7045
be01d343
PB
7046fi
7047fi
c6b750e1 7048LIPO=$ac_cv_prog_LIPO
be01d343 7049if test -n "$LIPO"; then
c6b750e1
DJ
7050 echo "$as_me:$LINENO: result: $LIPO" >&5
7051echo "${ECHO_T}$LIPO" >&6
be01d343 7052else
c6b750e1
DJ
7053 echo "$as_me:$LINENO: result: no" >&5
7054echo "${ECHO_T}no" >&6
be01d343
PB
7055fi
7056
7057 fi
7058 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7060set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7061echo "$as_me:$LINENO: checking for $ac_word" >&5
7062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7063if test "${ac_cv_prog_LIPO+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7065else
7066 if test -n "$LIPO"; then
7067 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7068else
c6b750e1
DJ
7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_LIPO="${ncn_progname}"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080done
7081done
7082
be01d343
PB
7083fi
7084fi
c6b750e1 7085LIPO=$ac_cv_prog_LIPO
be01d343 7086if test -n "$LIPO"; then
c6b750e1
DJ
7087 echo "$as_me:$LINENO: result: $LIPO" >&5
7088echo "${ECHO_T}$LIPO" >&6
be01d343 7089else
c6b750e1
DJ
7090 echo "$as_me:$LINENO: result: no" >&5
7091echo "${ECHO_T}no" >&6
be01d343 7092fi
c6b750e1 7093
be01d343
PB
7094 fi
7095 test -n "$ac_cv_prog_LIPO" && break
7096done
7097
7098if test -z "$ac_cv_prog_LIPO" ; then
7099 set dummy lipo
7100 if test $build = $host ; then
7101 LIPO="$2"
7102 else
7103 LIPO="${ncn_tool_prefix}$2"
7104 fi
7105fi
7106
9a819804
AO
7107
7108
7109if test -n "$NM"; then
7110 ac_cv_prog_NM=$NM
7111elif test -n "$ac_cv_prog_NM"; then
7112 NM=$ac_cv_prog_NM
7113fi
7114
7115if test -n "$ac_cv_prog_NM"; then
7116 for ncn_progname in nm; do
7117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7118set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7119echo "$as_me:$LINENO: checking for $ac_word" >&5
7120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7121if test "${ac_cv_prog_NM+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7123else
7124 if test -n "$NM"; then
7125 ac_cv_prog_NM="$NM" # Let the user override the test.
7126else
c6b750e1
DJ
7127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128for as_dir in $PATH
7129do
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7134 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7137 fi
7138done
7139done
7140
859789af
AC
7141fi
7142fi
c6b750e1 7143NM=$ac_cv_prog_NM
859789af 7144if test -n "$NM"; then
c6b750e1
DJ
7145 echo "$as_me:$LINENO: result: $NM" >&5
7146echo "${ECHO_T}$NM" >&6
859789af 7147else
c6b750e1
DJ
7148 echo "$as_me:$LINENO: result: no" >&5
7149echo "${ECHO_T}no" >&6
859789af
AC
7150fi
7151
9a819804
AO
7152 done
7153fi
7154
7155for ncn_progname in nm; do
7156 if test -n "$ncn_tool_prefix"; then
7157 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7158set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7159echo "$as_me:$LINENO: checking for $ac_word" >&5
7160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7161if test "${ac_cv_prog_NM+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7163else
05cbd757
PB
7164 if test -n "$NM"; then
7165 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7166else
c6b750e1
DJ
7167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168for as_dir in $PATH
7169do
7170 IFS=$as_save_IFS
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7174 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 break 2
7177 fi
7178done
7179done
7180
859789af
AC
7181fi
7182fi
c6b750e1 7183NM=$ac_cv_prog_NM
05cbd757 7184if test -n "$NM"; then
c6b750e1
DJ
7185 echo "$as_me:$LINENO: result: $NM" >&5
7186echo "${ECHO_T}$NM" >&6
859789af 7187else
c6b750e1
DJ
7188 echo "$as_me:$LINENO: result: no" >&5
7189echo "${ECHO_T}no" >&6
859789af 7190fi
c6b750e1 7191
05cbd757 7192 fi
9a819804
AO
7193 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7195set dummy ${ncn_progname}; ac_word=$2
7196echo "$as_me:$LINENO: checking for $ac_word" >&5
7197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7198if test "${ac_cv_prog_NM+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200else
7201 if test -n "$NM"; then
7202 ac_cv_prog_NM="$NM" # Let the user override the test.
7203else
7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211 ac_cv_prog_NM="${ncn_progname}"
7212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7214 fi
7215done
7216done
7217
7218fi
7219fi
7220NM=$ac_cv_prog_NM
7221if test -n "$NM"; then
7222 echo "$as_me:$LINENO: result: $NM" >&5
7223echo "${ECHO_T}$NM" >&6
7224else
7225 echo "$as_me:$LINENO: result: no" >&5
7226echo "${ECHO_T}no" >&6
7227fi
7228
7229 fi
7230 test -n "$ac_cv_prog_NM" && break
7231done
7232
7233if test -z "$ac_cv_prog_NM" ; then
7234 set dummy nm
7235 if test $build = $host ; then
7236 NM="$2"
7237 else
7238 NM="${ncn_tool_prefix}$2"
7239 fi
7240fi
7241
7242
7243
7244if test -n "$RANLIB"; then
7245 ac_cv_prog_RANLIB=$RANLIB
7246elif test -n "$ac_cv_prog_RANLIB"; then
7247 RANLIB=$ac_cv_prog_RANLIB
7248fi
7249
7250if test -n "$ac_cv_prog_RANLIB"; then
7251 for ncn_progname in ranlib; do
7252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7253set dummy ${ncn_progname}; ac_word=$2
7254echo "$as_me:$LINENO: checking for $ac_word" >&5
7255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7256if test "${ac_cv_prog_RANLIB+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258else
7259 if test -n "$RANLIB"; then
7260 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7261else
7262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_RANLIB="${ncn_progname}"
7270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7272 fi
7273done
7274done
7275
7276fi
7277fi
7278RANLIB=$ac_cv_prog_RANLIB
7279if test -n "$RANLIB"; then
7280 echo "$as_me:$LINENO: result: $RANLIB" >&5
7281echo "${ECHO_T}$RANLIB" >&6
7282else
7283 echo "$as_me:$LINENO: result: no" >&5
7284echo "${ECHO_T}no" >&6
7285fi
7286
7287 done
7288fi
859789af 7289
9a819804 7290for ncn_progname in ranlib; do
05cbd757
PB
7291 if test -n "$ncn_tool_prefix"; then
7292 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7293set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7294echo "$as_me:$LINENO: checking for $ac_word" >&5
7295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7296if test "${ac_cv_prog_RANLIB+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7298else
7299 if test -n "$RANLIB"; then
7300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7301else
c6b750e1
DJ
7302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303for as_dir in $PATH
7304do
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 break 2
7312 fi
7313done
7314done
7315
859789af
AC
7316fi
7317fi
c6b750e1 7318RANLIB=$ac_cv_prog_RANLIB
859789af 7319if test -n "$RANLIB"; then
c6b750e1
DJ
7320 echo "$as_me:$LINENO: result: $RANLIB" >&5
7321echo "${ECHO_T}$RANLIB" >&6
859789af 7322else
c6b750e1
DJ
7323 echo "$as_me:$LINENO: result: no" >&5
7324echo "${ECHO_T}no" >&6
859789af
AC
7325fi
7326
05cbd757
PB
7327 fi
7328 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7330set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7331echo "$as_me:$LINENO: checking for $ac_word" >&5
7332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7333if test "${ac_cv_prog_RANLIB+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7335else
05cbd757
PB
7336 if test -n "$RANLIB"; then
7337 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7338else
c6b750e1
DJ
7339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340for as_dir in $PATH
7341do
7342 IFS=$as_save_IFS
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346 ac_cv_prog_RANLIB="${ncn_progname}"
7347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 break 2
7349 fi
7350done
7351done
7352
859789af
AC
7353fi
7354fi
c6b750e1 7355RANLIB=$ac_cv_prog_RANLIB
05cbd757 7356if test -n "$RANLIB"; then
c6b750e1
DJ
7357 echo "$as_me:$LINENO: result: $RANLIB" >&5
7358echo "${ECHO_T}$RANLIB" >&6
859789af 7359else
c6b750e1
DJ
7360 echo "$as_me:$LINENO: result: no" >&5
7361echo "${ECHO_T}no" >&6
859789af 7362fi
c6b750e1 7363
859789af 7364 fi
05cbd757
PB
7365 test -n "$ac_cv_prog_RANLIB" && break
7366done
7367
7368if test -z "$ac_cv_prog_RANLIB" ; then
7369 RANLIB=":"
859789af
AC
7370fi
7371
9a819804
AO
7372
7373
7374if test -n "$STRIP"; then
7375 ac_cv_prog_STRIP=$STRIP
7376elif test -n "$ac_cv_prog_STRIP"; then
7377 STRIP=$ac_cv_prog_STRIP
7378fi
7379
7380if test -n "$ac_cv_prog_STRIP"; then
7381 for ncn_progname in strip; do
7382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7383set dummy ${ncn_progname}; ac_word=$2
7384echo "$as_me:$LINENO: checking for $ac_word" >&5
7385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7386if test "${ac_cv_prog_STRIP+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7388else
7389 if test -n "$STRIP"; then
7390 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7391else
7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395 IFS=$as_save_IFS
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_STRIP="${ncn_progname}"
7400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 break 2
7402 fi
7403done
7404done
7405
7406fi
7407fi
7408STRIP=$ac_cv_prog_STRIP
7409if test -n "$STRIP"; then
7410 echo "$as_me:$LINENO: result: $STRIP" >&5
7411echo "${ECHO_T}$STRIP" >&6
7412else
7413 echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6
7415fi
7416
7417 done
7418fi
7419
7420for ncn_progname in strip; do
be01d343
PB
7421 if test -n "$ncn_tool_prefix"; then
7422 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7423set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7424echo "$as_me:$LINENO: checking for $ac_word" >&5
7425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7426if test "${ac_cv_prog_STRIP+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7428else
7429 if test -n "$STRIP"; then
7430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7431else
c6b750e1
DJ
7432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433for as_dir in $PATH
7434do
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 break 2
7442 fi
7443done
7444done
7445
be01d343
PB
7446fi
7447fi
c6b750e1 7448STRIP=$ac_cv_prog_STRIP
be01d343 7449if test -n "$STRIP"; then
c6b750e1
DJ
7450 echo "$as_me:$LINENO: result: $STRIP" >&5
7451echo "${ECHO_T}$STRIP" >&6
be01d343 7452else
c6b750e1
DJ
7453 echo "$as_me:$LINENO: result: no" >&5
7454echo "${ECHO_T}no" >&6
be01d343
PB
7455fi
7456
7457 fi
7458 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7460set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7461echo "$as_me:$LINENO: checking for $ac_word" >&5
7462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7463if test "${ac_cv_prog_STRIP+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7465else
7466 if test -n "$STRIP"; then
7467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7468else
c6b750e1
DJ
7469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_STRIP="${ncn_progname}"
7477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480done
7481done
7482
be01d343
PB
7483fi
7484fi
c6b750e1 7485STRIP=$ac_cv_prog_STRIP
be01d343 7486if test -n "$STRIP"; then
c6b750e1
DJ
7487 echo "$as_me:$LINENO: result: $STRIP" >&5
7488echo "${ECHO_T}$STRIP" >&6
be01d343 7489else
c6b750e1
DJ
7490 echo "$as_me:$LINENO: result: no" >&5
7491echo "${ECHO_T}no" >&6
be01d343 7492fi
c6b750e1 7493
be01d343
PB
7494 fi
7495 test -n "$ac_cv_prog_STRIP" && break
7496done
7497
7498if test -z "$ac_cv_prog_STRIP" ; then
7499 STRIP=":"
7500fi
7501
9a819804
AO
7502
7503
7504if test -n "$WINDRES"; then
7505 ac_cv_prog_WINDRES=$WINDRES
7506elif test -n "$ac_cv_prog_WINDRES"; then
7507 WINDRES=$ac_cv_prog_WINDRES
7508fi
7509
7510if test -n "$ac_cv_prog_WINDRES"; then
7511 for ncn_progname in windres; do
7512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7513set dummy ${ncn_progname}; ac_word=$2
7514echo "$as_me:$LINENO: checking for $ac_word" >&5
7515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7516if test "${ac_cv_prog_WINDRES+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518else
7519 if test -n "$WINDRES"; then
7520 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7521else
7522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_WINDRES="${ncn_progname}"
7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533done
7534done
7535
7536fi
7537fi
7538WINDRES=$ac_cv_prog_WINDRES
7539if test -n "$WINDRES"; then
7540 echo "$as_me:$LINENO: result: $WINDRES" >&5
7541echo "${ECHO_T}$WINDRES" >&6
7542else
7543 echo "$as_me:$LINENO: result: no" >&5
7544echo "${ECHO_T}no" >&6
7545fi
7546
7547 done
7548fi
7549
7550for ncn_progname in windres; do
05cbd757
PB
7551 if test -n "$ncn_tool_prefix"; then
7552 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7553set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7554echo "$as_me:$LINENO: checking for $ac_word" >&5
7555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7556if test "${ac_cv_prog_WINDRES+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7558else
7559 if test -n "$WINDRES"; then
7560 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7561else
c6b750e1
DJ
7562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563for as_dir in $PATH
7564do
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 break 2
7572 fi
7573done
7574done
7575
859789af
AC
7576fi
7577fi
c6b750e1 7578WINDRES=$ac_cv_prog_WINDRES
859789af 7579if test -n "$WINDRES"; then
c6b750e1
DJ
7580 echo "$as_me:$LINENO: result: $WINDRES" >&5
7581echo "${ECHO_T}$WINDRES" >&6
859789af 7582else
c6b750e1
DJ
7583 echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6
859789af
AC
7585fi
7586
05cbd757
PB
7587 fi
7588 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7590set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7591echo "$as_me:$LINENO: checking for $ac_word" >&5
7592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7593if test "${ac_cv_prog_WINDRES+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7595else
05cbd757
PB
7596 if test -n "$WINDRES"; then
7597 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7598else
c6b750e1
DJ
7599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600for as_dir in $PATH
7601do
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606 ac_cv_prog_WINDRES="${ncn_progname}"
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7609 fi
7610done
7611done
7612
859789af
AC
7613fi
7614fi
c6b750e1 7615WINDRES=$ac_cv_prog_WINDRES
05cbd757 7616if test -n "$WINDRES"; then
c6b750e1
DJ
7617 echo "$as_me:$LINENO: result: $WINDRES" >&5
7618echo "${ECHO_T}$WINDRES" >&6
859789af 7619else
c6b750e1
DJ
7620 echo "$as_me:$LINENO: result: no" >&5
7621echo "${ECHO_T}no" >&6
859789af 7622fi
c6b750e1 7623
05cbd757
PB
7624 fi
7625 test -n "$ac_cv_prog_WINDRES" && break
7626done
7627
7628if test -z "$ac_cv_prog_WINDRES" ; then
7629 set dummy windres
7630 if test $build = $host ; then
7631 WINDRES="$2"
859789af 7632 else
05cbd757 7633 WINDRES="${ncn_tool_prefix}$2"
859789af 7634 fi
859789af
AC
7635fi
7636
9a819804
AO
7637
7638
0c24b341
NC
7639if test -n "$WINDMC"; then
7640 ac_cv_prog_WINDMC=$WINDMC
7641elif test -n "$ac_cv_prog_WINDMC"; then
7642 WINDMC=$ac_cv_prog_WINDMC
7643fi
7644
7645if test -n "$ac_cv_prog_WINDMC"; then
7646 for ncn_progname in windmc; do
7647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7648set dummy ${ncn_progname}; ac_word=$2
7649echo "$as_me:$LINENO: checking for $ac_word" >&5
7650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7651if test "${ac_cv_prog_WINDMC+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654 if test -n "$WINDMC"; then
7655 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7656else
7657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658for as_dir in $PATH
7659do
7660 IFS=$as_save_IFS
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7664 ac_cv_prog_WINDMC="${ncn_progname}"
7665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 break 2
7667 fi
7668done
7669done
7670
7671fi
7672fi
7673WINDMC=$ac_cv_prog_WINDMC
7674if test -n "$WINDMC"; then
7675 echo "$as_me:$LINENO: result: $WINDMC" >&5
7676echo "${ECHO_T}$WINDMC" >&6
7677else
7678 echo "$as_me:$LINENO: result: no" >&5
7679echo "${ECHO_T}no" >&6
7680fi
7681
7682 done
7683fi
7684
7685for ncn_progname in windmc; do
7686 if test -n "$ncn_tool_prefix"; then
7687 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7688set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7689echo "$as_me:$LINENO: checking for $ac_word" >&5
7690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7691if test "${ac_cv_prog_WINDMC+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7693else
7694 if test -n "$WINDMC"; then
7695 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7696else
7697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698for as_dir in $PATH
7699do
7700 IFS=$as_save_IFS
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7704 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 break 2
7707 fi
7708done
7709done
7710
7711fi
7712fi
7713WINDMC=$ac_cv_prog_WINDMC
7714if test -n "$WINDMC"; then
7715 echo "$as_me:$LINENO: result: $WINDMC" >&5
7716echo "${ECHO_T}$WINDMC" >&6
7717else
7718 echo "$as_me:$LINENO: result: no" >&5
7719echo "${ECHO_T}no" >&6
7720fi
7721
7722 fi
7723 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7725set dummy ${ncn_progname}; ac_word=$2
7726echo "$as_me:$LINENO: checking for $ac_word" >&5
7727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7728if test "${ac_cv_prog_WINDMC+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7730else
7731 if test -n "$WINDMC"; then
7732 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7733else
7734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735for as_dir in $PATH
7736do
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7741 ac_cv_prog_WINDMC="${ncn_progname}"
7742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 break 2
7744 fi
7745done
7746done
7747
7748fi
7749fi
7750WINDMC=$ac_cv_prog_WINDMC
7751if test -n "$WINDMC"; then
7752 echo "$as_me:$LINENO: result: $WINDMC" >&5
7753echo "${ECHO_T}$WINDMC" >&6
7754else
7755 echo "$as_me:$LINENO: result: no" >&5
7756echo "${ECHO_T}no" >&6
7757fi
7758
7759 fi
7760 test -n "$ac_cv_prog_WINDMC" && break
7761done
7762
7763if test -z "$ac_cv_prog_WINDMC" ; then
7764 set dummy windmc
7765 if test $build = $host ; then
7766 WINDMC="$2"
7767 else
7768 WINDMC="${ncn_tool_prefix}$2"
7769 fi
7770fi
7771
7772
7773
9a819804
AO
7774if test -n "$OBJCOPY"; then
7775 ac_cv_prog_OBJCOPY=$OBJCOPY
7776elif test -n "$ac_cv_prog_OBJCOPY"; then
7777 OBJCOPY=$ac_cv_prog_OBJCOPY
7778fi
7779
7780if test -n "$ac_cv_prog_OBJCOPY"; then
7781 for ncn_progname in objcopy; do
7782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7783set dummy ${ncn_progname}; ac_word=$2
7784echo "$as_me:$LINENO: checking for $ac_word" >&5
7785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7786if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788else
7789 if test -n "$OBJCOPY"; then
7790 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7791else
7792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799 ac_cv_prog_OBJCOPY="${ncn_progname}"
7800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7802 fi
7803done
7804done
7805
7806fi
7807fi
7808OBJCOPY=$ac_cv_prog_OBJCOPY
7809if test -n "$OBJCOPY"; then
7810 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7811echo "${ECHO_T}$OBJCOPY" >&6
7812else
7813 echo "$as_me:$LINENO: result: no" >&5
7814echo "${ECHO_T}no" >&6
7815fi
7816
7817 done
7818fi
7819
7820for ncn_progname in objcopy; do
05cbd757
PB
7821 if test -n "$ncn_tool_prefix"; then
7822 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7823set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7824echo "$as_me:$LINENO: checking for $ac_word" >&5
7825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7826if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7828else
7829 if test -n "$OBJCOPY"; then
7830 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7831else
c6b750e1
DJ
7832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7839 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7842 fi
7843done
7844done
7845
859789af
AC
7846fi
7847fi
c6b750e1 7848OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7849if test -n "$OBJCOPY"; then
c6b750e1
DJ
7850 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7851echo "${ECHO_T}$OBJCOPY" >&6
859789af 7852else
c6b750e1
DJ
7853 echo "$as_me:$LINENO: result: no" >&5
7854echo "${ECHO_T}no" >&6
859789af
AC
7855fi
7856
05cbd757
PB
7857 fi
7858 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7860set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7861echo "$as_me:$LINENO: checking for $ac_word" >&5
7862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7863if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7865else
05cbd757
PB
7866 if test -n "$OBJCOPY"; then
7867 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7868else
c6b750e1
DJ
7869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870for as_dir in $PATH
7871do
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_OBJCOPY="${ncn_progname}"
7877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7879 fi
7880done
7881done
7882
859789af
AC
7883fi
7884fi
c6b750e1 7885OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7886if test -n "$OBJCOPY"; then
c6b750e1
DJ
7887 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7888echo "${ECHO_T}$OBJCOPY" >&6
859789af 7889else
c6b750e1
DJ
7890 echo "$as_me:$LINENO: result: no" >&5
7891echo "${ECHO_T}no" >&6
859789af 7892fi
c6b750e1 7893
05cbd757
PB
7894 fi
7895 test -n "$ac_cv_prog_OBJCOPY" && break
7896done
7897
7898if test -z "$ac_cv_prog_OBJCOPY" ; then
7899 set dummy objcopy
7900 if test $build = $host ; then
7901 OBJCOPY="$2"
859789af 7902 else
05cbd757 7903 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7904 fi
859789af
AC
7905fi
7906
9a819804
AO
7907
7908
7909if test -n "$OBJDUMP"; then
7910 ac_cv_prog_OBJDUMP=$OBJDUMP
7911elif test -n "$ac_cv_prog_OBJDUMP"; then
7912 OBJDUMP=$ac_cv_prog_OBJDUMP
7913fi
7914
7915if test -n "$ac_cv_prog_OBJDUMP"; then
7916 for ncn_progname in objdump; do
7917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7918set dummy ${ncn_progname}; ac_word=$2
7919echo "$as_me:$LINENO: checking for $ac_word" >&5
7920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7921if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923else
7924 if test -n "$OBJDUMP"; then
7925 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7926else
7927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928for as_dir in $PATH
7929do
7930 IFS=$as_save_IFS
7931 test -z "$as_dir" && as_dir=.
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7934 ac_cv_prog_OBJDUMP="${ncn_progname}"
7935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 break 2
7937 fi
7938done
7939done
7940
7941fi
7942fi
7943OBJDUMP=$ac_cv_prog_OBJDUMP
7944if test -n "$OBJDUMP"; then
7945 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7946echo "${ECHO_T}$OBJDUMP" >&6
7947else
7948 echo "$as_me:$LINENO: result: no" >&5
7949echo "${ECHO_T}no" >&6
7950fi
7951
7952 done
7953fi
7954
7955for ncn_progname in objdump; do
05cbd757
PB
7956 if test -n "$ncn_tool_prefix"; then
7957 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7958set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7959echo "$as_me:$LINENO: checking for $ac_word" >&5
7960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7961if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7963else
7964 if test -n "$OBJDUMP"; then
7965 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7966else
c6b750e1
DJ
7967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968for as_dir in $PATH
7969do
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7974 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 break 2
7977 fi
7978done
7979done
7980
859789af
AC
7981fi
7982fi
c6b750e1 7983OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7984if test -n "$OBJDUMP"; then
c6b750e1
DJ
7985 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7986echo "${ECHO_T}$OBJDUMP" >&6
859789af 7987else
c6b750e1
DJ
7988 echo "$as_me:$LINENO: result: no" >&5
7989echo "${ECHO_T}no" >&6
859789af
AC
7990fi
7991
05cbd757
PB
7992 fi
7993 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7995set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7996echo "$as_me:$LINENO: checking for $ac_word" >&5
7997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7998if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8000else
05cbd757
PB
8001 if test -n "$OBJDUMP"; then
8002 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8003else
c6b750e1
DJ
8004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005for as_dir in $PATH
8006do
8007 IFS=$as_save_IFS
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8011 ac_cv_prog_OBJDUMP="${ncn_progname}"
8012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 break 2
8014 fi
8015done
8016done
8017
859789af
AC
8018fi
8019fi
c6b750e1 8020OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8021if test -n "$OBJDUMP"; then
c6b750e1
DJ
8022 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8023echo "${ECHO_T}$OBJDUMP" >&6
859789af 8024else
c6b750e1
DJ
8025 echo "$as_me:$LINENO: result: no" >&5
8026echo "${ECHO_T}no" >&6
859789af 8027fi
c6b750e1 8028
05cbd757
PB
8029 fi
8030 test -n "$ac_cv_prog_OBJDUMP" && break
8031done
8032
8033if test -z "$ac_cv_prog_OBJDUMP" ; then
8034 set dummy objdump
8035 if test $build = $host ; then
8036 OBJDUMP="$2"
859789af 8037 else
05cbd757 8038 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8039 fi
859789af
AC
8040fi
8041
a0da8069
NN
8042
8043
8044
8045
8046
be01d343 8047# Target tools.
c6b750e1 8048
2429c060
PB
8049# Check whether --with-build-time-tools or --without-build-time-tools was given.
8050if test "${with_build_time_tools+set}" = set; then
8051 withval="$with_build_time_tools"
8052 case x"$withval" in
8053 x/*) ;;
8054 *)
8055 with_build_time_tools=
c6b750e1
DJ
8056 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8057echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8058 ;;
8059 esac
859789af 8060else
2429c060 8061 with_build_time_tools=
c6b750e1 8062fi;
859789af 8063
9a819804
AO
8064
8065
8066if test -n "$CC_FOR_TARGET"; then
8067 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8068elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8069 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8070fi
8071
8072if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8073 for ncn_progname in cc gcc; do
8074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8075set dummy ${ncn_progname}; ac_word=$2
8076echo "$as_me:$LINENO: checking for $ac_word" >&5
8077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8078if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8080else
8081 if test -n "$CC_FOR_TARGET"; then
8082 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8083else
8084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085for as_dir in $PATH
8086do
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8091 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 break 2
8094 fi
8095done
8096done
8097
8098fi
8099fi
8100CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8101if test -n "$CC_FOR_TARGET"; then
8102 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8103echo "${ECHO_T}$CC_FOR_TARGET" >&6
8104else
8105 echo "$as_me:$LINENO: result: no" >&5
8106echo "${ECHO_T}no" >&6
8107fi
8108
8109 done
8110fi
8111
8112if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8113 for ncn_progname in cc gcc; do
c6b750e1
DJ
8114 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8115echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8116 if test -x $with_build_time_tools/${ncn_progname}; then
8117 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8118 echo "$as_me:$LINENO: result: yes" >&5
8119echo "${ECHO_T}yes" >&6
cac3d6c4 8120 break
2429c060 8121 else
c6b750e1
DJ
8122 echo "$as_me:$LINENO: result: no" >&5
8123echo "${ECHO_T}no" >&6
cac3d6c4
CM
8124 fi
8125 done
55db4b87
PB
8126fi
8127
2429c060
PB
8128if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8129 for ncn_progname in cc gcc; do
8130 if test -n "$ncn_target_tool_prefix"; then
8131 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8132set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8133echo "$as_me:$LINENO: checking for $ac_word" >&5
8134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8135if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8137else
8138 if test -n "$CC_FOR_TARGET"; then
8139 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8140else
c6b750e1
DJ
8141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142for as_dir in $PATH
8143do
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8148 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 break 2
8151 fi
8152done
8153done
8154
55db4b87
PB
8155fi
8156fi
c6b750e1 8157CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8158if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8159 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8160echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8161else
c6b750e1
DJ
8162 echo "$as_me:$LINENO: result: no" >&5
8163echo "${ECHO_T}no" >&6
55db4b87
PB
8164fi
8165
2429c060
PB
8166 fi
8167 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8169set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8170echo "$as_me:$LINENO: checking for $ac_word" >&5
8171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8172if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8174else
05cbd757
PB
8175 if test -n "$CC_FOR_TARGET"; then
8176 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8177else
c6b750e1
DJ
8178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179for as_dir in $PATH
8180do
8181 IFS=$as_save_IFS
8182 test -z "$as_dir" && as_dir=.
8183 for ac_exec_ext in '' $ac_executable_extensions; do
8184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8185 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 break 2
8188 fi
8189done
8190done
8191
55db4b87
PB
8192fi
8193fi
c6b750e1 8194CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8195if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8196 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8197echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8198else
c6b750e1
DJ
8199 echo "$as_me:$LINENO: result: no" >&5
8200echo "${ECHO_T}no" >&6
55db4b87 8201fi
c6b750e1 8202
2429c060
PB
8203 fi
8204 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8205 done
8206fi
c6b750e1 8207
05cbd757
PB
8208if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8209 set dummy cc gcc
8210 if test $build = $target ; then
8211 CC_FOR_TARGET="$2"
55db4b87 8212 else
05cbd757 8213 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8214 fi
d3f5afc4
MS
8215else
8216 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8217fi
8218
9a819804
AO
8219
8220
8221if test -n "$CXX_FOR_TARGET"; then
8222 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8223elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8224 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8225fi
8226
8227if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8228 for ncn_progname in c++ g++ cxx gxx; do
8229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8230set dummy ${ncn_progname}; ac_word=$2
8231echo "$as_me:$LINENO: checking for $ac_word" >&5
8232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8233if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8235else
8236 if test -n "$CXX_FOR_TARGET"; then
8237 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8238else
8239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240for as_dir in $PATH
8241do
8242 IFS=$as_save_IFS
8243 test -z "$as_dir" && as_dir=.
8244 for ac_exec_ext in '' $ac_executable_extensions; do
8245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8246 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 break 2
8249 fi
8250done
8251done
8252
8253fi
8254fi
8255CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8256if test -n "$CXX_FOR_TARGET"; then
8257 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8258echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8259else
8260 echo "$as_me:$LINENO: result: no" >&5
8261echo "${ECHO_T}no" >&6
8262fi
8263
8264 done
8265fi
8266
8267if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8268 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8269 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8270echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8271 if test -x $with_build_time_tools/${ncn_progname}; then
8272 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8273 echo "$as_me:$LINENO: result: yes" >&5
8274echo "${ECHO_T}yes" >&6
2429c060
PB
8275 break
8276 else
c6b750e1
DJ
8277 echo "$as_me:$LINENO: result: no" >&5
8278echo "${ECHO_T}no" >&6
2429c060
PB
8279 fi
8280 done
8281fi
8282
8283if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8284 for ncn_progname in c++ g++ cxx gxx; do
8285 if test -n "$ncn_target_tool_prefix"; then
8286 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8287set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8288echo "$as_me:$LINENO: checking for $ac_word" >&5
8289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8290if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8292else
8293 if test -n "$CXX_FOR_TARGET"; then
8294 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8295else
c6b750e1
DJ
8296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297for as_dir in $PATH
8298do
8299 IFS=$as_save_IFS
8300 test -z "$as_dir" && as_dir=.
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8303 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8305 break 2
8306 fi
8307done
8308done
8309
55db4b87
PB
8310fi
8311fi
c6b750e1 8312CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8313if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8314 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8315echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8316else
c6b750e1
DJ
8317 echo "$as_me:$LINENO: result: no" >&5
8318echo "${ECHO_T}no" >&6
55db4b87
PB
8319fi
8320
2429c060
PB
8321 fi
8322 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8324set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8325echo "$as_me:$LINENO: checking for $ac_word" >&5
8326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8327if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8329else
05cbd757
PB
8330 if test -n "$CXX_FOR_TARGET"; then
8331 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8332else
c6b750e1
DJ
8333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334for as_dir in $PATH
8335do
8336 IFS=$as_save_IFS
8337 test -z "$as_dir" && as_dir=.
8338 for ac_exec_ext in '' $ac_executable_extensions; do
8339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8340 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 break 2
8343 fi
8344done
8345done
8346
55db4b87
PB
8347fi
8348fi
c6b750e1 8349CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8350if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8351 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8352echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8353else
c6b750e1
DJ
8354 echo "$as_me:$LINENO: result: no" >&5
8355echo "${ECHO_T}no" >&6
55db4b87 8356fi
c6b750e1 8357
2429c060
PB
8358 fi
8359 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8360 done
8361fi
c6b750e1 8362
05cbd757
PB
8363if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8364 set dummy c++ g++ cxx gxx
8365 if test $build = $target ; then
8366 CXX_FOR_TARGET="$2"
55db4b87 8367 else
05cbd757 8368 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8369 fi
d3f5afc4
MS
8370else
8371 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8372fi
8373
9a819804
AO
8374
8375
8376if test -n "$GCC_FOR_TARGET"; then
8377 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8378elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8379 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8380fi
8381
8382if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8383 for ncn_progname in gcc; do
8384 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8385set dummy ${ncn_progname}; ac_word=$2
8386echo "$as_me:$LINENO: checking for $ac_word" >&5
8387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8388if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8390else
8391 if test -n "$GCC_FOR_TARGET"; then
8392 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8393else
8394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395for as_dir in $PATH
8396do
8397 IFS=$as_save_IFS
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8401 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 break 2
8404 fi
8405done
8406done
8407
8408fi
8409fi
8410GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8411if test -n "$GCC_FOR_TARGET"; then
8412 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8413echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8414else
8415 echo "$as_me:$LINENO: result: no" >&5
8416echo "${ECHO_T}no" >&6
8417fi
8418
8419 done
8420fi
8421
8422if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8423 for ncn_progname in gcc; do
c6b750e1
DJ
8424 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8425echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8426 if test -x $with_build_time_tools/${ncn_progname}; then
8427 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8428 echo "$as_me:$LINENO: result: yes" >&5
8429echo "${ECHO_T}yes" >&6
2429c060
PB
8430 break
8431 else
c6b750e1
DJ
8432 echo "$as_me:$LINENO: result: no" >&5
8433echo "${ECHO_T}no" >&6
2429c060
PB
8434 fi
8435 done
8436fi
8437
8438if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8439 for ncn_progname in gcc; do
8440 if test -n "$ncn_target_tool_prefix"; then
8441 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8442set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8443echo "$as_me:$LINENO: checking for $ac_word" >&5
8444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8445if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8447else
2429c060
PB
8448 if test -n "$GCC_FOR_TARGET"; then
8449 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8450else
c6b750e1
DJ
8451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452for as_dir in $PATH
8453do
8454 IFS=$as_save_IFS
8455 test -z "$as_dir" && as_dir=.
8456 for ac_exec_ext in '' $ac_executable_extensions; do
8457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8458 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8460 break 2
8461 fi
8462done
8463done
8464
55db4b87
PB
8465fi
8466fi
c6b750e1 8467GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8468if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8469 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8470echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8471else
c6b750e1
DJ
8472 echo "$as_me:$LINENO: result: no" >&5
8473echo "${ECHO_T}no" >&6
55db4b87
PB
8474fi
8475
2429c060
PB
8476 fi
8477 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8479set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8480echo "$as_me:$LINENO: checking for $ac_word" >&5
8481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8482if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8484else
05cbd757
PB
8485 if test -n "$GCC_FOR_TARGET"; then
8486 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8487else
c6b750e1
DJ
8488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489for as_dir in $PATH
8490do
8491 IFS=$as_save_IFS
8492 test -z "$as_dir" && as_dir=.
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8495 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8497 break 2
8498 fi
8499done
8500done
8501
55db4b87
PB
8502fi
8503fi
c6b750e1 8504GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8505if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8506 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8507echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8508else
c6b750e1
DJ
8509 echo "$as_me:$LINENO: result: no" >&5
8510echo "${ECHO_T}no" >&6
55db4b87 8511fi
c6b750e1 8512
2429c060
PB
8513 fi
8514 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8515 done
8516fi
c6b750e1 8517
05cbd757
PB
8518if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8519 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8520else
8521 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8522fi
8523
9a819804
AO
8524
8525
8526if test -n "$GCJ_FOR_TARGET"; then
8527 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8528elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8529 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8530fi
8531
8532if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8533 for ncn_progname in gcj; do
8534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8535set dummy ${ncn_progname}; ac_word=$2
8536echo "$as_me:$LINENO: checking for $ac_word" >&5
8537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8538if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540else
8541 if test -n "$GCJ_FOR_TARGET"; then
8542 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8543else
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8551 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 break 2
8554 fi
8555done
8556done
8557
8558fi
8559fi
8560GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8561if test -n "$GCJ_FOR_TARGET"; then
8562 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8563echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8564else
8565 echo "$as_me:$LINENO: result: no" >&5
8566echo "${ECHO_T}no" >&6
8567fi
8568
8569 done
8570fi
8571
8572if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8573 for ncn_progname in gcj; do
c6b750e1
DJ
8574 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8575echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8576 if test -x $with_build_time_tools/${ncn_progname}; then
8577 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8578 echo "$as_me:$LINENO: result: yes" >&5
8579echo "${ECHO_T}yes" >&6
2429c060
PB
8580 break
8581 else
c6b750e1
DJ
8582 echo "$as_me:$LINENO: result: no" >&5
8583echo "${ECHO_T}no" >&6
2429c060
PB
8584 fi
8585 done
8586fi
8587
8588if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8589 for ncn_progname in gcj; do
8590 if test -n "$ncn_target_tool_prefix"; then
8591 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8592set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8593echo "$as_me:$LINENO: checking for $ac_word" >&5
8594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8595if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8597else
8598 if test -n "$GCJ_FOR_TARGET"; then
8599 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8600else
c6b750e1
DJ
8601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602for as_dir in $PATH
8603do
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8608 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 break 2
8611 fi
8612done
8613done
8614
55db4b87
PB
8615fi
8616fi
9a819804
AO
8617GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8618if test -n "$GCJ_FOR_TARGET"; then
8619 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8620echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8621else
8622 echo "$as_me:$LINENO: result: no" >&5
8623echo "${ECHO_T}no" >&6
8624fi
8625
8626 fi
8627 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8629set dummy ${ncn_progname}; ac_word=$2
8630echo "$as_me:$LINENO: checking for $ac_word" >&5
8631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8632if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8634else
8635 if test -n "$GCJ_FOR_TARGET"; then
8636 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8637else
8638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639for as_dir in $PATH
8640do
8641 IFS=$as_save_IFS
8642 test -z "$as_dir" && as_dir=.
8643 for ac_exec_ext in '' $ac_executable_extensions; do
8644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8645 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 break 2
8648 fi
8649done
8650done
8651
8652fi
8653fi
8654GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8655if test -n "$GCJ_FOR_TARGET"; then
8656 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8657echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8658else
8659 echo "$as_me:$LINENO: result: no" >&5
8660echo "${ECHO_T}no" >&6
8661fi
8662
8663 fi
8664 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8665 done
8666fi
8667
8668if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8669 set dummy gcj
8670 if test $build = $target ; then
8671 GCJ_FOR_TARGET="$2"
8672 else
8673 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8674 fi
d3f5afc4
MS
8675else
8676 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8677fi
8678
8679
8680
8681if test -n "$GFORTRAN_FOR_TARGET"; then
8682 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8683elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8684 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8685fi
8686
9a819804
AO
8687if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8688 for ncn_progname in gfortran; do
8689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8690set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8691echo "$as_me:$LINENO: checking for $ac_word" >&5
8692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8693if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8694 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8695else
9a819804
AO
8696 if test -n "$GFORTRAN_FOR_TARGET"; then
8697 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8698else
c6b750e1
DJ
8699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700for as_dir in $PATH
8701do
8702 IFS=$as_save_IFS
8703 test -z "$as_dir" && as_dir=.
8704 for ac_exec_ext in '' $ac_executable_extensions; do
8705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8706 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8708 break 2
8709 fi
8710done
8711done
8712
55db4b87
PB
8713fi
8714fi
9a819804
AO
8715GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8716if test -n "$GFORTRAN_FOR_TARGET"; then
8717 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8718echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8719else
c6b750e1
DJ
8720 echo "$as_me:$LINENO: result: no" >&5
8721echo "${ECHO_T}no" >&6
55db4b87 8722fi
c6b750e1 8723
2429c060
PB
8724 done
8725fi
c6b750e1 8726
9a819804 8727if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8728 for ncn_progname in gfortran; do
c6b750e1
DJ
8729 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8730echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8731 if test -x $with_build_time_tools/${ncn_progname}; then
8732 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8733 echo "$as_me:$LINENO: result: yes" >&5
8734echo "${ECHO_T}yes" >&6
2429c060
PB
8735 break
8736 else
c6b750e1
DJ
8737 echo "$as_me:$LINENO: result: no" >&5
8738echo "${ECHO_T}no" >&6
2429c060
PB
8739 fi
8740 done
8741fi
8742
8743if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8744 for ncn_progname in gfortran; do
8745 if test -n "$ncn_target_tool_prefix"; then
8746 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8747set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8748echo "$as_me:$LINENO: checking for $ac_word" >&5
8749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8750if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8752else
8753 if test -n "$GFORTRAN_FOR_TARGET"; then
8754 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8755else
c6b750e1
DJ
8756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757for as_dir in $PATH
8758do
8759 IFS=$as_save_IFS
8760 test -z "$as_dir" && as_dir=.
8761 for ac_exec_ext in '' $ac_executable_extensions; do
8762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 break 2
8766 fi
8767done
8768done
8769
55db4b87
PB
8770fi
8771fi
c6b750e1 8772GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8773if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8774 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8775echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8776else
c6b750e1
DJ
8777 echo "$as_me:$LINENO: result: no" >&5
8778echo "${ECHO_T}no" >&6
55db4b87
PB
8779fi
8780
2429c060
PB
8781 fi
8782 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8783 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8784set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8785echo "$as_me:$LINENO: checking for $ac_word" >&5
8786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8787if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8789else
05cbd757 8790 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8791 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8792else
8793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794for as_dir in $PATH
8795do
8796 IFS=$as_save_IFS
8797 test -z "$as_dir" && as_dir=.
8798 for ac_exec_ext in '' $ac_executable_extensions; do
8799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8800 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8802 break 2
8803 fi
8804done
8805done
8806
55db4b87
PB
8807fi
8808fi
c6b750e1 8809GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8810if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8811 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8812echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8813else
c6b750e1
DJ
8814 echo "$as_me:$LINENO: result: no" >&5
8815echo "${ECHO_T}no" >&6
55db4b87 8816fi
c6b750e1 8817
2429c060
PB
8818 fi
8819 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8820 done
8821fi
c6b750e1 8822
05cbd757
PB
8823if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8824 set dummy gfortran
8825 if test $build = $target ; then
8826 GFORTRAN_FOR_TARGET="$2"
55db4b87 8827 else
05cbd757 8828 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8829 fi
d3f5afc4
MS
8830else
8831 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8832fi
8833
2429c060
PB
8834
8835
2429c060
PB
8836cat > conftest.c << \EOF
8837#ifdef __GNUC__
8838 gcc_yay;
8839#endif
8840EOF
8841if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8842 have_gcc_for_target=yes
859789af 8843else
2429c060
PB
8844 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8845 have_gcc_for_target=no
859789af 8846fi
2429c060
PB
8847rm conftest.c
8848
8849
8850
859789af 8851
2429c060
PB
8852if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8853 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8854 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8855echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8856 if test -x $with_build_time_tools/ar; then
8857 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8858 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8859 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8860echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8861 else
c6b750e1
DJ
8862 echo "$as_me:$LINENO: result: no" >&5
8863echo "${ECHO_T}no" >&6
3a35eeb3 8864 fi
2429c060
PB
8865 elif test $build != $host && test $have_gcc_for_target = yes; then
8866 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8867 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8868 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8869 fi
2429c060 8870fi
c6b750e1 8871if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8872 # Extract the first word of "ar", so it can be a program name with args.
8873set dummy ar; ac_word=$2
c6b750e1
DJ
8874echo "$as_me:$LINENO: checking for $ac_word" >&5
8875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8876if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8877 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8878else
c6b750e1
DJ
8879 case $AR_FOR_TARGET in
8880 [\\/]* | ?:[\\/]*)
2429c060
PB
8881 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8882 ;;
2429c060 8883 *)
c6b750e1
DJ
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885for as_dir in $gcc_cv_tool_dirs
8886do
8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8891 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8893 break 2
8894 fi
8895done
8896done
8897
2429c060
PB
8898 ;;
8899esac
859789af 8900fi
c6b750e1
DJ
8901AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8902
2429c060 8903if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8904 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8905echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8906else
c6b750e1
DJ
8907 echo "$as_me:$LINENO: result: no" >&5
8908echo "${ECHO_T}no" >&6
859789af 8909fi
05cbd757 8910
2429c060
PB
8911fi
8912if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8913
8914
8915if test -n "$AR_FOR_TARGET"; then
8916 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8917elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8918 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8919fi
8920
8921if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8922 for ncn_progname in ar; do
8923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8924set dummy ${ncn_progname}; ac_word=$2
8925echo "$as_me:$LINENO: checking for $ac_word" >&5
8926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8927if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929else
8930 if test -n "$AR_FOR_TARGET"; then
8931 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8932else
8933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934for as_dir in $PATH
8935do
8936 IFS=$as_save_IFS
8937 test -z "$as_dir" && as_dir=.
8938 for ac_exec_ext in '' $ac_executable_extensions; do
8939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8940 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8942 break 2
8943 fi
8944done
8945done
8946
8947fi
8948fi
8949AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8950if test -n "$AR_FOR_TARGET"; then
8951 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8952echo "${ECHO_T}$AR_FOR_TARGET" >&6
8953else
8954 echo "$as_me:$LINENO: result: no" >&5
8955echo "${ECHO_T}no" >&6
8956fi
8957
8958 done
8959fi
8960
8961if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8962 for ncn_progname in ar; do
c6b750e1
DJ
8963 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8964echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8965 if test -x $with_build_time_tools/${ncn_progname}; then
8966 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8967 echo "$as_me:$LINENO: result: yes" >&5
8968echo "${ECHO_T}yes" >&6
2429c060
PB
8969 break
8970 else
c6b750e1
DJ
8971 echo "$as_me:$LINENO: result: no" >&5
8972echo "${ECHO_T}no" >&6
2429c060
PB
8973 fi
8974 done
859789af
AC
8975fi
8976
2429c060
PB
8977if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8978 for ncn_progname in ar; do
8979 if test -n "$ncn_target_tool_prefix"; then
8980 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8981set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8982echo "$as_me:$LINENO: checking for $ac_word" >&5
8983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8984if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8986else
2429c060
PB
8987 if test -n "$AR_FOR_TARGET"; then
8988 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8989else
c6b750e1
DJ
8990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991for as_dir in $PATH
8992do
8993 IFS=$as_save_IFS
8994 test -z "$as_dir" && as_dir=.
8995 for ac_exec_ext in '' $ac_executable_extensions; do
8996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8997 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8999 break 2
9000 fi
9001done
9002done
9003
7e0f7140
GK
9004fi
9005fi
c6b750e1 9006AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9007if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9008 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9009echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9010else
c6b750e1
DJ
9011 echo "$as_me:$LINENO: result: no" >&5
9012echo "${ECHO_T}no" >&6
7e0f7140
GK
9013fi
9014
2429c060
PB
9015 fi
9016 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9018set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9019echo "$as_me:$LINENO: checking for $ac_word" >&5
9020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9021if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9023else
2429c060
PB
9024 if test -n "$AR_FOR_TARGET"; then
9025 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9026else
c6b750e1
DJ
9027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028for as_dir in $PATH
9029do
9030 IFS=$as_save_IFS
9031 test -z "$as_dir" && as_dir=.
9032 for ac_exec_ext in '' $ac_executable_extensions; do
9033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9034 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9036 break 2
9037 fi
9038done
9039done
9040
7e0f7140
GK
9041fi
9042fi
c6b750e1 9043AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9044if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9045 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9046echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9047else
c6b750e1
DJ
9048 echo "$as_me:$LINENO: result: no" >&5
9049echo "${ECHO_T}no" >&6
7e0f7140 9050fi
c6b750e1 9051
2429c060
PB
9052 fi
9053 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9054 done
9055fi
c6b750e1 9056
2429c060
PB
9057if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9058 set dummy ar
7e0f7140 9059 if test $build = $target ; then
2429c060 9060 AR_FOR_TARGET="$2"
7e0f7140 9061 else
2429c060 9062 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9063 fi
d3f5afc4
MS
9064else
9065 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9066fi
9067
3a35eeb3
PB
9068else
9069 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9070fi
9071
9072
9073
9074
9075if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9076 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9077 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9078echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9079 if test -x $with_build_time_tools/as; then
9080 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9081 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9082 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9083echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9084 else
c6b750e1
DJ
9085 echo "$as_me:$LINENO: result: no" >&5
9086echo "${ECHO_T}no" >&6
3a35eeb3 9087 fi
2429c060
PB
9088 elif test $build != $host && test $have_gcc_for_target = yes; then
9089 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9090 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9091 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9092 fi
9093fi
c6b750e1 9094if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9095 # Extract the first word of "as", so it can be a program name with args.
9096set dummy as; ac_word=$2
c6b750e1
DJ
9097echo "$as_me:$LINENO: checking for $ac_word" >&5
9098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9099if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9101else
c6b750e1
DJ
9102 case $AS_FOR_TARGET in
9103 [\\/]* | ?:[\\/]*)
2429c060
PB
9104 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9105 ;;
2429c060 9106 *)
c6b750e1
DJ
9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108for as_dir in $gcc_cv_tool_dirs
9109do
9110 IFS=$as_save_IFS
9111 test -z "$as_dir" && as_dir=.
9112 for ac_exec_ext in '' $ac_executable_extensions; do
9113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9114 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9116 break 2
9117 fi
9118done
9119done
9120
2429c060
PB
9121 ;;
9122esac
9123fi
c6b750e1
DJ
9124AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9125
2429c060 9126if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9127 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9128echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9129else
c6b750e1
DJ
9130 echo "$as_me:$LINENO: result: no" >&5
9131echo "${ECHO_T}no" >&6
2429c060
PB
9132fi
9133
9134fi
9135if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9136
9137
9138if test -n "$AS_FOR_TARGET"; then
9139 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9140elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9141 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9142fi
9143
9144if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9145 for ncn_progname in as; do
9146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9147set dummy ${ncn_progname}; ac_word=$2
9148echo "$as_me:$LINENO: checking for $ac_word" >&5
9149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9150if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9152else
9153 if test -n "$AS_FOR_TARGET"; then
9154 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9155else
9156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157for as_dir in $PATH
9158do
9159 IFS=$as_save_IFS
9160 test -z "$as_dir" && as_dir=.
9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9163 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9165 break 2
9166 fi
9167done
9168done
9169
9170fi
9171fi
9172AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9173if test -n "$AS_FOR_TARGET"; then
9174 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9175echo "${ECHO_T}$AS_FOR_TARGET" >&6
9176else
9177 echo "$as_me:$LINENO: result: no" >&5
9178echo "${ECHO_T}no" >&6
9179fi
9180
9181 done
9182fi
9183
9184if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9185 for ncn_progname in as; do
c6b750e1
DJ
9186 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9187echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9188 if test -x $with_build_time_tools/${ncn_progname}; then
9189 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9190 echo "$as_me:$LINENO: result: yes" >&5
9191echo "${ECHO_T}yes" >&6
2429c060
PB
9192 break
9193 else
c6b750e1
DJ
9194 echo "$as_me:$LINENO: result: no" >&5
9195echo "${ECHO_T}no" >&6
2429c060
PB
9196 fi
9197 done
9198fi
9199
9200if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9201 for ncn_progname in as; do
9202 if test -n "$ncn_target_tool_prefix"; then
9203 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9204set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9205echo "$as_me:$LINENO: checking for $ac_word" >&5
9206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9207if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9209else
9210 if test -n "$AS_FOR_TARGET"; then
9211 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9212else
c6b750e1
DJ
9213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214for as_dir in $PATH
9215do
9216 IFS=$as_save_IFS
9217 test -z "$as_dir" && as_dir=.
9218 for ac_exec_ext in '' $ac_executable_extensions; do
9219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9220 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9222 break 2
9223 fi
9224done
9225done
9226
2429c060
PB
9227fi
9228fi
c6b750e1 9229AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9230if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9231 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9232echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9233else
c6b750e1
DJ
9234 echo "$as_me:$LINENO: result: no" >&5
9235echo "${ECHO_T}no" >&6
2429c060
PB
9236fi
9237
9238 fi
9239 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9241set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9242echo "$as_me:$LINENO: checking for $ac_word" >&5
9243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9244if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9246else
9247 if test -n "$AS_FOR_TARGET"; then
9248 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9249else
c6b750e1
DJ
9250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251for as_dir in $PATH
9252do
9253 IFS=$as_save_IFS
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9257 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9259 break 2
9260 fi
9261done
9262done
9263
2429c060
PB
9264fi
9265fi
c6b750e1 9266AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9267if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9268 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9269echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9270else
c6b750e1
DJ
9271 echo "$as_me:$LINENO: result: no" >&5
9272echo "${ECHO_T}no" >&6
2429c060 9273fi
c6b750e1 9274
2429c060
PB
9275 fi
9276 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9277 done
9278fi
c6b750e1 9279
2429c060
PB
9280if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9281 set dummy as
9282 if test $build = $target ; then
9283 AS_FOR_TARGET="$2"
9284 else
9285 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9286 fi
d3f5afc4
MS
9287else
9288 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9289fi
9290
3a35eeb3
PB
9291else
9292 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9293fi
9294
9295
9296
9297
9298if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9299 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9300 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9301echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9302 if test -x $with_build_time_tools/dlltool; then
9303 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9304 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9305 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9306echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9307 else
c6b750e1
DJ
9308 echo "$as_me:$LINENO: result: no" >&5
9309echo "${ECHO_T}no" >&6
3a35eeb3 9310 fi
2429c060
PB
9311 elif test $build != $host && test $have_gcc_for_target = yes; then
9312 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9313 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9314 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9315 fi
9316fi
c6b750e1 9317if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9318 # Extract the first word of "dlltool", so it can be a program name with args.
9319set dummy dlltool; ac_word=$2
c6b750e1
DJ
9320echo "$as_me:$LINENO: checking for $ac_word" >&5
9321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9322if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9324else
c6b750e1
DJ
9325 case $DLLTOOL_FOR_TARGET in
9326 [\\/]* | ?:[\\/]*)
2429c060
PB
9327 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9328 ;;
2429c060 9329 *)
c6b750e1
DJ
9330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331for as_dir in $gcc_cv_tool_dirs
9332do
9333 IFS=$as_save_IFS
9334 test -z "$as_dir" && as_dir=.
9335 for ac_exec_ext in '' $ac_executable_extensions; do
9336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9337 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9339 break 2
9340 fi
9341done
9342done
9343
2429c060
PB
9344 ;;
9345esac
9346fi
c6b750e1
DJ
9347DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9348
2429c060 9349if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9350 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9351echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9352else
c6b750e1
DJ
9353 echo "$as_me:$LINENO: result: no" >&5
9354echo "${ECHO_T}no" >&6
2429c060
PB
9355fi
9356
9357fi
9358if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9359
9360
9361if test -n "$DLLTOOL_FOR_TARGET"; then
9362 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9363elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9364 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9365fi
9366
9367if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9368 for ncn_progname in dlltool; do
9369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9370set dummy ${ncn_progname}; ac_word=$2
9371echo "$as_me:$LINENO: checking for $ac_word" >&5
9372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9373if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9375else
9376 if test -n "$DLLTOOL_FOR_TARGET"; then
9377 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9378else
9379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9380for as_dir in $PATH
9381do
9382 IFS=$as_save_IFS
9383 test -z "$as_dir" && as_dir=.
9384 for ac_exec_ext in '' $ac_executable_extensions; do
9385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9386 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9388 break 2
9389 fi
9390done
9391done
9392
9393fi
9394fi
9395DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9396if test -n "$DLLTOOL_FOR_TARGET"; then
9397 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9398echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9399else
9400 echo "$as_me:$LINENO: result: no" >&5
9401echo "${ECHO_T}no" >&6
9402fi
9403
9404 done
9405fi
9406
9407if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9408 for ncn_progname in dlltool; do
c6b750e1
DJ
9409 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9410echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9411 if test -x $with_build_time_tools/${ncn_progname}; then
9412 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9413 echo "$as_me:$LINENO: result: yes" >&5
9414echo "${ECHO_T}yes" >&6
2429c060
PB
9415 break
9416 else
c6b750e1
DJ
9417 echo "$as_me:$LINENO: result: no" >&5
9418echo "${ECHO_T}no" >&6
2429c060
PB
9419 fi
9420 done
9421fi
9422
9423if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9424 for ncn_progname in dlltool; do
9425 if test -n "$ncn_target_tool_prefix"; then
9426 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9427set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9428echo "$as_me:$LINENO: checking for $ac_word" >&5
9429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9430if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9432else
9433 if test -n "$DLLTOOL_FOR_TARGET"; then
9434 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9435else
c6b750e1
DJ
9436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437for as_dir in $PATH
9438do
9439 IFS=$as_save_IFS
9440 test -z "$as_dir" && as_dir=.
9441 for ac_exec_ext in '' $ac_executable_extensions; do
9442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9443 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9445 break 2
9446 fi
9447done
9448done
9449
2429c060
PB
9450fi
9451fi
c6b750e1 9452DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9453if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9454 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9455echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9456else
c6b750e1
DJ
9457 echo "$as_me:$LINENO: result: no" >&5
9458echo "${ECHO_T}no" >&6
2429c060
PB
9459fi
9460
9461 fi
9462 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9464set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9465echo "$as_me:$LINENO: checking for $ac_word" >&5
9466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9467if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9469else
9470 if test -n "$DLLTOOL_FOR_TARGET"; then
9471 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9472else
c6b750e1
DJ
9473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474for as_dir in $PATH
9475do
9476 IFS=$as_save_IFS
9477 test -z "$as_dir" && as_dir=.
9478 for ac_exec_ext in '' $ac_executable_extensions; do
9479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9480 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9482 break 2
9483 fi
9484done
9485done
9486
2429c060
PB
9487fi
9488fi
c6b750e1 9489DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9490if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9491 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9492echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9493else
c6b750e1
DJ
9494 echo "$as_me:$LINENO: result: no" >&5
9495echo "${ECHO_T}no" >&6
2429c060 9496fi
c6b750e1 9497
2429c060
PB
9498 fi
9499 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9500 done
9501fi
c6b750e1 9502
2429c060
PB
9503if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9504 set dummy dlltool
9505 if test $build = $target ; then
9506 DLLTOOL_FOR_TARGET="$2"
9507 else
9508 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9509 fi
d3f5afc4
MS
9510else
9511 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9512fi
9513
3a35eeb3
PB
9514else
9515 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9516fi
9517
9518
9519
9520
9521if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9522 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9523 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9524echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9525 if test -x $with_build_time_tools/ld; then
9526 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9527 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9528 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9529echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9530 else
c6b750e1
DJ
9531 echo "$as_me:$LINENO: result: no" >&5
9532echo "${ECHO_T}no" >&6
3a35eeb3 9533 fi
2429c060
PB
9534 elif test $build != $host && test $have_gcc_for_target = yes; then
9535 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9536 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9537 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9538 fi
9539fi
c6b750e1 9540if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9541 # Extract the first word of "ld", so it can be a program name with args.
9542set dummy ld; ac_word=$2
c6b750e1
DJ
9543echo "$as_me:$LINENO: checking for $ac_word" >&5
9544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9545if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9547else
c6b750e1
DJ
9548 case $LD_FOR_TARGET in
9549 [\\/]* | ?:[\\/]*)
2429c060
PB
9550 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9551 ;;
2429c060 9552 *)
c6b750e1
DJ
9553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9554for as_dir in $gcc_cv_tool_dirs
9555do
9556 IFS=$as_save_IFS
9557 test -z "$as_dir" && as_dir=.
9558 for ac_exec_ext in '' $ac_executable_extensions; do
9559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9560 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9562 break 2
9563 fi
9564done
9565done
9566
2429c060
PB
9567 ;;
9568esac
9569fi
c6b750e1
DJ
9570LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9571
2429c060 9572if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9573 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9574echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9575else
c6b750e1
DJ
9576 echo "$as_me:$LINENO: result: no" >&5
9577echo "${ECHO_T}no" >&6
2429c060
PB
9578fi
9579
9580fi
9581if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9582
9583
9584if test -n "$LD_FOR_TARGET"; then
9585 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9586elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9587 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9588fi
9589
9590if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9591 for ncn_progname in ld; do
9592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9593set dummy ${ncn_progname}; ac_word=$2
9594echo "$as_me:$LINENO: checking for $ac_word" >&5
9595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9596if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9598else
9599 if test -n "$LD_FOR_TARGET"; then
9600 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9601else
9602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603for as_dir in $PATH
9604do
9605 IFS=$as_save_IFS
9606 test -z "$as_dir" && as_dir=.
9607 for ac_exec_ext in '' $ac_executable_extensions; do
9608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9609 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9611 break 2
9612 fi
9613done
9614done
9615
9616fi
9617fi
9618LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9619if test -n "$LD_FOR_TARGET"; then
9620 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9621echo "${ECHO_T}$LD_FOR_TARGET" >&6
9622else
9623 echo "$as_me:$LINENO: result: no" >&5
9624echo "${ECHO_T}no" >&6
9625fi
9626
9627 done
9628fi
9629
9630if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9631 for ncn_progname in ld; do
c6b750e1
DJ
9632 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9633echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9634 if test -x $with_build_time_tools/${ncn_progname}; then
9635 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9636 echo "$as_me:$LINENO: result: yes" >&5
9637echo "${ECHO_T}yes" >&6
2429c060
PB
9638 break
9639 else
c6b750e1
DJ
9640 echo "$as_me:$LINENO: result: no" >&5
9641echo "${ECHO_T}no" >&6
2429c060
PB
9642 fi
9643 done
9644fi
9645
9646if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9647 for ncn_progname in ld; do
9648 if test -n "$ncn_target_tool_prefix"; then
9649 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9650set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9651echo "$as_me:$LINENO: checking for $ac_word" >&5
9652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9653if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9655else
9656 if test -n "$LD_FOR_TARGET"; then
9657 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9658else
c6b750e1
DJ
9659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660for as_dir in $PATH
9661do
9662 IFS=$as_save_IFS
9663 test -z "$as_dir" && as_dir=.
9664 for ac_exec_ext in '' $ac_executable_extensions; do
9665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9666 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9668 break 2
9669 fi
9670done
9671done
9672
2429c060
PB
9673fi
9674fi
c6b750e1 9675LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9676if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9677 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9678echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9679else
c6b750e1
DJ
9680 echo "$as_me:$LINENO: result: no" >&5
9681echo "${ECHO_T}no" >&6
2429c060
PB
9682fi
9683
9684 fi
9685 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9687set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9688echo "$as_me:$LINENO: checking for $ac_word" >&5
9689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9690if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9692else
9693 if test -n "$LD_FOR_TARGET"; then
9694 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9695else
c6b750e1
DJ
9696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697for as_dir in $PATH
9698do
9699 IFS=$as_save_IFS
9700 test -z "$as_dir" && as_dir=.
9701 for ac_exec_ext in '' $ac_executable_extensions; do
9702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9703 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9705 break 2
9706 fi
9707done
9708done
9709
2429c060
PB
9710fi
9711fi
c6b750e1 9712LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9713if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9714 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9715echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9716else
c6b750e1
DJ
9717 echo "$as_me:$LINENO: result: no" >&5
9718echo "${ECHO_T}no" >&6
2429c060 9719fi
c6b750e1 9720
2429c060
PB
9721 fi
9722 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9723 done
9724fi
c6b750e1 9725
2429c060
PB
9726if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9727 set dummy ld
9728 if test $build = $target ; then
9729 LD_FOR_TARGET="$2"
9730 else
9731 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9732 fi
d3f5afc4
MS
9733else
9734 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9735fi
9736
3a35eeb3
PB
9737else
9738 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9739fi
9740
9741
9742
9743
9744if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9745 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9746 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9747echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9748 if test -x $with_build_time_tools/lipo; then
9749 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9750 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9751 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9752echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9753 else
c6b750e1
DJ
9754 echo "$as_me:$LINENO: result: no" >&5
9755echo "${ECHO_T}no" >&6
3a35eeb3 9756 fi
2429c060
PB
9757 elif test $build != $host && test $have_gcc_for_target = yes; then
9758 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9759 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9760 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9761 fi
9762fi
9a819804
AO
9763if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9764 # Extract the first word of "lipo", so it can be a program name with args.
9765set dummy lipo; ac_word=$2
9766echo "$as_me:$LINENO: checking for $ac_word" >&5
9767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9768if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9770else
9771 case $LIPO_FOR_TARGET in
9772 [\\/]* | ?:[\\/]*)
9773 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9774 ;;
9775 *)
9776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777for as_dir in $gcc_cv_tool_dirs
9778do
9779 IFS=$as_save_IFS
9780 test -z "$as_dir" && as_dir=.
9781 for ac_exec_ext in '' $ac_executable_extensions; do
9782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9783 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9785 break 2
9786 fi
9787done
9788done
9789
9790 ;;
9791esac
9792fi
9793LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9794
9795if test -n "$LIPO_FOR_TARGET"; then
9796 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9797echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9798else
9799 echo "$as_me:$LINENO: result: no" >&5
9800echo "${ECHO_T}no" >&6
9801fi
9802
9803fi
9804if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9805
9806
9807if test -n "$LIPO_FOR_TARGET"; then
9808 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9809elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9810 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9811fi
9812
9813if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9814 for ncn_progname in lipo; do
9815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9816set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9817echo "$as_me:$LINENO: checking for $ac_word" >&5
9818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9819if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9820 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9821else
9a819804
AO
9822 if test -n "$LIPO_FOR_TARGET"; then
9823 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9824else
9825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826for as_dir in $PATH
c6b750e1
DJ
9827do
9828 IFS=$as_save_IFS
9829 test -z "$as_dir" && as_dir=.
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9832 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9834 break 2
9835 fi
9836done
9837done
9838
2429c060 9839fi
9a819804
AO
9840fi
9841LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9842if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9843 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9844echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9845else
c6b750e1
DJ
9846 echo "$as_me:$LINENO: result: no" >&5
9847echo "${ECHO_T}no" >&6
2429c060
PB
9848fi
9849
9a819804 9850 done
2429c060 9851fi
9a819804
AO
9852
9853if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9854 for ncn_progname in lipo; do
c6b750e1
DJ
9855 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9856echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9857 if test -x $with_build_time_tools/${ncn_progname}; then
9858 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9859 echo "$as_me:$LINENO: result: yes" >&5
9860echo "${ECHO_T}yes" >&6
2429c060
PB
9861 break
9862 else
c6b750e1
DJ
9863 echo "$as_me:$LINENO: result: no" >&5
9864echo "${ECHO_T}no" >&6
2429c060
PB
9865 fi
9866 done
9867fi
9868
9869if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9870 for ncn_progname in lipo; do
9871 if test -n "$ncn_target_tool_prefix"; then
9872 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9873set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9874echo "$as_me:$LINENO: checking for $ac_word" >&5
9875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9876if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9878else
9879 if test -n "$LIPO_FOR_TARGET"; then
9880 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9881else
c6b750e1
DJ
9882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9883for as_dir in $PATH
9884do
9885 IFS=$as_save_IFS
9886 test -z "$as_dir" && as_dir=.
9887 for ac_exec_ext in '' $ac_executable_extensions; do
9888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9889 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9891 break 2
9892 fi
9893done
9894done
9895
2429c060
PB
9896fi
9897fi
c6b750e1 9898LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9899if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9900 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9901echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9902else
c6b750e1
DJ
9903 echo "$as_me:$LINENO: result: no" >&5
9904echo "${ECHO_T}no" >&6
2429c060
PB
9905fi
9906
9907 fi
9908 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9910set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9911echo "$as_me:$LINENO: checking for $ac_word" >&5
9912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9913if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9915else
9916 if test -n "$LIPO_FOR_TARGET"; then
9917 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9918else
c6b750e1
DJ
9919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920for as_dir in $PATH
9921do
9922 IFS=$as_save_IFS
9923 test -z "$as_dir" && as_dir=.
9924 for ac_exec_ext in '' $ac_executable_extensions; do
9925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9926 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9928 break 2
9929 fi
9930done
9931done
9932
2429c060
PB
9933fi
9934fi
c6b750e1 9935LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9936if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9937 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9938echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9939else
c6b750e1
DJ
9940 echo "$as_me:$LINENO: result: no" >&5
9941echo "${ECHO_T}no" >&6
2429c060 9942fi
c6b750e1 9943
2429c060
PB
9944 fi
9945 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9946 done
9947fi
c6b750e1 9948
2429c060
PB
9949if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9950 set dummy lipo
9951 if test $build = $target ; then
9952 LIPO_FOR_TARGET="$2"
9953 else
9954 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9955 fi
d3f5afc4
MS
9956else
9957 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9958fi
9959
3a35eeb3
PB
9960else
9961 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9962fi
9963
9964
9965
9966
9967if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9968 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9969 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9970echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9971 if test -x $with_build_time_tools/nm; then
9972 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9973 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9974 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9975echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9976 else
c6b750e1
DJ
9977 echo "$as_me:$LINENO: result: no" >&5
9978echo "${ECHO_T}no" >&6
3a35eeb3 9979 fi
2429c060
PB
9980 elif test $build != $host && test $have_gcc_for_target = yes; then
9981 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
9982 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9983 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
9984 fi
9985fi
c6b750e1 9986if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9987 # Extract the first word of "nm", so it can be a program name with args.
9988set dummy nm; ac_word=$2
c6b750e1
DJ
9989echo "$as_me:$LINENO: checking for $ac_word" >&5
9990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9991if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9993else
c6b750e1
DJ
9994 case $NM_FOR_TARGET in
9995 [\\/]* | ?:[\\/]*)
2429c060
PB
9996 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9997 ;;
2429c060 9998 *)
c6b750e1
DJ
9999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000for as_dir in $gcc_cv_tool_dirs
10001do
10002 IFS=$as_save_IFS
10003 test -z "$as_dir" && as_dir=.
10004 for ac_exec_ext in '' $ac_executable_extensions; do
10005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10006 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10008 break 2
10009 fi
10010done
10011done
10012
2429c060
PB
10013 ;;
10014esac
10015fi
c6b750e1
DJ
10016NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10017
2429c060 10018if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10019 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10020echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10021else
c6b750e1
DJ
10022 echo "$as_me:$LINENO: result: no" >&5
10023echo "${ECHO_T}no" >&6
2429c060
PB
10024fi
10025
10026fi
10027if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10028
10029
10030if test -n "$NM_FOR_TARGET"; then
10031 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10032elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10033 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10034fi
10035
10036if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10037 for ncn_progname in nm; do
10038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10039set dummy ${ncn_progname}; ac_word=$2
10040echo "$as_me:$LINENO: checking for $ac_word" >&5
10041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10042if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10044else
10045 if test -n "$NM_FOR_TARGET"; then
10046 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10047else
10048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049for as_dir in $PATH
10050do
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10055 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 break 2
10058 fi
10059done
10060done
10061
10062fi
10063fi
10064NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10065if test -n "$NM_FOR_TARGET"; then
10066 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10067echo "${ECHO_T}$NM_FOR_TARGET" >&6
10068else
10069 echo "$as_me:$LINENO: result: no" >&5
10070echo "${ECHO_T}no" >&6
10071fi
10072
10073 done
10074fi
10075
10076if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10077 for ncn_progname in nm; do
c6b750e1
DJ
10078 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10079echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10080 if test -x $with_build_time_tools/${ncn_progname}; then
10081 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10082 echo "$as_me:$LINENO: result: yes" >&5
10083echo "${ECHO_T}yes" >&6
2429c060
PB
10084 break
10085 else
c6b750e1
DJ
10086 echo "$as_me:$LINENO: result: no" >&5
10087echo "${ECHO_T}no" >&6
2429c060
PB
10088 fi
10089 done
10090fi
10091
10092if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10093 for ncn_progname in nm; do
10094 if test -n "$ncn_target_tool_prefix"; then
10095 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10096set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10097echo "$as_me:$LINENO: checking for $ac_word" >&5
10098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10099if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10101else
55db4b87
PB
10102 if test -n "$NM_FOR_TARGET"; then
10103 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10104else
c6b750e1
DJ
10105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106for as_dir in $PATH
10107do
10108 IFS=$as_save_IFS
10109 test -z "$as_dir" && as_dir=.
10110 for ac_exec_ext in '' $ac_executable_extensions; do
10111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10112 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10114 break 2
10115 fi
10116done
10117done
10118
859789af
AC
10119fi
10120fi
c6b750e1 10121NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10122if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10123 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10124echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10125else
c6b750e1
DJ
10126 echo "$as_me:$LINENO: result: no" >&5
10127echo "${ECHO_T}no" >&6
859789af
AC
10128fi
10129
2429c060
PB
10130 fi
10131 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10132 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10133set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10134echo "$as_me:$LINENO: checking for $ac_word" >&5
10135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10136if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10138else
05cbd757
PB
10139 if test -n "$NM_FOR_TARGET"; then
10140 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10141else
c6b750e1
DJ
10142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10143for as_dir in $PATH
10144do
10145 IFS=$as_save_IFS
10146 test -z "$as_dir" && as_dir=.
10147 for ac_exec_ext in '' $ac_executable_extensions; do
10148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10149 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10151 break 2
10152 fi
10153done
10154done
10155
859789af
AC
10156fi
10157fi
c6b750e1 10158NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10159if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10160 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10161echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10162else
c6b750e1
DJ
10163 echo "$as_me:$LINENO: result: no" >&5
10164echo "${ECHO_T}no" >&6
859789af 10165fi
c6b750e1 10166
2429c060
PB
10167 fi
10168 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10169 done
10170fi
c6b750e1 10171
05cbd757
PB
10172if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10173 set dummy nm
10174 if test $build = $target ; then
10175 NM_FOR_TARGET="$2"
859789af 10176 else
05cbd757 10177 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10178 fi
d3f5afc4
MS
10179else
10180 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10181fi
10182
3a35eeb3
PB
10183else
10184 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10185fi
10186
10187
10188
10189
10190if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10191 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10192 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10193echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10194 if test -x $with_build_time_tools/objdump; then
10195 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10196 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10197 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10198echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10199 else
c6b750e1
DJ
10200 echo "$as_me:$LINENO: result: no" >&5
10201echo "${ECHO_T}no" >&6
3a35eeb3 10202 fi
2429c060
PB
10203 elif test $build != $host && test $have_gcc_for_target = yes; then
10204 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10205 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10206 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10207 fi
10208fi
c6b750e1 10209if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10210 # Extract the first word of "objdump", so it can be a program name with args.
10211set dummy objdump; ac_word=$2
c6b750e1
DJ
10212echo "$as_me:$LINENO: checking for $ac_word" >&5
10213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10214if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10216else
c6b750e1
DJ
10217 case $OBJDUMP_FOR_TARGET in
10218 [\\/]* | ?:[\\/]*)
2429c060
PB
10219 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10220 ;;
2429c060 10221 *)
c6b750e1
DJ
10222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223for as_dir in $gcc_cv_tool_dirs
10224do
10225 IFS=$as_save_IFS
10226 test -z "$as_dir" && as_dir=.
10227 for ac_exec_ext in '' $ac_executable_extensions; do
10228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10229 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10231 break 2
10232 fi
10233done
10234done
10235
2429c060
PB
10236 ;;
10237esac
10238fi
c6b750e1
DJ
10239OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10240
2429c060 10241if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10242 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10243echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10244else
c6b750e1
DJ
10245 echo "$as_me:$LINENO: result: no" >&5
10246echo "${ECHO_T}no" >&6
2429c060
PB
10247fi
10248
10249fi
10250if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10251
10252
10253if test -n "$OBJDUMP_FOR_TARGET"; then
10254 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10255elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10256 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10257fi
10258
10259if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10260 for ncn_progname in objdump; do
10261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10262set dummy ${ncn_progname}; ac_word=$2
10263echo "$as_me:$LINENO: checking for $ac_word" >&5
10264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10265if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10267else
10268 if test -n "$OBJDUMP_FOR_TARGET"; then
10269 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10270else
10271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10272for as_dir in $PATH
10273do
10274 IFS=$as_save_IFS
10275 test -z "$as_dir" && as_dir=.
10276 for ac_exec_ext in '' $ac_executable_extensions; do
10277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10278 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10280 break 2
10281 fi
10282done
10283done
10284
10285fi
10286fi
10287OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10288if test -n "$OBJDUMP_FOR_TARGET"; then
10289 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10290echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10291else
10292 echo "$as_me:$LINENO: result: no" >&5
10293echo "${ECHO_T}no" >&6
10294fi
10295
10296 done
10297fi
10298
10299if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10300 for ncn_progname in objdump; do
c6b750e1
DJ
10301 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10302echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10303 if test -x $with_build_time_tools/${ncn_progname}; then
10304 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10305 echo "$as_me:$LINENO: result: yes" >&5
10306echo "${ECHO_T}yes" >&6
2429c060
PB
10307 break
10308 else
c6b750e1
DJ
10309 echo "$as_me:$LINENO: result: no" >&5
10310echo "${ECHO_T}no" >&6
2429c060
PB
10311 fi
10312 done
10313fi
10314
10315if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10316 for ncn_progname in objdump; do
10317 if test -n "$ncn_target_tool_prefix"; then
10318 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10319set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10320echo "$as_me:$LINENO: checking for $ac_word" >&5
10321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10322if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10324else
10325 if test -n "$OBJDUMP_FOR_TARGET"; then
10326 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10327else
c6b750e1
DJ
10328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10329for as_dir in $PATH
10330do
10331 IFS=$as_save_IFS
10332 test -z "$as_dir" && as_dir=.
10333 for ac_exec_ext in '' $ac_executable_extensions; do
10334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10335 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10337 break 2
10338 fi
10339done
10340done
10341
5ae72758
DJ
10342fi
10343fi
c6b750e1 10344OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10345if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10346 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10347echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10348else
c6b750e1
DJ
10349 echo "$as_me:$LINENO: result: no" >&5
10350echo "${ECHO_T}no" >&6
5ae72758
DJ
10351fi
10352
2429c060
PB
10353 fi
10354 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10356set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10357echo "$as_me:$LINENO: checking for $ac_word" >&5
10358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10359if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10361else
10362 if test -n "$OBJDUMP_FOR_TARGET"; then
10363 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10364else
c6b750e1
DJ
10365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366for as_dir in $PATH
10367do
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10375 fi
10376done
10377done
10378
5ae72758
DJ
10379fi
10380fi
c6b750e1 10381OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10382if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10383 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10384echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10385else
c6b750e1
DJ
10386 echo "$as_me:$LINENO: result: no" >&5
10387echo "${ECHO_T}no" >&6
5ae72758 10388fi
c6b750e1 10389
2429c060
PB
10390 fi
10391 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10392 done
10393fi
c6b750e1 10394
5ae72758
DJ
10395if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10396 set dummy objdump
10397 if test $build = $target ; then
10398 OBJDUMP_FOR_TARGET="$2"
10399 else
10400 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10401 fi
d3f5afc4
MS
10402else
10403 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10404fi
10405
3a35eeb3
PB
10406else
10407 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10408fi
10409
10410
10411
10412
10413if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10414 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10415 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10416echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10417 if test -x $with_build_time_tools/ranlib; then
10418 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10419 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10420 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10421echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10422 else
c6b750e1
DJ
10423 echo "$as_me:$LINENO: result: no" >&5
10424echo "${ECHO_T}no" >&6
3a35eeb3 10425 fi
2429c060
PB
10426 elif test $build != $host && test $have_gcc_for_target = yes; then
10427 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10428 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10429 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10430 fi
10431fi
c6b750e1 10432if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10433 # Extract the first word of "ranlib", so it can be a program name with args.
10434set dummy ranlib; ac_word=$2
c6b750e1
DJ
10435echo "$as_me:$LINENO: checking for $ac_word" >&5
10436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10437if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10439else
c6b750e1
DJ
10440 case $RANLIB_FOR_TARGET in
10441 [\\/]* | ?:[\\/]*)
2429c060
PB
10442 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10443 ;;
2429c060 10444 *)
c6b750e1
DJ
10445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446for as_dir in $gcc_cv_tool_dirs
10447do
10448 IFS=$as_save_IFS
10449 test -z "$as_dir" && as_dir=.
10450 for ac_exec_ext in '' $ac_executable_extensions; do
10451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10452 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10454 break 2
10455 fi
10456done
10457done
10458
2429c060
PB
10459 ;;
10460esac
10461fi
c6b750e1
DJ
10462RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10463
2429c060 10464if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10465 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10466echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10467else
c6b750e1
DJ
10468 echo "$as_me:$LINENO: result: no" >&5
10469echo "${ECHO_T}no" >&6
2429c060
PB
10470fi
10471
10472fi
10473if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10474
10475
10476if test -n "$RANLIB_FOR_TARGET"; then
10477 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10478elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10479 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10480fi
10481
10482if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10483 for ncn_progname in ranlib; do
10484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10485set dummy ${ncn_progname}; ac_word=$2
10486echo "$as_me:$LINENO: checking for $ac_word" >&5
10487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10488if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10490else
10491 if test -n "$RANLIB_FOR_TARGET"; then
10492 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10493else
10494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495for as_dir in $PATH
10496do
10497 IFS=$as_save_IFS
10498 test -z "$as_dir" && as_dir=.
10499 for ac_exec_ext in '' $ac_executable_extensions; do
10500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10501 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10503 break 2
10504 fi
10505done
10506done
10507
10508fi
10509fi
10510RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10511if test -n "$RANLIB_FOR_TARGET"; then
10512 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10513echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10514else
10515 echo "$as_me:$LINENO: result: no" >&5
10516echo "${ECHO_T}no" >&6
10517fi
10518
10519 done
10520fi
10521
10522if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10523 for ncn_progname in ranlib; do
c6b750e1
DJ
10524 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10525echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10526 if test -x $with_build_time_tools/${ncn_progname}; then
10527 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10528 echo "$as_me:$LINENO: result: yes" >&5
10529echo "${ECHO_T}yes" >&6
2429c060
PB
10530 break
10531 else
c6b750e1
DJ
10532 echo "$as_me:$LINENO: result: no" >&5
10533echo "${ECHO_T}no" >&6
2429c060
PB
10534 fi
10535 done
10536fi
10537
10538if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10539 for ncn_progname in ranlib; do
10540 if test -n "$ncn_target_tool_prefix"; then
10541 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10542set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10543echo "$as_me:$LINENO: checking for $ac_word" >&5
10544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10545if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10547else
55db4b87
PB
10548 if test -n "$RANLIB_FOR_TARGET"; then
10549 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10550else
c6b750e1
DJ
10551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552for as_dir in $PATH
10553do
10554 IFS=$as_save_IFS
10555 test -z "$as_dir" && as_dir=.
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10558 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10560 break 2
10561 fi
10562done
10563done
10564
859789af
AC
10565fi
10566fi
c6b750e1 10567RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10568if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10569 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10570echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10571else
c6b750e1
DJ
10572 echo "$as_me:$LINENO: result: no" >&5
10573echo "${ECHO_T}no" >&6
859789af
AC
10574fi
10575
2429c060
PB
10576 fi
10577 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10579set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10580echo "$as_me:$LINENO: checking for $ac_word" >&5
10581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10582if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10584else
05cbd757
PB
10585 if test -n "$RANLIB_FOR_TARGET"; then
10586 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10587else
c6b750e1
DJ
10588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589for as_dir in $PATH
10590do
10591 IFS=$as_save_IFS
10592 test -z "$as_dir" && as_dir=.
10593 for ac_exec_ext in '' $ac_executable_extensions; do
10594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10595 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10597 break 2
10598 fi
10599done
10600done
10601
859789af
AC
10602fi
10603fi
c6b750e1 10604RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10605if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10606 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10607echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10608else
c6b750e1
DJ
10609 echo "$as_me:$LINENO: result: no" >&5
10610echo "${ECHO_T}no" >&6
859789af 10611fi
c6b750e1 10612
2429c060
PB
10613 fi
10614 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10615 done
10616fi
c6b750e1 10617
2429c060
PB
10618if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10619 set dummy ranlib
10620 if test $build = $target ; then
10621 RANLIB_FOR_TARGET="$2"
10622 else
10623 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10624 fi
d3f5afc4
MS
10625else
10626 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10627fi
05cbd757 10628
3a35eeb3
PB
10629else
10630 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10631fi
10632
2429c060
PB
10633
10634
10635
10636if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10637 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10638 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10639echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10640 if test -x $with_build_time_tools/strip; then
10641 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10642 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10643 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10644echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10645 else
c6b750e1
DJ
10646 echo "$as_me:$LINENO: result: no" >&5
10647echo "${ECHO_T}no" >&6
3a35eeb3 10648 fi
2429c060
PB
10649 elif test $build != $host && test $have_gcc_for_target = yes; then
10650 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10651 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10652 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10653 fi
10654fi
c6b750e1 10655if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10656 # Extract the first word of "strip", so it can be a program name with args.
10657set dummy strip; ac_word=$2
c6b750e1
DJ
10658echo "$as_me:$LINENO: checking for $ac_word" >&5
10659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10660if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10662else
c6b750e1
DJ
10663 case $STRIP_FOR_TARGET in
10664 [\\/]* | ?:[\\/]*)
2429c060
PB
10665 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10666 ;;
2429c060 10667 *)
c6b750e1
DJ
10668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669for as_dir in $gcc_cv_tool_dirs
10670do
10671 IFS=$as_save_IFS
10672 test -z "$as_dir" && as_dir=.
10673 for ac_exec_ext in '' $ac_executable_extensions; do
10674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10675 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10677 break 2
10678 fi
10679done
10680done
10681
2429c060
PB
10682 ;;
10683esac
10684fi
c6b750e1
DJ
10685STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10686
2429c060 10687if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10688 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10689echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10690else
c6b750e1
DJ
10691 echo "$as_me:$LINENO: result: no" >&5
10692echo "${ECHO_T}no" >&6
2429c060
PB
10693fi
10694
10695fi
10696if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10697
10698
10699if test -n "$STRIP_FOR_TARGET"; then
10700 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10701elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10702 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10703fi
10704
10705if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10706 for ncn_progname in strip; do
10707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10708set dummy ${ncn_progname}; ac_word=$2
10709echo "$as_me:$LINENO: checking for $ac_word" >&5
10710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10711if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10713else
10714 if test -n "$STRIP_FOR_TARGET"; then
10715 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10716else
10717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718for as_dir in $PATH
10719do
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10724 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10726 break 2
10727 fi
10728done
10729done
10730
10731fi
10732fi
10733STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10734if test -n "$STRIP_FOR_TARGET"; then
10735 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10736echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10737else
10738 echo "$as_me:$LINENO: result: no" >&5
10739echo "${ECHO_T}no" >&6
10740fi
10741
10742 done
10743fi
10744
10745if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10746 for ncn_progname in strip; do
c6b750e1
DJ
10747 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10748echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10749 if test -x $with_build_time_tools/${ncn_progname}; then
10750 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10751 echo "$as_me:$LINENO: result: yes" >&5
10752echo "${ECHO_T}yes" >&6
2429c060
PB
10753 break
10754 else
c6b750e1
DJ
10755 echo "$as_me:$LINENO: result: no" >&5
10756echo "${ECHO_T}no" >&6
2429c060
PB
10757 fi
10758 done
10759fi
10760
10761if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10762 for ncn_progname in strip; do
10763 if test -n "$ncn_target_tool_prefix"; then
10764 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10765set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10766echo "$as_me:$LINENO: checking for $ac_word" >&5
10767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10768if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10770else
10771 if test -n "$STRIP_FOR_TARGET"; then
10772 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10773else
10774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10775for as_dir in $PATH
10776do
10777 IFS=$as_save_IFS
10778 test -z "$as_dir" && as_dir=.
10779 for ac_exec_ext in '' $ac_executable_extensions; do
10780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10781 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10783 break 2
10784 fi
10785done
10786done
10787
7e0f7140
GK
10788fi
10789fi
c6b750e1 10790STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10791if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10792 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10793echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10794else
c6b750e1
DJ
10795 echo "$as_me:$LINENO: result: no" >&5
10796echo "${ECHO_T}no" >&6
7e0f7140
GK
10797fi
10798
2429c060
PB
10799 fi
10800 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10802set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10803echo "$as_me:$LINENO: checking for $ac_word" >&5
10804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10805if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10807else
10808 if test -n "$STRIP_FOR_TARGET"; then
10809 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10810else
c6b750e1
DJ
10811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812for as_dir in $PATH
10813do
10814 IFS=$as_save_IFS
10815 test -z "$as_dir" && as_dir=.
10816 for ac_exec_ext in '' $ac_executable_extensions; do
10817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10818 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10820 break 2
10821 fi
10822done
10823done
10824
7e0f7140
GK
10825fi
10826fi
c6b750e1 10827STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10828if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10829 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10830echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10831else
c6b750e1
DJ
10832 echo "$as_me:$LINENO: result: no" >&5
10833echo "${ECHO_T}no" >&6
7e0f7140 10834fi
c6b750e1 10835
2429c060
PB
10836 fi
10837 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10838 done
10839fi
c6b750e1 10840
7e0f7140
GK
10841if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10842 set dummy strip
10843 if test $build = $target ; then
10844 STRIP_FOR_TARGET="$2"
10845 else
10846 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10847 fi
d3f5afc4
MS
10848else
10849 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10850fi
10851
3a35eeb3
PB
10852else
10853 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10854fi
10855
10856
10857
10858
10859if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10860 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10861 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10862echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10863 if test -x $with_build_time_tools/windres; then
10864 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10865 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10866 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10867echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10868 else
c6b750e1
DJ
10869 echo "$as_me:$LINENO: result: no" >&5
10870echo "${ECHO_T}no" >&6
3a35eeb3 10871 fi
2429c060
PB
10872 elif test $build != $host && test $have_gcc_for_target = yes; then
10873 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10874 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10875 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10876 fi
10877fi
c6b750e1 10878if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10879 # Extract the first word of "windres", so it can be a program name with args.
10880set dummy windres; ac_word=$2
c6b750e1
DJ
10881echo "$as_me:$LINENO: checking for $ac_word" >&5
10882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10883if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10885else
c6b750e1
DJ
10886 case $WINDRES_FOR_TARGET in
10887 [\\/]* | ?:[\\/]*)
2429c060
PB
10888 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10889 ;;
2429c060 10890 *)
c6b750e1
DJ
10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892for as_dir in $gcc_cv_tool_dirs
10893do
10894 IFS=$as_save_IFS
10895 test -z "$as_dir" && as_dir=.
10896 for ac_exec_ext in '' $ac_executable_extensions; do
10897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10898 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10900 break 2
10901 fi
10902done
10903done
10904
2429c060
PB
10905 ;;
10906esac
10907fi
c6b750e1
DJ
10908WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10909
2429c060 10910if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10911 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10912echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10913else
c6b750e1
DJ
10914 echo "$as_me:$LINENO: result: no" >&5
10915echo "${ECHO_T}no" >&6
2429c060
PB
10916fi
10917
10918fi
10919if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10920
10921
10922if test -n "$WINDRES_FOR_TARGET"; then
10923 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10924elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10925 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10926fi
10927
10928if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10929 for ncn_progname in windres; do
10930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10931set dummy ${ncn_progname}; ac_word=$2
10932echo "$as_me:$LINENO: checking for $ac_word" >&5
10933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10934if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936else
10937 if test -n "$WINDRES_FOR_TARGET"; then
10938 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10939else
10940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941for as_dir in $PATH
10942do
10943 IFS=$as_save_IFS
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10947 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 break 2
10950 fi
10951done
10952done
10953
10954fi
10955fi
10956WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10957if test -n "$WINDRES_FOR_TARGET"; then
10958 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10959echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10960else
10961 echo "$as_me:$LINENO: result: no" >&5
10962echo "${ECHO_T}no" >&6
10963fi
10964
10965 done
10966fi
10967
10968if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10969 for ncn_progname in windres; do
c6b750e1
DJ
10970 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10971echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10972 if test -x $with_build_time_tools/${ncn_progname}; then
10973 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10974 echo "$as_me:$LINENO: result: yes" >&5
10975echo "${ECHO_T}yes" >&6
2429c060
PB
10976 break
10977 else
c6b750e1
DJ
10978 echo "$as_me:$LINENO: result: no" >&5
10979echo "${ECHO_T}no" >&6
2429c060
PB
10980 fi
10981 done
10982fi
10983
10984if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10985 for ncn_progname in windres; do
10986 if test -n "$ncn_target_tool_prefix"; then
10987 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10988set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10989echo "$as_me:$LINENO: checking for $ac_word" >&5
10990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10991if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10993else
55db4b87
PB
10994 if test -n "$WINDRES_FOR_TARGET"; then
10995 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10996else
c6b750e1
DJ
10997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998for as_dir in $PATH
10999do
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11004 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11006 break 2
11007 fi
11008done
11009done
11010
859789af
AC
11011fi
11012fi
c6b750e1 11013WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11014if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11015 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11016echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11017else
c6b750e1
DJ
11018 echo "$as_me:$LINENO: result: no" >&5
11019echo "${ECHO_T}no" >&6
859789af
AC
11020fi
11021
2429c060
PB
11022 fi
11023 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11025set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11026echo "$as_me:$LINENO: checking for $ac_word" >&5
11027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11028if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11030else
05cbd757
PB
11031 if test -n "$WINDRES_FOR_TARGET"; then
11032 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11033else
c6b750e1
DJ
11034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035for as_dir in $PATH
11036do
11037 IFS=$as_save_IFS
11038 test -z "$as_dir" && as_dir=.
11039 for ac_exec_ext in '' $ac_executable_extensions; do
11040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11041 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11043 break 2
11044 fi
11045done
11046done
11047
859789af
AC
11048fi
11049fi
c6b750e1 11050WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11051if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11052 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11053echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11054else
c6b750e1
DJ
11055 echo "$as_me:$LINENO: result: no" >&5
11056echo "${ECHO_T}no" >&6
859789af 11057fi
c6b750e1 11058
2429c060
PB
11059 fi
11060 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11061 done
11062fi
c6b750e1 11063
05cbd757
PB
11064if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11065 set dummy windres
11066 if test $build = $target ; then
11067 WINDRES_FOR_TARGET="$2"
859789af 11068 else
05cbd757 11069 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11070 fi
d3f5afc4
MS
11071else
11072 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11073fi
11074
3a35eeb3
PB
11075else
11076 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11077fi
11078
852e5f18 11079
0c24b341
NC
11080
11081
11082if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11083 if test -n "$with_build_time_tools"; then
11084 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11085echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11086 if test -x $with_build_time_tools/windmc; then
11087 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11088 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11089 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11090echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11091 else
11092 echo "$as_me:$LINENO: result: no" >&5
11093echo "${ECHO_T}no" >&6
11094 fi
11095 elif test $build != $host && test $have_gcc_for_target = yes; then
11096 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11097 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11098 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11099 fi
11100fi
11101if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11102 # Extract the first word of "windmc", so it can be a program name with args.
11103set dummy windmc; ac_word=$2
11104echo "$as_me:$LINENO: checking for $ac_word" >&5
11105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11106if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11108else
11109 case $WINDMC_FOR_TARGET in
11110 [\\/]* | ?:[\\/]*)
11111 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11112 ;;
11113 *)
11114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11115for as_dir in $gcc_cv_tool_dirs
11116do
11117 IFS=$as_save_IFS
11118 test -z "$as_dir" && as_dir=.
11119 for ac_exec_ext in '' $ac_executable_extensions; do
11120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11121 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11123 break 2
11124 fi
11125done
11126done
11127
11128 ;;
11129esac
11130fi
11131WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11132
11133if test -n "$WINDMC_FOR_TARGET"; then
11134 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11135echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11136else
11137 echo "$as_me:$LINENO: result: no" >&5
11138echo "${ECHO_T}no" >&6
11139fi
11140
11141fi
11142if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11143
11144
11145if test -n "$WINDMC_FOR_TARGET"; then
11146 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11147elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11148 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11149fi
11150
11151if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11152 for ncn_progname in windmc; do
11153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11154set dummy ${ncn_progname}; ac_word=$2
11155echo "$as_me:$LINENO: checking for $ac_word" >&5
11156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11157if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11159else
11160 if test -n "$WINDMC_FOR_TARGET"; then
11161 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11162else
11163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164for as_dir in $PATH
11165do
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11170 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 break 2
11173 fi
11174done
11175done
11176
11177fi
11178fi
11179WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11180if test -n "$WINDMC_FOR_TARGET"; then
11181 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11182echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11183else
11184 echo "$as_me:$LINENO: result: no" >&5
11185echo "${ECHO_T}no" >&6
11186fi
11187
11188 done
11189fi
11190
11191if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11192 for ncn_progname in windmc; do
11193 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11194echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11195 if test -x $with_build_time_tools/${ncn_progname}; then
11196 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11197 echo "$as_me:$LINENO: result: yes" >&5
11198echo "${ECHO_T}yes" >&6
11199 break
11200 else
11201 echo "$as_me:$LINENO: result: no" >&5
11202echo "${ECHO_T}no" >&6
11203 fi
11204 done
11205fi
11206
11207if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11208 for ncn_progname in windmc; do
11209 if test -n "$ncn_target_tool_prefix"; then
11210 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11211set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11212echo "$as_me:$LINENO: checking for $ac_word" >&5
11213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11214if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216else
11217 if test -n "$WINDMC_FOR_TARGET"; then
11218 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11219else
11220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221for as_dir in $PATH
11222do
11223 IFS=$as_save_IFS
11224 test -z "$as_dir" && as_dir=.
11225 for ac_exec_ext in '' $ac_executable_extensions; do
11226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11227 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11229 break 2
11230 fi
11231done
11232done
11233
11234fi
11235fi
11236WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11237if test -n "$WINDMC_FOR_TARGET"; then
11238 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11239echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11240else
11241 echo "$as_me:$LINENO: result: no" >&5
11242echo "${ECHO_T}no" >&6
11243fi
11244
11245 fi
11246 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11248set dummy ${ncn_progname}; ac_word=$2
11249echo "$as_me:$LINENO: checking for $ac_word" >&5
11250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11251if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11253else
11254 if test -n "$WINDMC_FOR_TARGET"; then
11255 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11256else
11257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11258for as_dir in $PATH
11259do
11260 IFS=$as_save_IFS
11261 test -z "$as_dir" && as_dir=.
11262 for ac_exec_ext in '' $ac_executable_extensions; do
11263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11264 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11266 break 2
11267 fi
11268done
11269done
11270
11271fi
11272fi
11273WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11274if test -n "$WINDMC_FOR_TARGET"; then
11275 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11276echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11277else
11278 echo "$as_me:$LINENO: result: no" >&5
11279echo "${ECHO_T}no" >&6
11280fi
11281
11282 fi
11283 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11284 done
11285fi
11286
11287if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11288 set dummy windmc
11289 if test $build = $target ; then
11290 WINDMC_FOR_TARGET="$2"
11291 else
11292 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11293 fi
11294else
11295 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11296fi
11297
11298else
11299 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11300fi
11301
11302
be01d343
PB
11303RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11304
c6b750e1
DJ
11305echo "$as_me:$LINENO: checking where to find the target ar" >&5
11306echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11307if test "x${build}" != "x${host}" ; then
2429c060
PB
11308 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11309 # We already found the complete path
b8025f34
AS
11310 ac_dir=`dirname $AR_FOR_TARGET`
11311 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11312echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11313 else
11314 # Canadian cross, just use what we found
c6b750e1
DJ
11315 echo "$as_me:$LINENO: result: pre-installed" >&5
11316echo "${ECHO_T}pre-installed" >&6
2429c060 11317 fi
be01d343
PB
11318else
11319 ok=yes
11320 case " ${configdirs} " in
11321 *" binutils "*) ;;
11322 *) ok=no ;;
11323 esac
c6b750e1 11324
be01d343
PB
11325 if test $ok = yes; then
11326 # An in-tree tool is available and we can use it
11327 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11328 echo "$as_me:$LINENO: result: just compiled" >&5
11329echo "${ECHO_T}just compiled" >&6
2429c060
PB
11330 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11331 # We already found the complete path
b8025f34
AS
11332 ac_dir=`dirname $AR_FOR_TARGET`
11333 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11334echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11335 elif test "x$target" = "x$host"; then
11336 # We can use an host tool
11337 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11338 echo "$as_me:$LINENO: result: host tool" >&5
11339echo "${ECHO_T}host tool" >&6
be01d343
PB
11340 else
11341 # We need a cross tool
c6b750e1
DJ
11342 echo "$as_me:$LINENO: result: pre-installed" >&5
11343echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11344 fi
11345fi
4b900473 11346
c6b750e1
DJ
11347echo "$as_me:$LINENO: checking where to find the target as" >&5
11348echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11349if test "x${build}" != "x${host}" ; then
2429c060
PB
11350 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11351 # We already found the complete path
b8025f34
AS
11352 ac_dir=`dirname $AS_FOR_TARGET`
11353 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11354echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11355 else
11356 # Canadian cross, just use what we found
c6b750e1
DJ
11357 echo "$as_me:$LINENO: result: pre-installed" >&5
11358echo "${ECHO_T}pre-installed" >&6
2429c060 11359 fi
be01d343
PB
11360else
11361 ok=yes
11362 case " ${configdirs} " in
11363 *" gas "*) ;;
11364 *) ok=no ;;
11365 esac
c6b750e1 11366
be01d343
PB
11367 if test $ok = yes; then
11368 # An in-tree tool is available and we can use it
11369 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11370 echo "$as_me:$LINENO: result: just compiled" >&5
11371echo "${ECHO_T}just compiled" >&6
2429c060
PB
11372 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11373 # We already found the complete path
b8025f34
AS
11374 ac_dir=`dirname $AS_FOR_TARGET`
11375 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11376echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11377 elif test "x$target" = "x$host"; then
11378 # We can use an host tool
11379 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11380 echo "$as_me:$LINENO: result: host tool" >&5
11381echo "${ECHO_T}host tool" >&6
be01d343
PB
11382 else
11383 # We need a cross tool
c6b750e1
DJ
11384 echo "$as_me:$LINENO: result: pre-installed" >&5
11385echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11386 fi
11387fi
4b900473 11388
c6b750e1
DJ
11389echo "$as_me:$LINENO: checking where to find the target cc" >&5
11390echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11391if test "x${build}" != "x${host}" ; then
2429c060
PB
11392 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11393 # We already found the complete path
b8025f34
AS
11394 ac_dir=`dirname $CC_FOR_TARGET`
11395 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11396echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11397 else
11398 # Canadian cross, just use what we found
c6b750e1
DJ
11399 echo "$as_me:$LINENO: result: pre-installed" >&5
11400echo "${ECHO_T}pre-installed" >&6
2429c060 11401 fi
be01d343
PB
11402else
11403 ok=yes
11404 case " ${configdirs} " in
11405 *" gcc "*) ;;
11406 *) ok=no ;;
11407 esac
c6b750e1 11408
be01d343
PB
11409 if test $ok = yes; then
11410 # An in-tree tool is available and we can use it
11411 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11412 echo "$as_me:$LINENO: result: just compiled" >&5
11413echo "${ECHO_T}just compiled" >&6
2429c060
PB
11414 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11415 # We already found the complete path
b8025f34
AS
11416 ac_dir=`dirname $CC_FOR_TARGET`
11417 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11418echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11419 elif test "x$target" = "x$host"; then
11420 # We can use an host tool
11421 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11422 echo "$as_me:$LINENO: result: host tool" >&5
11423echo "${ECHO_T}host tool" >&6
be01d343
PB
11424 else
11425 # We need a cross tool
c6b750e1
DJ
11426 echo "$as_me:$LINENO: result: pre-installed" >&5
11427echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11428 fi
11429fi
4b900473 11430
c6b750e1
DJ
11431echo "$as_me:$LINENO: checking where to find the target c++" >&5
11432echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11433if test "x${build}" != "x${host}" ; then
2429c060
PB
11434 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11435 # We already found the complete path
b8025f34
AS
11436 ac_dir=`dirname $CXX_FOR_TARGET`
11437 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11438echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11439 else
11440 # Canadian cross, just use what we found
c6b750e1
DJ
11441 echo "$as_me:$LINENO: result: pre-installed" >&5
11442echo "${ECHO_T}pre-installed" >&6
2429c060 11443 fi
be01d343
PB
11444else
11445 ok=yes
11446 case " ${configdirs} " in
11447 *" gcc "*) ;;
11448 *) ok=no ;;
11449 esac
11450 case ,${enable_languages}, in
11451 *,c++,*) ;;
11452 *) ok=no ;;
11453 esac
11454 if test $ok = yes; then
11455 # An in-tree tool is available and we can use it
11456 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
c6b750e1
DJ
11457 echo "$as_me:$LINENO: result: just compiled" >&5
11458echo "${ECHO_T}just compiled" >&6
2429c060
PB
11459 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11460 # We already found the complete path
b8025f34
AS
11461 ac_dir=`dirname $CXX_FOR_TARGET`
11462 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11463echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11464 elif test "x$target" = "x$host"; then
11465 # We can use an host tool
11466 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11467 echo "$as_me:$LINENO: result: host tool" >&5
11468echo "${ECHO_T}host tool" >&6
be01d343
PB
11469 else
11470 # We need a cross tool
c6b750e1
DJ
11471 echo "$as_me:$LINENO: result: pre-installed" >&5
11472echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11473 fi
11474fi
4b900473 11475
c6b750e1
DJ
11476echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11477echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11478if test "x${build}" != "x${host}" ; then
2429c060
PB
11479 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11480 # We already found the complete path
b8025f34
AS
11481 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11482 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11483echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11484 else
11485 # Canadian cross, just use what we found
c6b750e1
DJ
11486 echo "$as_me:$LINENO: result: pre-installed" >&5
11487echo "${ECHO_T}pre-installed" >&6
2429c060 11488 fi
be01d343
PB
11489else
11490 ok=yes
11491 case " ${configdirs} " in
11492 *" gcc "*) ;;
11493 *) ok=no ;;
11494 esac
11495 case ,${enable_languages}, in
11496 *,c++,*) ;;
11497 *) ok=no ;;
11498 esac
11499 if test $ok = yes; then
11500 # An in-tree tool is available and we can use it
11501 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
c6b750e1
DJ
11502 echo "$as_me:$LINENO: result: just compiled" >&5
11503echo "${ECHO_T}just compiled" >&6
2429c060
PB
11504 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11505 # We already found the complete path
b8025f34
AS
11506 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11507 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11508echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11509 elif test "x$target" = "x$host"; then
11510 # We can use an host tool
11511 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11512 echo "$as_me:$LINENO: result: host tool" >&5
11513echo "${ECHO_T}host tool" >&6
be01d343
PB
11514 else
11515 # We need a cross tool
c6b750e1
DJ
11516 echo "$as_me:$LINENO: result: pre-installed" >&5
11517echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11518 fi
11519fi
4b900473 11520
c6b750e1
DJ
11521echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11522echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11523if test "x${build}" != "x${host}" ; then
2429c060
PB
11524 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11525 # We already found the complete path
b8025f34
AS
11526 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11527 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11528echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11529 else
11530 # Canadian cross, just use what we found
c6b750e1
DJ
11531 echo "$as_me:$LINENO: result: pre-installed" >&5
11532echo "${ECHO_T}pre-installed" >&6
2429c060 11533 fi
be01d343
PB
11534else
11535 ok=yes
11536 case " ${configdirs} " in
11537 *" binutils "*) ;;
11538 *) ok=no ;;
11539 esac
c6b750e1 11540
be01d343
PB
11541 if test $ok = yes; then
11542 # An in-tree tool is available and we can use it
11543 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11544 echo "$as_me:$LINENO: result: just compiled" >&5
11545echo "${ECHO_T}just compiled" >&6
2429c060
PB
11546 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11547 # We already found the complete path
b8025f34
AS
11548 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11549 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11550echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11551 elif test "x$target" = "x$host"; then
11552 # We can use an host tool
11553 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11554 echo "$as_me:$LINENO: result: host tool" >&5
11555echo "${ECHO_T}host tool" >&6
be01d343
PB
11556 else
11557 # We need a cross tool
c6b750e1
DJ
11558 echo "$as_me:$LINENO: result: pre-installed" >&5
11559echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11560 fi
11561fi
4b900473 11562
c6b750e1
DJ
11563echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11564echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11565if test "x${build}" != "x${host}" ; then
2429c060
PB
11566 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11567 # We already found the complete path
b8025f34
AS
11568 ac_dir=`dirname $GCC_FOR_TARGET`
11569 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11570echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11571 else
11572 # Canadian cross, just use what we found
c6b750e1
DJ
11573 echo "$as_me:$LINENO: result: pre-installed" >&5
11574echo "${ECHO_T}pre-installed" >&6
2429c060 11575 fi
be01d343
PB
11576else
11577 ok=yes
11578 case " ${configdirs} " in
11579 *" gcc "*) ;;
11580 *) ok=no ;;
11581 esac
c6b750e1 11582
be01d343
PB
11583 if test $ok = yes; then
11584 # An in-tree tool is available and we can use it
11585 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11586 echo "$as_me:$LINENO: result: just compiled" >&5
11587echo "${ECHO_T}just compiled" >&6
2429c060
PB
11588 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11589 # We already found the complete path
b8025f34
AS
11590 ac_dir=`dirname $GCC_FOR_TARGET`
11591 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11592echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11593 elif test "x$target" = "x$host"; then
11594 # We can use an host tool
11595 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11596 echo "$as_me:$LINENO: result: host tool" >&5
11597echo "${ECHO_T}host tool" >&6
be01d343
PB
11598 else
11599 # We need a cross tool
c6b750e1
DJ
11600 echo "$as_me:$LINENO: result: pre-installed" >&5
11601echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11602 fi
11603fi
4b900473 11604
c6b750e1
DJ
11605echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11606echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11607if test "x${build}" != "x${host}" ; then
2429c060
PB
11608 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11609 # We already found the complete path
b8025f34
AS
11610 ac_dir=`dirname $GCJ_FOR_TARGET`
11611 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11612echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11613 else
11614 # Canadian cross, just use what we found
c6b750e1
DJ
11615 echo "$as_me:$LINENO: result: pre-installed" >&5
11616echo "${ECHO_T}pre-installed" >&6
2429c060 11617 fi
be01d343
PB
11618else
11619 ok=yes
11620 case " ${configdirs} " in
11621 *" gcc "*) ;;
11622 *) ok=no ;;
11623 esac
11624 case ,${enable_languages}, in
11625 *,java,*) ;;
11626 *) ok=no ;;
11627 esac
11628 if test $ok = yes; then
11629 # An in-tree tool is available and we can use it
11630 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11631 echo "$as_me:$LINENO: result: just compiled" >&5
11632echo "${ECHO_T}just compiled" >&6
2429c060
PB
11633 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11634 # We already found the complete path
b8025f34
AS
11635 ac_dir=`dirname $GCJ_FOR_TARGET`
11636 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11637echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11638 elif test "x$target" = "x$host"; then
11639 # We can use an host tool
11640 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11641 echo "$as_me:$LINENO: result: host tool" >&5
11642echo "${ECHO_T}host tool" >&6
be01d343
PB
11643 else
11644 # We need a cross tool
c6b750e1
DJ
11645 echo "$as_me:$LINENO: result: pre-installed" >&5
11646echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11647 fi
11648fi
4b900473 11649
c6b750e1
DJ
11650echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11651echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11652if test "x${build}" != "x${host}" ; then
2429c060
PB
11653 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11654 # We already found the complete path
b8025f34
AS
11655 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11656 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11657echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11658 else
11659 # Canadian cross, just use what we found
c6b750e1
DJ
11660 echo "$as_me:$LINENO: result: pre-installed" >&5
11661echo "${ECHO_T}pre-installed" >&6
2429c060 11662 fi
be01d343
PB
11663else
11664 ok=yes
11665 case " ${configdirs} " in
11666 *" gcc "*) ;;
11667 *) ok=no ;;
11668 esac
11669 case ,${enable_languages}, in
11670 *,fortran,*) ;;
11671 *) ok=no ;;
11672 esac
11673 if test $ok = yes; then
11674 # An in-tree tool is available and we can use it
11675 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11676 echo "$as_me:$LINENO: result: just compiled" >&5
11677echo "${ECHO_T}just compiled" >&6
2429c060
PB
11678 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11679 # We already found the complete path
b8025f34
AS
11680 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11681 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11682echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11683 elif test "x$target" = "x$host"; then
11684 # We can use an host tool
11685 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11686 echo "$as_me:$LINENO: result: host tool" >&5
11687echo "${ECHO_T}host tool" >&6
be01d343
PB
11688 else
11689 # We need a cross tool
c6b750e1
DJ
11690 echo "$as_me:$LINENO: result: pre-installed" >&5
11691echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11692 fi
11693fi
4b900473 11694
c6b750e1
DJ
11695echo "$as_me:$LINENO: checking where to find the target ld" >&5
11696echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11697if test "x${build}" != "x${host}" ; then
2429c060
PB
11698 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11699 # We already found the complete path
b8025f34
AS
11700 ac_dir=`dirname $LD_FOR_TARGET`
11701 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11702echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11703 else
11704 # Canadian cross, just use what we found
c6b750e1
DJ
11705 echo "$as_me:$LINENO: result: pre-installed" >&5
11706echo "${ECHO_T}pre-installed" >&6
2429c060 11707 fi
be01d343
PB
11708else
11709 ok=yes
11710 case " ${configdirs} " in
11711 *" ld "*) ;;
11712 *) ok=no ;;
11713 esac
c6b750e1 11714
be01d343
PB
11715 if test $ok = yes; then
11716 # An in-tree tool is available and we can use it
11717 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11718 echo "$as_me:$LINENO: result: just compiled" >&5
11719echo "${ECHO_T}just compiled" >&6
2429c060
PB
11720 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11721 # We already found the complete path
b8025f34
AS
11722 ac_dir=`dirname $LD_FOR_TARGET`
11723 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11724echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11725 elif test "x$target" = "x$host"; then
11726 # We can use an host tool
11727 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11728 echo "$as_me:$LINENO: result: host tool" >&5
11729echo "${ECHO_T}host tool" >&6
be01d343
PB
11730 else
11731 # We need a cross tool
c6b750e1
DJ
11732 echo "$as_me:$LINENO: result: pre-installed" >&5
11733echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11734 fi
11735fi
4b900473 11736
c6b750e1
DJ
11737echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11738echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11739if test "x${build}" != "x${host}" ; then
2429c060
PB
11740 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11741 # We already found the complete path
b8025f34
AS
11742 ac_dir=`dirname $LIPO_FOR_TARGET`
11743 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11744echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11745 else
11746 # Canadian cross, just use what we found
c6b750e1
DJ
11747 echo "$as_me:$LINENO: result: pre-installed" >&5
11748echo "${ECHO_T}pre-installed" >&6
2429c060 11749 fi
be01d343 11750else
2429c060
PB
11751 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11752 # We already found the complete path
b8025f34
AS
11753 ac_dir=`dirname $LIPO_FOR_TARGET`
11754 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11755echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11756 elif test "x$target" = "x$host"; then
be01d343
PB
11757 # We can use an host tool
11758 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11759 echo "$as_me:$LINENO: result: host tool" >&5
11760echo "${ECHO_T}host tool" >&6
be01d343
PB
11761 else
11762 # We need a cross tool
c6b750e1
DJ
11763 echo "$as_me:$LINENO: result: pre-installed" >&5
11764echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11765 fi
11766fi
4b900473 11767
c6b750e1
DJ
11768echo "$as_me:$LINENO: checking where to find the target nm" >&5
11769echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11770if test "x${build}" != "x${host}" ; then
2429c060
PB
11771 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11772 # We already found the complete path
b8025f34
AS
11773 ac_dir=`dirname $NM_FOR_TARGET`
11774 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11775echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11776 else
11777 # Canadian cross, just use what we found
c6b750e1
DJ
11778 echo "$as_me:$LINENO: result: pre-installed" >&5
11779echo "${ECHO_T}pre-installed" >&6
2429c060 11780 fi
be01d343
PB
11781else
11782 ok=yes
11783 case " ${configdirs} " in
11784 *" binutils "*) ;;
11785 *) ok=no ;;
11786 esac
c6b750e1 11787
be01d343
PB
11788 if test $ok = yes; then
11789 # An in-tree tool is available and we can use it
11790 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11791 echo "$as_me:$LINENO: result: just compiled" >&5
11792echo "${ECHO_T}just compiled" >&6
2429c060
PB
11793 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11794 # We already found the complete path
b8025f34
AS
11795 ac_dir=`dirname $NM_FOR_TARGET`
11796 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11797echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11798 elif test "x$target" = "x$host"; then
11799 # We can use an host tool
11800 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11801 echo "$as_me:$LINENO: result: host tool" >&5
11802echo "${ECHO_T}host tool" >&6
be01d343
PB
11803 else
11804 # We need a cross tool
c6b750e1
DJ
11805 echo "$as_me:$LINENO: result: pre-installed" >&5
11806echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11807 fi
11808fi
4b900473 11809
c6b750e1
DJ
11810echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11811echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11812if test "x${build}" != "x${host}" ; then
2429c060
PB
11813 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11814 # We already found the complete path
b8025f34
AS
11815 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11816 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11817echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11818 else
11819 # Canadian cross, just use what we found
c6b750e1
DJ
11820 echo "$as_me:$LINENO: result: pre-installed" >&5
11821echo "${ECHO_T}pre-installed" >&6
2429c060 11822 fi
be01d343
PB
11823else
11824 ok=yes
11825 case " ${configdirs} " in
11826 *" binutils "*) ;;
11827 *) ok=no ;;
11828 esac
c6b750e1 11829
be01d343
PB
11830 if test $ok = yes; then
11831 # An in-tree tool is available and we can use it
11832 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11833 echo "$as_me:$LINENO: result: just compiled" >&5
11834echo "${ECHO_T}just compiled" >&6
2429c060
PB
11835 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11836 # We already found the complete path
b8025f34
AS
11837 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11838 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11839echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11840 elif test "x$target" = "x$host"; then
11841 # We can use an host tool
11842 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11843 echo "$as_me:$LINENO: result: host tool" >&5
11844echo "${ECHO_T}host tool" >&6
be01d343
PB
11845 else
11846 # We need a cross tool
c6b750e1
DJ
11847 echo "$as_me:$LINENO: result: pre-installed" >&5
11848echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11849 fi
11850fi
4b900473 11851
c6b750e1
DJ
11852echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11853echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11854if test "x${build}" != "x${host}" ; then
2429c060
PB
11855 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11856 # We already found the complete path
b8025f34
AS
11857 ac_dir=`dirname $RANLIB_FOR_TARGET`
11858 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11859echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11860 else
11861 # Canadian cross, just use what we found
c6b750e1
DJ
11862 echo "$as_me:$LINENO: result: pre-installed" >&5
11863echo "${ECHO_T}pre-installed" >&6
2429c060 11864 fi
be01d343
PB
11865else
11866 ok=yes
11867 case " ${configdirs} " in
11868 *" binutils "*) ;;
11869 *) ok=no ;;
11870 esac
c6b750e1 11871
be01d343
PB
11872 if test $ok = yes; then
11873 # An in-tree tool is available and we can use it
11874 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11875 echo "$as_me:$LINENO: result: just compiled" >&5
11876echo "${ECHO_T}just compiled" >&6
2429c060
PB
11877 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11878 # We already found the complete path
b8025f34
AS
11879 ac_dir=`dirname $RANLIB_FOR_TARGET`
11880 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11881echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11882 elif test "x$target" = "x$host"; then
11883 # We can use an host tool
11884 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11885 echo "$as_me:$LINENO: result: host tool" >&5
11886echo "${ECHO_T}host tool" >&6
be01d343
PB
11887 else
11888 # We need a cross tool
c6b750e1
DJ
11889 echo "$as_me:$LINENO: result: pre-installed" >&5
11890echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11891 fi
11892fi
4b900473 11893
c6b750e1
DJ
11894echo "$as_me:$LINENO: checking where to find the target strip" >&5
11895echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11896if test "x${build}" != "x${host}" ; then
2429c060
PB
11897 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11898 # We already found the complete path
b8025f34
AS
11899 ac_dir=`dirname $STRIP_FOR_TARGET`
11900 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11901echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11902 else
11903 # Canadian cross, just use what we found
c6b750e1
DJ
11904 echo "$as_me:$LINENO: result: pre-installed" >&5
11905echo "${ECHO_T}pre-installed" >&6
2429c060 11906 fi
be01d343
PB
11907else
11908 ok=yes
11909 case " ${configdirs} " in
11910 *" binutils "*) ;;
11911 *) ok=no ;;
11912 esac
c6b750e1 11913
be01d343
PB
11914 if test $ok = yes; then
11915 # An in-tree tool is available and we can use it
11916 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11917 echo "$as_me:$LINENO: result: just compiled" >&5
11918echo "${ECHO_T}just compiled" >&6
2429c060
PB
11919 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11920 # We already found the complete path
b8025f34
AS
11921 ac_dir=`dirname $STRIP_FOR_TARGET`
11922 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11923echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11924 elif test "x$target" = "x$host"; then
11925 # We can use an host tool
11926 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11927 echo "$as_me:$LINENO: result: host tool" >&5
11928echo "${ECHO_T}host tool" >&6
be01d343
PB
11929 else
11930 # We need a cross tool
c6b750e1
DJ
11931 echo "$as_me:$LINENO: result: pre-installed" >&5
11932echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11933 fi
11934fi
4b900473 11935
c6b750e1
DJ
11936echo "$as_me:$LINENO: checking where to find the target windres" >&5
11937echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11938if test "x${build}" != "x${host}" ; then
2429c060
PB
11939 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11940 # We already found the complete path
b8025f34
AS
11941 ac_dir=`dirname $WINDRES_FOR_TARGET`
11942 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11943echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11944 else
11945 # Canadian cross, just use what we found
c6b750e1
DJ
11946 echo "$as_me:$LINENO: result: pre-installed" >&5
11947echo "${ECHO_T}pre-installed" >&6
2429c060 11948 fi
be01d343
PB
11949else
11950 ok=yes
11951 case " ${configdirs} " in
11952 *" binutils "*) ;;
11953 *) ok=no ;;
11954 esac
c6b750e1 11955
be01d343
PB
11956 if test $ok = yes; then
11957 # An in-tree tool is available and we can use it
11958 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11959 echo "$as_me:$LINENO: result: just compiled" >&5
11960echo "${ECHO_T}just compiled" >&6
2429c060
PB
11961 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11962 # We already found the complete path
b8025f34
AS
11963 ac_dir=`dirname $WINDRES_FOR_TARGET`
11964 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11965echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11966 elif test "x$target" = "x$host"; then
11967 # We can use an host tool
11968 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11969 echo "$as_me:$LINENO: result: host tool" >&5
11970echo "${ECHO_T}host tool" >&6
be01d343
PB
11971 else
11972 # We need a cross tool
c6b750e1
DJ
11973 echo "$as_me:$LINENO: result: pre-installed" >&5
11974echo "${ECHO_T}pre-installed" >&6
be01d343 11975 fi
a0da8069 11976fi
54752a6b 11977
0c24b341
NC
11978echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11979echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11980if test "x${build}" != "x${host}" ; then
11981 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11982 # We already found the complete path
11983 ac_dir=`dirname $WINDMC_FOR_TARGET`
11984 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11985echo "${ECHO_T}pre-installed in $ac_dir" >&6
11986 else
11987 # Canadian cross, just use what we found
11988 echo "$as_me:$LINENO: result: pre-installed" >&5
11989echo "${ECHO_T}pre-installed" >&6
11990 fi
11991else
11992 ok=yes
11993 case " ${configdirs} " in
11994 *" binutils "*) ;;
11995 *) ok=no ;;
11996 esac
11997
11998 if test $ok = yes; then
11999 # An in-tree tool is available and we can use it
12000 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12001 echo "$as_me:$LINENO: result: just compiled" >&5
12002echo "${ECHO_T}just compiled" >&6
12003 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12004 # We already found the complete path
12005 ac_dir=`dirname $WINDMC_FOR_TARGET`
12006 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12007echo "${ECHO_T}pre-installed in $ac_dir" >&6
12008 elif test "x$target" = "x$host"; then
12009 # We can use an host tool
12010 WINDMC_FOR_TARGET='$(WINDMC)'
12011 echo "$as_me:$LINENO: result: host tool" >&5
12012echo "${ECHO_T}host tool" >&6
12013 else
12014 # We need a cross tool
12015 echo "$as_me:$LINENO: result: pre-installed" >&5
12016echo "${ECHO_T}pre-installed" >&6
12017 fi
12018fi
12019
54752a6b
NN
12020
12021
be01d343 12022
4b900473 12023
a0da8069
NN
12024# Certain tools may need extra flags.
12025AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12026RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12027NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12028
be01d343
PB
12029# When building target libraries, except in a Canadian cross, we use
12030# the same toolchain as the compiler we just built.
12031COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12032COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12033COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12034if test $host = $build; then
12035 case " $configdirs " in
12036 *" gcc "*)
12037 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12038 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12039 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12040 ;;
12041 esac
12042fi
12043
12044
12045
12046
12047
c6b750e1
DJ
12048echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12049echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12050# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12051if test "${enable_maintainer_mode+set}" = set; then
12052 enableval="$enable_maintainer_mode"
12053 USE_MAINTAINER_MODE=$enableval
12054else
12055 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12056fi;
12057echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12058echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12059
12060
12061if test "$USE_MAINTAINER_MODE" = yes; then
12062 MAINTAINER_MODE_TRUE=
12063 MAINTAINER_MODE_FALSE='#'
12064else
12065 MAINTAINER_MODE_TRUE='#'
12066 MAINTAINER_MODE_FALSE=
c6b750e1 12067fi
3d5e36ae
AO
12068MAINT=$MAINTAINER_MODE_TRUE
12069
1d39f329
NN
12070# ---------------------
12071# GCC bootstrap support
12072# ---------------------
12073
12074# Stage specific cflags for build.
12075stage1_cflags="-g"
12076case $build in
12077 vax-*-*)
12078 case ${GCC} in
12079 yes) stage1_cflags="-g -Wa,-J" ;;
12080 *) stage1_cflags="-g -J" ;;
12081 esac ;;
1d39f329
NN
12082esac
12083
1d89b610
PB
12084# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12085if test "$GCC" = yes; then
12086 saved_CFLAGS="$CFLAGS"
12087
12088 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12089 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12090 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12091echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12092 cat >conftest.$ac_ext <<_ACEOF
12093/* confdefs.h. */
12094_ACEOF
12095cat confdefs.h >>conftest.$ac_ext
12096cat >>conftest.$ac_ext <<_ACEOF
12097/* end confdefs.h. */
12098
2038f525
PB
12099#if (__GNUC__ < 3) \
12100 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12101 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12102#error http://gcc.gnu.org/PR29382
12103#endif
12104
c6b750e1
DJ
12105int
12106main ()
12107{
12108
12109 ;
12110 return 0;
12111}
12112_ACEOF
12113rm -f conftest.$ac_objext
12114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12115 (eval $ac_compile) 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -z "$ac_c_werror_flag"
12123 || test ! -s conftest.err'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest.$ac_objext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 echo "$as_me:$LINENO: result: yes" >&5
12136echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12137else
12138 echo "$as_me: failed program was:" >&5
12139sed 's/^/| /' conftest.$ac_ext >&5
12140
12141echo "$as_me:$LINENO: result: no" >&5
12142echo "${ECHO_T}no" >&6
12143fi
12144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12145
12146 CFLAGS="$saved_CFLAGS"
12147fi
12148
12149
1d39f329 12150
8a0d8a5c
PB
12151# Enable --enable-checking in stage1 of the compiler.
12152# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12153if test "${enable_stage1_checking+set}" = set; then
12154 enableval="$enable_stage1_checking"
12155 stage1_checking=--enable-checking=${enable_stage1_checking}
12156else
5566c1fa 12157 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12158 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12159else
5566c1fa 12160 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12161fi
c6b750e1 12162fi;
8a0d8a5c
PB
12163
12164
1d39f329 12165# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12166# Check whether --enable-werror or --disable-werror was given.
12167if test "${enable_werror+set}" = set; then
12168 enableval="$enable_werror"
c6b750e1 12169
1d39f329 12170else
a0323144 12171 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12172 enable_werror=yes
79fcd0ec
PB
12173else
12174 enable_werror=no
12175fi
c6b750e1 12176fi;
1a6f2dc7
NN
12177case ${enable_werror} in
12178 yes) stage2_werror_flag="--enable-werror-always" ;;
12179 *) stage2_werror_flag="" ;;
1d39f329
NN
12180esac
12181
12182
108a6f8e 12183# Flags needed to enable html installing and building
c6b750e1 12184
108a6f8e
CD
12185# Check whether --with-datarootdir or --without-datarootdir was given.
12186if test "${with_datarootdir+set}" = set; then
12187 withval="$with_datarootdir"
12188 datarootdir="\${prefix}/${withval}"
12189else
12190 datarootdir="\${prefix}/share"
c6b750e1 12191fi;
108a6f8e
CD
12192
12193
12194# Check whether --with-docdir or --without-docdir was given.
12195if test "${with_docdir+set}" = set; then
12196 withval="$with_docdir"
12197 docdir="\${prefix}/${withval}"
12198else
12199 docdir="\${datarootdir}/doc"
c6b750e1 12200fi;
108a6f8e
CD
12201
12202
a3ca38d2
DD
12203# Check whether --with-pdfdir or --without-pdfdir was given.
12204if test "${with_pdfdir+set}" = set; then
12205 withval="$with_pdfdir"
12206 pdfdir="\${prefix}/${withval}"
12207else
12208 pdfdir="\${docdir}"
12209fi;
12210
12211
108a6f8e
CD
12212# Check whether --with-htmldir or --without-htmldir was given.
12213if test "${with_htmldir+set}" = set; then
12214 withval="$with_htmldir"
12215 htmldir="\${prefix}/${withval}"
12216else
12217 htmldir="\${docdir}"
c6b750e1 12218fi;
108a6f8e
CD
12219
12220
12221
12222
12223
b8025f34 12224
c6b750e1
DJ
12225 ac_config_files="$ac_config_files Makefile"
12226cat >confcache <<\_ACEOF
a0da8069
NN
12227# This file is a shell script that caches the results of configure
12228# tests run on this system so they can be shared between configure
c6b750e1
DJ
12229# scripts and configure runs, see configure's option --config-cache.
12230# It is not useful on other systems. If it contains results you don't
12231# want to keep, you may remove or edit it.
a0da8069 12232#
c6b750e1
DJ
12233# config.status only pays attention to the cache file if you give it
12234# the --recheck option to rerun configure.
a0da8069 12235#
c6b750e1
DJ
12236# `ac_cv_env_foo' variables (set or unset) will be overridden when
12237# loading this file, other *unset* `ac_cv_foo' will be assigned the
12238# following values.
12239
12240_ACEOF
12241
a0da8069
NN
12242# The following way of writing the cache mishandles newlines in values,
12243# but we know of no workaround that is simple, portable, and efficient.
12244# So, don't put newlines in cache variables' values.
12245# Ultrix sh set writes to stderr and can't be redirected directly,
12246# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12247{
12248 (set) 2>&1 |
12249 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12250 *ac_space=\ *)
12251 # `set' does not quote correctly, so add quotes (double-quote
12252 # substitution turns \\\\ into \\, and sed turns \\ into \).
12253 sed -n \
12254 "s/'/'\\\\''/g;
12255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12256 ;;
12257 *)
12258 # `set' quotes correctly as required by POSIX, so do not add quotes.
12259 sed -n \
12260 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12261 ;;
12262 esac;
12263} |
12264 sed '
12265 t clear
12266 : clear
12267 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12268 t end
12269 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12270 : end' >>confcache
12271if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12272 if test -w $cache_file; then
c6b750e1
DJ
12273 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12274 cat confcache >$cache_file
a0da8069
NN
12275 else
12276 echo "not updating unwritable cache $cache_file"
12277 fi
852e5f18 12278fi
a0da8069 12279rm -f confcache
852e5f18 12280
a0da8069
NN
12281test "x$prefix" = xNONE && prefix=$ac_default_prefix
12282# Let make expand exec_prefix.
12283test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12284
c6b750e1
DJ
12285# VPATH may cause trouble with some makes, so we remove $(srcdir),
12286# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12287# trailing colons and then remove the whole line if VPATH becomes empty
12288# (actually we leave an empty line to preserve line numbers).
a0da8069 12289if test "x$srcdir" = x.; then
c6b750e1
DJ
12290 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12291s/:*\$(srcdir):*/:/;
12292s/:*\${srcdir}:*/:/;
12293s/:*@srcdir@:*/:/;
12294s/^\([^=]*=[ ]*\):*/\1/;
12295s/:*$//;
12296s/^[^=]*=[ ]*$//;
12297}'
a0da8069 12298fi
252b5132 12299
a0da8069
NN
12300# Transform confdefs.h into DEFS.
12301# Protect against shell expansion while executing Makefile rules.
12302# Protect against Makefile macro expansion.
c6b750e1
DJ
12303#
12304# If the first sed substitution is executed (which looks for macros that
12305# take arguments), then we branch to the quote section. Otherwise,
12306# look for a macro that doesn't take arguments.
12307cat >confdef2opt.sed <<\_ACEOF
12308t clear
12309: clear
12310s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12311t quote
12312s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12313t quote
12314d
12315: quote
12316s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12317s,\[,\\&,g
12318s,\],\\&,g
12319s,\$,$$,g
12320p
12321_ACEOF
12322# We use echo to avoid assuming a particular line-breaking character.
12323# The extra dot is to prevent the shell from consuming trailing
12324# line-breaks from the sub-command output. A line-break within
12325# single-quotes doesn't work because, if this script is created in a
12326# platform that uses two characters for line-breaks (e.g., DOS), tr
12327# would break.
12328ac_LF_and_DOT=`echo; echo .`
12329DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12330rm -f confdef2opt.sed
12331
12332
12333ac_libobjs=
12334ac_ltlibobjs=
12335for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12336 # 1. Remove the extension, and $U if already installed.
12337 ac_i=`echo "$ac_i" |
12338 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12339 # 2. Add them.
12340 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12341 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12342done
12343LIBOBJS=$ac_libobjs
852e5f18 12344
c6b750e1 12345LTLIBOBJS=$ac_ltlibobjs
376a0e54 12346
cac3d6c4 12347
c6b750e1
DJ
12348
12349: ${CONFIG_STATUS=./config.status}
12350ac_clean_files_save=$ac_clean_files
12351ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12352{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12353echo "$as_me: creating $CONFIG_STATUS" >&6;}
12354cat >$CONFIG_STATUS <<_ACEOF
12355#! $SHELL
12356# Generated by $as_me.
a0da8069 12357# Run this file to recreate the current configuration.
a0da8069 12358# Compiler output produced by configure, useful for debugging
c6b750e1 12359# configure, is in config.log if it exists.
376a0e54 12360
c6b750e1
DJ
12361debug=false
12362ac_cs_recheck=false
12363ac_cs_silent=false
12364SHELL=\${CONFIG_SHELL-$SHELL}
12365_ACEOF
12366
12367cat >>$CONFIG_STATUS <<\_ACEOF
12368## --------------------- ##
12369## M4sh Initialization. ##
12370## --------------------- ##
12371
12372# Be Bourne compatible
12373if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12374 emulate sh
12375 NULLCMD=:
12376 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12377 # is contrary to our usage. Disable this feature.
12378 alias -g '${1+"$@"}'='"$@"'
12379elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12380 set -o posix
12381fi
12382DUALCASE=1; export DUALCASE # for MKS sh
12383
12384# Support unset when possible.
12385if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12386 as_unset=unset
12387else
12388 as_unset=false
12389fi
12390
12391
12392# Work around bugs in pre-3.0 UWIN ksh.
12393$as_unset ENV MAIL MAILPATH
12394PS1='$ '
12395PS2='> '
12396PS4='+ '
12397
12398# NLS nuisances.
12399for as_var in \
12400 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12401 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12402 LC_TELEPHONE LC_TIME
12403do
12404 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12405 eval $as_var=C; export $as_var
12406 else
12407 $as_unset $as_var
12408 fi
12409done
12410
12411# Required to use basename.
12412if expr a : '\(a\)' >/dev/null 2>&1; then
12413 as_expr=expr
12414else
12415 as_expr=false
12416fi
12417
12418if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12419 as_basename=basename
12420else
12421 as_basename=false
12422fi
12423
12424
12425# Name of the executable.
12426as_me=`$as_basename "$0" ||
12427$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12428 X"$0" : 'X\(//\)$' \| \
12429 X"$0" : 'X\(/\)$' \| \
12430 . : '\(.\)' 2>/dev/null ||
12431echo X/"$0" |
12432 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12433 /^X\/\(\/\/\)$/{ s//\1/; q; }
12434 /^X\/\(\/\).*/{ s//\1/; q; }
12435 s/.*/./; q'`
12436
12437
12438# PATH needs CR, and LINENO needs CR and PATH.
12439# Avoid depending upon Character Ranges.
12440as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12441as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12442as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12443as_cr_digits='0123456789'
12444as_cr_alnum=$as_cr_Letters$as_cr_digits
12445
12446# The user is always right.
12447if test "${PATH_SEPARATOR+set}" != set; then
12448 echo "#! /bin/sh" >conf$$.sh
12449 echo "exit 0" >>conf$$.sh
12450 chmod +x conf$$.sh
12451 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12452 PATH_SEPARATOR=';'
12453 else
12454 PATH_SEPARATOR=:
12455 fi
12456 rm -f conf$$.sh
12457fi
12458
12459
12460 as_lineno_1=$LINENO
12461 as_lineno_2=$LINENO
12462 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12463 test "x$as_lineno_1" != "x$as_lineno_2" &&
12464 test "x$as_lineno_3" = "x$as_lineno_2" || {
12465 # Find who we are. Look in the path if we contain no path at all
12466 # relative or not.
12467 case $0 in
12468 *[\\/]* ) as_myself=$0 ;;
12469 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12470for as_dir in $PATH
12471do
12472 IFS=$as_save_IFS
12473 test -z "$as_dir" && as_dir=.
12474 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12475done
12476
12477 ;;
12478 esac
12479 # We did not find ourselves, most probably we were run as `sh COMMAND'
12480 # in which case we are not to be found in the path.
12481 if test "x$as_myself" = x; then
12482 as_myself=$0
12483 fi
12484 if test ! -f "$as_myself"; then
12485 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12486echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12487 { (exit 1); exit 1; }; }
12488 fi
12489 case $CONFIG_SHELL in
12490 '')
12491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12493do
12494 IFS=$as_save_IFS
12495 test -z "$as_dir" && as_dir=.
12496 for as_base in sh bash ksh sh5; do
12497 case $as_dir in
12498 /*)
12499 if ("$as_dir/$as_base" -c '
12500 as_lineno_1=$LINENO
12501 as_lineno_2=$LINENO
12502 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12503 test "x$as_lineno_1" != "x$as_lineno_2" &&
12504 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12505 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12506 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12507 CONFIG_SHELL=$as_dir/$as_base
12508 export CONFIG_SHELL
12509 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12510 fi;;
12511 esac
12512 done
12513done
12514;;
12515 esac
12516
12517 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12518 # uniformly replaced by the line number. The first 'sed' inserts a
12519 # line-number line before each line; the second 'sed' does the real
12520 # work. The second script uses 'N' to pair each line-number line
12521 # with the numbered line, and appends trailing '-' during
12522 # substitution so that $LINENO is not a special case at line end.
12523 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12524 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12525 sed '=' <$as_myself |
12526 sed '
12527 N
12528 s,$,-,
12529 : loop
12530 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12531 t loop
12532 s,-$,,
12533 s,^['$as_cr_digits']*\n,,
12534 ' >$as_me.lineno &&
12535 chmod +x $as_me.lineno ||
12536 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12537echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12538 { (exit 1); exit 1; }; }
12539
12540 # Don't try to exec as it changes $[0], causing all sort of problems
12541 # (the dirname of $[0] is not the place where we might find the
12542 # original and so on. Autoconf is especially sensible to this).
12543 . ./$as_me.lineno
12544 # Exit status is that of the last command.
12545 exit
12546}
12547
12548
12549case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12550 *c*,-n*) ECHO_N= ECHO_C='
12551' ECHO_T=' ' ;;
12552 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12553 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12554esac
12555
12556if expr a : '\(a\)' >/dev/null 2>&1; then
12557 as_expr=expr
12558else
12559 as_expr=false
12560fi
12561
12562rm -f conf$$ conf$$.exe conf$$.file
12563echo >conf$$.file
12564if ln -s conf$$.file conf$$ 2>/dev/null; then
12565 # We could just check for DJGPP; but this test a) works b) is more generic
12566 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12567 if test -f conf$$.exe; then
12568 # Don't use ln at all; we don't have any links
12569 as_ln_s='cp -p'
12570 else
12571 as_ln_s='ln -s'
12572 fi
12573elif ln conf$$.file conf$$ 2>/dev/null; then
12574 as_ln_s=ln
12575else
12576 as_ln_s='cp -p'
12577fi
12578rm -f conf$$ conf$$.exe conf$$.file
12579
12580if mkdir -p . 2>/dev/null; then
12581 as_mkdir_p=:
12582else
12583 test -d ./-p && rmdir ./-p
12584 as_mkdir_p=false
12585fi
12586
12587as_executable_p="test -f"
12588
12589# Sed expression to map a string onto a valid CPP name.
12590as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12591
12592# Sed expression to map a string onto a valid variable name.
12593as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12594
12595
12596# IFS
12597# We need space, tab and new line, in precisely that order.
12598as_nl='
12599'
12600IFS=" $as_nl"
12601
12602# CDPATH.
12603$as_unset CDPATH
12604
12605exec 6>&1
12606
12607# Open the log real soon, to keep \$[0] and so on meaningful, and to
12608# report actual input values of CONFIG_FILES etc. instead of their
12609# values after options handling. Logging --version etc. is OK.
12610exec 5>>config.log
12611{
12612 echo
12613 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12614## Running $as_me. ##
12615_ASBOX
12616} >&5
12617cat >&5 <<_CSEOF
12618
12619This file was extended by $as_me, which was
12620generated by GNU Autoconf 2.59. Invocation command line was
12621
12622 CONFIG_FILES = $CONFIG_FILES
12623 CONFIG_HEADERS = $CONFIG_HEADERS
12624 CONFIG_LINKS = $CONFIG_LINKS
12625 CONFIG_COMMANDS = $CONFIG_COMMANDS
12626 $ $0 $@
12627
12628_CSEOF
12629echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12630echo >&5
12631_ACEOF
12632
12633# Files that config.status was made for.
12634if test -n "$ac_config_files"; then
12635 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12636fi
12637
12638if test -n "$ac_config_headers"; then
12639 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12640fi
12641
12642if test -n "$ac_config_links"; then
12643 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12644fi
12645
12646if test -n "$ac_config_commands"; then
12647 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12648fi
12649
12650cat >>$CONFIG_STATUS <<\_ACEOF
12651
12652ac_cs_usage="\
12653\`$as_me' instantiates files from templates according to the
12654current configuration.
12655
12656Usage: $0 [OPTIONS] [FILE]...
12657
12658 -h, --help print this help, then exit
12659 -V, --version print version number, then exit
12660 -q, --quiet do not print progress messages
12661 -d, --debug don't remove temporary files
12662 --recheck update $as_me by reconfiguring in the same conditions
12663 --file=FILE[:TEMPLATE]
12664 instantiate the configuration file FILE
12665
12666Configuration files:
12667$config_files
12668
12669Report bugs to <bug-autoconf@gnu.org>."
12670_ACEOF
12671
12672cat >>$CONFIG_STATUS <<_ACEOF
12673ac_cs_version="\\
12674config.status
12675configured by $0, generated by GNU Autoconf 2.59,
12676 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12677
12678Copyright (C) 2003 Free Software Foundation, Inc.
12679This config.status script is free software; the Free Software Foundation
12680gives unlimited permission to copy, distribute and modify it."
12681srcdir=$srcdir
12682INSTALL="$INSTALL"
12683_ACEOF
12684
12685cat >>$CONFIG_STATUS <<\_ACEOF
12686# If no file are specified by the user, then we need to provide default
12687# value. By we need to know if files were specified by the user.
12688ac_need_defaults=:
12689while test $# != 0
a0da8069 12690do
c6b750e1
DJ
12691 case $1 in
12692 --*=*)
12693 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12694 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12695 ac_shift=:
12696 ;;
12697 -*)
12698 ac_option=$1
12699 ac_optarg=$2
12700 ac_shift=shift
12701 ;;
12702 *) # This is not an option, so the user has probably given explicit
12703 # arguments.
12704 ac_option=$1
12705 ac_need_defaults=false;;
12706 esac
12707
12708 case $ac_option in
12709 # Handling of the options.
12710_ACEOF
12711cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12712 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12713 ac_cs_recheck=: ;;
12714 --version | --vers* | -V )
12715 echo "$ac_cs_version"; exit 0 ;;
12716 --he | --h)
12717 # Conflict between --help and --header
12718 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12719Try \`$0 --help' for more information." >&5
12720echo "$as_me: error: ambiguous option: $1
12721Try \`$0 --help' for more information." >&2;}
12722 { (exit 1); exit 1; }; };;
12723 --help | --hel | -h )
12724 echo "$ac_cs_usage"; exit 0 ;;
12725 --debug | --d* | -d )
12726 debug=: ;;
12727 --file | --fil | --fi | --f )
12728 $ac_shift
12729 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12730 ac_need_defaults=false;;
12731 --header | --heade | --head | --hea )
12732 $ac_shift
12733 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12734 ac_need_defaults=false;;
12735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12736 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12737 ac_cs_silent=: ;;
12738
12739 # This is an error.
12740 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12741Try \`$0 --help' for more information." >&5
12742echo "$as_me: error: unrecognized option: $1
12743Try \`$0 --help' for more information." >&2;}
12744 { (exit 1); exit 1; }; } ;;
12745
12746 *) ac_config_targets="$ac_config_targets $1" ;;
12747
376a0e54 12748 esac
c6b750e1 12749 shift
376a0e54
CM
12750done
12751
c6b750e1 12752ac_configure_extra_args=
376a0e54 12753
c6b750e1
DJ
12754if $ac_cs_silent; then
12755 exec 6>/dev/null
12756 ac_configure_extra_args="$ac_configure_extra_args --silent"
12757fi
376a0e54 12758
c6b750e1
DJ
12759_ACEOF
12760cat >>$CONFIG_STATUS <<_ACEOF
12761if \$ac_cs_recheck; then
12762 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12763 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12764fi
12765
12766_ACEOF
12767
12768
12769
12770
12771
12772cat >>$CONFIG_STATUS <<\_ACEOF
12773for ac_config_target in $ac_config_targets
12774do
12775 case "$ac_config_target" in
12776 # Handling of arguments.
12777 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12778 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12779echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12780 { (exit 1); exit 1; }; };;
12781 esac
12782done
12783
12784# If the user did not use the arguments to specify the items to instantiate,
12785# then the envvar interface is used. Set only those that are not.
12786# We use the long form for the default assignment because of an extremely
12787# bizarre bug on SunOS 4.1.3.
12788if $ac_need_defaults; then
12789 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12790fi
12791
12792# Have a temporary directory for convenience. Make it in the build tree
12793# simply because there is no reason to put it here, and in addition,
12794# creating and moving files from /tmp can sometimes cause problems.
12795# Create a temporary directory, and hook for its removal unless debugging.
12796$debug ||
12797{
12798 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12799 trap '{ (exit 1); exit 1; }' 1 2 13 15
12800}
12801
12802# Create a (secure) tmp directory for tmp files.
12803
12804{
12805 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12806 test -n "$tmp" && test -d "$tmp"
12807} ||
12808{
12809 tmp=./confstat$$-$RANDOM
12810 (umask 077 && mkdir $tmp)
12811} ||
12812{
12813 echo "$me: cannot create a temporary directory in ." >&2
12814 { (exit 1); exit 1; }
12815}
12816
12817_ACEOF
12818
12819cat >>$CONFIG_STATUS <<_ACEOF
12820
12821#
12822# CONFIG_FILES section.
12823#
12824
12825# No need to generate the scripts if there are no CONFIG_FILES.
12826# This happens for instance when ./config.status config.h
12827if test -n "\$CONFIG_FILES"; then
12828 # Protect against being on the right side of a sed subst in config.status.
12829 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12830 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12831s,@SHELL@,$SHELL,;t t
12832s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12833s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12834s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12835s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12836s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12837s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12838s,@exec_prefix@,$exec_prefix,;t t
12839s,@prefix@,$prefix,;t t
12840s,@program_transform_name@,$program_transform_name,;t t
12841s,@bindir@,$bindir,;t t
12842s,@sbindir@,$sbindir,;t t
12843s,@libexecdir@,$libexecdir,;t t
12844s,@datadir@,$datadir,;t t
12845s,@sysconfdir@,$sysconfdir,;t t
12846s,@sharedstatedir@,$sharedstatedir,;t t
12847s,@localstatedir@,$localstatedir,;t t
12848s,@libdir@,$libdir,;t t
12849s,@includedir@,$includedir,;t t
12850s,@oldincludedir@,$oldincludedir,;t t
12851s,@infodir@,$infodir,;t t
12852s,@mandir@,$mandir,;t t
12853s,@build_alias@,$build_alias,;t t
12854s,@host_alias@,$host_alias,;t t
12855s,@target_alias@,$target_alias,;t t
12856s,@DEFS@,$DEFS,;t t
12857s,@ECHO_C@,$ECHO_C,;t t
12858s,@ECHO_N@,$ECHO_N,;t t
12859s,@ECHO_T@,$ECHO_T,;t t
12860s,@LIBS@,$LIBS,;t t
12861s,@build@,$build,;t t
12862s,@build_cpu@,$build_cpu,;t t
12863s,@build_vendor@,$build_vendor,;t t
12864s,@build_os@,$build_os,;t t
12865s,@build_noncanonical@,$build_noncanonical,;t t
12866s,@host_noncanonical@,$host_noncanonical,;t t
12867s,@target_noncanonical@,$target_noncanonical,;t t
12868s,@host@,$host,;t t
12869s,@host_cpu@,$host_cpu,;t t
12870s,@host_vendor@,$host_vendor,;t t
12871s,@host_os@,$host_os,;t t
12872s,@target@,$target,;t t
12873s,@target_cpu@,$target_cpu,;t t
12874s,@target_vendor@,$target_vendor,;t t
12875s,@target_os@,$target_os,;t t
12876s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12877s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12878s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12879s,@LN@,$LN,;t t
12880s,@LN_S@,$LN_S,;t t
12881s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12882s,@build_libsubdir@,$build_libsubdir,;t t
12883s,@build_subdir@,$build_subdir,;t t
12884s,@host_subdir@,$host_subdir,;t t
12885s,@target_subdir@,$target_subdir,;t t
12886s,@CC@,$CC,;t t
12887s,@CFLAGS@,$CFLAGS,;t t
12888s,@LDFLAGS@,$LDFLAGS,;t t
12889s,@CPPFLAGS@,$CPPFLAGS,;t t
12890s,@ac_ct_CC@,$ac_ct_CC,;t t
12891s,@EXEEXT@,$EXEEXT,;t t
12892s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12893s,@CXX@,$CXX,;t t
12894s,@CXXFLAGS@,$CXXFLAGS,;t t
12895s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12896s,@GNATBIND@,$GNATBIND,;t t
12897s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12898s,@GNATMAKE@,$GNATMAKE,;t t
12899s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12900s,@do_compare@,$do_compare,;t t
12901s,@gmplibs@,$gmplibs,;t t
12902s,@gmpinc@,$gmpinc,;t t
12903s,@stage1_languages@,$stage1_languages,;t t
12904s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12905s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
12906s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12907s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12908s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12909s,@tooldir@,$tooldir,;t t
12910s,@build_tooldir@,$build_tooldir,;t t
12911s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12912s,@GDB_TK@,$GDB_TK,;t t
12913s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12914s,@build_configargs@,$build_configargs,;t t
12915s,@build_configdirs@,$build_configdirs,;t t
12916s,@host_configargs@,$host_configargs,;t t
12917s,@configdirs@,$configdirs,;t t
12918s,@target_configargs@,$target_configargs,;t t
1576798e
PB
12919s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12920s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 12921s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
12922s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12923s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12924s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12925s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12926s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12927s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12928s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12929s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12930s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12931s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12932s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12933s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
12934s,@config_shell@,$config_shell,;t t
12935s,@YACC@,$YACC,;t t
12936s,@BISON@,$BISON,;t t
12937s,@M4@,$M4,;t t
12938s,@LEX@,$LEX,;t t
12939s,@FLEX@,$FLEX,;t t
12940s,@MAKEINFO@,$MAKEINFO,;t t
12941s,@EXPECT@,$EXPECT,;t t
12942s,@RUNTEST@,$RUNTEST,;t t
12943s,@AR@,$AR,;t t
12944s,@AS@,$AS,;t t
12945s,@DLLTOOL@,$DLLTOOL,;t t
12946s,@LD@,$LD,;t t
12947s,@LIPO@,$LIPO,;t t
12948s,@NM@,$NM,;t t
12949s,@RANLIB@,$RANLIB,;t t
12950s,@STRIP@,$STRIP,;t t
12951s,@WINDRES@,$WINDRES,;t t
0c24b341 12952s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12953s,@OBJCOPY@,$OBJCOPY,;t t
12954s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
12955s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12956s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12957s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12958s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12959s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12960s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12961s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12962s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12963s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12964s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12965s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12966s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12967s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12968s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12969s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12970s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12971s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12972s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12973s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12974s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12975s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12976s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12977s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12978s,@MAINT@,$MAINT,;t t
12979s,@stage1_cflags@,$stage1_cflags,;t t
12980s,@stage1_checking@,$stage1_checking,;t t
12981s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12982s,@datarootdir@,$datarootdir,;t t
12983s,@docdir@,$docdir,;t t
a3ca38d2 12984s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12985s,@htmldir@,$htmldir,;t t
12986s,@LIBOBJS@,$LIBOBJS,;t t
12987s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12988/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12989s,@serialization_dependencies@,,;t t
a0da8069 12990/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12991s,@host_makefile_frag@,,;t t
a0da8069 12992/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12993s,@target_makefile_frag@,,;t t
a0da8069 12994/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12995s,@alphaieee_frag@,,;t t
a0da8069 12996/@ospace_frag@/r $ospace_frag
c6b750e1 12997s,@ospace_frag@,,;t t
a0da8069 12998CEOF
252b5132 12999
c6b750e1
DJ
13000_ACEOF
13001
13002 cat >>$CONFIG_STATUS <<\_ACEOF
13003 # Split the substitutions into bite-sized pieces for seds with
13004 # small command number limits, like on Digital OSF/1 and HP-UX.
13005 ac_max_sed_lines=48
13006 ac_sed_frag=1 # Number of current file.
13007 ac_beg=1 # First line for current file.
13008 ac_end=$ac_max_sed_lines # Line after last line for current file.
13009 ac_more_lines=:
13010 ac_sed_cmds=
13011 while $ac_more_lines; do
13012 if test $ac_beg -gt 1; then
13013 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13014 else
13015 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13016 fi
13017 if test ! -s $tmp/subs.frag; then
13018 ac_more_lines=false
a0da8069 13019 else
c6b750e1
DJ
13020 # The purpose of the label and of the branching condition is to
13021 # speed up the sed processing (if there are no `@' at all, there
13022 # is no need to browse any of the substitutions).
13023 # These are the two extra sed commands mentioned above.
13024 (echo ':t
13025 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13026 if test -z "$ac_sed_cmds"; then
13027 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13028 else
13029 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13030 fi
13031 ac_sed_frag=`expr $ac_sed_frag + 1`
13032 ac_beg=$ac_end
13033 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13034 fi
c6b750e1
DJ
13035 done
13036 if test -z "$ac_sed_cmds"; then
13037 ac_sed_cmds=cat
852e5f18 13038 fi
c6b750e1 13039fi # test -n "$CONFIG_FILES"
cac3d6c4 13040
c6b750e1
DJ
13041_ACEOF
13042cat >>$CONFIG_STATUS <<\_ACEOF
13043for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13044 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13045 case $ac_file in
13046 - | *:- | *:-:* ) # input from stdin
13047 cat >$tmp/stdin
13048 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13049 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13050 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13051 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13052 * ) ac_file_in=$ac_file.in ;;
a0da8069 13053 esac
252b5132 13054
c6b750e1
DJ
13055 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13056 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13057$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13058 X"$ac_file" : 'X\(//\)[^/]' \| \
13059 X"$ac_file" : 'X\(//\)$' \| \
13060 X"$ac_file" : 'X\(/\)' \| \
13061 . : '\(.\)' 2>/dev/null ||
13062echo X"$ac_file" |
13063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13064 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13065 /^X\(\/\/\)$/{ s//\1/; q; }
13066 /^X\(\/\).*/{ s//\1/; q; }
13067 s/.*/./; q'`
13068 { if $as_mkdir_p; then
13069 mkdir -p "$ac_dir"
cac3d6c4 13070 else
c6b750e1
DJ
13071 as_dir="$ac_dir"
13072 as_dirs=
13073 while test ! -d "$as_dir"; do
13074 as_dirs="$as_dir $as_dirs"
13075 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13076$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13077 X"$as_dir" : 'X\(//\)[^/]' \| \
13078 X"$as_dir" : 'X\(//\)$' \| \
13079 X"$as_dir" : 'X\(/\)' \| \
13080 . : '\(.\)' 2>/dev/null ||
13081echo X"$as_dir" |
13082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13083 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13084 /^X\(\/\/\)$/{ s//\1/; q; }
13085 /^X\(\/\).*/{ s//\1/; q; }
13086 s/.*/./; q'`
13087 done
13088 test ! -n "$as_dirs" || mkdir $as_dirs
13089 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13090echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13091 { (exit 1); exit 1; }; }; }
13092
13093 ac_builddir=.
252b5132 13094
c6b750e1
DJ
13095if test "$ac_dir" != .; then
13096 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13097 # A "../" for each directory in $ac_dir_suffix.
13098 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13099else
13100 ac_dir_suffix= ac_top_builddir=
13101fi
13102
13103case $srcdir in
13104 .) # No --srcdir option. We are building in place.
13105 ac_srcdir=.
13106 if test -z "$ac_top_builddir"; then
13107 ac_top_srcdir=.
13108 else
13109 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13110 fi ;;
13111 [\\/]* | ?:[\\/]* ) # Absolute path.
13112 ac_srcdir=$srcdir$ac_dir_suffix;
13113 ac_top_srcdir=$srcdir ;;
a0da8069 13114 *) # Relative path.
c6b750e1
DJ
13115 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13116 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13117esac
252b5132 13118
c6b750e1
DJ
13119# Do not use `cd foo && pwd` to compute absolute paths, because
13120# the directories may not exist.
13121case `pwd` in
13122.) ac_abs_builddir="$ac_dir";;
13123*)
13124 case "$ac_dir" in
13125 .) ac_abs_builddir=`pwd`;;
13126 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13127 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13128 esac;;
13129esac
13130case $ac_abs_builddir in
13131.) ac_abs_top_builddir=${ac_top_builddir}.;;
13132*)
13133 case ${ac_top_builddir}. in
13134 .) ac_abs_top_builddir=$ac_abs_builddir;;
13135 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13136 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13137 esac;;
13138esac
13139case $ac_abs_builddir in
13140.) ac_abs_srcdir=$ac_srcdir;;
13141*)
13142 case $ac_srcdir in
13143 .) ac_abs_srcdir=$ac_abs_builddir;;
13144 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13145 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13146 esac;;
13147esac
13148case $ac_abs_builddir in
13149.) ac_abs_top_srcdir=$ac_top_srcdir;;
13150*)
13151 case $ac_top_srcdir in
13152 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13153 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13154 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13155 esac;;
13156esac
252b5132 13157
c6b750e1
DJ
13158
13159 case $INSTALL in
13160 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13161 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13162 esac
252b5132 13163
c6b750e1
DJ
13164 if test x"$ac_file" != x-; then
13165 { echo "$as_me:$LINENO: creating $ac_file" >&5
13166echo "$as_me: creating $ac_file" >&6;}
13167 rm -f "$ac_file"
13168 fi
13169 # Let's still pretend it is `configure' which instantiates (i.e., don't
13170 # use $as_me), people would be surprised to read:
13171 # /* config.h. Generated by config.status. */
13172 if test x"$ac_file" = x-; then
13173 configure_input=
13174 else
13175 configure_input="$ac_file. "
13176 fi
13177 configure_input=$configure_input"Generated from `echo $ac_file_in |
13178 sed 's,.*/,,'` by configure."
13179
13180 # First look for the input files in the build tree, otherwise in the
13181 # src tree.
13182 ac_file_inputs=`IFS=:
13183 for f in $ac_file_in; do
13184 case $f in
13185 -) echo $tmp/stdin ;;
13186 [\\/$]*)
13187 # Absolute (can't be DOS-style, as IFS=:)
13188 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13189echo "$as_me: error: cannot find input file: $f" >&2;}
13190 { (exit 1); exit 1; }; }
13191 echo "$f";;
13192 *) # Relative
13193 if test -f "$f"; then
13194 # Build tree
13195 echo "$f"
13196 elif test -f "$srcdir/$f"; then
13197 # Source tree
13198 echo "$srcdir/$f"
13199 else
13200 # /dev/null tree
13201 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13202echo "$as_me: error: cannot find input file: $f" >&2;}
13203 { (exit 1); exit 1; }; }
13204 fi;;
13205 esac
13206 done` || { (exit 1); exit 1; }
13207_ACEOF
13208cat >>$CONFIG_STATUS <<_ACEOF
13209 sed "$ac_vpsub
13210$extrasub
13211_ACEOF
13212cat >>$CONFIG_STATUS <<\_ACEOF
13213:t
13214/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13215s,@configure_input@,$configure_input,;t t
13216s,@srcdir@,$ac_srcdir,;t t
13217s,@abs_srcdir@,$ac_abs_srcdir,;t t
13218s,@top_srcdir@,$ac_top_srcdir,;t t
13219s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13220s,@builddir@,$ac_builddir,;t t
13221s,@abs_builddir@,$ac_abs_builddir,;t t
13222s,@top_builddir@,$ac_top_builddir,;t t
13223s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13224s,@INSTALL@,$ac_INSTALL,;t t
13225" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13226 rm -f $tmp/stdin
13227 if test x"$ac_file" != x-; then
13228 mv $tmp/out $ac_file
13229 else
13230 cat $tmp/out
13231 rm -f $tmp/out
13232 fi
c148b4cb 13233
c6b750e1
DJ
13234done
13235_ACEOF
c148b4cb 13236
c6b750e1 13237cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13238
c6b750e1
DJ
13239{ (exit 0); exit 0; }
13240_ACEOF
c148b4cb 13241chmod +x $CONFIG_STATUS
c6b750e1
DJ
13242ac_clean_files=$ac_clean_files_save
13243
13244
13245# configure is writing to config.log, and then calls config.status.
13246# config.status does its own redirection, appending to config.log.
13247# Unfortunately, on DOS this fails, as config.log is still kept open
13248# by configure, so config.status won't be able to write to it; its
13249# output is simply discarded. So we exec the FD to /dev/null,
13250# effectively closing config.log, so it can be properly (re)opened and
13251# appended to by config.status. When coming back to configure, we
13252# need to make the FD available again.
13253if test "$no_create" != yes; then
13254 ac_cs_success=:
13255 ac_config_status_args=
13256 test "$silent" = yes &&
13257 ac_config_status_args="$ac_config_status_args --quiet"
13258 exec 5>/dev/null
13259 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13260 exec 5>>config.log
13261 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13262 # would make configure fail if this is the last instruction.
13263 $ac_cs_success || { (exit 1); exit 1; }
13264fi
c148b4cb 13265
This page took 1.149111 seconds and 4 git commands to generate.