* po/sk.po: Updated Slovak translation.
[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 ;;
2785 *-mingw32*)
84e7906e 2786 host_makefile_frag="config/mh-mingw"
a0da8069 2787 ;;
2d1e8239 2788 *-mingw64*)
84e7906e 2789 host_makefile_frag="config/mh-mingw"
2d1e8239 2790 ;;
a0da8069
NN
2791 *-interix*)
2792 host_makefile_frag="config/mh-interix"
2793 ;;
2794 vax-*-ultrix2*)
2795 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2796 tentative_cc=gcc
2797 ;;
2798 *-*-solaris2*)
2799 host_makefile_frag="config/mh-solaris"
2800 ;;
2801 m68k-sun-sunos*)
2802 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2803 # without overflowing the jump tables (-J says to use a 32 bit table)
2804 tentative_cc="cc -J"
2805 ;;
2806 *-hp-hpux*)
2807 tentative_cc="cc -Wp,-H256000"
2808 ;;
2809 *-*-hiux*)
2810 tentative_cc="cc -Wp,-H256000"
2811 ;;
2812 rs6000-*-lynxos*)
2813 # /bin/cc is less than useful for our purposes. Always use GCC
2814 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2815 host_makefile_frag="config/mh-lynxrs6k"
2816 ;;
0df3d27f
PB
2817 powerpc-*-darwin*)
2818 host_makefile_frag="config/mh-ppc-darwin"
2819 ;;
f6d183c0
PB
2820 powerpc-*-aix*)
2821 host_makefile_frag="config/mh-ppc-aix"
2822 ;;
2823 rs6000-*-aix*)
2824 host_makefile_frag="config/mh-ppc-aix"
2825 ;;
a0da8069
NN
2826 *-*-lynxos*)
2827 # /bin/cc is less than useful for our purposes. Always use GCC
2828 tentative_cc="/bin/gcc"
2829 ;;
2830 *-*-sysv4*)
2831 host_makefile_frag="config/mh-sysv4"
2832 ;;
fe69863c
DD
2833 # This is placed last to prevent interfering with the cases above.
2834 i[3456789]86-*-*)
2835 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2836 host_makefile_frag="config/mh-x86omitfp"
2837 ;;
a0da8069
NN
2838esac
2839fi
2840
9e07f89d
NN
2841# If we aren't going to be using gcc, see if we can extract a definition
2842# of CC from the fragment.
2843# Actually, use the 'pre-extracted' version above.
2844if test -z "${CC}" && test "${build}" = "${host}" ; then
2845 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2846 found=
2847 for dir in $PATH; do
2848 test -z "$dir" && dir=.
2849 if test -f $dir/gcc; then
2850 found=yes
2851 break
2852 fi
2853 done
2854 IFS="$save_ifs"
2855 if test -z "${found}" && test -n "${tentative_cc}" ; then
2856 CC=$tentative_cc
2857 fi
2858fi
2859
2860if test "${build}" != "${host}" ; then
1576798e
PB
2861 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2862 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2863 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2864 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2865 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2866 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2867 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2868 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2869 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2870 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2871 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2872 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2873else
2874 AR_FOR_BUILD="\$(AR)"
2875 AS_FOR_BUILD="\$(AS)"
512b7dfb 2876 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2877 CXX_FOR_BUILD="\$(CXX)"
2878 GCJ_FOR_BUILD="\$(GCJ)"
2879 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2880 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2881 LD_FOR_BUILD="\$(LD)"
2882 NM_FOR_BUILD="\$(NM)"
2883 RANLIB_FOR_BUILD="\$(RANLIB)"
2884 WINDRES_FOR_BUILD="\$(WINDRES)"
2885 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2886fi
2887
2888ac_ext=c
c6b750e1
DJ
2889ac_cpp='$CPP $CPPFLAGS'
2890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893if test -n "$ac_tool_prefix"; then
2894 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2895set dummy ${ac_tool_prefix}gcc; ac_word=$2
2896echo "$as_me:$LINENO: checking for $ac_word" >&5
2897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2898if test "${ac_cv_prog_CC+set}" = set; then
2899 echo $ECHO_N "(cached) $ECHO_C" >&6
2900else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903else
2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905for as_dir in $PATH
2906do
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915done
2916done
2917
2918fi
2919fi
2920CC=$ac_cv_prog_CC
2921if test -n "$CC"; then
2922 echo "$as_me:$LINENO: result: $CC" >&5
2923echo "${ECHO_T}$CC" >&6
2924else
2925 echo "$as_me:$LINENO: result: no" >&5
2926echo "${ECHO_T}no" >&6
2927fi
2928
2929fi
2930if test -z "$ac_cv_prog_CC"; then
2931 ac_ct_CC=$CC
6a9cf61e 2932 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2933set dummy gcc; ac_word=$2
c6b750e1
DJ
2934echo "$as_me:$LINENO: checking for $ac_word" >&5
2935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2936if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2938else
2939 if test -n "$ac_ct_CC"; then
2940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2941else
2942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943for as_dir in $PATH
2944do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_ac_ct_CC="gcc"
2950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953done
2954done
2955
2956fi
2957fi
2958ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959if test -n "$ac_ct_CC"; then
2960 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2961echo "${ECHO_T}$ac_ct_CC" >&6
2962else
2963 echo "$as_me:$LINENO: result: no" >&5
2964echo "${ECHO_T}no" >&6
2965fi
2966
2967 CC=$ac_ct_CC
2968else
2969 CC="$ac_cv_prog_CC"
2970fi
2971
2972if test -z "$CC"; then
2973 if test -n "$ac_tool_prefix"; then
2974 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2975set dummy ${ac_tool_prefix}cc; ac_word=$2
2976echo "$as_me:$LINENO: checking for $ac_word" >&5
2977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2978if test "${ac_cv_prog_CC+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2980else
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC="$CC" # Let the user override the test.
2983else
c6b750e1
DJ
2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH
2986do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 ac_cv_prog_CC="${ac_tool_prefix}cc"
2992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2994 fi
2995done
2996done
2997
9e07f89d
NN
2998fi
2999fi
c6b750e1 3000CC=$ac_cv_prog_CC
9e07f89d 3001if test -n "$CC"; then
c6b750e1
DJ
3002 echo "$as_me:$LINENO: result: $CC" >&5
3003echo "${ECHO_T}$CC" >&6
9e07f89d 3004else
c6b750e1
DJ
3005 echo "$as_me:$LINENO: result: no" >&5
3006echo "${ECHO_T}no" >&6
9e07f89d
NN
3007fi
3008
c6b750e1
DJ
3009fi
3010if test -z "$ac_cv_prog_CC"; then
3011 ac_ct_CC=$CC
3012 # Extract the first word of "cc", so it can be a program name with args.
3013set dummy cc; ac_word=$2
3014echo "$as_me:$LINENO: checking for $ac_word" >&5
3015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019 if test -n "$ac_ct_CC"; then
3020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021else
3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023for as_dir in $PATH
3024do
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3029 ac_cv_prog_ac_ct_CC="cc"
3030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 break 2
3032 fi
3033done
3034done
3035
3036fi
3037fi
3038ac_ct_CC=$ac_cv_prog_ac_ct_CC
3039if test -n "$ac_ct_CC"; then
3040 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3041echo "${ECHO_T}$ac_ct_CC" >&6
3042else
3043 echo "$as_me:$LINENO: result: no" >&5
3044echo "${ECHO_T}no" >&6
3045fi
3046
3047 CC=$ac_ct_CC
3048else
3049 CC="$ac_cv_prog_CC"
3050fi
3051
3052fi
9e07f89d
NN
3053if test -z "$CC"; then
3054 # Extract the first word of "cc", so it can be a program name with args.
3055set dummy cc; ac_word=$2
c6b750e1
DJ
3056echo "$as_me:$LINENO: checking for $ac_word" >&5
3057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3058if test "${ac_cv_prog_CC+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3060else
3061 if test -n "$CC"; then
3062 ac_cv_prog_CC="$CC" # Let the user override the test.
3063else
9e07f89d 3064 ac_prog_rejected=no
c6b750e1
DJ
3065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066for as_dir in $PATH
3067do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3073 ac_prog_rejected=yes
3074 continue
3075 fi
3076 ac_cv_prog_CC="cc"
3077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080done
3081done
3082
9e07f89d
NN
3083if test $ac_prog_rejected = yes; then
3084 # We found a bogon in the path, so make sure we never use it.
3085 set dummy $ac_cv_prog_CC
3086 shift
c6b750e1 3087 if test $# != 0; then
9e07f89d
NN
3088 # We chose a different compiler from the bogus one.
3089 # However, it has the same basename, so the bogon will be chosen
3090 # first if we set CC to just the basename; use the full file name.
3091 shift
c6b750e1 3092 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3093 fi
3094fi
3095fi
3096fi
c6b750e1 3097CC=$ac_cv_prog_CC
9e07f89d 3098if test -n "$CC"; then
c6b750e1
DJ
3099 echo "$as_me:$LINENO: result: $CC" >&5
3100echo "${ECHO_T}$CC" >&6
9e07f89d 3101else
c6b750e1
DJ
3102 echo "$as_me:$LINENO: result: no" >&5
3103echo "${ECHO_T}no" >&6
9e07f89d
NN
3104fi
3105
c6b750e1
DJ
3106fi
3107if test -z "$CC"; then
3108 if test -n "$ac_tool_prefix"; then
3109 for ac_prog in cl
3110 do
3111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3112set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3113echo "$as_me:$LINENO: checking for $ac_word" >&5
3114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3115if test "${ac_cv_prog_CC+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3117else
3118 if test -n "$CC"; then
3119 ac_cv_prog_CC="$CC" # Let the user override the test.
3120else
c6b750e1
DJ
3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122for as_dir in $PATH
3123do
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
376a0e54 3131 fi
c6b750e1
DJ
3132done
3133done
cac3d6c4 3134
c6b750e1
DJ
3135fi
3136fi
3137CC=$ac_cv_prog_CC
3138if test -n "$CC"; then
3139 echo "$as_me:$LINENO: result: $CC" >&5
3140echo "${ECHO_T}$CC" >&6
cac3d6c4 3141else
c6b750e1
DJ
3142 echo "$as_me:$LINENO: result: no" >&5
3143echo "${ECHO_T}no" >&6
9e07f89d 3144fi
cac3d6c4 3145
c6b750e1
DJ
3146 test -n "$CC" && break
3147 done
cac3d6c4 3148fi
c6b750e1
DJ
3149if test -z "$CC"; then
3150 ac_ct_CC=$CC
3151 for ac_prog in cl
3152do
3153 # Extract the first word of "$ac_prog", so it can be a program name with args.
3154set dummy $ac_prog; ac_word=$2
3155echo "$as_me:$LINENO: checking for $ac_word" >&5
3156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3157if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3159else
c6b750e1
DJ
3160 if test -n "$ac_ct_CC"; then
3161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3162else
c6b750e1
DJ
3163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164for as_dir in $PATH
3165do
3166 IFS=$as_save_IFS
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3170 ac_cv_prog_ac_ct_CC="$ac_prog"
3171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 break 2
3173 fi
3174done
3175done
3176
cac3d6c4
CM
3177fi
3178fi
c6b750e1
DJ
3179ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180if test -n "$ac_ct_CC"; then
3181 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3182echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3183else
c6b750e1
DJ
3184 echo "$as_me:$LINENO: result: no" >&5
3185echo "${ECHO_T}no" >&6
cac3d6c4 3186fi
376a0e54 3187
c6b750e1
DJ
3188 test -n "$ac_ct_CC" && break
3189done
3190
3191 CC=$ac_ct_CC
3192fi
3193
3194fi
3195
3196
3197test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3198See \`config.log' for more details." >&5
3199echo "$as_me: error: no acceptable C compiler found in \$PATH
3200See \`config.log' for more details." >&2;}
3201 { (exit 1); exit 1; }; }
3202
3203# Provide some information about the compiler.
3204echo "$as_me:$LINENO:" \
3205 "checking for C compiler version" >&5
3206ac_compiler=`set X $ac_compile; echo $2`
3207{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3208 (eval $ac_compiler --version </dev/null >&5) 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }
3212{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3213 (eval $ac_compiler -v </dev/null >&5) 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }
3217{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3218 (eval $ac_compiler -V </dev/null >&5) 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }
3222
3223cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h. */
3229
3230int
3231main ()
3232{
3233
3234 ;
3235 return 0;
3236}
3237_ACEOF
3238ac_clean_files_save=$ac_clean_files
3239ac_clean_files="$ac_clean_files a.out a.exe b.out"
3240# Try to create an executable without -o first, disregard a.out.
3241# It will help us diagnose broken compilers, and finding out an intuition
3242# of exeext.
3243echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3244echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3245ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3246if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3247 (eval $ac_link_default) 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; then
3251 # Find the output, starting from the most likely. This scheme is
3252# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3253# resort.
3254
3255# Be careful to initialize this variable, since it used to be cached.
3256# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3257ac_cv_exeext=
3258# b.out is created by i960 compilers.
3259for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3260do
3261 test -f "$ac_file" || continue
3262 case $ac_file in
3263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3264 ;;
3265 conftest.$ac_ext )
3266 # This is the source file.
3267 ;;
3268 [ab].out )
3269 # We found the default executable, but exeext='' is most
3270 # certainly right.
3271 break;;
3272 *.* )
3273 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3274 # FIXME: I believe we export ac_cv_exeext for Libtool,
3275 # but it would be cool to find out if it's true. Does anybody
3276 # maintain Libtool? --akim.
3277 export ac_cv_exeext
3278 break;;
3279 * )
3280 break;;
3281 esac
3282done
3283else
3284 echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
3286
3287{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3288See \`config.log' for more details." >&5
3289echo "$as_me: error: C compiler cannot create executables
3290See \`config.log' for more details." >&2;}
3291 { (exit 77); exit 77; }; }
3292fi
3293
3294ac_exeext=$ac_cv_exeext
3295echo "$as_me:$LINENO: result: $ac_file" >&5
3296echo "${ECHO_T}$ac_file" >&6
3297
3298# Check the compiler produces executables we can run. If not, either
3299# the compiler is broken, or we cross compile.
3300echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3301echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3302# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3303# If not cross compiling, check that we can run a simple program.
3304if test "$cross_compiling" != yes; then
3305 if { ac_try='./$ac_file'
3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 (eval $ac_try) 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; }; then
3311 cross_compiling=no
3312 else
3313 if test "$cross_compiling" = maybe; then
3314 cross_compiling=yes
3315 else
3316 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3317If you meant to cross compile, use \`--host'.
3318See \`config.log' for more details." >&5
3319echo "$as_me: error: cannot run C compiled programs.
3320If you meant to cross compile, use \`--host'.
3321See \`config.log' for more details." >&2;}
3322 { (exit 1); exit 1; }; }
3323 fi
3324 fi
3325fi
3326echo "$as_me:$LINENO: result: yes" >&5
3327echo "${ECHO_T}yes" >&6
3328
3329rm -f a.out a.exe conftest$ac_cv_exeext b.out
3330ac_clean_files=$ac_clean_files_save
3331# Check the compiler produces executables we can run. If not, either
3332# the compiler is broken, or we cross compile.
3333echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3334echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3335echo "$as_me:$LINENO: result: $cross_compiling" >&5
3336echo "${ECHO_T}$cross_compiling" >&6
3337
3338echo "$as_me:$LINENO: checking for suffix of executables" >&5
3339echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3341 (eval $ac_link) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; then
3345 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3346# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3347# work properly (i.e., refer to `conftest.exe'), while it won't with
3348# `rm'.
3349for ac_file in conftest.exe conftest conftest.*; do
3350 test -f "$ac_file" || continue
3351 case $ac_file in
3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3353 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3354 export ac_cv_exeext
3355 break;;
3356 * ) break;;
3357 esac
3358done
3359else
3360 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3361See \`config.log' for more details." >&5
3362echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3363See \`config.log' for more details." >&2;}
3364 { (exit 1); exit 1; }; }
3365fi
3366
3367rm -f conftest$ac_cv_exeext
3368echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3369echo "${ECHO_T}$ac_cv_exeext" >&6
3370
3371rm -f conftest.$ac_ext
3372EXEEXT=$ac_cv_exeext
3373ac_exeext=$EXEEXT
3374echo "$as_me:$LINENO: checking for suffix of object files" >&5
3375echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3376if test "${ac_cv_objext+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378else
3379 cat >conftest.$ac_ext <<_ACEOF
3380/* confdefs.h. */
3381_ACEOF
3382cat confdefs.h >>conftest.$ac_ext
3383cat >>conftest.$ac_ext <<_ACEOF
3384/* end confdefs.h. */
3385
3386int
3387main ()
3388{
3389
3390 ;
3391 return 0;
3392}
3393_ACEOF
3394rm -f conftest.o conftest.obj
3395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3396 (eval $ac_compile) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; then
3400 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3401 case $ac_file in
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3403 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3404 break;;
3405 esac
3406done
cac3d6c4 3407else
c6b750e1
DJ
3408 echo "$as_me: failed program was:" >&5
3409sed 's/^/| /' conftest.$ac_ext >&5
3410
3411{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3412See \`config.log' for more details." >&5
3413echo "$as_me: error: cannot compute suffix of object files: cannot compile
3414See \`config.log' for more details." >&2;}
3415 { (exit 1); exit 1; }; }
3416fi
3417
3418rm -f conftest.$ac_cv_objext conftest.$ac_ext
3419fi
3420echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3421echo "${ECHO_T}$ac_cv_objext" >&6
3422OBJEXT=$ac_cv_objext
3423ac_objext=$OBJEXT
3424echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3425echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3426if test "${ac_cv_c_compiler_gnu+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3428else
3429 cat >conftest.$ac_ext <<_ACEOF
3430/* confdefs.h. */
3431_ACEOF
3432cat confdefs.h >>conftest.$ac_ext
3433cat >>conftest.$ac_ext <<_ACEOF
3434/* end confdefs.h. */
3435
3436int
3437main ()
3438{
3439#ifndef __GNUC__
3440 choke me
3441#endif
3442
3443 ;
3444 return 0;
3445}
3446_ACEOF
3447rm -f conftest.$ac_objext
3448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3449 (eval $ac_compile) 2>conftest.er1
3450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } &&
3456 { ac_try='test -z "$ac_c_werror_flag"
3457 || test ! -s conftest.err'
3458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459 (eval $ac_try) 2>&5
3460 ac_status=$?
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }; } &&
3463 { ac_try='test -s conftest.$ac_objext'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 (eval $ac_try) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; }; then
3469 ac_compiler_gnu=yes
3470else
3471 echo "$as_me: failed program was:" >&5
3472sed 's/^/| /' conftest.$ac_ext >&5
3473
3474ac_compiler_gnu=no
3475fi
3476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3477ac_cv_c_compiler_gnu=$ac_compiler_gnu
3478
3479fi
3480echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3481echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3482GCC=`test $ac_compiler_gnu = yes && echo yes`
3483ac_test_CFLAGS=${CFLAGS+set}
3484ac_save_CFLAGS=$CFLAGS
3485CFLAGS="-g"
3486echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3487echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3488if test "${ac_cv_prog_cc_g+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490else
3491 cat >conftest.$ac_ext <<_ACEOF
3492/* confdefs.h. */
3493_ACEOF
3494cat confdefs.h >>conftest.$ac_ext
3495cat >>conftest.$ac_ext <<_ACEOF
3496/* end confdefs.h. */
3497
3498int
3499main ()
3500{
3501
3502 ;
3503 return 0;
3504}
3505_ACEOF
3506rm -f conftest.$ac_objext
3507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_c_werror_flag"
3516 || test ! -s conftest.err'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest.$ac_objext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
9e07f89d
NN
3528 ac_cv_prog_cc_g=yes
3529else
c6b750e1
DJ
3530 echo "$as_me: failed program was:" >&5
3531sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3532
c6b750e1 3533ac_cv_prog_cc_g=no
376a0e54 3534fi
c6b750e1
DJ
3535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3536fi
3537echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3538echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3539if test "$ac_test_CFLAGS" = set; then
c6b750e1 3540 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3541elif test $ac_cv_prog_cc_g = yes; then
3542 if test "$GCC" = yes; then
3543 CFLAGS="-g -O2"
3544 else
3545 CFLAGS="-g"
3546 fi
3547else
3548 if test "$GCC" = yes; then
3549 CFLAGS="-O2"
3550 else
3551 CFLAGS=
3552 fi
3553fi
c6b750e1
DJ
3554echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3555echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3556if test "${ac_cv_prog_cc_stdc+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558else
3559 ac_cv_prog_cc_stdc=no
3560ac_save_CC=$CC
3561cat >conftest.$ac_ext <<_ACEOF
3562/* confdefs.h. */
3563_ACEOF
3564cat confdefs.h >>conftest.$ac_ext
3565cat >>conftest.$ac_ext <<_ACEOF
3566/* end confdefs.h. */
3567#include <stdarg.h>
3568#include <stdio.h>
3569#include <sys/types.h>
3570#include <sys/stat.h>
3571/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3572struct buf { int x; };
3573FILE * (*rcsopen) (struct buf *, struct stat *, int);
3574static char *e (p, i)
3575 char **p;
3576 int i;
3577{
3578 return p[i];
3579}
3580static char *f (char * (*g) (char **, int), char **p, ...)
3581{
3582 char *s;
3583 va_list v;
3584 va_start (v,p);
3585 s = g (p, va_arg (v,int));
3586 va_end (v);
3587 return s;
3588}
3589
3590/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3591 function prototypes and stuff, but not '\xHH' hex character constants.
3592 These don't provoke an error unfortunately, instead are silently treated
3593 as 'x'. The following induces an error, until -std1 is added to get
3594 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3595 array size at least. It's necessary to write '\x00'==0 to get something
3596 that's true only with -std1. */
3597int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3598
3599int test (int i, double x);
3600struct s1 {int (*f) (int a);};
3601struct s2 {int (*f) (double a);};
3602int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3603int argc;
3604char **argv;
3605int
3606main ()
3607{
3608return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3609 ;
3610 return 0;
3611}
3612_ACEOF
3613# Don't try gcc -ansi; that turns off useful extensions and
3614# breaks some systems' header files.
3615# AIX -qlanglvl=ansi
3616# Ultrix and OSF/1 -std1
3617# HP-UX 10.20 and later -Ae
3618# HP-UX older versions -Aa -D_HPUX_SOURCE
3619# SVR4 -Xc -D__EXTENSIONS__
3620for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3621do
3622 CC="$ac_save_CC $ac_arg"
3623 rm -f conftest.$ac_objext
3624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3625 (eval $ac_compile) 2>conftest.er1
3626 ac_status=$?
3627 grep -v '^ *+' conftest.er1 >conftest.err
3628 rm -f conftest.er1
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } &&
3632 { ac_try='test -z "$ac_c_werror_flag"
3633 || test ! -s conftest.err'
3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 (eval $ac_try) 2>&5
3636 ac_status=$?
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; } &&
3639 { ac_try='test -s conftest.$ac_objext'
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; }; then
3645 ac_cv_prog_cc_stdc=$ac_arg
3646break
3647else
3648 echo "$as_me: failed program was:" >&5
3649sed 's/^/| /' conftest.$ac_ext >&5
3650
3651fi
3652rm -f conftest.err conftest.$ac_objext
3653done
3654rm -f conftest.$ac_ext conftest.$ac_objext
3655CC=$ac_save_CC
3656
3657fi
3658
3659case "x$ac_cv_prog_cc_stdc" in
3660 x|xno)
3661 echo "$as_me:$LINENO: result: none needed" >&5
3662echo "${ECHO_T}none needed" >&6 ;;
3663 *)
3664 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3665echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3666 CC="$CC $ac_cv_prog_cc_stdc" ;;
3667esac
3668
3669# Some people use a C++ compiler to compile C. Since we use `exit',
3670# in C++ we need to declare it. In case someone uses the same compiler
3671# for both compiling C and C++ we need to have the C++ compiler decide
3672# the declaration of exit, since it's the most demanding environment.
3673cat >conftest.$ac_ext <<_ACEOF
3674#ifndef __cplusplus
3675 choke me
3676#endif
3677_ACEOF
3678rm -f conftest.$ac_objext
3679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>conftest.er1
3681 ac_status=$?
3682 grep -v '^ *+' conftest.er1 >conftest.err
3683 rm -f conftest.er1
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
3687 { ac_try='test -z "$ac_c_werror_flag"
3688 || test ! -s conftest.err'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; } &&
3694 { ac_try='test -s conftest.$ac_objext'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 for ac_declaration in \
3701 '' \
3702 'extern "C" void std::exit (int) throw (); using std::exit;' \
3703 'extern "C" void std::exit (int); using std::exit;' \
3704 'extern "C" void exit (int) throw ();' \
3705 'extern "C" void exit (int);' \
3706 'void exit (int);'
3707do
3708 cat >conftest.$ac_ext <<_ACEOF
3709/* confdefs.h. */
3710_ACEOF
3711cat confdefs.h >>conftest.$ac_ext
3712cat >>conftest.$ac_ext <<_ACEOF
3713/* end confdefs.h. */
3714$ac_declaration
3715#include <stdlib.h>
3716int
3717main ()
3718{
3719exit (42);
3720 ;
3721 return 0;
3722}
3723_ACEOF
3724rm -f conftest.$ac_objext
3725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3726 (eval $ac_compile) 2>conftest.er1
3727 ac_status=$?
3728 grep -v '^ *+' conftest.er1 >conftest.err
3729 rm -f conftest.er1
3730 cat conftest.err >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } &&
3733 { ac_try='test -z "$ac_c_werror_flag"
3734 || test ! -s conftest.err'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736 (eval $ac_try) 2>&5
3737 ac_status=$?
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; } &&
3740 { ac_try='test -s conftest.$ac_objext'
3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 (eval $ac_try) 2>&5
3743 ac_status=$?
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; }; then
3746 :
3747else
3748 echo "$as_me: failed program was:" >&5
3749sed 's/^/| /' conftest.$ac_ext >&5
3750
3751continue
3752fi
3753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3754 cat >conftest.$ac_ext <<_ACEOF
3755/* confdefs.h. */
3756_ACEOF
3757cat confdefs.h >>conftest.$ac_ext
3758cat >>conftest.$ac_ext <<_ACEOF
3759/* end confdefs.h. */
3760$ac_declaration
3761int
3762main ()
3763{
3764exit (42);
3765 ;
3766 return 0;
3767}
3768_ACEOF
3769rm -f conftest.$ac_objext
3770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3771 (eval $ac_compile) 2>conftest.er1
3772 ac_status=$?
3773 grep -v '^ *+' conftest.er1 >conftest.err
3774 rm -f conftest.er1
3775 cat conftest.err >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); } &&
3778 { ac_try='test -z "$ac_c_werror_flag"
3779 || test ! -s conftest.err'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 (eval $ac_try) 2>&5
3782 ac_status=$?
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; } &&
3785 { ac_try='test -s conftest.$ac_objext'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 (eval $ac_try) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; }; then
3791 break
3792else
3793 echo "$as_me: failed program was:" >&5
3794sed 's/^/| /' conftest.$ac_ext >&5
3795
3796fi
3797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3798done
3799rm -f conftest*
3800if test -n "$ac_declaration"; then
3801 echo '#ifdef __cplusplus' >>confdefs.h
3802 echo $ac_declaration >>confdefs.h
3803 echo '#endif' >>confdefs.h
3804fi
3805
3806else
3807 echo "$as_me: failed program was:" >&5
3808sed 's/^/| /' conftest.$ac_ext >&5
3809
3810fi
3811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3812ac_ext=c
3813ac_cpp='$CPP $CPPFLAGS'
3814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3816ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3817
18f6b6ee
PB
3818ac_ext=cc
3819ac_cpp='$CXXCPP $CPPFLAGS'
3820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3823if test -n "$ac_tool_prefix"; then
3824 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3825 do
3826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3827set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3828echo "$as_me:$LINENO: checking for $ac_word" >&5
3829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3830if test "${ac_cv_prog_CXX+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833 if test -n "$CXX"; then
3834 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3835else
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 break 2
3846 fi
3847done
3848done
512b7dfb 3849
18f6b6ee
PB
3850fi
3851fi
3852CXX=$ac_cv_prog_CXX
3853if test -n "$CXX"; then
3854 echo "$as_me:$LINENO: result: $CXX" >&5
3855echo "${ECHO_T}$CXX" >&6
3856else
3857 echo "$as_me:$LINENO: result: no" >&5
3858echo "${ECHO_T}no" >&6
3859fi
3860
3861 test -n "$CXX" && break
3862 done
3863fi
3864if test -z "$CXX"; then
3865 ac_ct_CXX=$CXX
3866 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3867do
3868 # Extract the first word of "$ac_prog", so it can be a program name with args.
3869set dummy $ac_prog; ac_word=$2
3870echo "$as_me:$LINENO: checking for $ac_word" >&5
3871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3872if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3874else
3875 if test -n "$ac_ct_CXX"; then
3876 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3877else
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3885 ac_cv_prog_ac_ct_CXX="$ac_prog"
3886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
512b7dfb 3888 fi
18f6b6ee
PB
3889done
3890done
512b7dfb 3891
18f6b6ee
PB
3892fi
3893fi
3894ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3895if test -n "$ac_ct_CXX"; then
3896 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3897echo "${ECHO_T}$ac_ct_CXX" >&6
3898else
3899 echo "$as_me:$LINENO: result: no" >&5
3900echo "${ECHO_T}no" >&6
3901fi
3902
3903 test -n "$ac_ct_CXX" && break
3904done
3905test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3906
3907 CXX=$ac_ct_CXX
3908fi
3909
3910
3911# Provide some information about the compiler.
3912echo "$as_me:$LINENO:" \
3913 "checking for C++ compiler version" >&5
3914ac_compiler=`set X $ac_compile; echo $2`
3915{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3916 (eval $ac_compiler --version </dev/null >&5) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }
3920{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3921 (eval $ac_compiler -v </dev/null >&5) 2>&5
3922 ac_status=$?
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }
3925{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3926 (eval $ac_compiler -V </dev/null >&5) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }
3930
3931echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3932echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3933if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935else
3936 cat >conftest.$ac_ext <<_ACEOF
3937/* confdefs.h. */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
3941/* end confdefs.h. */
3942
3943int
3944main ()
3945{
3946#ifndef __GNUC__
3947 choke me
3948#endif
3949
3950 ;
3951 return 0;
3952}
3953_ACEOF
3954rm -f conftest.$ac_objext
3955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3956 (eval $ac_compile) 2>conftest.er1
3957 ac_status=$?
3958 grep -v '^ *+' conftest.er1 >conftest.err
3959 rm -f conftest.er1
3960 cat conftest.err >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } &&
3963 { ac_try='test -z "$ac_cxx_werror_flag"
3964 || test ! -s conftest.err'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 (eval $ac_try) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; } &&
3970 { ac_try='test -s conftest.$ac_objext'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; }; then
3976 ac_compiler_gnu=yes
3977else
3978 echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
3981ac_compiler_gnu=no
3982fi
3983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3984ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3985
3986fi
3987echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3988echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3989GXX=`test $ac_compiler_gnu = yes && echo yes`
3990ac_test_CXXFLAGS=${CXXFLAGS+set}
3991ac_save_CXXFLAGS=$CXXFLAGS
3992CXXFLAGS="-g"
3993echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3994echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3995if test "${ac_cv_prog_cxx_g+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997else
3998 cat >conftest.$ac_ext <<_ACEOF
3999/* confdefs.h. */
4000_ACEOF
4001cat confdefs.h >>conftest.$ac_ext
4002cat >>conftest.$ac_ext <<_ACEOF
4003/* end confdefs.h. */
4004
4005int
4006main ()
4007{
4008
4009 ;
4010 return 0;
4011}
4012_ACEOF
4013rm -f conftest.$ac_objext
4014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4015 (eval $ac_compile) 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } &&
4022 { ac_try='test -z "$ac_cxx_werror_flag"
4023 || test ! -s conftest.err'
4024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 (eval $ac_try) 2>&5
4026 ac_status=$?
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; } &&
4029 { ac_try='test -s conftest.$ac_objext'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 ac_cv_prog_cxx_g=yes
4036else
4037 echo "$as_me: failed program was:" >&5
4038sed 's/^/| /' conftest.$ac_ext >&5
4039
4040ac_cv_prog_cxx_g=no
4041fi
4042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4043fi
4044echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4045echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4046if test "$ac_test_CXXFLAGS" = set; then
4047 CXXFLAGS=$ac_save_CXXFLAGS
4048elif test $ac_cv_prog_cxx_g = yes; then
4049 if test "$GXX" = yes; then
4050 CXXFLAGS="-g -O2"
4051 else
4052 CXXFLAGS="-g"
4053 fi
4054else
4055 if test "$GXX" = yes; then
4056 CXXFLAGS="-O2"
4057 else
4058 CXXFLAGS=
4059 fi
4060fi
4061for ac_declaration in \
4062 '' \
4063 'extern "C" void std::exit (int) throw (); using std::exit;' \
4064 'extern "C" void std::exit (int); using std::exit;' \
4065 'extern "C" void exit (int) throw ();' \
4066 'extern "C" void exit (int);' \
4067 'void exit (int);'
4068do
4069 cat >conftest.$ac_ext <<_ACEOF
4070/* confdefs.h. */
4071_ACEOF
4072cat confdefs.h >>conftest.$ac_ext
4073cat >>conftest.$ac_ext <<_ACEOF
4074/* end confdefs.h. */
4075$ac_declaration
4076#include <stdlib.h>
4077int
4078main ()
4079{
4080exit (42);
4081 ;
4082 return 0;
4083}
4084_ACEOF
4085rm -f conftest.$ac_objext
4086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4087 (eval $ac_compile) 2>conftest.er1
4088 ac_status=$?
4089 grep -v '^ *+' conftest.er1 >conftest.err
4090 rm -f conftest.er1
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try='test -z "$ac_cxx_werror_flag"
4095 || test ! -s conftest.err'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 (eval $ac_try) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; } &&
4101 { ac_try='test -s conftest.$ac_objext'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 (eval $ac_try) 2>&5
4104 ac_status=$?
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 :
4108else
4109 echo "$as_me: failed program was:" >&5
4110sed 's/^/| /' conftest.$ac_ext >&5
4111
4112continue
4113fi
4114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115 cat >conftest.$ac_ext <<_ACEOF
4116/* confdefs.h. */
4117_ACEOF
4118cat confdefs.h >>conftest.$ac_ext
4119cat >>conftest.$ac_ext <<_ACEOF
4120/* end confdefs.h. */
4121$ac_declaration
4122int
4123main ()
4124{
4125exit (42);
4126 ;
4127 return 0;
4128}
4129_ACEOF
4130rm -f conftest.$ac_objext
4131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4132 (eval $ac_compile) 2>conftest.er1
4133 ac_status=$?
4134 grep -v '^ *+' conftest.er1 >conftest.err
4135 rm -f conftest.er1
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } &&
4139 { ac_try='test -z "$ac_cxx_werror_flag"
4140 || test ! -s conftest.err'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; } &&
4146 { ac_try='test -s conftest.$ac_objext'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 (eval $ac_try) 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
4152 break
4153else
4154 echo "$as_me: failed program was:" >&5
4155sed 's/^/| /' conftest.$ac_ext >&5
4156
4157fi
4158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4159done
4160rm -f conftest*
4161if test -n "$ac_declaration"; then
4162 echo '#ifdef __cplusplus' >>confdefs.h
4163 echo $ac_declaration >>confdefs.h
4164 echo '#endif' >>confdefs.h
4165fi
4166
4167ac_ext=c
4168ac_cpp='$CPP $CPPFLAGS'
4169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4171ac_compiler_gnu=$ac_cv_c_compiler_gnu
4172
4173
4174# We must set the default linker to the linker used by gcc for the correct
4175# operation of libtool. If LD is not defined and we are using gcc, try to
4176# set the LD default to the ld used by gcc.
4177if test -z "$LD"; then
4178 if test "$GCC" = yes; then
4179 case $build in
4180 *-*-mingw*)
4181 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4182 *)
4183 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4184 esac
4185 case $gcc_prog_ld in
4186 # Accept absolute paths.
4187 [\\/]* | [A-Za-z]:[\\/]*)
4188 LD="$gcc_prog_ld" ;;
4189 esac
4190 fi
512b7dfb
PB
4191fi
4192
4193
4194
4195
c6b750e1 4196if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4197 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4198set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4199echo "$as_me:$LINENO: checking for $ac_word" >&5
4200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4201if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4202 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4203else
512b7dfb
PB
4204 if test -n "$GNATBIND"; then
4205 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4206else
c6b750e1
DJ
4207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208for as_dir in $PATH
4209do
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4214 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4217 fi
4218done
4219done
4220
9e07f89d
NN
4221fi
4222fi
512b7dfb
PB
4223GNATBIND=$ac_cv_prog_GNATBIND
4224if test -n "$GNATBIND"; then
4225 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4226echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4227else
c6b750e1
DJ
4228 echo "$as_me:$LINENO: result: no" >&5
4229echo "${ECHO_T}no" >&6
9e07f89d
NN
4230fi
4231
c6b750e1 4232fi
512b7dfb
PB
4233if test -z "$ac_cv_prog_GNATBIND"; then
4234 ac_ct_GNATBIND=$GNATBIND
4235 # Extract the first word of "gnatbind", so it can be a program name with args.
4236set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4237echo "$as_me:$LINENO: checking for $ac_word" >&5
4238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4239if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4240 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4241else
512b7dfb
PB
4242 if test -n "$ac_ct_GNATBIND"; then
4243 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4244else
c6b750e1
DJ
4245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH
4247do
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4252 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4255 fi
4256done
4257done
4258
512b7dfb 4259 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4260fi
4261fi
512b7dfb
PB
4262ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4263if test -n "$ac_ct_GNATBIND"; then
4264 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4265echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4266else
c6b750e1
DJ
4267 echo "$as_me:$LINENO: result: no" >&5
4268echo "${ECHO_T}no" >&6
9e07f89d
NN
4269fi
4270
512b7dfb 4271 GNATBIND=$ac_ct_GNATBIND
24ff9987 4272else
512b7dfb 4273 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4274fi
4275
7df2cd5d 4276if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4277 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4278set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4279echo "$as_me:$LINENO: checking for $ac_word" >&5
4280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4281if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4283else
512b7dfb
PB
4284 if test -n "$GNATMAKE"; then
4285 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4286else
4287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH
4289do
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4294 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4297 fi
4298done
4299done
4300
4301fi
4302fi
512b7dfb
PB
4303GNATMAKE=$ac_cv_prog_GNATMAKE
4304if test -n "$GNATMAKE"; then
4305 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4306echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4307else
4308 echo "$as_me:$LINENO: result: no" >&5
4309echo "${ECHO_T}no" >&6
4310fi
4311
4312fi
512b7dfb
PB
4313if test -z "$ac_cv_prog_GNATMAKE"; then
4314 ac_ct_GNATMAKE=$GNATMAKE
4315 # Extract the first word of "gnatmake", so it can be a program name with args.
4316set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4317echo "$as_me:$LINENO: checking for $ac_word" >&5
4318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4319if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321else
512b7dfb
PB
4322 if test -n "$ac_ct_GNATMAKE"; then
4323 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4324else
4325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326for as_dir in $PATH
4327do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4332 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336done
4337done
4338
512b7dfb 4339 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4340fi
4341fi
512b7dfb
PB
4342ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4343if test -n "$ac_ct_GNATMAKE"; then
4344 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4345echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4346else
4347 echo "$as_me:$LINENO: result: no" >&5
4348echo "${ECHO_T}no" >&6
4349fi
4350
512b7dfb 4351 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4352else
512b7dfb 4353 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4354fi
4355
c6b750e1
DJ
4356echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4357echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4358if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4360else
4361 cat >conftest.adb <<EOF
4362procedure conftest is begin null; end conftest;
4363EOF
4364acx_cv_cc_gcc_supports_ada=no
4365# There is a bug in old released versions of GCC which causes the
4366# driver to exit successfully when the appropriate language module
4367# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4368# Therefore we must check for the error message as well as an
4369# unsuccessful exit.
b8908782
DD
4370# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4371# given a .adb file, but produce no object file. So we must check
4372# if an object file was really produced to guard against this.
9e07f89d 4373errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4374if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4375 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4376fi
4377rm -f conftest.*
4378fi
c6b750e1
DJ
4379echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4380echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4381
512b7dfb 4382if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4383 have_gnat=yes
4384else
4385 have_gnat=no
4386fi
4387
c6b750e1
DJ
4388echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4389echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4390if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4392else
4393 echo abfoo >t1
4394 echo cdfoo >t2
4395 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4396 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4397 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4398 :
4399 else
4400 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4401 fi
4402 fi
b8908782
DD
4403 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4404 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4405 :
b8908782
DD
4406 else
4407 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4408 fi
4409 fi
4410 rm t1 t2
4411
4412fi
c6b750e1
DJ
4413echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4414echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4415do_compare="$gcc_cv_prog_cmp_skip"
4416
4417
9e07f89d 4418
11b04d1f 4419# Check for GMP and MPFR
4b900473 4420gmplibs="-lmpfr -lgmp"
4b1cb4fe 4421gmpinc=
4b900473
PB
4422have_gmp=no
4423
11b04d1f
DD
4424# Specify a location for mpfr
4425# check for this first so it ends up on the link line before gmp.
c6b750e1 4426
11b04d1f
DD
4427# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4428if test "${with_mpfr_dir+set}" = set; then
4429 withval="$with_mpfr_dir"
c6b750e1
DJ
4430 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4431Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4432echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4433Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4434 { (exit 1); exit 1; }; }
4435fi;
11b04d1f
DD
4436
4437
11b04d1f
DD
4438# Check whether --with-mpfr or --without-mpfr was given.
4439if test "${with_mpfr+set}" = set; then
4440 withval="$with_mpfr"
c6b750e1
DJ
4441
4442fi;
11b04d1f 4443
8a0d8a5c
PB
4444# Check whether --with-mpfr_include or --without-mpfr_include was given.
4445if test "${with_mpfr_include+set}" = set; then
4446 withval="$with_mpfr_include"
c6b750e1
DJ
4447
4448fi;
8a0d8a5c
PB
4449
4450# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4451if test "${with_mpfr_lib+set}" = set; then
4452 withval="$with_mpfr_lib"
8a0d8a5c 4453
c6b750e1 4454fi;
11b04d1f
DD
4455
4456if test "x$with_mpfr" != x; then
4457 gmplibs="-L$with_mpfr/lib $gmplibs"
4458 gmpinc="-I$with_mpfr/include"
4459fi
8a0d8a5c
PB
4460if test "x$with_mpfr_include" != x; then
4461 gmpinc="-I$with_mpfr_include"
4462fi
4463if test "x$with_mpfr_lib" != x; then
4464 gmplibs="-L$with_mpfr_lib $gmplibs"
4465fi
4b900473
PB
4466if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4467 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4468 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4469 # Do not test the mpfr version. Assume that it is sufficient, since
4470 # it is in the source tree, and the library has not been built yet
4471 # but it would be included on the link line in the version check below
4472 # hence making the test fail.
4473 have_gmp=yes
4474fi
11b04d1f 4475
4b1cb4fe 4476# Specify a location for gmp
c6b750e1 4477
4b1cb4fe
DD
4478# Check whether --with-gmp-dir or --without-gmp-dir was given.
4479if test "${with_gmp_dir+set}" = set; then
4480 withval="$with_gmp_dir"
c6b750e1
DJ
4481 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4482Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4483echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4484Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4485 { (exit 1); exit 1; }; }
4486fi;
4b1cb4fe
DD
4487
4488
4b1cb4fe
DD
4489# Check whether --with-gmp or --without-gmp was given.
4490if test "${with_gmp+set}" = set; then
4491 withval="$with_gmp"
c6b750e1
DJ
4492
4493fi;
4b1cb4fe 4494
8a0d8a5c
PB
4495# Check whether --with-gmp_include or --without-gmp_include was given.
4496if test "${with_gmp_include+set}" = set; then
4497 withval="$with_gmp_include"
c6b750e1
DJ
4498
4499fi;
8a0d8a5c
PB
4500
4501# Check whether --with-gmp_lib or --without-gmp_lib was given.
4502if test "${with_gmp_lib+set}" = set; then
4503 withval="$with_gmp_lib"
8a0d8a5c 4504
c6b750e1 4505fi;
8a0d8a5c 4506
4b1cb4fe 4507
11b04d1f
DD
4508if test "x$with_gmp" != x; then
4509 gmplibs="-L$with_gmp/lib $gmplibs"
4510 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4511fi
8a0d8a5c
PB
4512if test "x$with_gmp_include" != x; then
4513 gmpinc="-I$with_gmp_include $gmpinc"
4514fi
4515if test "x$with_gmp_lib" != x; then
4516 gmplibs="-L$with_gmp_lib $gmplibs"
4517fi
4b900473
PB
4518if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4519 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4520 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4521 # Do not test the gmp version. Assume that it is sufficient, since
4522 # it is in the source tree, and the library has not been built yet
4523 # but it would be included on the link line in the version check below
4524 # hence making the test fail.
4525 have_gmp=yes
4526fi
4b1cb4fe 4527
ceb92e78 4528if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4529 have_gmp=yes
4530 saved_CFLAGS="$CFLAGS"
4531 CFLAGS="$CFLAGS $gmpinc"
4532 # Check GMP actually works
c6b750e1
DJ
4533 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4534echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4535
4536cat >conftest.$ac_ext <<_ACEOF
4537/* confdefs.h. */
4538_ACEOF
4539cat confdefs.h >>conftest.$ac_ext
4540cat >>conftest.$ac_ext <<_ACEOF
4541/* end confdefs.h. */
4b1cb4fe 4542#include "gmp.h"
c6b750e1
DJ
4543int
4544main ()
4545{
4b1cb4fe 4546
4b900473
PB
4547 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4548 choke me
4549 #endif
c6b750e1
DJ
4550
4551 ;
4552 return 0;
4553}
4554_ACEOF
4555rm -f conftest.$ac_objext
4556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557 (eval $ac_compile) 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag"
4565 || test ! -s conftest.err'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; } &&
4571 { ac_try='test -s conftest.$ac_objext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 (eval $ac_try) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 echo "$as_me:$LINENO: result: yes" >&5
4578echo "${ECHO_T}yes" >&6
4579else
4580 echo "$as_me: failed program was:" >&5
4581sed 's/^/| /' conftest.$ac_ext >&5
4582
4583echo "$as_me:$LINENO: result: no" >&5
4584echo "${ECHO_T}no" >&6; have_gmp=no
4585fi
4586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4587
4b900473
PB
4588 if test x"$have_gmp" = xyes; then
4589 saved_LIBS="$LIBS"
4590 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4591 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4592echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4593 cat >conftest.$ac_ext <<_ACEOF
4594/* confdefs.h. */
4595_ACEOF
4596cat confdefs.h >>conftest.$ac_ext
4597cat >>conftest.$ac_ext <<_ACEOF
4598/* end confdefs.h. */
9b134994 4599#include <gmp.h>
4b900473 4600 #include <mpfr.h>
c6b750e1
DJ
4601int
4602main ()
4603{
9b134994 4604
57c53b2b 4605 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4b900473
PB
4606 choke me
4607 #endif
a3ca38d2
DD
4608 mpfr_t n;
4609 mpfr_t x;
4b900473 4610 int t;
a3ca38d2
DD
4611 mpfr_init (n);
4612 mpfr_init (x);
4b900473
PB
4613 mpfr_atan2 (n, n, x, GMP_RNDN);
4614 mpfr_erfc (n, x, GMP_RNDN);
4615 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4616
4617 ;
4618 return 0;
4619}
4620_ACEOF
4621rm -f conftest.$ac_objext conftest$ac_exeext
4622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623 (eval $ac_link) 2>conftest.er1
4624 ac_status=$?
4625 grep -v '^ *+' conftest.er1 >conftest.err
4626 rm -f conftest.er1
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -z "$ac_c_werror_flag"
4631 || test ! -s conftest.err'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; } &&
4637 { ac_try='test -s conftest$ac_exeext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 cat >conftest.$ac_ext <<_ACEOF
4644/* confdefs.h. */
4645_ACEOF
4646cat confdefs.h >>conftest.$ac_ext
4647cat >>conftest.$ac_ext <<_ACEOF
4648/* end confdefs.h. */
4b1cb4fe 4649#include <gmp.h>
4b900473 4650 #include <mpfr.h>
c6b750e1
DJ
4651int
4652main ()
4653{
9dbaa842 4654
57c53b2b 4655 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4b900473
PB
4656 choke me
4657 #endif
4658 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4659
4660 ;
4661 return 0;
4662}
4663_ACEOF
4664rm -f conftest.$ac_objext conftest$ac_exeext
4665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666 (eval $ac_link) 2>conftest.er1
4667 ac_status=$?
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } &&
4673 { ac_try='test -z "$ac_c_werror_flag"
4674 || test ! -s conftest.err'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 (eval $ac_try) 2>&5
4677 ac_status=$?
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; } &&
4680 { ac_try='test -s conftest$ac_exeext'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 (eval $ac_try) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 echo "$as_me:$LINENO: result: yes" >&5
4687echo "${ECHO_T}yes" >&6
4688else
4689 echo "$as_me: failed program was:" >&5
4690sed 's/^/| /' conftest.$ac_ext >&5
4691
4692echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4693echo "${ECHO_T}buggy but acceptable" >&6
4694fi
4695rm -f conftest.err conftest.$ac_objext \
4696 conftest$ac_exeext conftest.$ac_ext
4697else
4698 echo "$as_me: failed program was:" >&5
4699sed 's/^/| /' conftest.$ac_ext >&5
4700
4701echo "$as_me:$LINENO: result: no" >&5
4702echo "${ECHO_T}no" >&6; have_gmp=no
4703fi
4704rm -f conftest.err conftest.$ac_objext \
4705 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4706 LIBS="$saved_LIBS"
4707 fi
4708 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4709
4b900473 4710 if test x$have_gmp != xyes; then
57c53b2b 4711 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
c6b750e1
DJ
4712Try the --with-gmp and/or --with-mpfr options to specify their locations.
4713Copies of these libraries' source code can be found at their respective
4714hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4715See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4716If you obtained GMP and/or MPFR from a vendor distribution package, make
4717sure that you have installed both the libraries and the header files.
4718They may be located in separate packages." >&5
57c53b2b 4719echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
9dbaa842
DD
4720Try the --with-gmp and/or --with-mpfr options to specify their locations.
4721Copies of these libraries' source code can be found at their respective
4722hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4723See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4724If you obtained GMP and/or MPFR from a vendor distribution package, make
4725sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4726They may be located in separate packages." >&2;}
4727 { (exit 1); exit 1; }; }
4b900473 4728 fi
9dbaa842
DD
4729fi
4730
11b04d1f 4731# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4732
4733
4734
947f426e 4735# By default, C is the only stage 1 language.
9b134994 4736stage1_languages=,c,
1d39f329 4737
9e07f89d
NN
4738# Figure out what language subdirectories are present.
4739# Look if the user specified --enable-languages="..."; if not, use
4740# the environment variable $LANGUAGES if defined. $LANGUAGES might
4741# go away some day.
4742# NB: embedded tabs in this IF block -- do not untabify
4743if test -d ${srcdir}/gcc; then
4744 if test x"${enable_languages+set}" != xset; then
4745 if test x"${LANGUAGES+set}" = xset; then
4746 enable_languages="${LANGUAGES}"
4747 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4748 else
4749 enable_languages=all
4750 fi
4751 else
4752 if test x"${enable_languages}" = x ||
4753 test x"${enable_languages}" = xyes;
4754 then
4755 echo configure.in: --enable-languages needs at least one language argument 1>&2
4756 exit 1
4757 fi
4758 fi
4759 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4760
096f7d00
DE
4761 # 'f95' is the old name for the 'fortran' language. We issue a warning
4762 # and make the substitution.
4763 case ,${enable_languages}, in
4764 *,f95,*)
4765 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4766 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4767 ;;
4768 esac
4769
9e07f89d
NN
4770 # First scan to see if an enabled language requires some other language.
4771 # We assume that a given config-lang.in will list all the language
4772 # front ends it requires, even if some are required indirectly.
4773 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4774 case ${lang_frag} in
4775 ..) ;;
4776 # The odd quoting in the next line works around
4777 # an apparent bug in bash 1.12 on linux.
4778 ${srcdir}/gcc/[*]/config-lang.in) ;;
4779 *)
4780 # From the config-lang.in, get $language, $lang_requires
4781 language=
4782 lang_requires=
4783 . ${lang_frag}
4784 for other in ${lang_requires} ; do
4785 case ,${enable_languages}, in
4786 *,$other,*) ;;
4787 *,all,*) ;;
4788 *,$language,*)
4789 echo " \`$other' language required by \`$language'; enabling" 1>&2
4790 enable_languages="${enable_languages},${other}"
4791 ;;
4792 esac
4793 done
4794 ;;
4795 esac
4796 done
4797
9b134994 4798 new_enable_languages=,c,
9e07f89d 4799 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4800 potential_languages=,c,
9e07f89d
NN
4801
4802 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4803 case ${lang_frag} in
4804 ..) ;;
4805 # The odd quoting in the next line works around
4806 # an apparent bug in bash 1.12 on linux.
4807 ${srcdir}/gcc/[*]/config-lang.in) ;;
4808 *)
c6b750e1 4809 # From the config-lang.in, get $language, $target_libs,
1d39f329 4810 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4811 language=
4812 target_libs=
4813 lang_dirs=
64ce424c 4814 subdir_requires=
9b134994
PB
4815 boot_language=no
4816 build_by_default=yes
9e07f89d 4817 . ${lang_frag}
9b134994
PB
4818 if test x${language} = x; then
4819 echo "${lang_frag} doesn't set \$language." 1>&2
4820 exit 1
4821 fi
4822
4823 case ,${enable_languages}, in
4824 *,${language},*)
9e07f89d
NN
4825 # Language was explicitly selected; include it.
4826 add_this_lang=yes
4827 ;;
9b134994
PB
4828 *,all,*)
4829 # 'all' was selected, select it if it is a default language
4830 add_this_lang=${build_by_default}
9e07f89d
NN
4831 ;;
4832 *)
4833 add_this_lang=no
4834 ;;
4835 esac
4b1cb4fe 4836
64ce424c 4837 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4838 for i in $subdir_requires; do
3d3adb43 4839 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4840 case ,${enable_languages}, in
4841 *,${language},*)
4842 # Specifically requested language; tell them.
c6b750e1
DJ
4843 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4844echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4845 { (exit 1); exit 1; }; }
64ce424c
PB
4846 ;;
4847 *)
4848 # Silently disable.
9b134994 4849 add_this_lang=unsupported
64ce424c
PB
4850 ;;
4851 esac
4852 done
4853
9b134994
PB
4854 # Disable Ada if no preexisting GNAT is available.
4855 case ,${enable_languages},:${language}:${have_gnat} in
4856 *,${language},*:ada:no)
4857 # Specifically requested language; tell them.
c6b750e1
DJ
4858 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4859echo "$as_me: error: GNAT is required to build $language" >&2;}
4860 { (exit 1); exit 1; }; }
9b134994
PB
4861 ;;
4862 *:ada:no)
4863 # Silently disable.
4864 add_this_lang=unsupported
4865 ;;
4866 esac
4867
59f7ec45
HPN
4868 # Disable a language that is unsupported by the target.
4869 case " $unsupported_languages " in
4870 *" $language "*)
9b134994 4871 add_this_lang=unsupported
59f7ec45
HPN
4872 ;;
4873 esac
4874
4b1cb4fe 4875 case $add_this_lang in
9b134994 4876 unsupported)
9e07f89d 4877 # Remove language-dependent dirs.
1d39f329
NN
4878 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4879 ;;
9b134994
PB
4880 no)
4881 # Remove language-dependent dirs; still show language as supported.
4882 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4883 potential_languages="${potential_languages}${language},"
4884 ;;
4885 yes)
4886 new_enable_languages="${new_enable_languages}${language},"
4887 potential_languages="${potential_languages}${language},"
1d39f329
NN
4888 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4889 case ${boot_language} in
4890 yes)
4fa63067 4891 # Add to (comma-separated) list of stage 1 languages.
9b134994 4892 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4893 ;;
4894 esac
4895 ;;
9e07f89d
NN
4896 esac
4897 ;;
4898 esac
4899 done
4900
9b134994
PB
4901 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4902if test "${enable_stage1_languages+set}" = set; then
4903 enableval="$enable_stage1_languages"
4904 case ,${enable_stage1_languages}, in
4905 ,no,|,,)
4906 # Set it to something that will have no effect in the loop below
4907 enable_stage1_languages=c ;;
4908 ,yes,)
4909 enable_stage1_languages=`echo $new_enable_languages | \
4910 sed -e "s/^,//" -e "s/,$//" ` ;;
4911 *,all,*)
4912 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4913 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4914 esac
4915
4916 # Add "good" languages from enable_stage1_languages to stage1_languages,
4917 # while "bad" languages go in missing_languages. Leave no duplicates.
4918 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4919 case $potential_languages in
4920 *,$i,*)
4921 case $stage1_languages in
4922 *,$i,*) ;;
4923 *) stage1_languages="$stage1_languages$i," ;;
4924 esac ;;
4925 *)
4926 case $missing_languages in
4927 *,$i,*) ;;
4928 *) missing_languages="$missing_languages$i," ;;
4929 esac ;;
4930 esac
4931 done
c6b750e1 4932fi;
9b134994
PB
4933
4934 # Remove leading/trailing commas that were added for simplicity
4935 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4936 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4937 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4938 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4939
9e07f89d 4940 if test "x$missing_languages" != x; then
c6b750e1 4941 { { echo "$as_me:$LINENO: error:
27258dd4 4942The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4943Supported languages are: ${potential_languages}" >&5
4944echo "$as_me: error:
4945The following requested languages could not be built: ${missing_languages}
4946Supported languages are: ${potential_languages}" >&2;}
4947 { (exit 1); exit 1; }; }
9e07f89d 4948 fi
9e07f89d
NN
4949 if test "x$new_enable_languages" != "x$enable_languages"; then
4950 echo The following languages will be built: ${new_enable_languages}
9b134994 4951 enable_languages="$new_enable_languages"
9e07f89d 4952 fi
9b134994 4953
c6b750e1 4954
81ec575a 4955 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4956fi
4957
a6df5a19
PB
4958# Handle --disable-<component> generically.
4959for dir in $configdirs $build_configdirs $target_configdirs ; do
4960 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
4961 varname=`echo $dirname | sed -e s/+/_/g`
4962 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
4963 noconfigdirs="$noconfigdirs $dir"
4964 fi
4965done
4966
4f0ef2d8
CD
4967# Check for Boehm's garbage collector
4968# Check whether --enable-objc-gc or --disable-objc-gc was given.
4969if test "${enable_objc_gc+set}" = set; then
4970 enableval="$enable_objc_gc"
4971 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4972 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4973 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4974echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4975 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4976 ;;
4977esac
c6b750e1 4978fi;
4f0ef2d8
CD
4979
4980# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4981case ,${enable_languages},:${enable_objc_gc} in
4982 *,objc,*:yes)
4f0ef2d8
CD
4983 # Keep target-boehm-gc if requested for Objective-C.
4984 ;;
4f0ef2d8 4985 *)
d42c4017
DA
4986 # Otherwise remove target-boehm-gc depending on target-libjava.
4987 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4988 noconfigdirs="$noconfigdirs target-boehm-gc"
4989 fi
4f0ef2d8
CD
4990 ;;
4991esac
4992
caeba88f
AL
4993# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4994# $build_configdirs and $target_configdirs.
9e07f89d
NN
4995# If we have the source for $noconfigdirs entries, add them to $notsupp.
4996
4997notsupp=""
4998for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4999 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5000 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5001 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5002 if test -r $srcdir/$dirname/configure ; then
5003 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5004 true
5005 else
5006 notsupp="$notsupp $dir"
5007 fi
5008 fi
5009 fi
caeba88f
AL
5010 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5011 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5012 if test -r $srcdir/$dirname/configure ; then
5013 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5014 true
5015 else
5016 notsupp="$notsupp $dir"
5017 fi
5018 fi
5019 fi
9e07f89d
NN
5020 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5021 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5022 if test -r $srcdir/$dirname/configure ; then
5023 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5024 true
5025 else
5026 notsupp="$notsupp $dir"
5027 fi
5028 fi
5029 fi
5030done
5031
5032# Sometimes the tools are distributed with libiberty but with no other
5033# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5034# Don't let libgcc imply libiberty either.
9e07f89d 5035if test -n "${target_configdirs}" ; then
f86e35b8 5036 libgcc=
9e07f89d
NN
5037 others=
5038 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5039 if test "$i" = "libgcc"; then
5040 libgcc=target-libgcc
5041 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5042 if test -r $srcdir/$i/configure ; then
5043 others=yes;
5044 break;
5045 fi
5046 fi
5047 done
5048 if test -z "${others}" ; then
f86e35b8 5049 target_configdirs=$libgcc
9e07f89d
NN
5050 fi
5051fi
5052
5053# Quietly strip out all directories which aren't configurable in this tree.
5054# This relies on all configurable subdirectories being autoconfiscated, which
5055# is now the case.
6a9cf61e
PB
5056build_configdirs_all="$build_configdirs"
5057build_configdirs=
5058for i in ${build_configdirs_all} ; do
c6b750e1 5059 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5060 if test -f ${srcdir}/$j/configure ; then
5061 build_configdirs="${build_configdirs} $i"
5062 fi
5063done
5064
9e07f89d
NN
5065configdirs_all="$configdirs"
5066configdirs=
5067for i in ${configdirs_all} ; do
5068 if test -f ${srcdir}/$i/configure ; then
5069 configdirs="${configdirs} $i"
5070 fi
5071done
6a9cf61e 5072
9e07f89d
NN
5073target_configdirs_all="$target_configdirs"
5074target_configdirs=
5075for i in ${target_configdirs_all} ; do
c6b750e1 5076 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5077 if test -f ${srcdir}/$j/configure ; then
5078 target_configdirs="${target_configdirs} $i"
5079 fi
5080done
5081
5082# Produce a warning message for the subdirs we can't configure.
5083# This isn't especially interesting in the Cygnus tree, but in the individual
5084# FSF releases, it's important to let people know when their machine isn't
5085# supported by the one or two programs in a package.
5086
5087if test -n "${notsupp}" && test -z "${norecursion}" ; then
5088 # If $appdirs is non-empty, at least one of those directories must still
5089 # be configured, or we error out. (E.g., if the gas release supports a
5090 # specified target in some subdirs but not the gas subdir, we shouldn't
5091 # pretend that all is well.)
5092 if test -n "$appdirs" ; then
5093 for dir in $appdirs ; do
5094 if test -r $dir/Makefile.in ; then
5095 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5096 appdirs=""
5097 break
5098 fi
6a9cf61e 5099 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5100 appdirs=""
5101 break
5102 fi
5103 fi
5104 done
5105 if test -n "$appdirs" ; then
5106 echo "*** This configuration is not supported by this package." 1>&2
5107 exit 1
5108 fi
5109 fi
5110 # Okay, some application will build, or we don't care to check. Still
5111 # notify of subdirs not getting built.
5112 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5113 echo " ${notsupp}" 1>&2
5114 echo " (Any other directories should still work fine.)" 1>&2
5115fi
5116
5117case "$host" in
5118 *msdosdjgpp*)
5119 enable_gdbtk=no ;;
5120esac
5121
18f6b6ee
PB
5122# To find our prefix, in gcc_cv_tool_prefix.
5123
5124# The user is always right.
5125if test "${PATH_SEPARATOR+set}" != set; then
5126 echo "#! /bin/sh" >conf$$.sh
5127 echo "exit 0" >>conf$$.sh
5128 chmod +x conf$$.sh
5129 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5130 PATH_SEPARATOR=';'
5131 else
5132 PATH_SEPARATOR=:
5133 fi
5134 rm -f conf$$.sh
5135fi
5136
5137
5138
5139if test "x$exec_prefix" = xNONE; then
5140 if test "x$prefix" = xNONE; then
5141 gcc_cv_tool_prefix=$ac_default_prefix
5142 else
5143 gcc_cv_tool_prefix=$prefix
5144 fi
5145else
5146 gcc_cv_tool_prefix=$exec_prefix
5147fi
5148
5149# If there is no compiler in the tree, use the PATH only. In any
5150# case, if there is no compiler in the tree nobody should use
5151# AS_FOR_TARGET and LD_FOR_TARGET.
5152if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5153 gcc_version=`cat $srcdir/gcc/BASE-VER`
5154 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5155 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5156 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5157 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5158 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5159 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5160else
5161 gcc_cv_tool_dirs=
5162fi
5163
5164if test x$build = x$target && test -n "$md_exec_prefix"; then
5165 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5166fi
5167
5168
5169
9e07f89d
NN
5170copy_dirs=
5171
c6b750e1 5172
a19b6204
MM
5173# Check whether --with-build-sysroot or --without-build-sysroot was given.
5174if test "${with_build_sysroot+set}" = set; then
5175 withval="$with_build_sysroot"
5176 if test x"$withval" != x ; then
5177 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5178 fi
5179else
5180 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5181fi;
a19b6204
MM
5182
5183
8a6ee3ab
JM
5184
5185# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5186if test "${with_debug_prefix_map+set}" = set; then
5187 withval="$with_debug_prefix_map"
5188 if test x"$withval" != x; then
5189 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5190 for debug_map in $withval; do
5191 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5192 done
5193 fi
5194else
5195 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5196fi;
5197
5198
7f6ef0c0
PB
5199# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5200# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5201# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5202# We want to ensure that TARGET libraries (which we know are built with
5203# gcc) are built with "-O2 -g", so include those options when setting
5204# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5205if test "x$CFLAGS_FOR_TARGET" = x; then
5206 CFLAGS_FOR_TARGET=$CFLAGS
5207 case " $CFLAGS " in
5208 *" -O2 "*) ;;
5209 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5210 esac
5211 case " $CFLAGS " in
5212 *" -g "* | *" -g3 "*) ;;
5213 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5214 esac
5215fi
5216
5217
5218if test "x$CXXFLAGS_FOR_TARGET" = x; then
5219 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5220 case " $CXXFLAGS " in
5221 *" -O2 "*) ;;
5222 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5223 esac
5224 case " $CXXFLAGS " in
5225 *" -g "* | *" -g3 "*) ;;
5226 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5227 esac
5228fi
5229
5230
9e07f89d
NN
5231# Handle --with-headers=XXX. If the value is not "yes", the contents of
5232# the named directory are copied to $(tooldir)/sys-include.
5233if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5234 if test x${is_cross_compiler} = xno ; then
5235 echo 1>&2 '***' --with-headers is only supported when cross compiling
5236 exit 1
5237 fi
5238 if test x"${with_headers}" != xyes ; then
18f6b6ee 5239 x=${gcc_cv_tool_prefix}
c6b750e1 5240 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5241 fi
5242fi
5243
5244# Handle --with-libs=XXX. If the value is not "yes", the contents of
5245# the name directories are copied to $(tooldir)/lib. Multiple directories
5246# are permitted.
5247if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5248 if test x${is_cross_compiler} = xno ; then
5249 echo 1>&2 '***' --with-libs is only supported when cross compiling
5250 exit 1
5251 fi
5252 if test x"${with_libs}" != xyes ; then
5253 # Copy the libraries in reverse order, so that files in the first named
5254 # library override files in subsequent libraries.
18f6b6ee 5255 x=${gcc_cv_tool_prefix}
9e07f89d 5256 for l in ${with_libs}; do
c6b750e1 5257 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5258 done
5259 fi
5260fi
5261
2429c060
PB
5262# Set with_gnu_as and with_gnu_ld as appropriate.
5263#
5264# This is done by determining whether or not the appropriate directory
5265# is available, and by checking whether or not specific configurations
5266# have requested that this magic not happen.
c6b750e1
DJ
5267#
5268# The command line options always override the explicit settings in
2429c060
PB
5269# configure.in, and the settings in configure.in override this magic.
5270#
c6b750e1 5271# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5272# want to do that, then you should use the --without-gnu-as and
5273# --without-gnu-ld options for the configure script.
5274
5275if test x${use_gnu_as} = x &&
5276 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5277 with_gnu_as=yes
5278 extra_host_args="$extra_host_args --with-gnu-as"
5279fi
5280
5281if test x${use_gnu_ld} = x &&
93f9b408 5282 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
5283 with_gnu_ld=yes
5284 extra_host_args="$extra_host_args --with-gnu-ld"
5285fi
5286
5287# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5288# can detect this case.
5289
5290if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5291 with_newlib=yes
5292 extra_host_args="$extra_host_args --with-newlib"
5293fi
5294
9e07f89d
NN
5295# Handle ${copy_dirs}
5296set fnord ${copy_dirs}
5297shift
5298while test $# != 0 ; do
5299 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5300 :
5301 else
5302 echo Copying $1 to $2
5303
5304 # Use the install script to create the directory and all required
5305 # parent directories.
5306 if test -d $2 ; then
5307 :
5308 else
5309 echo >config.temp
5310 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5311 fi
5312
5313 # Copy the directory, assuming we have tar.
5314 # FIXME: Should we use B in the second tar? Not all systems support it.
5315 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5316
5317 # It is the responsibility of the user to correctly adjust all
5318 # symlinks. If somebody can figure out how to handle them correctly
5319 # here, feel free to add the code.
5320
5321 echo $1 > $2/COPIED
5322 fi
5323 shift; shift
5324done
5325
2429c060
PB
5326# Determine a target-dependent exec_prefix that the installed
5327# gcc will search in. Keep this list sorted by triplet, with
5328# the *-*-osname triplets last.
5329md_exec_prefix=
5330case "${target}" in
5331 alpha*-*-*vms*)
5332 md_exec_prefix=/gnu/lib/gcc-lib
5333 ;;
521ec477 5334 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5335 md_exec_prefix=/dev/env/DJDIR/bin
5336 ;;
521ec477 5337 i[34567]86-*-sco3.2v5*)
2429c060
PB
5338 if test $with_gnu_as = yes; then
5339 md_exec_prefix=/usr/gnu/bin
5340 else
5341 md_exec_prefix=/usr/ccs/bin/elf
5342 fi
5343 ;;
5344
5345 mn10300-*-* | \
5346 powerpc-*-chorusos* | \
5347 powerpc*-*-eabi* | \
5348 powerpc*-*-sysv* | \
5349 powerpc*-*-kaos* | \
5350 s390x-ibm-tpf*)
5351 md_exec_prefix=/usr/ccs/bin
5352 ;;
5353 sparc64-*-elf*)
5354 ;;
5355 v850*-*-*)
5356 md_exec_prefix=/usr/ccs/bin
5357 ;;
8b66833e 5358 xtensa*-*-elf*)
2429c060
PB
5359 ;;
5360
5361 *-*-beos* | \
5362 *-*-elf* | \
5363 *-*-hpux* | \
5364 *-*-netware* | \
5365 *-*-nto-qnx* | \
5366 *-*-rtems* | \
5367 *-*-solaris2* | \
521ec477 5368 *-*-sysv[45]* | \
2429c060
PB
5369 *-*-vxworks* | \
5370 *-wrs-windiss)
5371 md_exec_prefix=/usr/ccs/bin
5372 ;;
5373esac
5374
a0da8069
NN
5375extra_arflags_for_target=
5376extra_nmflags_for_target=
5377extra_ranlibflags_for_target=
5378target_makefile_frag=/dev/null
5379case "${target}" in
4e206d7e
DB
5380 mep*-*-*)
5381 target_makefile_frag="config/mt-mep"
5382 ;;
77d7106f
AM
5383 spu-*-*)
5384 target_makefile_frag="config/mt-spu"
5385 ;;
429acdec
RS
5386 mips*-sde-elf*)
5387 target_makefile_frag="config/mt-sde"
5388 ;;
f3b1e08e
RS
5389 mipsisa*-*-elfoabi*)
5390 target_makefile_frag="config/mt-mips-elfoabi"
5391 ;;
2a3124ca 5392 *-*-netware*)
a0da8069
NN
5393 target_makefile_frag="config/mt-netware"
5394 ;;
3d6dfe0f
NN
5395 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5396 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5397 ;;
5398 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5399 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5400 # commands to handle both 32-bit and 64-bit objects. These flags are
5401 # harmless if we're using GNU nm or ar.
5402 extra_arflags_for_target=" -X32_64"
5403 extra_nmflags_for_target=" -B -X32_64"
5404 ;;
5405 *-*-darwin*)
5406 # ranlib from Darwin requires the -c flag to look at common symbols.
5407 extra_ranlibflags_for_target=" -c"
5408 ;;
5409 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5410 target_makefile_frag="config/mt-wince"
5411 ;;
5412esac
5413
5414alphaieee_frag=/dev/null
5415case $target in
5416 alpha*-*-*)
5417 # This just makes sure to use the -mieee option to build target libs.
5418 # This should probably be set individually by each library.
5419 alphaieee_frag="config/mt-alphaieee"
5420 ;;
5421esac
5422
5423# If --enable-target-optspace always use -Os instead of -O2 to build
5424# the target libraries, similarly if it is not specified, use -Os
5425# on selected platforms.
5426ospace_frag=/dev/null
5427case "${enable_target_optspace}:${target}" in
5428 yes:*)
5429 ospace_frag="config/mt-ospace"
5430 ;;
5431 :d30v-*)
5432 ospace_frag="config/mt-d30v"
5433 ;;
5434 :m32r-* | :d10v-* | :fr30-*)
5435 ospace_frag="config/mt-ospace"
5436 ;;
5437 no:* | :*)
5438 ;;
5439 *)
5440 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5441 ;;
5442esac
5443
a0da8069
NN
5444# Default to using --with-stabs for certain targets.
5445if test x${with_stabs} = x ; then
5446 case "${target}" in
e31d1ea3 5447 mips*-*-irix[56]*)
a0da8069
NN
5448 ;;
5449 mips*-*-* | alpha*-*-osf*)
5450 with_stabs=yes;
5451 extra_host_args="${extra_host_args} --with-stabs"
5452 ;;
5453 esac
5454fi
5455
5456# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5457# them automatically.
5458case "${host}" in
c6b750e1 5459 hppa*64*-*-hpux11*)
a0da8069
NN
5460 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5461 ;;
5462esac
5463
a0da8069
NN
5464# Some systems (e.g., one of the i386-aix systems the gas testers are
5465# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5466tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5467build_tooldir=${tooldir}
5468
a0da8069
NN
5469# Create a .gdbinit file which runs the one in srcdir
5470# and tells GDB to look there for source files.
5471
5472if test -r ${srcdir}/.gdbinit ; then
5473 case ${srcdir} in
5474 .) ;;
5475 *) cat > ./.gdbinit <<EOF
5476# ${NO_EDIT}
5477dir ${srcdir}
5478dir .
5479source ${srcdir}/.gdbinit
5480EOF
5481 ;;
5482 esac
5483fi
5484
a0da8069
NN
5485# Make sure that the compiler is able to generate an executable. If it
5486# can't, we are probably in trouble. We don't care whether we can run the
5487# executable--we might be using a cross compiler--we only care whether it
5488# can be created. At this point the main configure script has set CC.
5489we_are_ok=no
5490echo "int main () { return 0; }" > conftest.c
5491${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5492if test $? = 0 ; then
5493 if test -s conftest || test -s conftest.exe ; then
5494 we_are_ok=yes
5495 fi
c6b750e1 5496fi
a0da8069
NN
5497case $we_are_ok in
5498 no)
5499 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5500 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5501 rm -f conftest*
5502 exit 1
5503 ;;
5504esac
5505rm -f conftest*
5506
5507# The Solaris /usr/ucb/cc compiler does not appear to work.
5508case "${host}" in
5509 sparc-sun-solaris2*)
5510 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5511 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5512 could_use=
5513 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5514 if test -d /opt/cygnus/bin ; then
5515 if test "$could_use" = "" ; then
5516 could_use="/opt/cygnus/bin"
5517 else
5518 could_use="$could_use or /opt/cygnus/bin"
5519 fi
5520 fi
5521 if test "$could_use" = "" ; then
5522 echo "Warning: compilation may fail because you're using"
5523 echo "/usr/ucb/cc. You should change your PATH or CC "
5524 echo "variable and rerun configure."
5525 else
5526 echo "Warning: compilation may fail because you're using"
5527 echo "/usr/ucb/cc, when you should use the C compiler from"
5528 echo "$could_use. You should change your"
5529 echo "PATH or CC variable and rerun configure."
5530 fi
5531 fi
5532 ;;
5533esac
5534
a0da8069
NN
5535case "${host}" in
5536 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5537 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5538 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5539esac
5540
5541# Record target_configdirs and the configure arguments for target and
5542# build configuration in Makefile.
5543target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5544build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5545
a0da8069
NN
5546# Determine whether gdb needs tk/tcl or not.
5547# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5548# and in that case we want gdb to be built without tk. Ugh!
5549# In fact I believe gdb is the *only* package directly dependent on tk,
5550# so we should be able to put the 'maybe's in unconditionally and
5551# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5552# 100% sure that that's safe though.
c180f501 5553
675c6968 5554gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5555case "$enable_gdbtk" in
5556 no)
5557 GDB_TK="" ;;
c180f501
AC
5558 yes)
5559 GDB_TK="${gdb_tk}" ;;
a0da8069 5560 *)
c180f501
AC
5561 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5562 # distro. Eventually someone will fix this and move Insight, nee
5563 # gdbtk to a separate directory.
5564 if test -d ${srcdir}/gdb/gdbtk ; then
5565 GDB_TK="${gdb_tk}"
5566 else
5567 GDB_TK=""
5568 fi
5569 ;;
a0da8069 5570esac
907be67c
DJ
5571CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5572INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5573
6bd3dfaa 5574# Strip out unwanted targets.
dd12c3a8
NN
5575
5576# While at that, we remove Makefiles if we were started for recursive
5577# configuration, so that the top-level Makefile reconfigures them,
5578# like we used to do when configure itself was recursive.
dd12c3a8 5579
6bd3dfaa
PB
5580# Loop over modules. $extrasub must be used with care, limiting as
5581# much as possible the usage of range addresses. That's because autoconf
5582# splits the sed script to overcome limits in the number of commands,
5583# and relying on carefully-timed sed passes may turn out to be very hard
5584# to maintain later. In this particular case, you just have to be careful
5585# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5586
319cab08
PB
5587# Check whether --enable-bootstrap or --disable-bootstrap was given.
5588if test "${enable_bootstrap+set}" = set; then
5589 enableval="$enable_bootstrap"
c6b750e1 5590
319cab08 5591else
9cb3fa6f 5592 enable_bootstrap=default
c6b750e1 5593fi;
319cab08 5594
9cb3fa6f
PB
5595# Issue errors and warnings for invalid/strange bootstrap combinations.
5596case "$configdirs" in
5597 *gcc*) have_compiler=yes ;;
5598 *) have_compiler=no ;;
5599esac
5600
5601case "$have_compiler:$host:$target:$enable_bootstrap" in
5602 *:*:*:no) ;;
5603
0aed8855 5604 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5605 # and we are in a native configuration.
5606 yes:$build:$build:default)
0aed8855 5607 enable_bootstrap=yes ;;
9cb3fa6f
PB
5608
5609 *:*:*:default)
5610 enable_bootstrap=no ;;
5611
5612 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5613 yes:$build:$build:yes)
9cb3fa6f
PB
5614 ;;
5615
5616 # Other configurations, but we have a compiler. Assume the user knows
5617 # what he's doing.
80911fe1 5618 yes:*:*:yes)
c6b750e1
DJ
5619 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5620echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5621 ;;
5622
5623 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5624 no:*:*:yes)
c6b750e1
DJ
5625 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5626echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5627 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5628
5629 # Fail if wrong command line
5630 *)
c6b750e1
DJ
5631 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5632echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5633 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5634 ;;
5635esac
5636
5637# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5638case "$enable_bootstrap" in
5639 yes)
498d4a71 5640 bootstrap_suffix=bootstrap ;;
319cab08 5641 no)
498d4a71 5642 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5643esac
5644
6a9cf61e 5645for module in ${build_configdirs} ; do
498d4a71
CF
5646 if test -z "${no_recursion}" \
5647 && test -f ${build_subdir}/${module}/Makefile; then
5648 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5649 rm -f ${build_subdir}/${module}/Makefile
5650 fi
5651 extrasub="$extrasub
5652/^@if build-$module\$/d
5653/^@endif build-$module\$/d
5654/^@if build-$module-$bootstrap_suffix\$/d
5655/^@endif build-$module-$bootstrap_suffix\$/d"
5656done
5657for module in ${configdirs} ; do
80911fe1 5658 if test -z "${no_recursion}"; then
8cf39b1b 5659 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5660 if test -f ${file}; then
5661 echo 1>&2 "*** removing ${file} to force reconfigure"
5662 rm -f ${file}
5663 fi
5664 done
498d4a71
CF
5665 fi
5666 extrasub="$extrasub
5667/^@if $module\$/d
5668/^@endif $module\$/d
5669/^@if $module-$bootstrap_suffix\$/d
5670/^@endif $module-$bootstrap_suffix\$/d"
5671done
5672for module in ${target_configdirs} ; do
5673 if test -z "${no_recursion}" \
5674 && test -f ${target_subdir}/${module}/Makefile; then
5675 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5676 rm -f ${target_subdir}/${module}/Makefile
5677 fi
5678 extrasub="$extrasub
5679/^@if target-$module\$/d
5680/^@endif target-$module\$/d
5681/^@if target-$module-$bootstrap_suffix\$/d
5682/^@endif target-$module-$bootstrap_suffix\$/d"
5683done
5684
6bd3dfaa
PB
5685extrasub="$extrasub
5686/^@if /,/^@endif /d"
a0da8069
NN
5687
5688# Create the serialization dependencies. This uses a temporary file.
5689
e6bfb94a
AO
5690# Check whether --enable-serial-configure or --disable-serial-configure was given.
5691if test "${enable_serial_configure+set}" = set; then
5692 enableval="$enable_serial_configure"
e6bfb94a 5693
c6b750e1 5694fi;
e6bfb94a 5695
1047cb91
DD
5696case ${enable_serial_configure} in
5697 yes)
5698 enable_serial_build_configure=yes
5699 enable_serial_host_configure=yes
5700 enable_serial_target_configure=yes
5701 ;;
5702esac
5703
a0da8069
NN
5704# These force 'configure's to be done one at a time, to avoid problems
5705# with contention over a shared config.cache.
5706rm -f serdep.tmp
e6bfb94a 5707echo '# serdep.tmp' > serdep.tmp
a0da8069 5708olditem=
1047cb91 5709test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5710for item in ${build_configdirs} ; do
5711 case ${olditem} in
5712 "") ;;
e6bfb94a 5713 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5714 esac
5715 olditem=${item}
5716done
5717olditem=
1047cb91 5718test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5719for item in ${configdirs} ; do
5720 case ${olditem} in
5721 "") ;;
e6bfb94a 5722 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5723 esac
5724 olditem=${item}
5725done
5726olditem=
1047cb91 5727test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5728for item in ${target_configdirs} ; do
5729 case ${olditem} in
5730 "") ;;
e6bfb94a 5731 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5732 esac
5733 olditem=${item}
5734done
5735serialization_dependencies=serdep.tmp
5736
5737
e6bfb94a 5738# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5739# target, nonopt, and variable assignments. These are the ones we
5740# might not want to pass down to subconfigures. Also strip
5741# program-prefix, program-suffix, and program-transform-name, so that
5742# we can pass down a consistent program-transform-name.
5743baseargs=
5744keep_next=no
5745skip_next=no
5746eval "set -- $ac_configure_args"
18f6b6ee
PB
5747for ac_arg
5748do
c6b750e1
DJ
5749 if test X"$skip_next" = X"yes"; then
5750 skip_next=no
5751 continue
5752 fi
5753 if test X"$keep_next" = X"yes"; then
5754 case $ac_arg in
5755 *\'*)
5756 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5757 esac
5758 baseargs="$baseargs '$ac_arg'"
5759 keep_next=no
5760 continue
5761 fi
5762
5763 # Handle separated arguments. Based on the logic generated by
5764 # autoconf 2.59.
5765 case $ac_arg in
5766 *=* | --config-cache | -C | -disable-* | --disable-* \
5767 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5768 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5769 | -with-* | --with-* | -without-* | --without-* | --x)
5770 separate_arg=no
5771 ;;
5772 -*)
5773 separate_arg=yes
5774 ;;
5775 *)
5776 separate_arg=no
5777 ;;
5778 esac
5779
5780 case "$ac_arg" in
5781 --no*)
5782 continue
5783 ;;
5784 --c* | \
5785 --sr* | \
5786 --ho* | \
5787 --bu* | \
5788 --t* | \
5789 --program-* | \
5790 -cache_file* | \
5791 -srcdir* | \
5792 -host* | \
5793 -build* | \
5794 -target* | \
5795 -program-prefix* | \
5796 -program-suffix* | \
5797 -program-transform-name* )
5798 skip_next=$separate_arg
5799 continue
5800 ;;
5801 -*)
5802 # An option. Add it.
5803 case $ac_arg in
5804 *\'*)
5805 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5806 esac
5807 baseargs="$baseargs '$ac_arg'"
5808 keep_next=$separate_arg
5809 ;;
5810 *)
5811 # Either a variable assignment, or a nonopt (triplet). Don't
5812 # pass it down; let the Makefile handle this.
5813 continue
5814 ;;
5815 esac
5816done
5817# Remove the initial space we just introduced and, as these will be
5818# expanded by make, quote '$'.
5819baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5820
f27d4f92
DJ
5821# Add in --program-transform-name, after --program-prefix and
5822# --program-suffix have been applied to it. Autoconf has already
5823# doubled dollar signs and backslashes in program_transform_name; we want
5824# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5825# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5826# Also, because we want to override the logic in subdir configure scripts to
5827# choose program_transform_name, replace any s,x,x, with s,y,y,.
5828sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5829${program_transform_name}
5830EOF_SED
5831gcc_transform_name=`cat conftestsed.out`
5832rm -f conftestsed.out
5833baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5834if test "$silent" = yes; then
5835 baseargs="$baseargs --silent"
5836fi
f27d4f92 5837
a0da8069
NN
5838# For the build-side libraries, we just need to pretend we're native,
5839# and not use the same cache file. Multilibs are neither needed nor
5840# desired.
4b900473 5841build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5842
5843# For host modules, accept cache file option, or specification as blank.
5844case "${cache_file}" in
5845"") # empty
5846 cache_file_option="" ;;
5847/* | [A-Za-z]:[\\/]* ) # absolute path
5848 cache_file_option="--cache-file=${cache_file}" ;;
5849*) # relative path
5850 cache_file_option="--cache-file=../${cache_file}" ;;
5851esac
5852
82252c06
NN
5853# Host dirs don't like to share a cache file either, horribly enough.
5854# This seems to be due to autoconf 2.5x stupidity.
4b900473 5855host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5856
5857target_configargs=${baseargs}
5858
5859# Passing a --with-cross-host argument lets the target libraries know
5860# whether they are being built with a cross-compiler or being built
5861# native. However, it would be better to use other mechanisms to make the
5862# sorts of decisions they want to make on this basis. Please consider
5863# this option to be deprecated. FIXME.
5864if test x${is_cross_compiler} = xyes ; then
c6b750e1 5865 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5866fi
5867
5868# Default to --enable-multilib.
5869if test x${enable_multilib} = x ; then
5870 target_configargs="--enable-multilib ${target_configargs}"
5871fi
5872
5873# Pass --with-newlib if appropriate. Note that target_configdirs has
5874# changed from the earlier setting of with_newlib.
5875if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5876 target_configargs="--with-newlib ${target_configargs}"
5877fi
5878
95036d20
NN
5879# Different target subdirs use different values of certain variables
5880# (notably CXX). Worse, multilibs use *lots* of different values.
5881# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5882# it doesn't automatically accept command-line overrides of them.
5883# This means it's not safe for target subdirs to share a cache file,
5884# which is disgusting, but there you have it. Hopefully this can be
5885# fixed in future. It's still worthwhile to use a cache file for each
5886# directory. I think.
5887
ae380b45
MS
5888# Pass the appropriate --build, --host, --target and --cache-file arguments.
5889# We need to pass --target, as newer autoconf's requires consistency
5890# for target_alias and gcc doesn't manage it consistently.
4b900473 5891target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5892
a0da8069
NN
5893FLAGS_FOR_TARGET=
5894case " $target_configdirs " in
5895 *" newlib "*)
5896 case " $target_configargs " in
5897 *" --with-newlib "*)
5898 case "$target" in
5899 *-cygwin*)
564b43e5 5900 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
5901 esac
5902
5903 # If we're not building GCC, don't discard standard headers.
5904 if test -d ${srcdir}/gcc; then
5905 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5906
5907 if test "${build}" != "${host}"; then
5908 # On Canadian crosses, CC_FOR_TARGET will have already been set
5909 # by `configure', so we won't have an opportunity to add -Bgcc/
5910 # to it. This is right: we don't want to search that directory
5911 # for binaries, but we want the header files in there, so add
5912 # them explicitly.
b00612cc 5913 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5914
5915 # Someone might think of using the pre-installed headers on
5916 # Canadian crosses, in case the installed compiler is not fully
5917 # compatible with the compiler being built. In this case, it
5918 # would be better to flag an error than risking having
5919 # incompatible object files being constructed. We can't
5920 # guarantee that an error will be flagged, but let's hope the
5921 # compiler will do it, when presented with incompatible header
5922 # files.
5923 fi
5924 fi
5925
5926 case "${target}-${is_cross_compiler}" in
ec11bdc6 5927 i[3456789]86-*-linux*-no)
a0da8069
NN
5928 # Here host == target, so we don't need to build gcc,
5929 # so we don't want to discard standard headers.
5930 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5931 ;;
5932 *)
5933 # If we're building newlib, use its generic headers last, but search
5934 # for any libc-related directories first (so make it the last -B
5935 # switch).
5936 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
5937
5938 # If we're building libgloss, find the startup file, simulator library
5939 # and linker script.
5940 case " $target_configdirs " in
5941 *" libgloss "*)
5942 # Look for startup file, simulator library and maybe linker script.
5943 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5944 # Look for libnosys.a in case the target needs it.
5945 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5946 # Most targets have the linker script in the source directory.
5947 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5948 ;;
5949 esac
a0da8069
NN
5950 ;;
5951 esac
5952 ;;
5953 esac
5954 ;;
5955esac
45055374
CV
5956case "$target" in
5957*-mingw*)
5958 # Can't be handled as Cygwin above since Mingw does not use newlib.
5959 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' ;;
5960esac
a0da8069 5961
5fbad20a
DD
5962# Allow the user to override the flags for
5963# our build compiler if desired.
c66487f8
NC
5964if test x"${build}" = x"${host}" ; then
5965 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5966 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
5967 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
5968fi
5fbad20a 5969
a0da8069
NN
5970# On Canadian crosses, we'll be searching the right directories for
5971# the previously-installed cross compiler, so don't bother to add
5972# flags for directories within the install tree of the compiler
5973# being built; programs in there won't even run.
5974if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5975 # Search for pre-installed headers if nothing else fits.
bba45b8b 5976 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
5977fi
5978
5979if test "x${use_gnu_ld}" = x &&
5980 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5981 # Arrange for us to find uninstalled linker scripts.
b00612cc 5982 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5983fi
5984
a481dbb7
DD
5985# Search for other target-specific linker scripts and such.
5986case "${target}" in
4e206d7e
DB
5987 mep*)
5988 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5989 ;;
5990esac
5991
a0da8069 5992# Makefile fragments.
3e707e94
PB
5993for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5994do
5995 eval fragval=\$$frag
5996 if test $fragval != /dev/null; then
5997 eval $frag=${srcdir}/$fragval
5998 fi
5999done
a0da8069
NN
6000
6001
6002
6003
6004
6005# Miscellanea: directories, flags, etc.
6006
6007
6008
6009
6010
6011
6012
6a9cf61e 6013# Build module lists & subconfigure args.
a0da8069
NN
6014
6015
6016
be01d343
PB
6017# Host module lists & subconfigure args.
6018
6019
6020
6021# Target module lists & subconfigure args.
6022
6023
6024
6025# Build tools.
6026
6027
6028
1576798e
PB
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
be01d343
PB
6043# Generate default definitions for YACC, M4, LEX and other programs that run
6044# on the build machine. These are used if the Makefile can't locate these
6045# programs in objdir.
6046MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6047
6048for ac_prog in 'bison -y' byacc yacc
6049do
c6b750e1 6050 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6051set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6052echo "$as_me:$LINENO: checking for $ac_word" >&5
6053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6054if test "${ac_cv_prog_YACC+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6056else
6057 if test -n "$YACC"; then
6058 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6059else
c6b750e1
DJ
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067 ac_cv_prog_YACC="$ac_prog"
6068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071done
6072done
6073
be01d343
PB
6074fi
6075fi
c6b750e1 6076YACC=$ac_cv_prog_YACC
be01d343 6077if test -n "$YACC"; then
c6b750e1
DJ
6078 echo "$as_me:$LINENO: result: $YACC" >&5
6079echo "${ECHO_T}$YACC" >&6
be01d343 6080else
c6b750e1
DJ
6081 echo "$as_me:$LINENO: result: no" >&5
6082echo "${ECHO_T}no" >&6
be01d343
PB
6083fi
6084
c6b750e1 6085 test -n "$YACC" && break
be01d343
PB
6086done
6087test -n "$YACC" || YACC="$MISSING bison -y"
6088
6089case " $build_configdirs " in
6090 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6091 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6092esac
6093
6094for ac_prog in bison
6095do
c6b750e1 6096 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6097set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6098echo "$as_me:$LINENO: checking for $ac_word" >&5
6099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6100if test "${ac_cv_prog_BISON+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6102else
6103 if test -n "$BISON"; then
6104 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6105else
c6b750e1
DJ
6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107for as_dir in $PATH
6108do
6109 IFS=$as_save_IFS
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6113 ac_cv_prog_BISON="$ac_prog"
6114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 break 2
6116 fi
6117done
6118done
6119
be01d343
PB
6120fi
6121fi
c6b750e1 6122BISON=$ac_cv_prog_BISON
be01d343 6123if test -n "$BISON"; then
c6b750e1
DJ
6124 echo "$as_me:$LINENO: result: $BISON" >&5
6125echo "${ECHO_T}$BISON" >&6
be01d343 6126else
c6b750e1
DJ
6127 echo "$as_me:$LINENO: result: no" >&5
6128echo "${ECHO_T}no" >&6
be01d343
PB
6129fi
6130
c6b750e1 6131 test -n "$BISON" && break
be01d343
PB
6132done
6133test -n "$BISON" || BISON="$MISSING bison"
6134
6135case " $build_configdirs " in
6136 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6137esac
6138
6139for ac_prog in gm4 gnum4 m4
6140do
c6b750e1 6141 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6142set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6143echo "$as_me:$LINENO: checking for $ac_word" >&5
6144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6145if test "${ac_cv_prog_M4+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6147else
6148 if test -n "$M4"; then
6149 ac_cv_prog_M4="$M4" # Let the user override the test.
6150else
c6b750e1
DJ
6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152for as_dir in $PATH
6153do
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6158 ac_cv_prog_M4="$ac_prog"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6161 fi
6162done
6163done
6164
be01d343
PB
6165fi
6166fi
c6b750e1 6167M4=$ac_cv_prog_M4
be01d343 6168if test -n "$M4"; then
c6b750e1
DJ
6169 echo "$as_me:$LINENO: result: $M4" >&5
6170echo "${ECHO_T}$M4" >&6
be01d343 6171else
c6b750e1
DJ
6172 echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6
be01d343
PB
6174fi
6175
c6b750e1 6176 test -n "$M4" && break
be01d343
PB
6177done
6178test -n "$M4" || M4="$MISSING m4"
6179
6180case " $build_configdirs " in
6181 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6182esac
6183
6184for ac_prog in flex lex
6185do
c6b750e1 6186 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6187set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6188echo "$as_me:$LINENO: checking for $ac_word" >&5
6189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6190if test "${ac_cv_prog_LEX+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6192else
6193 if test -n "$LEX"; then
6194 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6195else
c6b750e1
DJ
6196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197for as_dir in $PATH
6198do
6199 IFS=$as_save_IFS
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203 ac_cv_prog_LEX="$ac_prog"
6204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 break 2
6206 fi
6207done
6208done
6209
be01d343
PB
6210fi
6211fi
c6b750e1 6212LEX=$ac_cv_prog_LEX
be01d343 6213if test -n "$LEX"; then
c6b750e1
DJ
6214 echo "$as_me:$LINENO: result: $LEX" >&5
6215echo "${ECHO_T}$LEX" >&6
be01d343 6216else
c6b750e1
DJ
6217 echo "$as_me:$LINENO: result: no" >&5
6218echo "${ECHO_T}no" >&6
be01d343
PB
6219fi
6220
c6b750e1 6221 test -n "$LEX" && break
be01d343
PB
6222done
6223test -n "$LEX" || LEX="$MISSING flex"
6224
6225case " $build_configdirs " in
6226 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6227 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6228esac
6229
6230for ac_prog in flex
6231do
c6b750e1 6232 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6233set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6234echo "$as_me:$LINENO: checking for $ac_word" >&5
6235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6236if test "${ac_cv_prog_FLEX+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6238else
6239 if test -n "$FLEX"; then
6240 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6241else
c6b750e1
DJ
6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6249 ac_cv_prog_FLEX="$ac_prog"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6252 fi
6253done
6254done
6255
be01d343
PB
6256fi
6257fi
c6b750e1 6258FLEX=$ac_cv_prog_FLEX
be01d343 6259if test -n "$FLEX"; then
c6b750e1
DJ
6260 echo "$as_me:$LINENO: result: $FLEX" >&5
6261echo "${ECHO_T}$FLEX" >&6
be01d343 6262else
c6b750e1
DJ
6263 echo "$as_me:$LINENO: result: no" >&5
6264echo "${ECHO_T}no" >&6
be01d343
PB
6265fi
6266
c6b750e1 6267 test -n "$FLEX" && break
be01d343
PB
6268done
6269test -n "$FLEX" || FLEX="$MISSING flex"
6270
6271case " $build_configdirs " in
6272 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6273esac
6274
6275for ac_prog in makeinfo
6276do
c6b750e1 6277 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6278set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6279echo "$as_me:$LINENO: checking for $ac_word" >&5
6280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6281if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6283else
6284 if test -n "$MAKEINFO"; then
6285 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6286else
c6b750e1
DJ
6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288for as_dir in $PATH
6289do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_MAKEINFO="$ac_prog"
6295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6297 fi
6298done
6299done
6300
be01d343
PB
6301fi
6302fi
c6b750e1 6303MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6304if test -n "$MAKEINFO"; then
c6b750e1
DJ
6305 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6306echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6307else
c6b750e1
DJ
6308 echo "$as_me:$LINENO: result: no" >&5
6309echo "${ECHO_T}no" >&6
be01d343
PB
6310fi
6311
c6b750e1 6312 test -n "$MAKEINFO" && break
be01d343
PB
6313done
6314test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6315
6316case " $build_configdirs " in
6317 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6318 *)
6319
625a61cd 6320 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6321 # higher, else we use the "missing" dummy.
6322 if ${MAKEINFO} --version \
625a61cd 6323 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6324 :
6325 else
6326 MAKEINFO="$MISSING makeinfo"
6327 fi
6328 ;;
6329
6330esac
a0da8069 6331
be01d343 6332# FIXME: expect and dejagnu may become build tools?
a0da8069 6333
be01d343
PB
6334for ac_prog in expect
6335do
c6b750e1 6336 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6337set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6338echo "$as_me:$LINENO: checking for $ac_word" >&5
6339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6340if test "${ac_cv_prog_EXPECT+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6342else
6343 if test -n "$EXPECT"; then
6344 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6345else
c6b750e1
DJ
6346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347for as_dir in $PATH
6348do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_EXPECT="$ac_prog"
6354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357done
6358done
6359
be01d343
PB
6360fi
6361fi
c6b750e1 6362EXPECT=$ac_cv_prog_EXPECT
be01d343 6363if test -n "$EXPECT"; then
c6b750e1
DJ
6364 echo "$as_me:$LINENO: result: $EXPECT" >&5
6365echo "${ECHO_T}$EXPECT" >&6
be01d343 6366else
c6b750e1
DJ
6367 echo "$as_me:$LINENO: result: no" >&5
6368echo "${ECHO_T}no" >&6
be01d343 6369fi
a0da8069 6370
c6b750e1 6371 test -n "$EXPECT" && break
be01d343
PB
6372done
6373test -n "$EXPECT" || EXPECT="expect"
a0da8069 6374
be01d343
PB
6375case " $configdirs " in
6376 *" expect "*)
6377 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6378 ;;
6379esac
a0da8069 6380
be01d343
PB
6381for ac_prog in runtest
6382do
c6b750e1 6383 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6384set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6385echo "$as_me:$LINENO: checking for $ac_word" >&5
6386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6387if test "${ac_cv_prog_RUNTEST+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6389else
6390 if test -n "$RUNTEST"; then
6391 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6392else
c6b750e1
DJ
6393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394for as_dir in $PATH
6395do
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6400 ac_cv_prog_RUNTEST="$ac_prog"
6401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 break 2
6403 fi
6404done
6405done
6406
be01d343
PB
6407fi
6408fi
c6b750e1 6409RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6410if test -n "$RUNTEST"; then
c6b750e1
DJ
6411 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6412echo "${ECHO_T}$RUNTEST" >&6
be01d343 6413else
c6b750e1
DJ
6414 echo "$as_me:$LINENO: result: no" >&5
6415echo "${ECHO_T}no" >&6
be01d343 6416fi
a0da8069 6417
c6b750e1 6418 test -n "$RUNTEST" && break
be01d343
PB
6419done
6420test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6421
be01d343
PB
6422case " $configdirs " in
6423 *" dejagnu "*)
6b89cc21 6424 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6425 ;;
6426esac
a0da8069
NN
6427
6428
a0da8069 6429# Host tools.
859789af
AC
6430ncn_tool_prefix=
6431test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6432ncn_target_tool_prefix=
6433test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6434
9a819804
AO
6435
6436
6437if test -n "$AR"; then
6438 ac_cv_prog_AR=$AR
6439elif test -n "$ac_cv_prog_AR"; then
6440 AR=$ac_cv_prog_AR
6441fi
6442
6443if test -n "$ac_cv_prog_AR"; then
6444 for ncn_progname in ar; do
6445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6446set dummy ${ncn_progname}; ac_word=$2
6447echo "$as_me:$LINENO: checking for $ac_word" >&5
6448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6449if test "${ac_cv_prog_AR+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451else
6452 if test -n "$AR"; then
6453 ac_cv_prog_AR="$AR" # Let the user override the test.
6454else
6455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_AR="${ncn_progname}"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466done
6467done
6468
6469fi
6470fi
6471AR=$ac_cv_prog_AR
6472if test -n "$AR"; then
6473 echo "$as_me:$LINENO: result: $AR" >&5
6474echo "${ECHO_T}$AR" >&6
6475else
6476 echo "$as_me:$LINENO: result: no" >&5
6477echo "${ECHO_T}no" >&6
6478fi
6479
6480 done
6481fi
6482
6483for ncn_progname in ar; do
05cbd757
PB
6484 if test -n "$ncn_tool_prefix"; then
6485 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6486set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6487echo "$as_me:$LINENO: checking for $ac_word" >&5
6488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6489if test "${ac_cv_prog_AR+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6491else
6492 if test -n "$AR"; then
6493 ac_cv_prog_AR="$AR" # Let the user override the test.
6494else
c6b750e1
DJ
6495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496for as_dir in $PATH
6497do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6502 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506done
6507done
6508
859789af
AC
6509fi
6510fi
c6b750e1 6511AR=$ac_cv_prog_AR
859789af 6512if test -n "$AR"; then
c6b750e1
DJ
6513 echo "$as_me:$LINENO: result: $AR" >&5
6514echo "${ECHO_T}$AR" >&6
859789af 6515else
c6b750e1
DJ
6516 echo "$as_me:$LINENO: result: no" >&5
6517echo "${ECHO_T}no" >&6
859789af
AC
6518fi
6519
05cbd757
PB
6520 fi
6521 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6523set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6524echo "$as_me:$LINENO: checking for $ac_word" >&5
6525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6526if test "${ac_cv_prog_AR+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6528else
05cbd757
PB
6529 if test -n "$AR"; then
6530 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6531else
c6b750e1
DJ
6532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533for as_dir in $PATH
6534do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539 ac_cv_prog_AR="${ncn_progname}"
6540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543done
6544done
6545
859789af
AC
6546fi
6547fi
c6b750e1 6548AR=$ac_cv_prog_AR
05cbd757 6549if test -n "$AR"; then
c6b750e1
DJ
6550 echo "$as_me:$LINENO: result: $AR" >&5
6551echo "${ECHO_T}$AR" >&6
859789af 6552else
c6b750e1
DJ
6553 echo "$as_me:$LINENO: result: no" >&5
6554echo "${ECHO_T}no" >&6
859789af 6555fi
c6b750e1 6556
05cbd757
PB
6557 fi
6558 test -n "$ac_cv_prog_AR" && break
6559done
6560
6561if test -z "$ac_cv_prog_AR" ; then
6562 set dummy ar
6563 if test $build = $host ; then
6564 AR="$2"
859789af 6565 else
05cbd757 6566 AR="${ncn_tool_prefix}$2"
859789af 6567 fi
859789af
AC
6568fi
6569
9a819804
AO
6570
6571
6572if test -n "$AS"; then
6573 ac_cv_prog_AS=$AS
6574elif test -n "$ac_cv_prog_AS"; then
6575 AS=$ac_cv_prog_AS
6576fi
6577
6578if test -n "$ac_cv_prog_AS"; then
6579 for ncn_progname in as; do
6580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6581set dummy ${ncn_progname}; ac_word=$2
6582echo "$as_me:$LINENO: checking for $ac_word" >&5
6583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6584if test "${ac_cv_prog_AS+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
6587 if test -n "$AS"; then
6588 ac_cv_prog_AS="$AS" # Let the user override the test.
6589else
6590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591for as_dir in $PATH
6592do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597 ac_cv_prog_AS="${ncn_progname}"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601done
6602done
6603
6604fi
6605fi
6606AS=$ac_cv_prog_AS
6607if test -n "$AS"; then
6608 echo "$as_me:$LINENO: result: $AS" >&5
6609echo "${ECHO_T}$AS" >&6
6610else
6611 echo "$as_me:$LINENO: result: no" >&5
6612echo "${ECHO_T}no" >&6
6613fi
6614
6615 done
6616fi
6617
6618for ncn_progname in as; do
05cbd757
PB
6619 if test -n "$ncn_tool_prefix"; then
6620 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6621set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6622echo "$as_me:$LINENO: checking for $ac_word" >&5
6623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6624if test "${ac_cv_prog_AS+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6626else
6627 if test -n "$AS"; then
6628 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6629else
6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631for as_dir in $PATH
6632do
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6640 fi
6641done
6642done
6643
859789af
AC
6644fi
6645fi
c6b750e1 6646AS=$ac_cv_prog_AS
859789af 6647if test -n "$AS"; then
c6b750e1
DJ
6648 echo "$as_me:$LINENO: result: $AS" >&5
6649echo "${ECHO_T}$AS" >&6
859789af 6650else
c6b750e1
DJ
6651 echo "$as_me:$LINENO: result: no" >&5
6652echo "${ECHO_T}no" >&6
859789af
AC
6653fi
6654
05cbd757
PB
6655 fi
6656 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6658set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6659echo "$as_me:$LINENO: checking for $ac_word" >&5
6660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6661if test "${ac_cv_prog_AS+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6663else
05cbd757
PB
6664 if test -n "$AS"; then
6665 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6666else
c6b750e1
DJ
6667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6674 ac_cv_prog_AS="${ncn_progname}"
6675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 break 2
6677 fi
6678done
6679done
6680
859789af
AC
6681fi
6682fi
c6b750e1 6683AS=$ac_cv_prog_AS
05cbd757 6684if test -n "$AS"; then
c6b750e1
DJ
6685 echo "$as_me:$LINENO: result: $AS" >&5
6686echo "${ECHO_T}$AS" >&6
859789af 6687else
c6b750e1
DJ
6688 echo "$as_me:$LINENO: result: no" >&5
6689echo "${ECHO_T}no" >&6
859789af 6690fi
c6b750e1 6691
05cbd757
PB
6692 fi
6693 test -n "$ac_cv_prog_AS" && break
6694done
6695
6696if test -z "$ac_cv_prog_AS" ; then
6697 set dummy as
6698 if test $build = $host ; then
6699 AS="$2"
859789af 6700 else
05cbd757 6701 AS="${ncn_tool_prefix}$2"
859789af 6702 fi
859789af
AC
6703fi
6704
9a819804
AO
6705
6706
6707if test -n "$DLLTOOL"; then
6708 ac_cv_prog_DLLTOOL=$DLLTOOL
6709elif test -n "$ac_cv_prog_DLLTOOL"; then
6710 DLLTOOL=$ac_cv_prog_DLLTOOL
6711fi
6712
6713if test -n "$ac_cv_prog_DLLTOOL"; then
6714 for ncn_progname in dlltool; do
6715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6716set dummy ${ncn_progname}; ac_word=$2
6717echo "$as_me:$LINENO: checking for $ac_word" >&5
6718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6719if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721else
6722 if test -n "$DLLTOOL"; then
6723 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6724else
6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in $PATH
6727do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732 ac_cv_prog_DLLTOOL="${ncn_progname}"
6733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6735 fi
6736done
6737done
6738
6739fi
6740fi
6741DLLTOOL=$ac_cv_prog_DLLTOOL
6742if test -n "$DLLTOOL"; then
6743 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6744echo "${ECHO_T}$DLLTOOL" >&6
6745else
6746 echo "$as_me:$LINENO: result: no" >&5
6747echo "${ECHO_T}no" >&6
6748fi
6749
6750 done
6751fi
6752
6753for ncn_progname in dlltool; do
05cbd757
PB
6754 if test -n "$ncn_tool_prefix"; then
6755 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6756set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6757echo "$as_me:$LINENO: checking for $ac_word" >&5
6758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6759if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6761else
6762 if test -n "$DLLTOOL"; then
6763 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6764else
c6b750e1
DJ
6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776done
6777done
6778
859789af
AC
6779fi
6780fi
c6b750e1 6781DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6782if test -n "$DLLTOOL"; then
c6b750e1
DJ
6783 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6784echo "${ECHO_T}$DLLTOOL" >&6
859789af 6785else
c6b750e1
DJ
6786 echo "$as_me:$LINENO: result: no" >&5
6787echo "${ECHO_T}no" >&6
859789af
AC
6788fi
6789
05cbd757
PB
6790 fi
6791 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6793set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6794echo "$as_me:$LINENO: checking for $ac_word" >&5
6795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6796if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6798else
05cbd757
PB
6799 if test -n "$DLLTOOL"; then
6800 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6801else
c6b750e1
DJ
6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803for as_dir in $PATH
6804do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809 ac_cv_prog_DLLTOOL="${ncn_progname}"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813done
6814done
6815
859789af
AC
6816fi
6817fi
c6b750e1 6818DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6819if test -n "$DLLTOOL"; then
c6b750e1
DJ
6820 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6821echo "${ECHO_T}$DLLTOOL" >&6
859789af 6822else
c6b750e1
DJ
6823 echo "$as_me:$LINENO: result: no" >&5
6824echo "${ECHO_T}no" >&6
859789af 6825fi
c6b750e1 6826
05cbd757
PB
6827 fi
6828 test -n "$ac_cv_prog_DLLTOOL" && break
6829done
6830
6831if test -z "$ac_cv_prog_DLLTOOL" ; then
6832 set dummy dlltool
6833 if test $build = $host ; then
6834 DLLTOOL="$2"
859789af 6835 else
05cbd757 6836 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6837 fi
859789af
AC
6838fi
6839
9a819804
AO
6840
6841
6842if test -n "$LD"; then
6843 ac_cv_prog_LD=$LD
6844elif test -n "$ac_cv_prog_LD"; then
6845 LD=$ac_cv_prog_LD
6846fi
6847
6848if test -n "$ac_cv_prog_LD"; then
6849 for ncn_progname in ld; do
6850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6851set dummy ${ncn_progname}; ac_word=$2
6852echo "$as_me:$LINENO: checking for $ac_word" >&5
6853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6854if test "${ac_cv_prog_LD+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6856else
6857 if test -n "$LD"; then
6858 ac_cv_prog_LD="$LD" # Let the user override the test.
6859else
6860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861for as_dir in $PATH
6862do
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6867 ac_cv_prog_LD="${ncn_progname}"
6868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6870 fi
6871done
6872done
6873
6874fi
6875fi
6876LD=$ac_cv_prog_LD
6877if test -n "$LD"; then
6878 echo "$as_me:$LINENO: result: $LD" >&5
6879echo "${ECHO_T}$LD" >&6
6880else
6881 echo "$as_me:$LINENO: result: no" >&5
6882echo "${ECHO_T}no" >&6
6883fi
6884
6885 done
6886fi
6887
6888for ncn_progname in ld; do
05cbd757
PB
6889 if test -n "$ncn_tool_prefix"; then
6890 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6891set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6892echo "$as_me:$LINENO: checking for $ac_word" >&5
6893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6894if test "${ac_cv_prog_LD+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6896else
6897 if test -n "$LD"; then
6898 ac_cv_prog_LD="$LD" # Let the user override the test.
6899else
c6b750e1
DJ
6900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6910 fi
6911done
6912done
6913
859789af
AC
6914fi
6915fi
c6b750e1 6916LD=$ac_cv_prog_LD
859789af 6917if test -n "$LD"; then
c6b750e1
DJ
6918 echo "$as_me:$LINENO: result: $LD" >&5
6919echo "${ECHO_T}$LD" >&6
859789af 6920else
c6b750e1
DJ
6921 echo "$as_me:$LINENO: result: no" >&5
6922echo "${ECHO_T}no" >&6
859789af
AC
6923fi
6924
05cbd757
PB
6925 fi
6926 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6928set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6929echo "$as_me:$LINENO: checking for $ac_word" >&5
6930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6931if test "${ac_cv_prog_LD+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6933else
05cbd757
PB
6934 if test -n "$LD"; then
6935 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6936else
c6b750e1
DJ
6937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938for as_dir in $PATH
6939do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944 ac_cv_prog_LD="${ncn_progname}"
6945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 break 2
6947 fi
6948done
6949done
6950
859789af
AC
6951fi
6952fi
c6b750e1 6953LD=$ac_cv_prog_LD
05cbd757 6954if test -n "$LD"; then
c6b750e1
DJ
6955 echo "$as_me:$LINENO: result: $LD" >&5
6956echo "${ECHO_T}$LD" >&6
859789af 6957else
c6b750e1
DJ
6958 echo "$as_me:$LINENO: result: no" >&5
6959echo "${ECHO_T}no" >&6
859789af 6960fi
c6b750e1 6961
05cbd757
PB
6962 fi
6963 test -n "$ac_cv_prog_LD" && break
6964done
6965
6966if test -z "$ac_cv_prog_LD" ; then
6967 set dummy ld
6968 if test $build = $host ; then
6969 LD="$2"
859789af 6970 else
05cbd757 6971 LD="${ncn_tool_prefix}$2"
859789af 6972 fi
859789af
AC
6973fi
6974
9a819804
AO
6975
6976
6977if test -n "$LIPO"; then
6978 ac_cv_prog_LIPO=$LIPO
6979elif test -n "$ac_cv_prog_LIPO"; then
6980 LIPO=$ac_cv_prog_LIPO
6981fi
6982
6983if test -n "$ac_cv_prog_LIPO"; then
6984 for ncn_progname in lipo; do
6985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6986set dummy ${ncn_progname}; ac_word=$2
6987echo "$as_me:$LINENO: checking for $ac_word" >&5
6988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6989if test "${ac_cv_prog_LIPO+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991else
6992 if test -n "$LIPO"; then
6993 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6994else
6995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002 ac_cv_prog_LIPO="${ncn_progname}"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7005 fi
7006done
7007done
7008
7009fi
7010fi
7011LIPO=$ac_cv_prog_LIPO
7012if test -n "$LIPO"; then
7013 echo "$as_me:$LINENO: result: $LIPO" >&5
7014echo "${ECHO_T}$LIPO" >&6
7015else
7016 echo "$as_me:$LINENO: result: no" >&5
7017echo "${ECHO_T}no" >&6
7018fi
7019
7020 done
7021fi
7022
7023for ncn_progname in lipo; do
be01d343
PB
7024 if test -n "$ncn_tool_prefix"; then
7025 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7026set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7027echo "$as_me:$LINENO: checking for $ac_word" >&5
7028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7029if test "${ac_cv_prog_LIPO+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7031else
7032 if test -n "$LIPO"; then
7033 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7034else
c6b750e1
DJ
7035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036for as_dir in $PATH
7037do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7042 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 break 2
7045 fi
7046done
7047done
7048
be01d343
PB
7049fi
7050fi
c6b750e1 7051LIPO=$ac_cv_prog_LIPO
be01d343 7052if test -n "$LIPO"; then
c6b750e1
DJ
7053 echo "$as_me:$LINENO: result: $LIPO" >&5
7054echo "${ECHO_T}$LIPO" >&6
be01d343 7055else
c6b750e1
DJ
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
be01d343
PB
7058fi
7059
7060 fi
7061 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7063set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7064echo "$as_me:$LINENO: checking for $ac_word" >&5
7065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7066if test "${ac_cv_prog_LIPO+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7068else
7069 if test -n "$LIPO"; then
7070 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7071else
c6b750e1
DJ
7072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_LIPO="${ncn_progname}"
7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7082 fi
7083done
7084done
7085
be01d343
PB
7086fi
7087fi
c6b750e1 7088LIPO=$ac_cv_prog_LIPO
be01d343 7089if test -n "$LIPO"; then
c6b750e1
DJ
7090 echo "$as_me:$LINENO: result: $LIPO" >&5
7091echo "${ECHO_T}$LIPO" >&6
be01d343 7092else
c6b750e1
DJ
7093 echo "$as_me:$LINENO: result: no" >&5
7094echo "${ECHO_T}no" >&6
be01d343 7095fi
c6b750e1 7096
be01d343
PB
7097 fi
7098 test -n "$ac_cv_prog_LIPO" && break
7099done
7100
7101if test -z "$ac_cv_prog_LIPO" ; then
7102 set dummy lipo
7103 if test $build = $host ; then
7104 LIPO="$2"
7105 else
7106 LIPO="${ncn_tool_prefix}$2"
7107 fi
7108fi
7109
9a819804
AO
7110
7111
7112if test -n "$NM"; then
7113 ac_cv_prog_NM=$NM
7114elif test -n "$ac_cv_prog_NM"; then
7115 NM=$ac_cv_prog_NM
7116fi
7117
7118if test -n "$ac_cv_prog_NM"; then
7119 for ncn_progname in nm; do
7120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7121set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7122echo "$as_me:$LINENO: checking for $ac_word" >&5
7123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7124if test "${ac_cv_prog_NM+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7126else
7127 if test -n "$NM"; then
7128 ac_cv_prog_NM="$NM" # Let the user override the test.
7129else
c6b750e1
DJ
7130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131for as_dir in $PATH
7132do
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7137 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7140 fi
7141done
7142done
7143
859789af
AC
7144fi
7145fi
c6b750e1 7146NM=$ac_cv_prog_NM
859789af 7147if test -n "$NM"; then
c6b750e1
DJ
7148 echo "$as_me:$LINENO: result: $NM" >&5
7149echo "${ECHO_T}$NM" >&6
859789af 7150else
c6b750e1
DJ
7151 echo "$as_me:$LINENO: result: no" >&5
7152echo "${ECHO_T}no" >&6
859789af
AC
7153fi
7154
9a819804
AO
7155 done
7156fi
7157
7158for ncn_progname in nm; do
7159 if test -n "$ncn_tool_prefix"; then
7160 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7161set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7162echo "$as_me:$LINENO: checking for $ac_word" >&5
7163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7164if test "${ac_cv_prog_NM+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7166else
05cbd757
PB
7167 if test -n "$NM"; then
7168 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7169else
c6b750e1
DJ
7170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH
7172do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7177 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181done
7182done
7183
859789af
AC
7184fi
7185fi
c6b750e1 7186NM=$ac_cv_prog_NM
05cbd757 7187if test -n "$NM"; then
c6b750e1
DJ
7188 echo "$as_me:$LINENO: result: $NM" >&5
7189echo "${ECHO_T}$NM" >&6
859789af 7190else
c6b750e1
DJ
7191 echo "$as_me:$LINENO: result: no" >&5
7192echo "${ECHO_T}no" >&6
859789af 7193fi
c6b750e1 7194
05cbd757 7195 fi
9a819804
AO
7196 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7198set dummy ${ncn_progname}; ac_word=$2
7199echo "$as_me:$LINENO: checking for $ac_word" >&5
7200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7201if test "${ac_cv_prog_NM+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203else
7204 if test -n "$NM"; then
7205 ac_cv_prog_NM="$NM" # Let the user override the test.
7206else
7207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208for as_dir in $PATH
7209do
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_NM="${ncn_progname}"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7217 fi
7218done
7219done
7220
7221fi
7222fi
7223NM=$ac_cv_prog_NM
7224if test -n "$NM"; then
7225 echo "$as_me:$LINENO: result: $NM" >&5
7226echo "${ECHO_T}$NM" >&6
7227else
7228 echo "$as_me:$LINENO: result: no" >&5
7229echo "${ECHO_T}no" >&6
7230fi
7231
7232 fi
7233 test -n "$ac_cv_prog_NM" && break
7234done
7235
7236if test -z "$ac_cv_prog_NM" ; then
7237 set dummy nm
7238 if test $build = $host ; then
7239 NM="$2"
7240 else
7241 NM="${ncn_tool_prefix}$2"
7242 fi
7243fi
7244
7245
7246
7247if test -n "$RANLIB"; then
7248 ac_cv_prog_RANLIB=$RANLIB
7249elif test -n "$ac_cv_prog_RANLIB"; then
7250 RANLIB=$ac_cv_prog_RANLIB
7251fi
7252
7253if test -n "$ac_cv_prog_RANLIB"; then
7254 for ncn_progname in ranlib; do
7255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7256set dummy ${ncn_progname}; ac_word=$2
7257echo "$as_me:$LINENO: checking for $ac_word" >&5
7258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7259if test "${ac_cv_prog_RANLIB+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261else
7262 if test -n "$RANLIB"; then
7263 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7264else
7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272 ac_cv_prog_RANLIB="${ncn_progname}"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 break 2
7275 fi
7276done
7277done
7278
7279fi
7280fi
7281RANLIB=$ac_cv_prog_RANLIB
7282if test -n "$RANLIB"; then
7283 echo "$as_me:$LINENO: result: $RANLIB" >&5
7284echo "${ECHO_T}$RANLIB" >&6
7285else
7286 echo "$as_me:$LINENO: result: no" >&5
7287echo "${ECHO_T}no" >&6
7288fi
7289
7290 done
7291fi
859789af 7292
9a819804 7293for ncn_progname in ranlib; do
05cbd757
PB
7294 if test -n "$ncn_tool_prefix"; then
7295 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7296set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7297echo "$as_me:$LINENO: checking for $ac_word" >&5
7298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7299if test "${ac_cv_prog_RANLIB+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7301else
7302 if test -n "$RANLIB"; then
7303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7304else
c6b750e1
DJ
7305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306for as_dir in $PATH
7307do
7308 IFS=$as_save_IFS
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7312 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 break 2
7315 fi
7316done
7317done
7318
859789af
AC
7319fi
7320fi
c6b750e1 7321RANLIB=$ac_cv_prog_RANLIB
859789af 7322if test -n "$RANLIB"; then
c6b750e1
DJ
7323 echo "$as_me:$LINENO: result: $RANLIB" >&5
7324echo "${ECHO_T}$RANLIB" >&6
859789af 7325else
c6b750e1
DJ
7326 echo "$as_me:$LINENO: result: no" >&5
7327echo "${ECHO_T}no" >&6
859789af
AC
7328fi
7329
05cbd757
PB
7330 fi
7331 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7333set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7334echo "$as_me:$LINENO: checking for $ac_word" >&5
7335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7336if test "${ac_cv_prog_RANLIB+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7338else
05cbd757
PB
7339 if test -n "$RANLIB"; then
7340 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7341else
c6b750e1
DJ
7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349 ac_cv_prog_RANLIB="${ncn_progname}"
7350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7352 fi
7353done
7354done
7355
859789af
AC
7356fi
7357fi
c6b750e1 7358RANLIB=$ac_cv_prog_RANLIB
05cbd757 7359if test -n "$RANLIB"; then
c6b750e1
DJ
7360 echo "$as_me:$LINENO: result: $RANLIB" >&5
7361echo "${ECHO_T}$RANLIB" >&6
859789af 7362else
c6b750e1
DJ
7363 echo "$as_me:$LINENO: result: no" >&5
7364echo "${ECHO_T}no" >&6
859789af 7365fi
c6b750e1 7366
859789af 7367 fi
05cbd757
PB
7368 test -n "$ac_cv_prog_RANLIB" && break
7369done
7370
7371if test -z "$ac_cv_prog_RANLIB" ; then
7372 RANLIB=":"
859789af
AC
7373fi
7374
9a819804
AO
7375
7376
7377if test -n "$STRIP"; then
7378 ac_cv_prog_STRIP=$STRIP
7379elif test -n "$ac_cv_prog_STRIP"; then
7380 STRIP=$ac_cv_prog_STRIP
7381fi
7382
7383if test -n "$ac_cv_prog_STRIP"; then
7384 for ncn_progname in strip; do
7385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7386set dummy ${ncn_progname}; ac_word=$2
7387echo "$as_me:$LINENO: checking for $ac_word" >&5
7388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7389if test "${ac_cv_prog_STRIP+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391else
7392 if test -n "$STRIP"; then
7393 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7394else
7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402 ac_cv_prog_STRIP="${ncn_progname}"
7403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 break 2
7405 fi
7406done
7407done
7408
7409fi
7410fi
7411STRIP=$ac_cv_prog_STRIP
7412if test -n "$STRIP"; then
7413 echo "$as_me:$LINENO: result: $STRIP" >&5
7414echo "${ECHO_T}$STRIP" >&6
7415else
7416 echo "$as_me:$LINENO: result: no" >&5
7417echo "${ECHO_T}no" >&6
7418fi
7419
7420 done
7421fi
7422
7423for ncn_progname in strip; do
be01d343
PB
7424 if test -n "$ncn_tool_prefix"; then
7425 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7426set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7427echo "$as_me:$LINENO: checking for $ac_word" >&5
7428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7429if test "${ac_cv_prog_STRIP+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7431else
7432 if test -n "$STRIP"; then
7433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7434else
c6b750e1
DJ
7435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436for as_dir in $PATH
7437do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7445 fi
7446done
7447done
7448
be01d343
PB
7449fi
7450fi
c6b750e1 7451STRIP=$ac_cv_prog_STRIP
be01d343 7452if test -n "$STRIP"; then
c6b750e1
DJ
7453 echo "$as_me:$LINENO: result: $STRIP" >&5
7454echo "${ECHO_T}$STRIP" >&6
be01d343 7455else
c6b750e1
DJ
7456 echo "$as_me:$LINENO: result: no" >&5
7457echo "${ECHO_T}no" >&6
be01d343
PB
7458fi
7459
7460 fi
7461 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7463set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7464echo "$as_me:$LINENO: checking for $ac_word" >&5
7465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7466if test "${ac_cv_prog_STRIP+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7468else
7469 if test -n "$STRIP"; then
7470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7471else
c6b750e1
DJ
7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473for as_dir in $PATH
7474do
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479 ac_cv_prog_STRIP="${ncn_progname}"
7480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7482 fi
7483done
7484done
7485
be01d343
PB
7486fi
7487fi
c6b750e1 7488STRIP=$ac_cv_prog_STRIP
be01d343 7489if test -n "$STRIP"; then
c6b750e1
DJ
7490 echo "$as_me:$LINENO: result: $STRIP" >&5
7491echo "${ECHO_T}$STRIP" >&6
be01d343 7492else
c6b750e1
DJ
7493 echo "$as_me:$LINENO: result: no" >&5
7494echo "${ECHO_T}no" >&6
be01d343 7495fi
c6b750e1 7496
be01d343
PB
7497 fi
7498 test -n "$ac_cv_prog_STRIP" && break
7499done
7500
7501if test -z "$ac_cv_prog_STRIP" ; then
7502 STRIP=":"
7503fi
7504
9a819804
AO
7505
7506
7507if test -n "$WINDRES"; then
7508 ac_cv_prog_WINDRES=$WINDRES
7509elif test -n "$ac_cv_prog_WINDRES"; then
7510 WINDRES=$ac_cv_prog_WINDRES
7511fi
7512
7513if test -n "$ac_cv_prog_WINDRES"; then
7514 for ncn_progname in windres; do
7515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7516set dummy ${ncn_progname}; ac_word=$2
7517echo "$as_me:$LINENO: checking for $ac_word" >&5
7518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7519if test "${ac_cv_prog_WINDRES+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7521else
7522 if test -n "$WINDRES"; then
7523 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7524else
7525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526for as_dir in $PATH
7527do
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532 ac_cv_prog_WINDRES="${ncn_progname}"
7533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 break 2
7535 fi
7536done
7537done
7538
7539fi
7540fi
7541WINDRES=$ac_cv_prog_WINDRES
7542if test -n "$WINDRES"; then
7543 echo "$as_me:$LINENO: result: $WINDRES" >&5
7544echo "${ECHO_T}$WINDRES" >&6
7545else
7546 echo "$as_me:$LINENO: result: no" >&5
7547echo "${ECHO_T}no" >&6
7548fi
7549
7550 done
7551fi
7552
7553for ncn_progname in windres; do
05cbd757
PB
7554 if test -n "$ncn_tool_prefix"; then
7555 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7556set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7557echo "$as_me:$LINENO: checking for $ac_word" >&5
7558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7559if test "${ac_cv_prog_WINDRES+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7561else
7562 if test -n "$WINDRES"; then
7563 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7564else
c6b750e1
DJ
7565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566for as_dir in $PATH
7567do
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7572 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 break 2
7575 fi
7576done
7577done
7578
859789af
AC
7579fi
7580fi
c6b750e1 7581WINDRES=$ac_cv_prog_WINDRES
859789af 7582if test -n "$WINDRES"; then
c6b750e1
DJ
7583 echo "$as_me:$LINENO: result: $WINDRES" >&5
7584echo "${ECHO_T}$WINDRES" >&6
859789af 7585else
c6b750e1
DJ
7586 echo "$as_me:$LINENO: result: no" >&5
7587echo "${ECHO_T}no" >&6
859789af
AC
7588fi
7589
05cbd757
PB
7590 fi
7591 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7593set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7594echo "$as_me:$LINENO: checking for $ac_word" >&5
7595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7596if test "${ac_cv_prog_WINDRES+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7598else
05cbd757
PB
7599 if test -n "$WINDRES"; then
7600 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7601else
c6b750e1
DJ
7602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603for as_dir in $PATH
7604do
7605 IFS=$as_save_IFS
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609 ac_cv_prog_WINDRES="${ncn_progname}"
7610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 break 2
7612 fi
7613done
7614done
7615
859789af
AC
7616fi
7617fi
c6b750e1 7618WINDRES=$ac_cv_prog_WINDRES
05cbd757 7619if test -n "$WINDRES"; then
c6b750e1
DJ
7620 echo "$as_me:$LINENO: result: $WINDRES" >&5
7621echo "${ECHO_T}$WINDRES" >&6
859789af 7622else
c6b750e1
DJ
7623 echo "$as_me:$LINENO: result: no" >&5
7624echo "${ECHO_T}no" >&6
859789af 7625fi
c6b750e1 7626
05cbd757
PB
7627 fi
7628 test -n "$ac_cv_prog_WINDRES" && break
7629done
7630
7631if test -z "$ac_cv_prog_WINDRES" ; then
7632 set dummy windres
7633 if test $build = $host ; then
7634 WINDRES="$2"
859789af 7635 else
05cbd757 7636 WINDRES="${ncn_tool_prefix}$2"
859789af 7637 fi
859789af
AC
7638fi
7639
9a819804
AO
7640
7641
0c24b341
NC
7642if test -n "$WINDMC"; then
7643 ac_cv_prog_WINDMC=$WINDMC
7644elif test -n "$ac_cv_prog_WINDMC"; then
7645 WINDMC=$ac_cv_prog_WINDMC
7646fi
7647
7648if test -n "$ac_cv_prog_WINDMC"; then
7649 for ncn_progname in windmc; do
7650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7651set dummy ${ncn_progname}; ac_word=$2
7652echo "$as_me:$LINENO: checking for $ac_word" >&5
7653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7654if test "${ac_cv_prog_WINDMC+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7656else
7657 if test -n "$WINDMC"; then
7658 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7659else
7660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661for as_dir in $PATH
7662do
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7667 ac_cv_prog_WINDMC="${ncn_progname}"
7668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 break 2
7670 fi
7671done
7672done
7673
7674fi
7675fi
7676WINDMC=$ac_cv_prog_WINDMC
7677if test -n "$WINDMC"; then
7678 echo "$as_me:$LINENO: result: $WINDMC" >&5
7679echo "${ECHO_T}$WINDMC" >&6
7680else
7681 echo "$as_me:$LINENO: result: no" >&5
7682echo "${ECHO_T}no" >&6
7683fi
7684
7685 done
7686fi
7687
7688for ncn_progname in windmc; do
7689 if test -n "$ncn_tool_prefix"; then
7690 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7691set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7692echo "$as_me:$LINENO: checking for $ac_word" >&5
7693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7694if test "${ac_cv_prog_WINDMC+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7696else
7697 if test -n "$WINDMC"; then
7698 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7699else
7700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701for as_dir in $PATH
7702do
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7707 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7710 fi
7711done
7712done
7713
7714fi
7715fi
7716WINDMC=$ac_cv_prog_WINDMC
7717if test -n "$WINDMC"; then
7718 echo "$as_me:$LINENO: result: $WINDMC" >&5
7719echo "${ECHO_T}$WINDMC" >&6
7720else
7721 echo "$as_me:$LINENO: result: no" >&5
7722echo "${ECHO_T}no" >&6
7723fi
7724
7725 fi
7726 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7728set dummy ${ncn_progname}; ac_word=$2
7729echo "$as_me:$LINENO: checking for $ac_word" >&5
7730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7731if test "${ac_cv_prog_WINDMC+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7733else
7734 if test -n "$WINDMC"; then
7735 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7736else
7737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738for as_dir in $PATH
7739do
7740 IFS=$as_save_IFS
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7744 ac_cv_prog_WINDMC="${ncn_progname}"
7745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 break 2
7747 fi
7748done
7749done
7750
7751fi
7752fi
7753WINDMC=$ac_cv_prog_WINDMC
7754if test -n "$WINDMC"; then
7755 echo "$as_me:$LINENO: result: $WINDMC" >&5
7756echo "${ECHO_T}$WINDMC" >&6
7757else
7758 echo "$as_me:$LINENO: result: no" >&5
7759echo "${ECHO_T}no" >&6
7760fi
7761
7762 fi
7763 test -n "$ac_cv_prog_WINDMC" && break
7764done
7765
7766if test -z "$ac_cv_prog_WINDMC" ; then
7767 set dummy windmc
7768 if test $build = $host ; then
7769 WINDMC="$2"
7770 else
7771 WINDMC="${ncn_tool_prefix}$2"
7772 fi
7773fi
7774
7775
7776
9a819804
AO
7777if test -n "$OBJCOPY"; then
7778 ac_cv_prog_OBJCOPY=$OBJCOPY
7779elif test -n "$ac_cv_prog_OBJCOPY"; then
7780 OBJCOPY=$ac_cv_prog_OBJCOPY
7781fi
7782
7783if test -n "$ac_cv_prog_OBJCOPY"; then
7784 for ncn_progname in objcopy; do
7785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7786set dummy ${ncn_progname}; ac_word=$2
7787echo "$as_me:$LINENO: checking for $ac_word" >&5
7788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7789if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791else
7792 if test -n "$OBJCOPY"; then
7793 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7794else
7795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796for as_dir in $PATH
7797do
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7802 ac_cv_prog_OBJCOPY="${ncn_progname}"
7803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 break 2
7805 fi
7806done
7807done
7808
7809fi
7810fi
7811OBJCOPY=$ac_cv_prog_OBJCOPY
7812if test -n "$OBJCOPY"; then
7813 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7814echo "${ECHO_T}$OBJCOPY" >&6
7815else
7816 echo "$as_me:$LINENO: result: no" >&5
7817echo "${ECHO_T}no" >&6
7818fi
7819
7820 done
7821fi
7822
7823for ncn_progname in objcopy; do
05cbd757
PB
7824 if test -n "$ncn_tool_prefix"; then
7825 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7826set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7827echo "$as_me:$LINENO: checking for $ac_word" >&5
7828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7829if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7831else
7832 if test -n "$OBJCOPY"; then
7833 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7834else
c6b750e1
DJ
7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7845 fi
7846done
7847done
7848
859789af
AC
7849fi
7850fi
c6b750e1 7851OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7852if test -n "$OBJCOPY"; then
c6b750e1
DJ
7853 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7854echo "${ECHO_T}$OBJCOPY" >&6
859789af 7855else
c6b750e1
DJ
7856 echo "$as_me:$LINENO: result: no" >&5
7857echo "${ECHO_T}no" >&6
859789af
AC
7858fi
7859
05cbd757
PB
7860 fi
7861 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7863set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7864echo "$as_me:$LINENO: checking for $ac_word" >&5
7865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7866if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7868else
05cbd757
PB
7869 if test -n "$OBJCOPY"; then
7870 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7871else
c6b750e1
DJ
7872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7879 ac_cv_prog_OBJCOPY="${ncn_progname}"
7880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 break 2
7882 fi
7883done
7884done
7885
859789af
AC
7886fi
7887fi
c6b750e1 7888OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7889if test -n "$OBJCOPY"; then
c6b750e1
DJ
7890 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7891echo "${ECHO_T}$OBJCOPY" >&6
859789af 7892else
c6b750e1
DJ
7893 echo "$as_me:$LINENO: result: no" >&5
7894echo "${ECHO_T}no" >&6
859789af 7895fi
c6b750e1 7896
05cbd757
PB
7897 fi
7898 test -n "$ac_cv_prog_OBJCOPY" && break
7899done
7900
7901if test -z "$ac_cv_prog_OBJCOPY" ; then
7902 set dummy objcopy
7903 if test $build = $host ; then
7904 OBJCOPY="$2"
859789af 7905 else
05cbd757 7906 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7907 fi
859789af
AC
7908fi
7909
9a819804
AO
7910
7911
7912if test -n "$OBJDUMP"; then
7913 ac_cv_prog_OBJDUMP=$OBJDUMP
7914elif test -n "$ac_cv_prog_OBJDUMP"; then
7915 OBJDUMP=$ac_cv_prog_OBJDUMP
7916fi
7917
7918if test -n "$ac_cv_prog_OBJDUMP"; then
7919 for ncn_progname in objdump; do
7920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7921set dummy ${ncn_progname}; ac_word=$2
7922echo "$as_me:$LINENO: checking for $ac_word" >&5
7923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7924if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7926else
7927 if test -n "$OBJDUMP"; then
7928 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7929else
7930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931for as_dir in $PATH
7932do
7933 IFS=$as_save_IFS
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937 ac_cv_prog_OBJDUMP="${ncn_progname}"
7938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 break 2
7940 fi
7941done
7942done
7943
7944fi
7945fi
7946OBJDUMP=$ac_cv_prog_OBJDUMP
7947if test -n "$OBJDUMP"; then
7948 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7949echo "${ECHO_T}$OBJDUMP" >&6
7950else
7951 echo "$as_me:$LINENO: result: no" >&5
7952echo "${ECHO_T}no" >&6
7953fi
7954
7955 done
7956fi
7957
7958for ncn_progname in objdump; do
05cbd757
PB
7959 if test -n "$ncn_tool_prefix"; then
7960 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7961set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7962echo "$as_me:$LINENO: checking for $ac_word" >&5
7963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7964if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7966else
7967 if test -n "$OBJDUMP"; then
7968 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7969else
c6b750e1
DJ
7970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971for as_dir in $PATH
7972do
7973 IFS=$as_save_IFS
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 break 2
7980 fi
7981done
7982done
7983
859789af
AC
7984fi
7985fi
c6b750e1 7986OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7987if test -n "$OBJDUMP"; then
c6b750e1
DJ
7988 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7989echo "${ECHO_T}$OBJDUMP" >&6
859789af 7990else
c6b750e1
DJ
7991 echo "$as_me:$LINENO: result: no" >&5
7992echo "${ECHO_T}no" >&6
859789af
AC
7993fi
7994
05cbd757
PB
7995 fi
7996 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7998set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7999echo "$as_me:$LINENO: checking for $ac_word" >&5
8000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8001if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8003else
05cbd757
PB
8004 if test -n "$OBJDUMP"; then
8005 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8006else
c6b750e1
DJ
8007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008for as_dir in $PATH
8009do
8010 IFS=$as_save_IFS
8011 test -z "$as_dir" && as_dir=.
8012 for ac_exec_ext in '' $ac_executable_extensions; do
8013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8014 ac_cv_prog_OBJDUMP="${ncn_progname}"
8015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 break 2
8017 fi
8018done
8019done
8020
859789af
AC
8021fi
8022fi
c6b750e1 8023OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8024if test -n "$OBJDUMP"; then
c6b750e1
DJ
8025 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8026echo "${ECHO_T}$OBJDUMP" >&6
859789af 8027else
c6b750e1
DJ
8028 echo "$as_me:$LINENO: result: no" >&5
8029echo "${ECHO_T}no" >&6
859789af 8030fi
c6b750e1 8031
05cbd757
PB
8032 fi
8033 test -n "$ac_cv_prog_OBJDUMP" && break
8034done
8035
8036if test -z "$ac_cv_prog_OBJDUMP" ; then
8037 set dummy objdump
8038 if test $build = $host ; then
8039 OBJDUMP="$2"
859789af 8040 else
05cbd757 8041 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8042 fi
859789af
AC
8043fi
8044
a0da8069
NN
8045
8046
8047
8048
8049
be01d343 8050# Target tools.
c6b750e1 8051
2429c060
PB
8052# Check whether --with-build-time-tools or --without-build-time-tools was given.
8053if test "${with_build_time_tools+set}" = set; then
8054 withval="$with_build_time_tools"
8055 case x"$withval" in
8056 x/*) ;;
8057 *)
8058 with_build_time_tools=
c6b750e1
DJ
8059 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8060echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8061 ;;
8062 esac
859789af 8063else
2429c060 8064 with_build_time_tools=
c6b750e1 8065fi;
859789af 8066
9a819804
AO
8067
8068
8069if test -n "$CC_FOR_TARGET"; then
8070 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8071elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8072 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8073fi
8074
8075if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8076 for ncn_progname in cc gcc; do
8077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8078set dummy ${ncn_progname}; ac_word=$2
8079echo "$as_me:$LINENO: checking for $ac_word" >&5
8080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8081if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8083else
8084 if test -n "$CC_FOR_TARGET"; then
8085 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8086else
8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088for as_dir in $PATH
8089do
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8094 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 break 2
8097 fi
8098done
8099done
8100
8101fi
8102fi
8103CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8104if test -n "$CC_FOR_TARGET"; then
8105 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8106echo "${ECHO_T}$CC_FOR_TARGET" >&6
8107else
8108 echo "$as_me:$LINENO: result: no" >&5
8109echo "${ECHO_T}no" >&6
8110fi
8111
8112 done
8113fi
8114
8115if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8116 for ncn_progname in cc gcc; do
c6b750e1
DJ
8117 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8118echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8119 if test -x $with_build_time_tools/${ncn_progname}; then
8120 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8121 echo "$as_me:$LINENO: result: yes" >&5
8122echo "${ECHO_T}yes" >&6
cac3d6c4 8123 break
2429c060 8124 else
c6b750e1
DJ
8125 echo "$as_me:$LINENO: result: no" >&5
8126echo "${ECHO_T}no" >&6
cac3d6c4
CM
8127 fi
8128 done
55db4b87
PB
8129fi
8130
2429c060
PB
8131if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8132 for ncn_progname in cc gcc; do
8133 if test -n "$ncn_target_tool_prefix"; then
8134 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8135set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8136echo "$as_me:$LINENO: checking for $ac_word" >&5
8137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8138if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8140else
8141 if test -n "$CC_FOR_TARGET"; then
8142 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8143else
c6b750e1
DJ
8144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145for as_dir in $PATH
8146do
8147 IFS=$as_save_IFS
8148 test -z "$as_dir" && as_dir=.
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8151 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8153 break 2
8154 fi
8155done
8156done
8157
55db4b87
PB
8158fi
8159fi
c6b750e1 8160CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8161if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8162 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8163echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8164else
c6b750e1
DJ
8165 echo "$as_me:$LINENO: result: no" >&5
8166echo "${ECHO_T}no" >&6
55db4b87
PB
8167fi
8168
2429c060
PB
8169 fi
8170 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8172set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8173echo "$as_me:$LINENO: checking for $ac_word" >&5
8174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8175if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8177else
05cbd757
PB
8178 if test -n "$CC_FOR_TARGET"; then
8179 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8180else
c6b750e1
DJ
8181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182for as_dir in $PATH
8183do
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8191 fi
8192done
8193done
8194
55db4b87
PB
8195fi
8196fi
c6b750e1 8197CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8198if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8199 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8200echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8201else
c6b750e1
DJ
8202 echo "$as_me:$LINENO: result: no" >&5
8203echo "${ECHO_T}no" >&6
55db4b87 8204fi
c6b750e1 8205
2429c060
PB
8206 fi
8207 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8208 done
8209fi
c6b750e1 8210
05cbd757
PB
8211if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8212 set dummy cc gcc
8213 if test $build = $target ; then
8214 CC_FOR_TARGET="$2"
55db4b87 8215 else
05cbd757 8216 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8217 fi
d3f5afc4
MS
8218else
8219 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8220fi
8221
9a819804
AO
8222
8223
8224if test -n "$CXX_FOR_TARGET"; then
8225 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8226elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8227 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8228fi
8229
8230if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8231 for ncn_progname in c++ g++ cxx gxx; do
8232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8233set dummy ${ncn_progname}; ac_word=$2
8234echo "$as_me:$LINENO: checking for $ac_word" >&5
8235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8236if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8238else
8239 if test -n "$CXX_FOR_TARGET"; then
8240 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8241else
8242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243for as_dir in $PATH
8244do
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8249 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8251 break 2
8252 fi
8253done
8254done
8255
8256fi
8257fi
8258CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8259if test -n "$CXX_FOR_TARGET"; then
8260 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8261echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8262else
8263 echo "$as_me:$LINENO: result: no" >&5
8264echo "${ECHO_T}no" >&6
8265fi
8266
8267 done
8268fi
8269
8270if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8271 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8272 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8273echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8274 if test -x $with_build_time_tools/${ncn_progname}; then
8275 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8276 echo "$as_me:$LINENO: result: yes" >&5
8277echo "${ECHO_T}yes" >&6
2429c060
PB
8278 break
8279 else
c6b750e1
DJ
8280 echo "$as_me:$LINENO: result: no" >&5
8281echo "${ECHO_T}no" >&6
2429c060
PB
8282 fi
8283 done
8284fi
8285
8286if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8287 for ncn_progname in c++ g++ cxx gxx; do
8288 if test -n "$ncn_target_tool_prefix"; then
8289 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8290set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8291echo "$as_me:$LINENO: checking for $ac_word" >&5
8292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8293if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8295else
8296 if test -n "$CXX_FOR_TARGET"; then
8297 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8298else
c6b750e1
DJ
8299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300for as_dir in $PATH
8301do
8302 IFS=$as_save_IFS
8303 test -z "$as_dir" && as_dir=.
8304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8306 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 break 2
8309 fi
8310done
8311done
8312
55db4b87
PB
8313fi
8314fi
c6b750e1 8315CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8316if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8317 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8318echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8319else
c6b750e1
DJ
8320 echo "$as_me:$LINENO: result: no" >&5
8321echo "${ECHO_T}no" >&6
55db4b87
PB
8322fi
8323
2429c060
PB
8324 fi
8325 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8327set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8328echo "$as_me:$LINENO: checking for $ac_word" >&5
8329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8330if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8332else
05cbd757
PB
8333 if test -n "$CXX_FOR_TARGET"; then
8334 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8335else
c6b750e1
DJ
8336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337for as_dir in $PATH
8338do
8339 IFS=$as_save_IFS
8340 test -z "$as_dir" && as_dir=.
8341 for ac_exec_ext in '' $ac_executable_extensions; do
8342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8343 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8345 break 2
8346 fi
8347done
8348done
8349
55db4b87
PB
8350fi
8351fi
c6b750e1 8352CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8353if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8354 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8355echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8356else
c6b750e1
DJ
8357 echo "$as_me:$LINENO: result: no" >&5
8358echo "${ECHO_T}no" >&6
55db4b87 8359fi
c6b750e1 8360
2429c060
PB
8361 fi
8362 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8363 done
8364fi
c6b750e1 8365
05cbd757
PB
8366if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8367 set dummy c++ g++ cxx gxx
8368 if test $build = $target ; then
8369 CXX_FOR_TARGET="$2"
55db4b87 8370 else
05cbd757 8371 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8372 fi
d3f5afc4
MS
8373else
8374 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8375fi
8376
9a819804
AO
8377
8378
8379if test -n "$GCC_FOR_TARGET"; then
8380 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8381elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8382 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8383fi
8384
8385if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8386 for ncn_progname in gcc; do
8387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8388set dummy ${ncn_progname}; ac_word=$2
8389echo "$as_me:$LINENO: checking for $ac_word" >&5
8390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8391if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8393else
8394 if test -n "$GCC_FOR_TARGET"; then
8395 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8396else
8397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398for as_dir in $PATH
8399do
8400 IFS=$as_save_IFS
8401 test -z "$as_dir" && as_dir=.
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8404 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 break 2
8407 fi
8408done
8409done
8410
8411fi
8412fi
8413GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8414if test -n "$GCC_FOR_TARGET"; then
8415 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8416echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8417else
8418 echo "$as_me:$LINENO: result: no" >&5
8419echo "${ECHO_T}no" >&6
8420fi
8421
8422 done
8423fi
8424
8425if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8426 for ncn_progname in gcc; do
c6b750e1
DJ
8427 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8428echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8429 if test -x $with_build_time_tools/${ncn_progname}; then
8430 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8431 echo "$as_me:$LINENO: result: yes" >&5
8432echo "${ECHO_T}yes" >&6
2429c060
PB
8433 break
8434 else
c6b750e1
DJ
8435 echo "$as_me:$LINENO: result: no" >&5
8436echo "${ECHO_T}no" >&6
2429c060
PB
8437 fi
8438 done
8439fi
8440
8441if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8442 for ncn_progname in gcc; do
8443 if test -n "$ncn_target_tool_prefix"; then
8444 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8445set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8446echo "$as_me:$LINENO: checking for $ac_word" >&5
8447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8448if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8450else
2429c060
PB
8451 if test -n "$GCC_FOR_TARGET"; then
8452 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8453else
c6b750e1
DJ
8454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455for as_dir in $PATH
8456do
8457 IFS=$as_save_IFS
8458 test -z "$as_dir" && as_dir=.
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8461 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8463 break 2
8464 fi
8465done
8466done
8467
55db4b87
PB
8468fi
8469fi
c6b750e1 8470GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8471if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8472 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8473echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8474else
c6b750e1
DJ
8475 echo "$as_me:$LINENO: result: no" >&5
8476echo "${ECHO_T}no" >&6
55db4b87
PB
8477fi
8478
2429c060
PB
8479 fi
8480 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8482set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8483echo "$as_me:$LINENO: checking for $ac_word" >&5
8484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8485if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8487else
05cbd757
PB
8488 if test -n "$GCC_FOR_TARGET"; then
8489 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8490else
c6b750e1
DJ
8491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492for as_dir in $PATH
8493do
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8498 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8500 break 2
8501 fi
8502done
8503done
8504
55db4b87
PB
8505fi
8506fi
c6b750e1 8507GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8508if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8509 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8510echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8511else
c6b750e1
DJ
8512 echo "$as_me:$LINENO: result: no" >&5
8513echo "${ECHO_T}no" >&6
55db4b87 8514fi
c6b750e1 8515
2429c060
PB
8516 fi
8517 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8518 done
8519fi
c6b750e1 8520
05cbd757
PB
8521if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8522 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8523else
8524 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8525fi
8526
9a819804
AO
8527
8528
8529if test -n "$GCJ_FOR_TARGET"; then
8530 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8531elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8532 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8533fi
8534
8535if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8536 for ncn_progname in gcj; do
8537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8538set dummy ${ncn_progname}; ac_word=$2
8539echo "$as_me:$LINENO: checking for $ac_word" >&5
8540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8541if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543else
8544 if test -n "$GCJ_FOR_TARGET"; then
8545 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8546else
8547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548for as_dir in $PATH
8549do
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8554 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 break 2
8557 fi
8558done
8559done
8560
8561fi
8562fi
8563GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8564if test -n "$GCJ_FOR_TARGET"; then
8565 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8566echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8567else
8568 echo "$as_me:$LINENO: result: no" >&5
8569echo "${ECHO_T}no" >&6
8570fi
8571
8572 done
8573fi
8574
8575if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8576 for ncn_progname in gcj; do
c6b750e1
DJ
8577 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8578echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8579 if test -x $with_build_time_tools/${ncn_progname}; then
8580 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8581 echo "$as_me:$LINENO: result: yes" >&5
8582echo "${ECHO_T}yes" >&6
2429c060
PB
8583 break
8584 else
c6b750e1
DJ
8585 echo "$as_me:$LINENO: result: no" >&5
8586echo "${ECHO_T}no" >&6
2429c060
PB
8587 fi
8588 done
8589fi
8590
8591if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8592 for ncn_progname in gcj; do
8593 if test -n "$ncn_target_tool_prefix"; then
8594 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8595set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8596echo "$as_me:$LINENO: checking for $ac_word" >&5
8597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8598if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8600else
8601 if test -n "$GCJ_FOR_TARGET"; then
8602 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8603else
c6b750e1
DJ
8604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605for as_dir in $PATH
8606do
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8611 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 break 2
8614 fi
8615done
8616done
8617
55db4b87
PB
8618fi
8619fi
9a819804
AO
8620GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8621if test -n "$GCJ_FOR_TARGET"; then
8622 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8623echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8624else
8625 echo "$as_me:$LINENO: result: no" >&5
8626echo "${ECHO_T}no" >&6
8627fi
8628
8629 fi
8630 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8632set dummy ${ncn_progname}; ac_word=$2
8633echo "$as_me:$LINENO: checking for $ac_word" >&5
8634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8635if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8637else
8638 if test -n "$GCJ_FOR_TARGET"; then
8639 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8640else
8641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642for as_dir in $PATH
8643do
8644 IFS=$as_save_IFS
8645 test -z "$as_dir" && as_dir=.
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8648 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 break 2
8651 fi
8652done
8653done
8654
8655fi
8656fi
8657GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8658if test -n "$GCJ_FOR_TARGET"; then
8659 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8660echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8661else
8662 echo "$as_me:$LINENO: result: no" >&5
8663echo "${ECHO_T}no" >&6
8664fi
8665
8666 fi
8667 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8668 done
8669fi
8670
8671if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8672 set dummy gcj
8673 if test $build = $target ; then
8674 GCJ_FOR_TARGET="$2"
8675 else
8676 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8677 fi
d3f5afc4
MS
8678else
8679 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8680fi
8681
8682
8683
8684if test -n "$GFORTRAN_FOR_TARGET"; then
8685 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8686elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8687 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8688fi
8689
9a819804
AO
8690if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8691 for ncn_progname in gfortran; do
8692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8693set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8694echo "$as_me:$LINENO: checking for $ac_word" >&5
8695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8696if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8697 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8698else
9a819804
AO
8699 if test -n "$GFORTRAN_FOR_TARGET"; then
8700 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8701else
c6b750e1
DJ
8702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703for as_dir in $PATH
8704do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8709 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8712 fi
8713done
8714done
8715
55db4b87
PB
8716fi
8717fi
9a819804
AO
8718GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8719if test -n "$GFORTRAN_FOR_TARGET"; then
8720 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8721echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8722else
c6b750e1
DJ
8723 echo "$as_me:$LINENO: result: no" >&5
8724echo "${ECHO_T}no" >&6
55db4b87 8725fi
c6b750e1 8726
2429c060
PB
8727 done
8728fi
c6b750e1 8729
9a819804 8730if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8731 for ncn_progname in gfortran; do
c6b750e1
DJ
8732 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8733echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8734 if test -x $with_build_time_tools/${ncn_progname}; then
8735 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8736 echo "$as_me:$LINENO: result: yes" >&5
8737echo "${ECHO_T}yes" >&6
2429c060
PB
8738 break
8739 else
c6b750e1
DJ
8740 echo "$as_me:$LINENO: result: no" >&5
8741echo "${ECHO_T}no" >&6
2429c060
PB
8742 fi
8743 done
8744fi
8745
8746if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8747 for ncn_progname in gfortran; do
8748 if test -n "$ncn_target_tool_prefix"; then
8749 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8750set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8751echo "$as_me:$LINENO: checking for $ac_word" >&5
8752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8753if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8755else
8756 if test -n "$GFORTRAN_FOR_TARGET"; then
8757 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8758else
c6b750e1
DJ
8759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760for as_dir in $PATH
8761do
8762 IFS=$as_save_IFS
8763 test -z "$as_dir" && as_dir=.
8764 for ac_exec_ext in '' $ac_executable_extensions; do
8765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8766 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 break 2
8769 fi
8770done
8771done
8772
55db4b87
PB
8773fi
8774fi
c6b750e1 8775GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8776if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8777 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8778echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8779else
c6b750e1
DJ
8780 echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
55db4b87
PB
8782fi
8783
2429c060
PB
8784 fi
8785 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8787set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8788echo "$as_me:$LINENO: checking for $ac_word" >&5
8789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8790if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8792else
05cbd757 8793 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8794 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8795else
8796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797for as_dir in $PATH
8798do
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8803 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 break 2
8806 fi
8807done
8808done
8809
55db4b87
PB
8810fi
8811fi
c6b750e1 8812GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8813if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8814 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8815echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8816else
c6b750e1
DJ
8817 echo "$as_me:$LINENO: result: no" >&5
8818echo "${ECHO_T}no" >&6
55db4b87 8819fi
c6b750e1 8820
2429c060
PB
8821 fi
8822 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8823 done
8824fi
c6b750e1 8825
05cbd757
PB
8826if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8827 set dummy gfortran
8828 if test $build = $target ; then
8829 GFORTRAN_FOR_TARGET="$2"
55db4b87 8830 else
05cbd757 8831 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8832 fi
d3f5afc4
MS
8833else
8834 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8835fi
8836
2429c060
PB
8837
8838
2429c060
PB
8839cat > conftest.c << \EOF
8840#ifdef __GNUC__
8841 gcc_yay;
8842#endif
8843EOF
8844if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8845 have_gcc_for_target=yes
859789af 8846else
2429c060
PB
8847 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8848 have_gcc_for_target=no
859789af 8849fi
2429c060
PB
8850rm conftest.c
8851
8852
8853
859789af 8854
2429c060
PB
8855if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8856 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8857 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8858echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8859 if test -x $with_build_time_tools/ar; then
8860 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8861 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8862 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8863echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8864 else
c6b750e1
DJ
8865 echo "$as_me:$LINENO: result: no" >&5
8866echo "${ECHO_T}no" >&6
3a35eeb3 8867 fi
2429c060
PB
8868 elif test $build != $host && test $have_gcc_for_target = yes; then
8869 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8870 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8871 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8872 fi
2429c060 8873fi
c6b750e1 8874if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8875 # Extract the first word of "ar", so it can be a program name with args.
8876set dummy ar; ac_word=$2
c6b750e1
DJ
8877echo "$as_me:$LINENO: checking for $ac_word" >&5
8878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8879if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8881else
c6b750e1
DJ
8882 case $AR_FOR_TARGET in
8883 [\\/]* | ?:[\\/]*)
2429c060
PB
8884 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8885 ;;
2429c060 8886 *)
c6b750e1
DJ
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888for as_dir in $gcc_cv_tool_dirs
8889do
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8894 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 break 2
8897 fi
8898done
8899done
8900
2429c060
PB
8901 ;;
8902esac
859789af 8903fi
c6b750e1
DJ
8904AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8905
2429c060 8906if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8907 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8908echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8909else
c6b750e1
DJ
8910 echo "$as_me:$LINENO: result: no" >&5
8911echo "${ECHO_T}no" >&6
859789af 8912fi
05cbd757 8913
2429c060
PB
8914fi
8915if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8916
8917
8918if test -n "$AR_FOR_TARGET"; then
8919 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8920elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8921 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8922fi
8923
8924if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8925 for ncn_progname in ar; do
8926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8927set dummy ${ncn_progname}; ac_word=$2
8928echo "$as_me:$LINENO: checking for $ac_word" >&5
8929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8930if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932else
8933 if test -n "$AR_FOR_TARGET"; then
8934 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8935else
8936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937for as_dir in $PATH
8938do
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8943 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 break 2
8946 fi
8947done
8948done
8949
8950fi
8951fi
8952AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8953if test -n "$AR_FOR_TARGET"; then
8954 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8955echo "${ECHO_T}$AR_FOR_TARGET" >&6
8956else
8957 echo "$as_me:$LINENO: result: no" >&5
8958echo "${ECHO_T}no" >&6
8959fi
8960
8961 done
8962fi
8963
8964if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8965 for ncn_progname in ar; do
c6b750e1
DJ
8966 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8967echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8968 if test -x $with_build_time_tools/${ncn_progname}; then
8969 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8970 echo "$as_me:$LINENO: result: yes" >&5
8971echo "${ECHO_T}yes" >&6
2429c060
PB
8972 break
8973 else
c6b750e1
DJ
8974 echo "$as_me:$LINENO: result: no" >&5
8975echo "${ECHO_T}no" >&6
2429c060
PB
8976 fi
8977 done
859789af
AC
8978fi
8979
2429c060
PB
8980if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8981 for ncn_progname in ar; do
8982 if test -n "$ncn_target_tool_prefix"; then
8983 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8984set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8985echo "$as_me:$LINENO: checking for $ac_word" >&5
8986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8987if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8989else
2429c060
PB
8990 if test -n "$AR_FOR_TARGET"; then
8991 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8992else
c6b750e1
DJ
8993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994for as_dir in $PATH
8995do
8996 IFS=$as_save_IFS
8997 test -z "$as_dir" && as_dir=.
8998 for ac_exec_ext in '' $ac_executable_extensions; do
8999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9000 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9002 break 2
9003 fi
9004done
9005done
9006
7e0f7140
GK
9007fi
9008fi
c6b750e1 9009AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9010if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9011 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9012echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9013else
c6b750e1
DJ
9014 echo "$as_me:$LINENO: result: no" >&5
9015echo "${ECHO_T}no" >&6
7e0f7140
GK
9016fi
9017
2429c060
PB
9018 fi
9019 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9021set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9022echo "$as_me:$LINENO: checking for $ac_word" >&5
9023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9024if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9026else
2429c060
PB
9027 if test -n "$AR_FOR_TARGET"; then
9028 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9029else
c6b750e1
DJ
9030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031for as_dir in $PATH
9032do
9033 IFS=$as_save_IFS
9034 test -z "$as_dir" && as_dir=.
9035 for ac_exec_ext in '' $ac_executable_extensions; do
9036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9037 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9039 break 2
9040 fi
9041done
9042done
9043
7e0f7140
GK
9044fi
9045fi
c6b750e1 9046AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9047if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9048 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9049echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9050else
c6b750e1
DJ
9051 echo "$as_me:$LINENO: result: no" >&5
9052echo "${ECHO_T}no" >&6
7e0f7140 9053fi
c6b750e1 9054
2429c060
PB
9055 fi
9056 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9057 done
9058fi
c6b750e1 9059
2429c060
PB
9060if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9061 set dummy ar
7e0f7140 9062 if test $build = $target ; then
2429c060 9063 AR_FOR_TARGET="$2"
7e0f7140 9064 else
2429c060 9065 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9066 fi
d3f5afc4
MS
9067else
9068 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9069fi
9070
3a35eeb3
PB
9071else
9072 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9073fi
9074
9075
9076
9077
9078if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9079 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9080 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9081echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9082 if test -x $with_build_time_tools/as; then
9083 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9084 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9085 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9086echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9087 else
c6b750e1
DJ
9088 echo "$as_me:$LINENO: result: no" >&5
9089echo "${ECHO_T}no" >&6
3a35eeb3 9090 fi
2429c060
PB
9091 elif test $build != $host && test $have_gcc_for_target = yes; then
9092 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9093 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9094 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9095 fi
9096fi
c6b750e1 9097if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9098 # Extract the first word of "as", so it can be a program name with args.
9099set dummy as; ac_word=$2
c6b750e1
DJ
9100echo "$as_me:$LINENO: checking for $ac_word" >&5
9101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9102if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9104else
c6b750e1
DJ
9105 case $AS_FOR_TARGET in
9106 [\\/]* | ?:[\\/]*)
2429c060
PB
9107 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9108 ;;
2429c060 9109 *)
c6b750e1
DJ
9110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111for as_dir in $gcc_cv_tool_dirs
9112do
9113 IFS=$as_save_IFS
9114 test -z "$as_dir" && as_dir=.
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9117 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9119 break 2
9120 fi
9121done
9122done
9123
2429c060
PB
9124 ;;
9125esac
9126fi
c6b750e1
DJ
9127AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9128
2429c060 9129if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9130 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9131echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9132else
c6b750e1
DJ
9133 echo "$as_me:$LINENO: result: no" >&5
9134echo "${ECHO_T}no" >&6
2429c060
PB
9135fi
9136
9137fi
9138if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9139
9140
9141if test -n "$AS_FOR_TARGET"; then
9142 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9143elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9144 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9145fi
9146
9147if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9148 for ncn_progname in as; do
9149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9150set dummy ${ncn_progname}; ac_word=$2
9151echo "$as_me:$LINENO: checking for $ac_word" >&5
9152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9153if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9155else
9156 if test -n "$AS_FOR_TARGET"; then
9157 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9158else
9159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160for as_dir in $PATH
9161do
9162 IFS=$as_save_IFS
9163 test -z "$as_dir" && as_dir=.
9164 for ac_exec_ext in '' $ac_executable_extensions; do
9165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9166 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9168 break 2
9169 fi
9170done
9171done
9172
9173fi
9174fi
9175AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9176if test -n "$AS_FOR_TARGET"; then
9177 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9178echo "${ECHO_T}$AS_FOR_TARGET" >&6
9179else
9180 echo "$as_me:$LINENO: result: no" >&5
9181echo "${ECHO_T}no" >&6
9182fi
9183
9184 done
9185fi
9186
9187if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9188 for ncn_progname in as; do
c6b750e1
DJ
9189 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9190echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9191 if test -x $with_build_time_tools/${ncn_progname}; then
9192 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9193 echo "$as_me:$LINENO: result: yes" >&5
9194echo "${ECHO_T}yes" >&6
2429c060
PB
9195 break
9196 else
c6b750e1
DJ
9197 echo "$as_me:$LINENO: result: no" >&5
9198echo "${ECHO_T}no" >&6
2429c060
PB
9199 fi
9200 done
9201fi
9202
9203if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9204 for ncn_progname in as; do
9205 if test -n "$ncn_target_tool_prefix"; then
9206 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9207set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9208echo "$as_me:$LINENO: checking for $ac_word" >&5
9209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9210if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9212else
9213 if test -n "$AS_FOR_TARGET"; then
9214 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9215else
c6b750e1
DJ
9216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217for as_dir in $PATH
9218do
9219 IFS=$as_save_IFS
9220 test -z "$as_dir" && as_dir=.
9221 for ac_exec_ext in '' $ac_executable_extensions; do
9222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9223 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 break 2
9226 fi
9227done
9228done
9229
2429c060
PB
9230fi
9231fi
c6b750e1 9232AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9233if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9234 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9235echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9236else
c6b750e1
DJ
9237 echo "$as_me:$LINENO: result: no" >&5
9238echo "${ECHO_T}no" >&6
2429c060
PB
9239fi
9240
9241 fi
9242 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9244set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9245echo "$as_me:$LINENO: checking for $ac_word" >&5
9246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9247if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9249else
9250 if test -n "$AS_FOR_TARGET"; then
9251 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9252else
c6b750e1
DJ
9253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254for as_dir in $PATH
9255do
9256 IFS=$as_save_IFS
9257 test -z "$as_dir" && as_dir=.
9258 for ac_exec_ext in '' $ac_executable_extensions; do
9259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9260 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9262 break 2
9263 fi
9264done
9265done
9266
2429c060
PB
9267fi
9268fi
c6b750e1 9269AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9270if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9271 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9272echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9273else
c6b750e1
DJ
9274 echo "$as_me:$LINENO: result: no" >&5
9275echo "${ECHO_T}no" >&6
2429c060 9276fi
c6b750e1 9277
2429c060
PB
9278 fi
9279 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9280 done
9281fi
c6b750e1 9282
2429c060
PB
9283if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9284 set dummy as
9285 if test $build = $target ; then
9286 AS_FOR_TARGET="$2"
9287 else
9288 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9289 fi
d3f5afc4
MS
9290else
9291 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9292fi
9293
3a35eeb3
PB
9294else
9295 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9296fi
9297
9298
9299
9300
9301if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9302 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9303 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9304echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9305 if test -x $with_build_time_tools/dlltool; then
9306 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9307 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9308 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9309echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9310 else
c6b750e1
DJ
9311 echo "$as_me:$LINENO: result: no" >&5
9312echo "${ECHO_T}no" >&6
3a35eeb3 9313 fi
2429c060
PB
9314 elif test $build != $host && test $have_gcc_for_target = yes; then
9315 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9316 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9317 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9318 fi
9319fi
c6b750e1 9320if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9321 # Extract the first word of "dlltool", so it can be a program name with args.
9322set dummy dlltool; ac_word=$2
c6b750e1
DJ
9323echo "$as_me:$LINENO: checking for $ac_word" >&5
9324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9325if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9327else
c6b750e1
DJ
9328 case $DLLTOOL_FOR_TARGET in
9329 [\\/]* | ?:[\\/]*)
2429c060
PB
9330 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9331 ;;
2429c060 9332 *)
c6b750e1
DJ
9333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334for as_dir in $gcc_cv_tool_dirs
9335do
9336 IFS=$as_save_IFS
9337 test -z "$as_dir" && as_dir=.
9338 for ac_exec_ext in '' $ac_executable_extensions; do
9339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9340 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9342 break 2
9343 fi
9344done
9345done
9346
2429c060
PB
9347 ;;
9348esac
9349fi
c6b750e1
DJ
9350DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9351
2429c060 9352if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9353 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9354echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9355else
c6b750e1
DJ
9356 echo "$as_me:$LINENO: result: no" >&5
9357echo "${ECHO_T}no" >&6
2429c060
PB
9358fi
9359
9360fi
9361if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9362
9363
9364if test -n "$DLLTOOL_FOR_TARGET"; then
9365 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9366elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9367 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9368fi
9369
9370if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9371 for ncn_progname in dlltool; do
9372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9373set dummy ${ncn_progname}; ac_word=$2
9374echo "$as_me:$LINENO: checking for $ac_word" >&5
9375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9376if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9378else
9379 if test -n "$DLLTOOL_FOR_TARGET"; then
9380 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9381else
9382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383for as_dir in $PATH
9384do
9385 IFS=$as_save_IFS
9386 test -z "$as_dir" && as_dir=.
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9389 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9391 break 2
9392 fi
9393done
9394done
9395
9396fi
9397fi
9398DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9399if test -n "$DLLTOOL_FOR_TARGET"; then
9400 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9401echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9402else
9403 echo "$as_me:$LINENO: result: no" >&5
9404echo "${ECHO_T}no" >&6
9405fi
9406
9407 done
9408fi
9409
9410if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9411 for ncn_progname in dlltool; do
c6b750e1
DJ
9412 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9413echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9414 if test -x $with_build_time_tools/${ncn_progname}; then
9415 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9416 echo "$as_me:$LINENO: result: yes" >&5
9417echo "${ECHO_T}yes" >&6
2429c060
PB
9418 break
9419 else
c6b750e1
DJ
9420 echo "$as_me:$LINENO: result: no" >&5
9421echo "${ECHO_T}no" >&6
2429c060
PB
9422 fi
9423 done
9424fi
9425
9426if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9427 for ncn_progname in dlltool; do
9428 if test -n "$ncn_target_tool_prefix"; then
9429 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9430set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9431echo "$as_me:$LINENO: checking for $ac_word" >&5
9432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9433if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9435else
9436 if test -n "$DLLTOOL_FOR_TARGET"; then
9437 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9438else
c6b750e1
DJ
9439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9440for as_dir in $PATH
9441do
9442 IFS=$as_save_IFS
9443 test -z "$as_dir" && as_dir=.
9444 for ac_exec_ext in '' $ac_executable_extensions; do
9445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9446 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9448 break 2
9449 fi
9450done
9451done
9452
2429c060
PB
9453fi
9454fi
c6b750e1 9455DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9456if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9457 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9458echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9459else
c6b750e1
DJ
9460 echo "$as_me:$LINENO: result: no" >&5
9461echo "${ECHO_T}no" >&6
2429c060
PB
9462fi
9463
9464 fi
9465 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9467set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9468echo "$as_me:$LINENO: checking for $ac_word" >&5
9469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9470if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9472else
9473 if test -n "$DLLTOOL_FOR_TARGET"; then
9474 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9475else
c6b750e1
DJ
9476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477for as_dir in $PATH
9478do
9479 IFS=$as_save_IFS
9480 test -z "$as_dir" && as_dir=.
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9483 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9485 break 2
9486 fi
9487done
9488done
9489
2429c060
PB
9490fi
9491fi
c6b750e1 9492DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9493if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9494 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9495echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9496else
c6b750e1
DJ
9497 echo "$as_me:$LINENO: result: no" >&5
9498echo "${ECHO_T}no" >&6
2429c060 9499fi
c6b750e1 9500
2429c060
PB
9501 fi
9502 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9503 done
9504fi
c6b750e1 9505
2429c060
PB
9506if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9507 set dummy dlltool
9508 if test $build = $target ; then
9509 DLLTOOL_FOR_TARGET="$2"
9510 else
9511 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9512 fi
d3f5afc4
MS
9513else
9514 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9515fi
9516
3a35eeb3
PB
9517else
9518 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9519fi
9520
9521
9522
9523
9524if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9525 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9526 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9527echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9528 if test -x $with_build_time_tools/ld; then
9529 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9530 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9531 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9532echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9533 else
c6b750e1
DJ
9534 echo "$as_me:$LINENO: result: no" >&5
9535echo "${ECHO_T}no" >&6
3a35eeb3 9536 fi
2429c060
PB
9537 elif test $build != $host && test $have_gcc_for_target = yes; then
9538 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9539 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9540 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9541 fi
9542fi
c6b750e1 9543if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9544 # Extract the first word of "ld", so it can be a program name with args.
9545set dummy ld; ac_word=$2
c6b750e1
DJ
9546echo "$as_me:$LINENO: checking for $ac_word" >&5
9547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9548if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9550else
c6b750e1
DJ
9551 case $LD_FOR_TARGET in
9552 [\\/]* | ?:[\\/]*)
2429c060
PB
9553 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9554 ;;
2429c060 9555 *)
c6b750e1
DJ
9556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557for as_dir in $gcc_cv_tool_dirs
9558do
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
9561 for ac_exec_ext in '' $ac_executable_extensions; do
9562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9563 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9565 break 2
9566 fi
9567done
9568done
9569
2429c060
PB
9570 ;;
9571esac
9572fi
c6b750e1
DJ
9573LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9574
2429c060 9575if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9576 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9577echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9578else
c6b750e1
DJ
9579 echo "$as_me:$LINENO: result: no" >&5
9580echo "${ECHO_T}no" >&6
2429c060
PB
9581fi
9582
9583fi
9584if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9585
9586
9587if test -n "$LD_FOR_TARGET"; then
9588 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9589elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9590 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9591fi
9592
9593if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9594 for ncn_progname in ld; do
9595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9596set dummy ${ncn_progname}; ac_word=$2
9597echo "$as_me:$LINENO: checking for $ac_word" >&5
9598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9599if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9601else
9602 if test -n "$LD_FOR_TARGET"; then
9603 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9604else
9605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606for as_dir in $PATH
9607do
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9612 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9614 break 2
9615 fi
9616done
9617done
9618
9619fi
9620fi
9621LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9622if test -n "$LD_FOR_TARGET"; then
9623 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9624echo "${ECHO_T}$LD_FOR_TARGET" >&6
9625else
9626 echo "$as_me:$LINENO: result: no" >&5
9627echo "${ECHO_T}no" >&6
9628fi
9629
9630 done
9631fi
9632
9633if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9634 for ncn_progname in ld; do
c6b750e1
DJ
9635 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9636echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9637 if test -x $with_build_time_tools/${ncn_progname}; then
9638 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9639 echo "$as_me:$LINENO: result: yes" >&5
9640echo "${ECHO_T}yes" >&6
2429c060
PB
9641 break
9642 else
c6b750e1
DJ
9643 echo "$as_me:$LINENO: result: no" >&5
9644echo "${ECHO_T}no" >&6
2429c060
PB
9645 fi
9646 done
9647fi
9648
9649if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9650 for ncn_progname in ld; do
9651 if test -n "$ncn_target_tool_prefix"; then
9652 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9653set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9654echo "$as_me:$LINENO: checking for $ac_word" >&5
9655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9656if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9658else
9659 if test -n "$LD_FOR_TARGET"; then
9660 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9661else
c6b750e1
DJ
9662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663for as_dir in $PATH
9664do
9665 IFS=$as_save_IFS
9666 test -z "$as_dir" && as_dir=.
9667 for ac_exec_ext in '' $ac_executable_extensions; do
9668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9669 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9671 break 2
9672 fi
9673done
9674done
9675
2429c060
PB
9676fi
9677fi
c6b750e1 9678LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9679if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9680 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9681echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9682else
c6b750e1
DJ
9683 echo "$as_me:$LINENO: result: no" >&5
9684echo "${ECHO_T}no" >&6
2429c060
PB
9685fi
9686
9687 fi
9688 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9690set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9691echo "$as_me:$LINENO: checking for $ac_word" >&5
9692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9693if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9695else
9696 if test -n "$LD_FOR_TARGET"; then
9697 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9698else
c6b750e1
DJ
9699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700for as_dir in $PATH
9701do
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9706 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 break 2
9709 fi
9710done
9711done
9712
2429c060
PB
9713fi
9714fi
c6b750e1 9715LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9716if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9717 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9718echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9719else
c6b750e1
DJ
9720 echo "$as_me:$LINENO: result: no" >&5
9721echo "${ECHO_T}no" >&6
2429c060 9722fi
c6b750e1 9723
2429c060
PB
9724 fi
9725 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9726 done
9727fi
c6b750e1 9728
2429c060
PB
9729if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9730 set dummy ld
9731 if test $build = $target ; then
9732 LD_FOR_TARGET="$2"
9733 else
9734 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9735 fi
d3f5afc4
MS
9736else
9737 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9738fi
9739
3a35eeb3
PB
9740else
9741 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9742fi
9743
9744
9745
9746
9747if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9748 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9749 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9750echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9751 if test -x $with_build_time_tools/lipo; then
9752 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9753 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9754 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9755echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9756 else
c6b750e1
DJ
9757 echo "$as_me:$LINENO: result: no" >&5
9758echo "${ECHO_T}no" >&6
3a35eeb3 9759 fi
2429c060
PB
9760 elif test $build != $host && test $have_gcc_for_target = yes; then
9761 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9762 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9763 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9764 fi
9765fi
9a819804
AO
9766if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9767 # Extract the first word of "lipo", so it can be a program name with args.
9768set dummy lipo; ac_word=$2
9769echo "$as_me:$LINENO: checking for $ac_word" >&5
9770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9771if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9773else
9774 case $LIPO_FOR_TARGET in
9775 [\\/]* | ?:[\\/]*)
9776 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9777 ;;
9778 *)
9779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780for as_dir in $gcc_cv_tool_dirs
9781do
9782 IFS=$as_save_IFS
9783 test -z "$as_dir" && as_dir=.
9784 for ac_exec_ext in '' $ac_executable_extensions; do
9785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9786 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9788 break 2
9789 fi
9790done
9791done
9792
9793 ;;
9794esac
9795fi
9796LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9797
9798if test -n "$LIPO_FOR_TARGET"; then
9799 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9800echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9801else
9802 echo "$as_me:$LINENO: result: no" >&5
9803echo "${ECHO_T}no" >&6
9804fi
9805
9806fi
9807if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9808
9809
9810if test -n "$LIPO_FOR_TARGET"; then
9811 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9812elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9813 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9814fi
9815
9816if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9817 for ncn_progname in lipo; do
9818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9819set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9820echo "$as_me:$LINENO: checking for $ac_word" >&5
9821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9822if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9823 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9824else
9a819804
AO
9825 if test -n "$LIPO_FOR_TARGET"; then
9826 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9827else
9828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9829for as_dir in $PATH
c6b750e1
DJ
9830do
9831 IFS=$as_save_IFS
9832 test -z "$as_dir" && as_dir=.
9833 for ac_exec_ext in '' $ac_executable_extensions; do
9834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9835 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9837 break 2
9838 fi
9839done
9840done
9841
2429c060 9842fi
9a819804
AO
9843fi
9844LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9845if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9846 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9847echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9848else
c6b750e1
DJ
9849 echo "$as_me:$LINENO: result: no" >&5
9850echo "${ECHO_T}no" >&6
2429c060
PB
9851fi
9852
9a819804 9853 done
2429c060 9854fi
9a819804
AO
9855
9856if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9857 for ncn_progname in lipo; do
c6b750e1
DJ
9858 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9859echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9860 if test -x $with_build_time_tools/${ncn_progname}; then
9861 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9862 echo "$as_me:$LINENO: result: yes" >&5
9863echo "${ECHO_T}yes" >&6
2429c060
PB
9864 break
9865 else
c6b750e1
DJ
9866 echo "$as_me:$LINENO: result: no" >&5
9867echo "${ECHO_T}no" >&6
2429c060
PB
9868 fi
9869 done
9870fi
9871
9872if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9873 for ncn_progname in lipo; do
9874 if test -n "$ncn_target_tool_prefix"; then
9875 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9876set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9877echo "$as_me:$LINENO: checking for $ac_word" >&5
9878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9879if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9881else
9882 if test -n "$LIPO_FOR_TARGET"; then
9883 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9884else
c6b750e1
DJ
9885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886for as_dir in $PATH
9887do
9888 IFS=$as_save_IFS
9889 test -z "$as_dir" && as_dir=.
9890 for ac_exec_ext in '' $ac_executable_extensions; do
9891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9892 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9894 break 2
9895 fi
9896done
9897done
9898
2429c060
PB
9899fi
9900fi
c6b750e1 9901LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9902if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9903 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9904echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9905else
c6b750e1
DJ
9906 echo "$as_me:$LINENO: result: no" >&5
9907echo "${ECHO_T}no" >&6
2429c060
PB
9908fi
9909
9910 fi
9911 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9913set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9914echo "$as_me:$LINENO: checking for $ac_word" >&5
9915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9916if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9918else
9919 if test -n "$LIPO_FOR_TARGET"; then
9920 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9921else
c6b750e1
DJ
9922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923for as_dir in $PATH
9924do
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
9928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9929 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 break 2
9932 fi
9933done
9934done
9935
2429c060
PB
9936fi
9937fi
c6b750e1 9938LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9939if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9940 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9941echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9942else
c6b750e1
DJ
9943 echo "$as_me:$LINENO: result: no" >&5
9944echo "${ECHO_T}no" >&6
2429c060 9945fi
c6b750e1 9946
2429c060
PB
9947 fi
9948 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9949 done
9950fi
c6b750e1 9951
2429c060
PB
9952if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9953 set dummy lipo
9954 if test $build = $target ; then
9955 LIPO_FOR_TARGET="$2"
9956 else
9957 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9958 fi
d3f5afc4
MS
9959else
9960 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9961fi
9962
3a35eeb3
PB
9963else
9964 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9965fi
9966
9967
9968
9969
9970if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9971 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9972 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9973echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9974 if test -x $with_build_time_tools/nm; then
9975 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9976 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9977 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9978echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9979 else
c6b750e1
DJ
9980 echo "$as_me:$LINENO: result: no" >&5
9981echo "${ECHO_T}no" >&6
3a35eeb3 9982 fi
2429c060
PB
9983 elif test $build != $host && test $have_gcc_for_target = yes; then
9984 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
9985 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9986 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
9987 fi
9988fi
c6b750e1 9989if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9990 # Extract the first word of "nm", so it can be a program name with args.
9991set dummy nm; ac_word=$2
c6b750e1
DJ
9992echo "$as_me:$LINENO: checking for $ac_word" >&5
9993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9994if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9996else
c6b750e1
DJ
9997 case $NM_FOR_TARGET in
9998 [\\/]* | ?:[\\/]*)
2429c060
PB
9999 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10000 ;;
2429c060 10001 *)
c6b750e1
DJ
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003for as_dir in $gcc_cv_tool_dirs
10004do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10009 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10012 fi
10013done
10014done
10015
2429c060
PB
10016 ;;
10017esac
10018fi
c6b750e1
DJ
10019NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10020
2429c060 10021if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10022 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10023echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10024else
c6b750e1
DJ
10025 echo "$as_me:$LINENO: result: no" >&5
10026echo "${ECHO_T}no" >&6
2429c060
PB
10027fi
10028
10029fi
10030if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10031
10032
10033if test -n "$NM_FOR_TARGET"; then
10034 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10035elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10036 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10037fi
10038
10039if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10040 for ncn_progname in nm; do
10041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10042set dummy ${ncn_progname}; ac_word=$2
10043echo "$as_me:$LINENO: checking for $ac_word" >&5
10044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10045if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10047else
10048 if test -n "$NM_FOR_TARGET"; then
10049 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10050else
10051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052for as_dir in $PATH
10053do
10054 IFS=$as_save_IFS
10055 test -z "$as_dir" && as_dir=.
10056 for ac_exec_ext in '' $ac_executable_extensions; do
10057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10058 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10060 break 2
10061 fi
10062done
10063done
10064
10065fi
10066fi
10067NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10068if test -n "$NM_FOR_TARGET"; then
10069 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10070echo "${ECHO_T}$NM_FOR_TARGET" >&6
10071else
10072 echo "$as_me:$LINENO: result: no" >&5
10073echo "${ECHO_T}no" >&6
10074fi
10075
10076 done
10077fi
10078
10079if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10080 for ncn_progname in nm; do
c6b750e1
DJ
10081 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10082echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10083 if test -x $with_build_time_tools/${ncn_progname}; then
10084 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10085 echo "$as_me:$LINENO: result: yes" >&5
10086echo "${ECHO_T}yes" >&6
2429c060
PB
10087 break
10088 else
c6b750e1
DJ
10089 echo "$as_me:$LINENO: result: no" >&5
10090echo "${ECHO_T}no" >&6
2429c060
PB
10091 fi
10092 done
10093fi
10094
10095if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10096 for ncn_progname in nm; do
10097 if test -n "$ncn_target_tool_prefix"; then
10098 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10099set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10100echo "$as_me:$LINENO: checking for $ac_word" >&5
10101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10102if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10104else
55db4b87
PB
10105 if test -n "$NM_FOR_TARGET"; then
10106 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10107else
c6b750e1
DJ
10108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109for as_dir in $PATH
10110do
10111 IFS=$as_save_IFS
10112 test -z "$as_dir" && as_dir=.
10113 for ac_exec_ext in '' $ac_executable_extensions; do
10114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10115 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10117 break 2
10118 fi
10119done
10120done
10121
859789af
AC
10122fi
10123fi
c6b750e1 10124NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10125if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10126 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10127echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10128else
c6b750e1
DJ
10129 echo "$as_me:$LINENO: result: no" >&5
10130echo "${ECHO_T}no" >&6
859789af
AC
10131fi
10132
2429c060
PB
10133 fi
10134 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10136set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10137echo "$as_me:$LINENO: checking for $ac_word" >&5
10138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10139if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10141else
05cbd757
PB
10142 if test -n "$NM_FOR_TARGET"; then
10143 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10144else
c6b750e1
DJ
10145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146for as_dir in $PATH
10147do
10148 IFS=$as_save_IFS
10149 test -z "$as_dir" && as_dir=.
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10152 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10154 break 2
10155 fi
10156done
10157done
10158
859789af
AC
10159fi
10160fi
c6b750e1 10161NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10162if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10163 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10164echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10165else
c6b750e1
DJ
10166 echo "$as_me:$LINENO: result: no" >&5
10167echo "${ECHO_T}no" >&6
859789af 10168fi
c6b750e1 10169
2429c060
PB
10170 fi
10171 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10172 done
10173fi
c6b750e1 10174
05cbd757
PB
10175if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10176 set dummy nm
10177 if test $build = $target ; then
10178 NM_FOR_TARGET="$2"
859789af 10179 else
05cbd757 10180 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10181 fi
d3f5afc4
MS
10182else
10183 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10184fi
10185
3a35eeb3
PB
10186else
10187 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10188fi
10189
10190
10191
10192
10193if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10194 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10195 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10196echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10197 if test -x $with_build_time_tools/objdump; then
10198 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10199 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10200 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10201echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10202 else
c6b750e1
DJ
10203 echo "$as_me:$LINENO: result: no" >&5
10204echo "${ECHO_T}no" >&6
3a35eeb3 10205 fi
2429c060
PB
10206 elif test $build != $host && test $have_gcc_for_target = yes; then
10207 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10208 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10209 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10210 fi
10211fi
c6b750e1 10212if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10213 # Extract the first word of "objdump", so it can be a program name with args.
10214set dummy objdump; ac_word=$2
c6b750e1
DJ
10215echo "$as_me:$LINENO: checking for $ac_word" >&5
10216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10217if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10219else
c6b750e1
DJ
10220 case $OBJDUMP_FOR_TARGET in
10221 [\\/]* | ?:[\\/]*)
2429c060
PB
10222 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10223 ;;
2429c060 10224 *)
c6b750e1
DJ
10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226for as_dir in $gcc_cv_tool_dirs
10227do
10228 IFS=$as_save_IFS
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10232 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 break 2
10235 fi
10236done
10237done
10238
2429c060
PB
10239 ;;
10240esac
10241fi
c6b750e1
DJ
10242OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10243
2429c060 10244if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10245 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10246echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10247else
c6b750e1
DJ
10248 echo "$as_me:$LINENO: result: no" >&5
10249echo "${ECHO_T}no" >&6
2429c060
PB
10250fi
10251
10252fi
10253if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10254
10255
10256if test -n "$OBJDUMP_FOR_TARGET"; then
10257 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10258elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10259 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10260fi
10261
10262if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10263 for ncn_progname in objdump; do
10264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10265set dummy ${ncn_progname}; ac_word=$2
10266echo "$as_me:$LINENO: checking for $ac_word" >&5
10267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10268if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270else
10271 if test -n "$OBJDUMP_FOR_TARGET"; then
10272 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10273else
10274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275for as_dir in $PATH
10276do
10277 IFS=$as_save_IFS
10278 test -z "$as_dir" && as_dir=.
10279 for ac_exec_ext in '' $ac_executable_extensions; do
10280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10281 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10283 break 2
10284 fi
10285done
10286done
10287
10288fi
10289fi
10290OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10291if test -n "$OBJDUMP_FOR_TARGET"; then
10292 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10293echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10294else
10295 echo "$as_me:$LINENO: result: no" >&5
10296echo "${ECHO_T}no" >&6
10297fi
10298
10299 done
10300fi
10301
10302if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10303 for ncn_progname in objdump; do
c6b750e1
DJ
10304 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10305echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10306 if test -x $with_build_time_tools/${ncn_progname}; then
10307 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10308 echo "$as_me:$LINENO: result: yes" >&5
10309echo "${ECHO_T}yes" >&6
2429c060
PB
10310 break
10311 else
c6b750e1
DJ
10312 echo "$as_me:$LINENO: result: no" >&5
10313echo "${ECHO_T}no" >&6
2429c060
PB
10314 fi
10315 done
10316fi
10317
10318if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10319 for ncn_progname in objdump; do
10320 if test -n "$ncn_target_tool_prefix"; then
10321 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10322set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10323echo "$as_me:$LINENO: checking for $ac_word" >&5
10324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10325if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10327else
10328 if test -n "$OBJDUMP_FOR_TARGET"; then
10329 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10330else
c6b750e1
DJ
10331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10332for as_dir in $PATH
10333do
10334 IFS=$as_save_IFS
10335 test -z "$as_dir" && as_dir=.
10336 for ac_exec_ext in '' $ac_executable_extensions; do
10337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10338 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10340 break 2
10341 fi
10342done
10343done
10344
5ae72758
DJ
10345fi
10346fi
c6b750e1 10347OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10348if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10349 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10350echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10351else
c6b750e1
DJ
10352 echo "$as_me:$LINENO: result: no" >&5
10353echo "${ECHO_T}no" >&6
5ae72758
DJ
10354fi
10355
2429c060
PB
10356 fi
10357 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10359set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10360echo "$as_me:$LINENO: checking for $ac_word" >&5
10361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10362if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10364else
10365 if test -n "$OBJDUMP_FOR_TARGET"; then
10366 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10367else
c6b750e1
DJ
10368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369for as_dir in $PATH
10370do
10371 IFS=$as_save_IFS
10372 test -z "$as_dir" && as_dir=.
10373 for ac_exec_ext in '' $ac_executable_extensions; do
10374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10375 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10377 break 2
10378 fi
10379done
10380done
10381
5ae72758
DJ
10382fi
10383fi
c6b750e1 10384OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10385if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10386 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10387echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10388else
c6b750e1
DJ
10389 echo "$as_me:$LINENO: result: no" >&5
10390echo "${ECHO_T}no" >&6
5ae72758 10391fi
c6b750e1 10392
2429c060
PB
10393 fi
10394 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10395 done
10396fi
c6b750e1 10397
5ae72758
DJ
10398if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10399 set dummy objdump
10400 if test $build = $target ; then
10401 OBJDUMP_FOR_TARGET="$2"
10402 else
10403 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10404 fi
d3f5afc4
MS
10405else
10406 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10407fi
10408
3a35eeb3
PB
10409else
10410 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10411fi
10412
10413
10414
10415
10416if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10417 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10418 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10419echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10420 if test -x $with_build_time_tools/ranlib; then
10421 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10422 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10423 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10424echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10425 else
c6b750e1
DJ
10426 echo "$as_me:$LINENO: result: no" >&5
10427echo "${ECHO_T}no" >&6
3a35eeb3 10428 fi
2429c060
PB
10429 elif test $build != $host && test $have_gcc_for_target = yes; then
10430 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10431 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10432 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10433 fi
10434fi
c6b750e1 10435if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10436 # Extract the first word of "ranlib", so it can be a program name with args.
10437set dummy ranlib; ac_word=$2
c6b750e1
DJ
10438echo "$as_me:$LINENO: checking for $ac_word" >&5
10439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10440if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10442else
c6b750e1
DJ
10443 case $RANLIB_FOR_TARGET in
10444 [\\/]* | ?:[\\/]*)
2429c060
PB
10445 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10446 ;;
2429c060 10447 *)
c6b750e1
DJ
10448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449for as_dir in $gcc_cv_tool_dirs
10450do
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10455 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10457 break 2
10458 fi
10459done
10460done
10461
2429c060
PB
10462 ;;
10463esac
10464fi
c6b750e1
DJ
10465RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10466
2429c060 10467if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10468 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10469echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10470else
c6b750e1
DJ
10471 echo "$as_me:$LINENO: result: no" >&5
10472echo "${ECHO_T}no" >&6
2429c060
PB
10473fi
10474
10475fi
10476if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10477
10478
10479if test -n "$RANLIB_FOR_TARGET"; then
10480 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10481elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10482 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10483fi
10484
10485if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10486 for ncn_progname in ranlib; do
10487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10488set dummy ${ncn_progname}; ac_word=$2
10489echo "$as_me:$LINENO: checking for $ac_word" >&5
10490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10491if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10493else
10494 if test -n "$RANLIB_FOR_TARGET"; then
10495 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10496else
10497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498for as_dir in $PATH
10499do
10500 IFS=$as_save_IFS
10501 test -z "$as_dir" && as_dir=.
10502 for ac_exec_ext in '' $ac_executable_extensions; do
10503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10504 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10506 break 2
10507 fi
10508done
10509done
10510
10511fi
10512fi
10513RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10514if test -n "$RANLIB_FOR_TARGET"; then
10515 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10516echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10517else
10518 echo "$as_me:$LINENO: result: no" >&5
10519echo "${ECHO_T}no" >&6
10520fi
10521
10522 done
10523fi
10524
10525if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10526 for ncn_progname in ranlib; do
c6b750e1
DJ
10527 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10528echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10529 if test -x $with_build_time_tools/${ncn_progname}; then
10530 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10531 echo "$as_me:$LINENO: result: yes" >&5
10532echo "${ECHO_T}yes" >&6
2429c060
PB
10533 break
10534 else
c6b750e1
DJ
10535 echo "$as_me:$LINENO: result: no" >&5
10536echo "${ECHO_T}no" >&6
2429c060
PB
10537 fi
10538 done
10539fi
10540
10541if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10542 for ncn_progname in ranlib; do
10543 if test -n "$ncn_target_tool_prefix"; then
10544 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10545set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10546echo "$as_me:$LINENO: checking for $ac_word" >&5
10547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10548if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10550else
55db4b87
PB
10551 if test -n "$RANLIB_FOR_TARGET"; then
10552 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10553else
c6b750e1
DJ
10554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10555for as_dir in $PATH
10556do
10557 IFS=$as_save_IFS
10558 test -z "$as_dir" && as_dir=.
10559 for ac_exec_ext in '' $ac_executable_extensions; do
10560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10561 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10563 break 2
10564 fi
10565done
10566done
10567
859789af
AC
10568fi
10569fi
c6b750e1 10570RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10571if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10572 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10573echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10574else
c6b750e1
DJ
10575 echo "$as_me:$LINENO: result: no" >&5
10576echo "${ECHO_T}no" >&6
859789af
AC
10577fi
10578
2429c060
PB
10579 fi
10580 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10582set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10583echo "$as_me:$LINENO: checking for $ac_word" >&5
10584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10585if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10587else
05cbd757
PB
10588 if test -n "$RANLIB_FOR_TARGET"; then
10589 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10590else
c6b750e1
DJ
10591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592for as_dir in $PATH
10593do
10594 IFS=$as_save_IFS
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
10597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10598 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 break 2
10601 fi
10602done
10603done
10604
859789af
AC
10605fi
10606fi
c6b750e1 10607RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10608if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10609 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10610echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10611else
c6b750e1
DJ
10612 echo "$as_me:$LINENO: result: no" >&5
10613echo "${ECHO_T}no" >&6
859789af 10614fi
c6b750e1 10615
2429c060
PB
10616 fi
10617 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10618 done
10619fi
c6b750e1 10620
2429c060
PB
10621if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10622 set dummy ranlib
10623 if test $build = $target ; then
10624 RANLIB_FOR_TARGET="$2"
10625 else
10626 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10627 fi
d3f5afc4
MS
10628else
10629 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10630fi
05cbd757 10631
3a35eeb3
PB
10632else
10633 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10634fi
10635
2429c060
PB
10636
10637
10638
10639if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10640 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10641 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10642echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10643 if test -x $with_build_time_tools/strip; then
10644 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10645 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10646 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10647echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10648 else
c6b750e1
DJ
10649 echo "$as_me:$LINENO: result: no" >&5
10650echo "${ECHO_T}no" >&6
3a35eeb3 10651 fi
2429c060
PB
10652 elif test $build != $host && test $have_gcc_for_target = yes; then
10653 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10654 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10655 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10656 fi
10657fi
c6b750e1 10658if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10659 # Extract the first word of "strip", so it can be a program name with args.
10660set dummy strip; ac_word=$2
c6b750e1
DJ
10661echo "$as_me:$LINENO: checking for $ac_word" >&5
10662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10663if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10665else
c6b750e1
DJ
10666 case $STRIP_FOR_TARGET in
10667 [\\/]* | ?:[\\/]*)
2429c060
PB
10668 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10669 ;;
2429c060 10670 *)
c6b750e1
DJ
10671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672for as_dir in $gcc_cv_tool_dirs
10673do
10674 IFS=$as_save_IFS
10675 test -z "$as_dir" && as_dir=.
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10678 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10680 break 2
10681 fi
10682done
10683done
10684
2429c060
PB
10685 ;;
10686esac
10687fi
c6b750e1
DJ
10688STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10689
2429c060 10690if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10691 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10692echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10693else
c6b750e1
DJ
10694 echo "$as_me:$LINENO: result: no" >&5
10695echo "${ECHO_T}no" >&6
2429c060
PB
10696fi
10697
10698fi
10699if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10700
10701
10702if test -n "$STRIP_FOR_TARGET"; then
10703 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10704elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10705 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10706fi
10707
10708if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10709 for ncn_progname in strip; do
10710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10711set dummy ${ncn_progname}; ac_word=$2
10712echo "$as_me:$LINENO: checking for $ac_word" >&5
10713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10714if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10716else
10717 if test -n "$STRIP_FOR_TARGET"; then
10718 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10719else
10720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721for as_dir in $PATH
10722do
10723 IFS=$as_save_IFS
10724 test -z "$as_dir" && as_dir=.
10725 for ac_exec_ext in '' $ac_executable_extensions; do
10726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10727 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10729 break 2
10730 fi
10731done
10732done
10733
10734fi
10735fi
10736STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10737if test -n "$STRIP_FOR_TARGET"; then
10738 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10739echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10740else
10741 echo "$as_me:$LINENO: result: no" >&5
10742echo "${ECHO_T}no" >&6
10743fi
10744
10745 done
10746fi
10747
10748if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10749 for ncn_progname in strip; do
c6b750e1
DJ
10750 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10751echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10752 if test -x $with_build_time_tools/${ncn_progname}; then
10753 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10754 echo "$as_me:$LINENO: result: yes" >&5
10755echo "${ECHO_T}yes" >&6
2429c060
PB
10756 break
10757 else
c6b750e1
DJ
10758 echo "$as_me:$LINENO: result: no" >&5
10759echo "${ECHO_T}no" >&6
2429c060
PB
10760 fi
10761 done
10762fi
10763
10764if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10765 for ncn_progname in strip; do
10766 if test -n "$ncn_target_tool_prefix"; then
10767 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10768set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10769echo "$as_me:$LINENO: checking for $ac_word" >&5
10770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10771if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10773else
10774 if test -n "$STRIP_FOR_TARGET"; then
10775 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10776else
10777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778for as_dir in $PATH
10779do
10780 IFS=$as_save_IFS
10781 test -z "$as_dir" && as_dir=.
10782 for ac_exec_ext in '' $ac_executable_extensions; do
10783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10784 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10786 break 2
10787 fi
10788done
10789done
10790
7e0f7140
GK
10791fi
10792fi
c6b750e1 10793STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10794if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10795 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10796echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10797else
c6b750e1
DJ
10798 echo "$as_me:$LINENO: result: no" >&5
10799echo "${ECHO_T}no" >&6
7e0f7140
GK
10800fi
10801
2429c060
PB
10802 fi
10803 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10805set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10806echo "$as_me:$LINENO: checking for $ac_word" >&5
10807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10808if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10810else
10811 if test -n "$STRIP_FOR_TARGET"; then
10812 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10813else
c6b750e1
DJ
10814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10815for as_dir in $PATH
10816do
10817 IFS=$as_save_IFS
10818 test -z "$as_dir" && as_dir=.
10819 for ac_exec_ext in '' $ac_executable_extensions; do
10820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10821 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10823 break 2
10824 fi
10825done
10826done
10827
7e0f7140
GK
10828fi
10829fi
c6b750e1 10830STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10831if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10832 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10833echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10834else
c6b750e1
DJ
10835 echo "$as_me:$LINENO: result: no" >&5
10836echo "${ECHO_T}no" >&6
7e0f7140 10837fi
c6b750e1 10838
2429c060
PB
10839 fi
10840 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10841 done
10842fi
c6b750e1 10843
7e0f7140
GK
10844if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10845 set dummy strip
10846 if test $build = $target ; then
10847 STRIP_FOR_TARGET="$2"
10848 else
10849 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10850 fi
d3f5afc4
MS
10851else
10852 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10853fi
10854
3a35eeb3
PB
10855else
10856 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10857fi
10858
10859
10860
10861
10862if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10863 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10864 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10865echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10866 if test -x $with_build_time_tools/windres; then
10867 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10868 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10869 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10870echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10871 else
c6b750e1
DJ
10872 echo "$as_me:$LINENO: result: no" >&5
10873echo "${ECHO_T}no" >&6
3a35eeb3 10874 fi
2429c060
PB
10875 elif test $build != $host && test $have_gcc_for_target = yes; then
10876 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10877 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10878 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10879 fi
10880fi
c6b750e1 10881if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10882 # Extract the first word of "windres", so it can be a program name with args.
10883set dummy windres; ac_word=$2
c6b750e1
DJ
10884echo "$as_me:$LINENO: checking for $ac_word" >&5
10885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10886if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10887 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10888else
c6b750e1
DJ
10889 case $WINDRES_FOR_TARGET in
10890 [\\/]* | ?:[\\/]*)
2429c060
PB
10891 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10892 ;;
2429c060 10893 *)
c6b750e1
DJ
10894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10895for as_dir in $gcc_cv_tool_dirs
10896do
10897 IFS=$as_save_IFS
10898 test -z "$as_dir" && as_dir=.
10899 for ac_exec_ext in '' $ac_executable_extensions; do
10900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10901 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10903 break 2
10904 fi
10905done
10906done
10907
2429c060
PB
10908 ;;
10909esac
10910fi
c6b750e1
DJ
10911WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10912
2429c060 10913if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10914 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10915echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10916else
c6b750e1
DJ
10917 echo "$as_me:$LINENO: result: no" >&5
10918echo "${ECHO_T}no" >&6
2429c060
PB
10919fi
10920
10921fi
10922if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10923
10924
10925if test -n "$WINDRES_FOR_TARGET"; then
10926 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10927elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10928 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10929fi
10930
10931if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10932 for ncn_progname in windres; do
10933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10934set dummy ${ncn_progname}; ac_word=$2
10935echo "$as_me:$LINENO: checking for $ac_word" >&5
10936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10937if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10939else
10940 if test -n "$WINDRES_FOR_TARGET"; then
10941 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10942else
10943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944for as_dir in $PATH
10945do
10946 IFS=$as_save_IFS
10947 test -z "$as_dir" && as_dir=.
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10950 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10952 break 2
10953 fi
10954done
10955done
10956
10957fi
10958fi
10959WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10960if test -n "$WINDRES_FOR_TARGET"; then
10961 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10962echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10963else
10964 echo "$as_me:$LINENO: result: no" >&5
10965echo "${ECHO_T}no" >&6
10966fi
10967
10968 done
10969fi
10970
10971if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10972 for ncn_progname in windres; do
c6b750e1
DJ
10973 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10974echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10975 if test -x $with_build_time_tools/${ncn_progname}; then
10976 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10977 echo "$as_me:$LINENO: result: yes" >&5
10978echo "${ECHO_T}yes" >&6
2429c060
PB
10979 break
10980 else
c6b750e1
DJ
10981 echo "$as_me:$LINENO: result: no" >&5
10982echo "${ECHO_T}no" >&6
2429c060
PB
10983 fi
10984 done
10985fi
10986
10987if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10988 for ncn_progname in windres; do
10989 if test -n "$ncn_target_tool_prefix"; then
10990 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10991set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10992echo "$as_me:$LINENO: checking for $ac_word" >&5
10993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10994if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10996else
55db4b87
PB
10997 if test -n "$WINDRES_FOR_TARGET"; then
10998 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10999else
c6b750e1
DJ
11000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001for as_dir in $PATH
11002do
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11007 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 break 2
11010 fi
11011done
11012done
11013
859789af
AC
11014fi
11015fi
c6b750e1 11016WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11017if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11018 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11019echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11020else
c6b750e1
DJ
11021 echo "$as_me:$LINENO: result: no" >&5
11022echo "${ECHO_T}no" >&6
859789af
AC
11023fi
11024
2429c060
PB
11025 fi
11026 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11028set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11029echo "$as_me:$LINENO: checking for $ac_word" >&5
11030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11031if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11033else
05cbd757
PB
11034 if test -n "$WINDRES_FOR_TARGET"; then
11035 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11036else
c6b750e1
DJ
11037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038for as_dir in $PATH
11039do
11040 IFS=$as_save_IFS
11041 test -z "$as_dir" && as_dir=.
11042 for ac_exec_ext in '' $ac_executable_extensions; do
11043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11044 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11046 break 2
11047 fi
11048done
11049done
11050
859789af
AC
11051fi
11052fi
c6b750e1 11053WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11054if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11055 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11056echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11057else
c6b750e1
DJ
11058 echo "$as_me:$LINENO: result: no" >&5
11059echo "${ECHO_T}no" >&6
859789af 11060fi
c6b750e1 11061
2429c060
PB
11062 fi
11063 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11064 done
11065fi
c6b750e1 11066
05cbd757
PB
11067if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11068 set dummy windres
11069 if test $build = $target ; then
11070 WINDRES_FOR_TARGET="$2"
859789af 11071 else
05cbd757 11072 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11073 fi
d3f5afc4
MS
11074else
11075 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11076fi
11077
3a35eeb3
PB
11078else
11079 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11080fi
11081
852e5f18 11082
0c24b341
NC
11083
11084
11085if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11086 if test -n "$with_build_time_tools"; then
11087 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11088echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11089 if test -x $with_build_time_tools/windmc; then
11090 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11091 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11092 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11093echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11094 else
11095 echo "$as_me:$LINENO: result: no" >&5
11096echo "${ECHO_T}no" >&6
11097 fi
11098 elif test $build != $host && test $have_gcc_for_target = yes; then
11099 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11100 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11101 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11102 fi
11103fi
11104if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11105 # Extract the first word of "windmc", so it can be a program name with args.
11106set dummy windmc; ac_word=$2
11107echo "$as_me:$LINENO: checking for $ac_word" >&5
11108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11109if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111else
11112 case $WINDMC_FOR_TARGET in
11113 [\\/]* | ?:[\\/]*)
11114 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11115 ;;
11116 *)
11117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118for as_dir in $gcc_cv_tool_dirs
11119do
11120 IFS=$as_save_IFS
11121 test -z "$as_dir" && as_dir=.
11122 for ac_exec_ext in '' $ac_executable_extensions; do
11123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11124 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11126 break 2
11127 fi
11128done
11129done
11130
11131 ;;
11132esac
11133fi
11134WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11135
11136if test -n "$WINDMC_FOR_TARGET"; then
11137 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11138echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11139else
11140 echo "$as_me:$LINENO: result: no" >&5
11141echo "${ECHO_T}no" >&6
11142fi
11143
11144fi
11145if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11146
11147
11148if test -n "$WINDMC_FOR_TARGET"; then
11149 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11150elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11151 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11152fi
11153
11154if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11155 for ncn_progname in windmc; do
11156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11157set dummy ${ncn_progname}; ac_word=$2
11158echo "$as_me:$LINENO: checking for $ac_word" >&5
11159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11160if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11162else
11163 if test -n "$WINDMC_FOR_TARGET"; then
11164 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11165else
11166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11167for as_dir in $PATH
11168do
11169 IFS=$as_save_IFS
11170 test -z "$as_dir" && as_dir=.
11171 for ac_exec_ext in '' $ac_executable_extensions; do
11172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11173 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11175 break 2
11176 fi
11177done
11178done
11179
11180fi
11181fi
11182WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11183if test -n "$WINDMC_FOR_TARGET"; then
11184 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11185echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11186else
11187 echo "$as_me:$LINENO: result: no" >&5
11188echo "${ECHO_T}no" >&6
11189fi
11190
11191 done
11192fi
11193
11194if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11195 for ncn_progname in windmc; do
11196 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11197echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11198 if test -x $with_build_time_tools/${ncn_progname}; then
11199 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11200 echo "$as_me:$LINENO: result: yes" >&5
11201echo "${ECHO_T}yes" >&6
11202 break
11203 else
11204 echo "$as_me:$LINENO: result: no" >&5
11205echo "${ECHO_T}no" >&6
11206 fi
11207 done
11208fi
11209
11210if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11211 for ncn_progname in windmc; do
11212 if test -n "$ncn_target_tool_prefix"; then
11213 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11214set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11215echo "$as_me:$LINENO: checking for $ac_word" >&5
11216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11217if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11219else
11220 if test -n "$WINDMC_FOR_TARGET"; then
11221 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11222else
11223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224for as_dir in $PATH
11225do
11226 IFS=$as_save_IFS
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11230 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 break 2
11233 fi
11234done
11235done
11236
11237fi
11238fi
11239WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11240if test -n "$WINDMC_FOR_TARGET"; then
11241 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11242echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11243else
11244 echo "$as_me:$LINENO: result: no" >&5
11245echo "${ECHO_T}no" >&6
11246fi
11247
11248 fi
11249 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11251set dummy ${ncn_progname}; ac_word=$2
11252echo "$as_me:$LINENO: checking for $ac_word" >&5
11253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11254if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11256else
11257 if test -n "$WINDMC_FOR_TARGET"; then
11258 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11259else
11260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261for as_dir in $PATH
11262do
11263 IFS=$as_save_IFS
11264 test -z "$as_dir" && as_dir=.
11265 for ac_exec_ext in '' $ac_executable_extensions; do
11266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11267 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11269 break 2
11270 fi
11271done
11272done
11273
11274fi
11275fi
11276WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11277if test -n "$WINDMC_FOR_TARGET"; then
11278 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11279echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11280else
11281 echo "$as_me:$LINENO: result: no" >&5
11282echo "${ECHO_T}no" >&6
11283fi
11284
11285 fi
11286 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11287 done
11288fi
11289
11290if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11291 set dummy windmc
11292 if test $build = $target ; then
11293 WINDMC_FOR_TARGET="$2"
11294 else
11295 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11296 fi
11297else
11298 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11299fi
11300
11301else
11302 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11303fi
11304
11305
be01d343
PB
11306RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11307
c6b750e1
DJ
11308echo "$as_me:$LINENO: checking where to find the target ar" >&5
11309echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11310if test "x${build}" != "x${host}" ; then
2429c060
PB
11311 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11312 # We already found the complete path
b8025f34
AS
11313 ac_dir=`dirname $AR_FOR_TARGET`
11314 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11315echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11316 else
11317 # Canadian cross, just use what we found
c6b750e1
DJ
11318 echo "$as_me:$LINENO: result: pre-installed" >&5
11319echo "${ECHO_T}pre-installed" >&6
2429c060 11320 fi
be01d343
PB
11321else
11322 ok=yes
11323 case " ${configdirs} " in
11324 *" binutils "*) ;;
11325 *) ok=no ;;
11326 esac
c6b750e1 11327
be01d343
PB
11328 if test $ok = yes; then
11329 # An in-tree tool is available and we can use it
11330 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11331 echo "$as_me:$LINENO: result: just compiled" >&5
11332echo "${ECHO_T}just compiled" >&6
2429c060
PB
11333 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11334 # We already found the complete path
b8025f34
AS
11335 ac_dir=`dirname $AR_FOR_TARGET`
11336 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11337echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11338 elif test "x$target" = "x$host"; then
11339 # We can use an host tool
11340 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11341 echo "$as_me:$LINENO: result: host tool" >&5
11342echo "${ECHO_T}host tool" >&6
be01d343
PB
11343 else
11344 # We need a cross tool
c6b750e1
DJ
11345 echo "$as_me:$LINENO: result: pre-installed" >&5
11346echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11347 fi
11348fi
4b900473 11349
c6b750e1
DJ
11350echo "$as_me:$LINENO: checking where to find the target as" >&5
11351echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11352if test "x${build}" != "x${host}" ; then
2429c060
PB
11353 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11354 # We already found the complete path
b8025f34
AS
11355 ac_dir=`dirname $AS_FOR_TARGET`
11356 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11357echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11358 else
11359 # Canadian cross, just use what we found
c6b750e1
DJ
11360 echo "$as_me:$LINENO: result: pre-installed" >&5
11361echo "${ECHO_T}pre-installed" >&6
2429c060 11362 fi
be01d343
PB
11363else
11364 ok=yes
11365 case " ${configdirs} " in
11366 *" gas "*) ;;
11367 *) ok=no ;;
11368 esac
c6b750e1 11369
be01d343
PB
11370 if test $ok = yes; then
11371 # An in-tree tool is available and we can use it
11372 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11373 echo "$as_me:$LINENO: result: just compiled" >&5
11374echo "${ECHO_T}just compiled" >&6
2429c060
PB
11375 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11376 # We already found the complete path
b8025f34
AS
11377 ac_dir=`dirname $AS_FOR_TARGET`
11378 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11379echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11380 elif test "x$target" = "x$host"; then
11381 # We can use an host tool
11382 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11383 echo "$as_me:$LINENO: result: host tool" >&5
11384echo "${ECHO_T}host tool" >&6
be01d343
PB
11385 else
11386 # We need a cross tool
c6b750e1
DJ
11387 echo "$as_me:$LINENO: result: pre-installed" >&5
11388echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11389 fi
11390fi
4b900473 11391
c6b750e1
DJ
11392echo "$as_me:$LINENO: checking where to find the target cc" >&5
11393echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11394if test "x${build}" != "x${host}" ; then
2429c060
PB
11395 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11396 # We already found the complete path
b8025f34
AS
11397 ac_dir=`dirname $CC_FOR_TARGET`
11398 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11399echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11400 else
11401 # Canadian cross, just use what we found
c6b750e1
DJ
11402 echo "$as_me:$LINENO: result: pre-installed" >&5
11403echo "${ECHO_T}pre-installed" >&6
2429c060 11404 fi
be01d343
PB
11405else
11406 ok=yes
11407 case " ${configdirs} " in
11408 *" gcc "*) ;;
11409 *) ok=no ;;
11410 esac
c6b750e1 11411
be01d343
PB
11412 if test $ok = yes; then
11413 # An in-tree tool is available and we can use it
11414 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11415 echo "$as_me:$LINENO: result: just compiled" >&5
11416echo "${ECHO_T}just compiled" >&6
2429c060
PB
11417 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11418 # We already found the complete path
b8025f34
AS
11419 ac_dir=`dirname $CC_FOR_TARGET`
11420 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11421echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11422 elif test "x$target" = "x$host"; then
11423 # We can use an host tool
11424 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11425 echo "$as_me:$LINENO: result: host tool" >&5
11426echo "${ECHO_T}host tool" >&6
be01d343
PB
11427 else
11428 # We need a cross tool
c6b750e1
DJ
11429 echo "$as_me:$LINENO: result: pre-installed" >&5
11430echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11431 fi
11432fi
4b900473 11433
c6b750e1
DJ
11434echo "$as_me:$LINENO: checking where to find the target c++" >&5
11435echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11436if test "x${build}" != "x${host}" ; then
2429c060
PB
11437 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11438 # We already found the complete path
b8025f34
AS
11439 ac_dir=`dirname $CXX_FOR_TARGET`
11440 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11441echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11442 else
11443 # Canadian cross, just use what we found
c6b750e1
DJ
11444 echo "$as_me:$LINENO: result: pre-installed" >&5
11445echo "${ECHO_T}pre-installed" >&6
2429c060 11446 fi
be01d343
PB
11447else
11448 ok=yes
11449 case " ${configdirs} " in
11450 *" gcc "*) ;;
11451 *) ok=no ;;
11452 esac
11453 case ,${enable_languages}, in
11454 *,c++,*) ;;
11455 *) ok=no ;;
11456 esac
11457 if test $ok = yes; then
11458 # An in-tree tool is available and we can use it
11459 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
11460 echo "$as_me:$LINENO: result: just compiled" >&5
11461echo "${ECHO_T}just compiled" >&6
2429c060
PB
11462 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11463 # We already found the complete path
b8025f34
AS
11464 ac_dir=`dirname $CXX_FOR_TARGET`
11465 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11466echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11467 elif test "x$target" = "x$host"; then
11468 # We can use an host tool
11469 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11470 echo "$as_me:$LINENO: result: host tool" >&5
11471echo "${ECHO_T}host tool" >&6
be01d343
PB
11472 else
11473 # We need a cross tool
c6b750e1
DJ
11474 echo "$as_me:$LINENO: result: pre-installed" >&5
11475echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11476 fi
11477fi
4b900473 11478
c6b750e1
DJ
11479echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11480echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11481if test "x${build}" != "x${host}" ; then
2429c060
PB
11482 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11483 # We already found the complete path
b8025f34
AS
11484 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11485 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11486echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11487 else
11488 # Canadian cross, just use what we found
c6b750e1
DJ
11489 echo "$as_me:$LINENO: result: pre-installed" >&5
11490echo "${ECHO_T}pre-installed" >&6
2429c060 11491 fi
be01d343
PB
11492else
11493 ok=yes
11494 case " ${configdirs} " in
11495 *" gcc "*) ;;
11496 *) ok=no ;;
11497 esac
11498 case ,${enable_languages}, in
11499 *,c++,*) ;;
11500 *) ok=no ;;
11501 esac
11502 if test $ok = yes; then
11503 # An in-tree tool is available and we can use it
11504 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
11505 echo "$as_me:$LINENO: result: just compiled" >&5
11506echo "${ECHO_T}just compiled" >&6
2429c060
PB
11507 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11508 # We already found the complete path
b8025f34
AS
11509 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11510 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11511echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11512 elif test "x$target" = "x$host"; then
11513 # We can use an host tool
11514 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11515 echo "$as_me:$LINENO: result: host tool" >&5
11516echo "${ECHO_T}host tool" >&6
be01d343
PB
11517 else
11518 # We need a cross tool
c6b750e1
DJ
11519 echo "$as_me:$LINENO: result: pre-installed" >&5
11520echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11521 fi
11522fi
4b900473 11523
c6b750e1
DJ
11524echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11525echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11526if test "x${build}" != "x${host}" ; then
2429c060
PB
11527 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11528 # We already found the complete path
b8025f34
AS
11529 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11530 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11531echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11532 else
11533 # Canadian cross, just use what we found
c6b750e1
DJ
11534 echo "$as_me:$LINENO: result: pre-installed" >&5
11535echo "${ECHO_T}pre-installed" >&6
2429c060 11536 fi
be01d343
PB
11537else
11538 ok=yes
11539 case " ${configdirs} " in
11540 *" binutils "*) ;;
11541 *) ok=no ;;
11542 esac
c6b750e1 11543
be01d343
PB
11544 if test $ok = yes; then
11545 # An in-tree tool is available and we can use it
11546 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11547 echo "$as_me:$LINENO: result: just compiled" >&5
11548echo "${ECHO_T}just compiled" >&6
2429c060
PB
11549 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11550 # We already found the complete path
b8025f34
AS
11551 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11552 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11553echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11554 elif test "x$target" = "x$host"; then
11555 # We can use an host tool
11556 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11557 echo "$as_me:$LINENO: result: host tool" >&5
11558echo "${ECHO_T}host tool" >&6
be01d343
PB
11559 else
11560 # We need a cross tool
c6b750e1
DJ
11561 echo "$as_me:$LINENO: result: pre-installed" >&5
11562echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11563 fi
11564fi
4b900473 11565
c6b750e1
DJ
11566echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11567echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11568if test "x${build}" != "x${host}" ; then
2429c060
PB
11569 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11570 # We already found the complete path
b8025f34
AS
11571 ac_dir=`dirname $GCC_FOR_TARGET`
11572 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11573echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11574 else
11575 # Canadian cross, just use what we found
c6b750e1
DJ
11576 echo "$as_me:$LINENO: result: pre-installed" >&5
11577echo "${ECHO_T}pre-installed" >&6
2429c060 11578 fi
be01d343
PB
11579else
11580 ok=yes
11581 case " ${configdirs} " in
11582 *" gcc "*) ;;
11583 *) ok=no ;;
11584 esac
c6b750e1 11585
be01d343
PB
11586 if test $ok = yes; then
11587 # An in-tree tool is available and we can use it
11588 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11589 echo "$as_me:$LINENO: result: just compiled" >&5
11590echo "${ECHO_T}just compiled" >&6
2429c060
PB
11591 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11592 # We already found the complete path
b8025f34
AS
11593 ac_dir=`dirname $GCC_FOR_TARGET`
11594 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11595echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11596 elif test "x$target" = "x$host"; then
11597 # We can use an host tool
11598 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11599 echo "$as_me:$LINENO: result: host tool" >&5
11600echo "${ECHO_T}host tool" >&6
be01d343
PB
11601 else
11602 # We need a cross tool
c6b750e1
DJ
11603 echo "$as_me:$LINENO: result: pre-installed" >&5
11604echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11605 fi
11606fi
4b900473 11607
c6b750e1
DJ
11608echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11609echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11610if test "x${build}" != "x${host}" ; then
2429c060
PB
11611 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11612 # We already found the complete path
b8025f34
AS
11613 ac_dir=`dirname $GCJ_FOR_TARGET`
11614 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11615echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11616 else
11617 # Canadian cross, just use what we found
c6b750e1
DJ
11618 echo "$as_me:$LINENO: result: pre-installed" >&5
11619echo "${ECHO_T}pre-installed" >&6
2429c060 11620 fi
be01d343
PB
11621else
11622 ok=yes
11623 case " ${configdirs} " in
11624 *" gcc "*) ;;
11625 *) ok=no ;;
11626 esac
11627 case ,${enable_languages}, in
11628 *,java,*) ;;
11629 *) ok=no ;;
11630 esac
11631 if test $ok = yes; then
11632 # An in-tree tool is available and we can use it
11633 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11634 echo "$as_me:$LINENO: result: just compiled" >&5
11635echo "${ECHO_T}just compiled" >&6
2429c060
PB
11636 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11637 # We already found the complete path
b8025f34
AS
11638 ac_dir=`dirname $GCJ_FOR_TARGET`
11639 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11640echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11641 elif test "x$target" = "x$host"; then
11642 # We can use an host tool
11643 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11644 echo "$as_me:$LINENO: result: host tool" >&5
11645echo "${ECHO_T}host tool" >&6
be01d343
PB
11646 else
11647 # We need a cross tool
c6b750e1
DJ
11648 echo "$as_me:$LINENO: result: pre-installed" >&5
11649echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11650 fi
11651fi
4b900473 11652
c6b750e1
DJ
11653echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11654echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11655if test "x${build}" != "x${host}" ; then
2429c060
PB
11656 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11657 # We already found the complete path
b8025f34
AS
11658 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11659 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11660echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11661 else
11662 # Canadian cross, just use what we found
c6b750e1
DJ
11663 echo "$as_me:$LINENO: result: pre-installed" >&5
11664echo "${ECHO_T}pre-installed" >&6
2429c060 11665 fi
be01d343
PB
11666else
11667 ok=yes
11668 case " ${configdirs} " in
11669 *" gcc "*) ;;
11670 *) ok=no ;;
11671 esac
11672 case ,${enable_languages}, in
11673 *,fortran,*) ;;
11674 *) ok=no ;;
11675 esac
11676 if test $ok = yes; then
11677 # An in-tree tool is available and we can use it
11678 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11679 echo "$as_me:$LINENO: result: just compiled" >&5
11680echo "${ECHO_T}just compiled" >&6
2429c060
PB
11681 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11682 # We already found the complete path
b8025f34
AS
11683 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11684 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11685echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11686 elif test "x$target" = "x$host"; then
11687 # We can use an host tool
11688 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11689 echo "$as_me:$LINENO: result: host tool" >&5
11690echo "${ECHO_T}host tool" >&6
be01d343
PB
11691 else
11692 # We need a cross tool
c6b750e1
DJ
11693 echo "$as_me:$LINENO: result: pre-installed" >&5
11694echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11695 fi
11696fi
4b900473 11697
c6b750e1
DJ
11698echo "$as_me:$LINENO: checking where to find the target ld" >&5
11699echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11700if test "x${build}" != "x${host}" ; then
2429c060
PB
11701 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11702 # We already found the complete path
b8025f34
AS
11703 ac_dir=`dirname $LD_FOR_TARGET`
11704 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11705echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11706 else
11707 # Canadian cross, just use what we found
c6b750e1
DJ
11708 echo "$as_me:$LINENO: result: pre-installed" >&5
11709echo "${ECHO_T}pre-installed" >&6
2429c060 11710 fi
be01d343
PB
11711else
11712 ok=yes
11713 case " ${configdirs} " in
11714 *" ld "*) ;;
11715 *) ok=no ;;
11716 esac
c6b750e1 11717
be01d343
PB
11718 if test $ok = yes; then
11719 # An in-tree tool is available and we can use it
11720 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11721 echo "$as_me:$LINENO: result: just compiled" >&5
11722echo "${ECHO_T}just compiled" >&6
2429c060
PB
11723 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11724 # We already found the complete path
b8025f34
AS
11725 ac_dir=`dirname $LD_FOR_TARGET`
11726 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11727echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11728 elif test "x$target" = "x$host"; then
11729 # We can use an host tool
11730 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11731 echo "$as_me:$LINENO: result: host tool" >&5
11732echo "${ECHO_T}host tool" >&6
be01d343
PB
11733 else
11734 # We need a cross tool
c6b750e1
DJ
11735 echo "$as_me:$LINENO: result: pre-installed" >&5
11736echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11737 fi
11738fi
4b900473 11739
c6b750e1
DJ
11740echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11741echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11742if test "x${build}" != "x${host}" ; then
2429c060
PB
11743 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11744 # We already found the complete path
b8025f34
AS
11745 ac_dir=`dirname $LIPO_FOR_TARGET`
11746 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11747echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11748 else
11749 # Canadian cross, just use what we found
c6b750e1
DJ
11750 echo "$as_me:$LINENO: result: pre-installed" >&5
11751echo "${ECHO_T}pre-installed" >&6
2429c060 11752 fi
be01d343 11753else
2429c060
PB
11754 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11755 # We already found the complete path
b8025f34
AS
11756 ac_dir=`dirname $LIPO_FOR_TARGET`
11757 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11758echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11759 elif test "x$target" = "x$host"; then
be01d343
PB
11760 # We can use an host tool
11761 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11762 echo "$as_me:$LINENO: result: host tool" >&5
11763echo "${ECHO_T}host tool" >&6
be01d343
PB
11764 else
11765 # We need a cross tool
c6b750e1
DJ
11766 echo "$as_me:$LINENO: result: pre-installed" >&5
11767echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11768 fi
11769fi
4b900473 11770
c6b750e1
DJ
11771echo "$as_me:$LINENO: checking where to find the target nm" >&5
11772echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11773if test "x${build}" != "x${host}" ; then
2429c060
PB
11774 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11775 # We already found the complete path
b8025f34
AS
11776 ac_dir=`dirname $NM_FOR_TARGET`
11777 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11778echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11779 else
11780 # Canadian cross, just use what we found
c6b750e1
DJ
11781 echo "$as_me:$LINENO: result: pre-installed" >&5
11782echo "${ECHO_T}pre-installed" >&6
2429c060 11783 fi
be01d343
PB
11784else
11785 ok=yes
11786 case " ${configdirs} " in
11787 *" binutils "*) ;;
11788 *) ok=no ;;
11789 esac
c6b750e1 11790
be01d343
PB
11791 if test $ok = yes; then
11792 # An in-tree tool is available and we can use it
11793 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11794 echo "$as_me:$LINENO: result: just compiled" >&5
11795echo "${ECHO_T}just compiled" >&6
2429c060
PB
11796 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11797 # We already found the complete path
b8025f34
AS
11798 ac_dir=`dirname $NM_FOR_TARGET`
11799 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11800echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11801 elif test "x$target" = "x$host"; then
11802 # We can use an host tool
11803 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11804 echo "$as_me:$LINENO: result: host tool" >&5
11805echo "${ECHO_T}host tool" >&6
be01d343
PB
11806 else
11807 # We need a cross tool
c6b750e1
DJ
11808 echo "$as_me:$LINENO: result: pre-installed" >&5
11809echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11810 fi
11811fi
4b900473 11812
c6b750e1
DJ
11813echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11814echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11815if test "x${build}" != "x${host}" ; then
2429c060
PB
11816 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11817 # We already found the complete path
b8025f34
AS
11818 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11819 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11820echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11821 else
11822 # Canadian cross, just use what we found
c6b750e1
DJ
11823 echo "$as_me:$LINENO: result: pre-installed" >&5
11824echo "${ECHO_T}pre-installed" >&6
2429c060 11825 fi
be01d343
PB
11826else
11827 ok=yes
11828 case " ${configdirs} " in
11829 *" binutils "*) ;;
11830 *) ok=no ;;
11831 esac
c6b750e1 11832
be01d343
PB
11833 if test $ok = yes; then
11834 # An in-tree tool is available and we can use it
11835 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11836 echo "$as_me:$LINENO: result: just compiled" >&5
11837echo "${ECHO_T}just compiled" >&6
2429c060
PB
11838 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11839 # We already found the complete path
b8025f34
AS
11840 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11841 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11842echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11843 elif test "x$target" = "x$host"; then
11844 # We can use an host tool
11845 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11846 echo "$as_me:$LINENO: result: host tool" >&5
11847echo "${ECHO_T}host tool" >&6
be01d343
PB
11848 else
11849 # We need a cross tool
c6b750e1
DJ
11850 echo "$as_me:$LINENO: result: pre-installed" >&5
11851echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11852 fi
11853fi
4b900473 11854
c6b750e1
DJ
11855echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11856echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11857if test "x${build}" != "x${host}" ; then
2429c060
PB
11858 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11859 # We already found the complete path
b8025f34
AS
11860 ac_dir=`dirname $RANLIB_FOR_TARGET`
11861 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11862echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11863 else
11864 # Canadian cross, just use what we found
c6b750e1
DJ
11865 echo "$as_me:$LINENO: result: pre-installed" >&5
11866echo "${ECHO_T}pre-installed" >&6
2429c060 11867 fi
be01d343
PB
11868else
11869 ok=yes
11870 case " ${configdirs} " in
11871 *" binutils "*) ;;
11872 *) ok=no ;;
11873 esac
c6b750e1 11874
be01d343
PB
11875 if test $ok = yes; then
11876 # An in-tree tool is available and we can use it
11877 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11878 echo "$as_me:$LINENO: result: just compiled" >&5
11879echo "${ECHO_T}just compiled" >&6
2429c060
PB
11880 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11881 # We already found the complete path
b8025f34
AS
11882 ac_dir=`dirname $RANLIB_FOR_TARGET`
11883 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11884echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11885 elif test "x$target" = "x$host"; then
11886 # We can use an host tool
11887 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11888 echo "$as_me:$LINENO: result: host tool" >&5
11889echo "${ECHO_T}host tool" >&6
be01d343
PB
11890 else
11891 # We need a cross tool
c6b750e1
DJ
11892 echo "$as_me:$LINENO: result: pre-installed" >&5
11893echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11894 fi
11895fi
4b900473 11896
c6b750e1
DJ
11897echo "$as_me:$LINENO: checking where to find the target strip" >&5
11898echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11899if test "x${build}" != "x${host}" ; then
2429c060
PB
11900 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11901 # We already found the complete path
b8025f34
AS
11902 ac_dir=`dirname $STRIP_FOR_TARGET`
11903 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11904echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11905 else
11906 # Canadian cross, just use what we found
c6b750e1
DJ
11907 echo "$as_me:$LINENO: result: pre-installed" >&5
11908echo "${ECHO_T}pre-installed" >&6
2429c060 11909 fi
be01d343
PB
11910else
11911 ok=yes
11912 case " ${configdirs} " in
11913 *" binutils "*) ;;
11914 *) ok=no ;;
11915 esac
c6b750e1 11916
be01d343
PB
11917 if test $ok = yes; then
11918 # An in-tree tool is available and we can use it
11919 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11920 echo "$as_me:$LINENO: result: just compiled" >&5
11921echo "${ECHO_T}just compiled" >&6
2429c060
PB
11922 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11923 # We already found the complete path
b8025f34
AS
11924 ac_dir=`dirname $STRIP_FOR_TARGET`
11925 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11926echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11927 elif test "x$target" = "x$host"; then
11928 # We can use an host tool
11929 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11930 echo "$as_me:$LINENO: result: host tool" >&5
11931echo "${ECHO_T}host tool" >&6
be01d343
PB
11932 else
11933 # We need a cross tool
c6b750e1
DJ
11934 echo "$as_me:$LINENO: result: pre-installed" >&5
11935echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11936 fi
11937fi
4b900473 11938
c6b750e1
DJ
11939echo "$as_me:$LINENO: checking where to find the target windres" >&5
11940echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11941if test "x${build}" != "x${host}" ; then
2429c060
PB
11942 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11943 # We already found the complete path
b8025f34
AS
11944 ac_dir=`dirname $WINDRES_FOR_TARGET`
11945 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11946echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11947 else
11948 # Canadian cross, just use what we found
c6b750e1
DJ
11949 echo "$as_me:$LINENO: result: pre-installed" >&5
11950echo "${ECHO_T}pre-installed" >&6
2429c060 11951 fi
be01d343
PB
11952else
11953 ok=yes
11954 case " ${configdirs} " in
11955 *" binutils "*) ;;
11956 *) ok=no ;;
11957 esac
c6b750e1 11958
be01d343
PB
11959 if test $ok = yes; then
11960 # An in-tree tool is available and we can use it
11961 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11962 echo "$as_me:$LINENO: result: just compiled" >&5
11963echo "${ECHO_T}just compiled" >&6
2429c060
PB
11964 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11965 # We already found the complete path
b8025f34
AS
11966 ac_dir=`dirname $WINDRES_FOR_TARGET`
11967 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11968echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11969 elif test "x$target" = "x$host"; then
11970 # We can use an host tool
11971 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11972 echo "$as_me:$LINENO: result: host tool" >&5
11973echo "${ECHO_T}host tool" >&6
be01d343
PB
11974 else
11975 # We need a cross tool
c6b750e1
DJ
11976 echo "$as_me:$LINENO: result: pre-installed" >&5
11977echo "${ECHO_T}pre-installed" >&6
be01d343 11978 fi
a0da8069 11979fi
54752a6b 11980
0c24b341
NC
11981echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11982echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11983if test "x${build}" != "x${host}" ; then
11984 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11985 # We already found the complete path
11986 ac_dir=`dirname $WINDMC_FOR_TARGET`
11987 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11988echo "${ECHO_T}pre-installed in $ac_dir" >&6
11989 else
11990 # Canadian cross, just use what we found
11991 echo "$as_me:$LINENO: result: pre-installed" >&5
11992echo "${ECHO_T}pre-installed" >&6
11993 fi
11994else
11995 ok=yes
11996 case " ${configdirs} " in
11997 *" binutils "*) ;;
11998 *) ok=no ;;
11999 esac
12000
12001 if test $ok = yes; then
12002 # An in-tree tool is available and we can use it
12003 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12004 echo "$as_me:$LINENO: result: just compiled" >&5
12005echo "${ECHO_T}just compiled" >&6
12006 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12007 # We already found the complete path
12008 ac_dir=`dirname $WINDMC_FOR_TARGET`
12009 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12010echo "${ECHO_T}pre-installed in $ac_dir" >&6
12011 elif test "x$target" = "x$host"; then
12012 # We can use an host tool
12013 WINDMC_FOR_TARGET='$(WINDMC)'
12014 echo "$as_me:$LINENO: result: host tool" >&5
12015echo "${ECHO_T}host tool" >&6
12016 else
12017 # We need a cross tool
12018 echo "$as_me:$LINENO: result: pre-installed" >&5
12019echo "${ECHO_T}pre-installed" >&6
12020 fi
12021fi
12022
54752a6b
NN
12023
12024
be01d343 12025
4b900473 12026
a0da8069
NN
12027# Certain tools may need extra flags.
12028AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12029RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12030NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12031
be01d343
PB
12032# When building target libraries, except in a Canadian cross, we use
12033# the same toolchain as the compiler we just built.
12034COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12035COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12036COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12037if test $host = $build; then
12038 case " $configdirs " in
12039 *" gcc "*)
12040 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12041 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12042 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12043 ;;
12044 esac
12045fi
12046
12047
12048
12049
12050
c6b750e1
DJ
12051echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12052echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12053# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12054if test "${enable_maintainer_mode+set}" = set; then
12055 enableval="$enable_maintainer_mode"
12056 USE_MAINTAINER_MODE=$enableval
12057else
12058 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12059fi;
12060echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12061echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12062
12063
12064if test "$USE_MAINTAINER_MODE" = yes; then
12065 MAINTAINER_MODE_TRUE=
12066 MAINTAINER_MODE_FALSE='#'
12067else
12068 MAINTAINER_MODE_TRUE='#'
12069 MAINTAINER_MODE_FALSE=
c6b750e1 12070fi
3d5e36ae
AO
12071MAINT=$MAINTAINER_MODE_TRUE
12072
1d39f329
NN
12073# ---------------------
12074# GCC bootstrap support
12075# ---------------------
12076
12077# Stage specific cflags for build.
12078stage1_cflags="-g"
12079case $build in
12080 vax-*-*)
12081 case ${GCC} in
12082 yes) stage1_cflags="-g -Wa,-J" ;;
12083 *) stage1_cflags="-g -J" ;;
12084 esac ;;
1d39f329
NN
12085esac
12086
1d89b610
PB
12087# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12088if test "$GCC" = yes; then
12089 saved_CFLAGS="$CFLAGS"
12090
12091 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12092 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12093 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12094echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12095 cat >conftest.$ac_ext <<_ACEOF
12096/* confdefs.h. */
12097_ACEOF
12098cat confdefs.h >>conftest.$ac_ext
12099cat >>conftest.$ac_ext <<_ACEOF
12100/* end confdefs.h. */
12101
2038f525
PB
12102#if (__GNUC__ < 3) \
12103 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12104 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12105#error http://gcc.gnu.org/PR29382
12106#endif
12107
c6b750e1
DJ
12108int
12109main ()
12110{
12111
12112 ;
12113 return 0;
12114}
12115_ACEOF
12116rm -f conftest.$ac_objext
12117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12118 (eval $ac_compile) 2>conftest.er1
12119 ac_status=$?
12120 grep -v '^ *+' conftest.er1 >conftest.err
12121 rm -f conftest.er1
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } &&
12125 { ac_try='test -z "$ac_c_werror_flag"
12126 || test ! -s conftest.err'
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; } &&
12132 { ac_try='test -s conftest.$ac_objext'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
12138 echo "$as_me:$LINENO: result: yes" >&5
12139echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12140else
12141 echo "$as_me: failed program was:" >&5
12142sed 's/^/| /' conftest.$ac_ext >&5
12143
12144echo "$as_me:$LINENO: result: no" >&5
12145echo "${ECHO_T}no" >&6
12146fi
12147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12148
12149 CFLAGS="$saved_CFLAGS"
12150fi
12151
12152
1d39f329 12153
8a0d8a5c
PB
12154# Enable --enable-checking in stage1 of the compiler.
12155# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12156if test "${enable_stage1_checking+set}" = set; then
12157 enableval="$enable_stage1_checking"
12158 stage1_checking=--enable-checking=${enable_stage1_checking}
12159else
5566c1fa 12160 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12161 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12162else
5566c1fa 12163 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12164fi
c6b750e1 12165fi;
8a0d8a5c
PB
12166
12167
1d39f329 12168# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12169# Check whether --enable-werror or --disable-werror was given.
12170if test "${enable_werror+set}" = set; then
12171 enableval="$enable_werror"
c6b750e1 12172
1d39f329 12173else
a0323144 12174 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12175 enable_werror=yes
79fcd0ec
PB
12176else
12177 enable_werror=no
12178fi
c6b750e1 12179fi;
1a6f2dc7
NN
12180case ${enable_werror} in
12181 yes) stage2_werror_flag="--enable-werror-always" ;;
12182 *) stage2_werror_flag="" ;;
1d39f329
NN
12183esac
12184
12185
108a6f8e 12186# Flags needed to enable html installing and building
c6b750e1 12187
108a6f8e
CD
12188# Check whether --with-datarootdir or --without-datarootdir was given.
12189if test "${with_datarootdir+set}" = set; then
12190 withval="$with_datarootdir"
12191 datarootdir="\${prefix}/${withval}"
12192else
12193 datarootdir="\${prefix}/share"
c6b750e1 12194fi;
108a6f8e
CD
12195
12196
12197# Check whether --with-docdir or --without-docdir was given.
12198if test "${with_docdir+set}" = set; then
12199 withval="$with_docdir"
12200 docdir="\${prefix}/${withval}"
12201else
12202 docdir="\${datarootdir}/doc"
c6b750e1 12203fi;
108a6f8e
CD
12204
12205
a3ca38d2
DD
12206# Check whether --with-pdfdir or --without-pdfdir was given.
12207if test "${with_pdfdir+set}" = set; then
12208 withval="$with_pdfdir"
12209 pdfdir="\${prefix}/${withval}"
12210else
12211 pdfdir="\${docdir}"
12212fi;
12213
12214
108a6f8e
CD
12215# Check whether --with-htmldir or --without-htmldir was given.
12216if test "${with_htmldir+set}" = set; then
12217 withval="$with_htmldir"
12218 htmldir="\${prefix}/${withval}"
12219else
12220 htmldir="\${docdir}"
c6b750e1 12221fi;
108a6f8e
CD
12222
12223
12224
12225
12226
b8025f34 12227
c6b750e1
DJ
12228 ac_config_files="$ac_config_files Makefile"
12229cat >confcache <<\_ACEOF
a0da8069
NN
12230# This file is a shell script that caches the results of configure
12231# tests run on this system so they can be shared between configure
c6b750e1
DJ
12232# scripts and configure runs, see configure's option --config-cache.
12233# It is not useful on other systems. If it contains results you don't
12234# want to keep, you may remove or edit it.
a0da8069 12235#
c6b750e1
DJ
12236# config.status only pays attention to the cache file if you give it
12237# the --recheck option to rerun configure.
a0da8069 12238#
c6b750e1
DJ
12239# `ac_cv_env_foo' variables (set or unset) will be overridden when
12240# loading this file, other *unset* `ac_cv_foo' will be assigned the
12241# following values.
12242
12243_ACEOF
12244
a0da8069
NN
12245# The following way of writing the cache mishandles newlines in values,
12246# but we know of no workaround that is simple, portable, and efficient.
12247# So, don't put newlines in cache variables' values.
12248# Ultrix sh set writes to stderr and can't be redirected directly,
12249# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12250{
12251 (set) 2>&1 |
12252 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12253 *ac_space=\ *)
12254 # `set' does not quote correctly, so add quotes (double-quote
12255 # substitution turns \\\\ into \\, and sed turns \\ into \).
12256 sed -n \
12257 "s/'/'\\\\''/g;
12258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12259 ;;
12260 *)
12261 # `set' quotes correctly as required by POSIX, so do not add quotes.
12262 sed -n \
12263 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12264 ;;
12265 esac;
12266} |
12267 sed '
12268 t clear
12269 : clear
12270 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12271 t end
12272 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12273 : end' >>confcache
12274if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12275 if test -w $cache_file; then
c6b750e1
DJ
12276 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12277 cat confcache >$cache_file
a0da8069
NN
12278 else
12279 echo "not updating unwritable cache $cache_file"
12280 fi
852e5f18 12281fi
a0da8069 12282rm -f confcache
852e5f18 12283
a0da8069
NN
12284test "x$prefix" = xNONE && prefix=$ac_default_prefix
12285# Let make expand exec_prefix.
12286test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12287
c6b750e1
DJ
12288# VPATH may cause trouble with some makes, so we remove $(srcdir),
12289# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12290# trailing colons and then remove the whole line if VPATH becomes empty
12291# (actually we leave an empty line to preserve line numbers).
a0da8069 12292if test "x$srcdir" = x.; then
c6b750e1
DJ
12293 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12294s/:*\$(srcdir):*/:/;
12295s/:*\${srcdir}:*/:/;
12296s/:*@srcdir@:*/:/;
12297s/^\([^=]*=[ ]*\):*/\1/;
12298s/:*$//;
12299s/^[^=]*=[ ]*$//;
12300}'
a0da8069 12301fi
252b5132 12302
a0da8069
NN
12303# Transform confdefs.h into DEFS.
12304# Protect against shell expansion while executing Makefile rules.
12305# Protect against Makefile macro expansion.
c6b750e1
DJ
12306#
12307# If the first sed substitution is executed (which looks for macros that
12308# take arguments), then we branch to the quote section. Otherwise,
12309# look for a macro that doesn't take arguments.
12310cat >confdef2opt.sed <<\_ACEOF
12311t clear
12312: clear
12313s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12314t quote
12315s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12316t quote
12317d
12318: quote
12319s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12320s,\[,\\&,g
12321s,\],\\&,g
12322s,\$,$$,g
12323p
12324_ACEOF
12325# We use echo to avoid assuming a particular line-breaking character.
12326# The extra dot is to prevent the shell from consuming trailing
12327# line-breaks from the sub-command output. A line-break within
12328# single-quotes doesn't work because, if this script is created in a
12329# platform that uses two characters for line-breaks (e.g., DOS), tr
12330# would break.
12331ac_LF_and_DOT=`echo; echo .`
12332DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12333rm -f confdef2opt.sed
12334
12335
12336ac_libobjs=
12337ac_ltlibobjs=
12338for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12339 # 1. Remove the extension, and $U if already installed.
12340 ac_i=`echo "$ac_i" |
12341 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12342 # 2. Add them.
12343 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12344 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12345done
12346LIBOBJS=$ac_libobjs
852e5f18 12347
c6b750e1 12348LTLIBOBJS=$ac_ltlibobjs
376a0e54 12349
cac3d6c4 12350
c6b750e1
DJ
12351
12352: ${CONFIG_STATUS=./config.status}
12353ac_clean_files_save=$ac_clean_files
12354ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12355{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12356echo "$as_me: creating $CONFIG_STATUS" >&6;}
12357cat >$CONFIG_STATUS <<_ACEOF
12358#! $SHELL
12359# Generated by $as_me.
a0da8069 12360# Run this file to recreate the current configuration.
a0da8069 12361# Compiler output produced by configure, useful for debugging
c6b750e1 12362# configure, is in config.log if it exists.
376a0e54 12363
c6b750e1
DJ
12364debug=false
12365ac_cs_recheck=false
12366ac_cs_silent=false
12367SHELL=\${CONFIG_SHELL-$SHELL}
12368_ACEOF
12369
12370cat >>$CONFIG_STATUS <<\_ACEOF
12371## --------------------- ##
12372## M4sh Initialization. ##
12373## --------------------- ##
12374
12375# Be Bourne compatible
12376if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12377 emulate sh
12378 NULLCMD=:
12379 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12380 # is contrary to our usage. Disable this feature.
12381 alias -g '${1+"$@"}'='"$@"'
12382elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12383 set -o posix
12384fi
12385DUALCASE=1; export DUALCASE # for MKS sh
12386
12387# Support unset when possible.
12388if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12389 as_unset=unset
12390else
12391 as_unset=false
12392fi
12393
12394
12395# Work around bugs in pre-3.0 UWIN ksh.
12396$as_unset ENV MAIL MAILPATH
12397PS1='$ '
12398PS2='> '
12399PS4='+ '
12400
12401# NLS nuisances.
12402for as_var in \
12403 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12404 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12405 LC_TELEPHONE LC_TIME
12406do
12407 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12408 eval $as_var=C; export $as_var
12409 else
12410 $as_unset $as_var
12411 fi
12412done
12413
12414# Required to use basename.
12415if expr a : '\(a\)' >/dev/null 2>&1; then
12416 as_expr=expr
12417else
12418 as_expr=false
12419fi
12420
12421if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12422 as_basename=basename
12423else
12424 as_basename=false
12425fi
12426
12427
12428# Name of the executable.
12429as_me=`$as_basename "$0" ||
12430$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12431 X"$0" : 'X\(//\)$' \| \
12432 X"$0" : 'X\(/\)$' \| \
12433 . : '\(.\)' 2>/dev/null ||
12434echo X/"$0" |
12435 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12436 /^X\/\(\/\/\)$/{ s//\1/; q; }
12437 /^X\/\(\/\).*/{ s//\1/; q; }
12438 s/.*/./; q'`
12439
12440
12441# PATH needs CR, and LINENO needs CR and PATH.
12442# Avoid depending upon Character Ranges.
12443as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12444as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12445as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12446as_cr_digits='0123456789'
12447as_cr_alnum=$as_cr_Letters$as_cr_digits
12448
12449# The user is always right.
12450if test "${PATH_SEPARATOR+set}" != set; then
12451 echo "#! /bin/sh" >conf$$.sh
12452 echo "exit 0" >>conf$$.sh
12453 chmod +x conf$$.sh
12454 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12455 PATH_SEPARATOR=';'
12456 else
12457 PATH_SEPARATOR=:
12458 fi
12459 rm -f conf$$.sh
12460fi
12461
12462
12463 as_lineno_1=$LINENO
12464 as_lineno_2=$LINENO
12465 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12466 test "x$as_lineno_1" != "x$as_lineno_2" &&
12467 test "x$as_lineno_3" = "x$as_lineno_2" || {
12468 # Find who we are. Look in the path if we contain no path at all
12469 # relative or not.
12470 case $0 in
12471 *[\\/]* ) as_myself=$0 ;;
12472 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473for as_dir in $PATH
12474do
12475 IFS=$as_save_IFS
12476 test -z "$as_dir" && as_dir=.
12477 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12478done
12479
12480 ;;
12481 esac
12482 # We did not find ourselves, most probably we were run as `sh COMMAND'
12483 # in which case we are not to be found in the path.
12484 if test "x$as_myself" = x; then
12485 as_myself=$0
12486 fi
12487 if test ! -f "$as_myself"; then
12488 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12489echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12490 { (exit 1); exit 1; }; }
12491 fi
12492 case $CONFIG_SHELL in
12493 '')
12494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12496do
12497 IFS=$as_save_IFS
12498 test -z "$as_dir" && as_dir=.
12499 for as_base in sh bash ksh sh5; do
12500 case $as_dir in
12501 /*)
12502 if ("$as_dir/$as_base" -c '
12503 as_lineno_1=$LINENO
12504 as_lineno_2=$LINENO
12505 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12506 test "x$as_lineno_1" != "x$as_lineno_2" &&
12507 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12508 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12509 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12510 CONFIG_SHELL=$as_dir/$as_base
12511 export CONFIG_SHELL
12512 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12513 fi;;
12514 esac
12515 done
12516done
12517;;
12518 esac
12519
12520 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12521 # uniformly replaced by the line number. The first 'sed' inserts a
12522 # line-number line before each line; the second 'sed' does the real
12523 # work. The second script uses 'N' to pair each line-number line
12524 # with the numbered line, and appends trailing '-' during
12525 # substitution so that $LINENO is not a special case at line end.
12526 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12527 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12528 sed '=' <$as_myself |
12529 sed '
12530 N
12531 s,$,-,
12532 : loop
12533 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12534 t loop
12535 s,-$,,
12536 s,^['$as_cr_digits']*\n,,
12537 ' >$as_me.lineno &&
12538 chmod +x $as_me.lineno ||
12539 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12540echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12541 { (exit 1); exit 1; }; }
12542
12543 # Don't try to exec as it changes $[0], causing all sort of problems
12544 # (the dirname of $[0] is not the place where we might find the
12545 # original and so on. Autoconf is especially sensible to this).
12546 . ./$as_me.lineno
12547 # Exit status is that of the last command.
12548 exit
12549}
12550
12551
12552case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12553 *c*,-n*) ECHO_N= ECHO_C='
12554' ECHO_T=' ' ;;
12555 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12556 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12557esac
12558
12559if expr a : '\(a\)' >/dev/null 2>&1; then
12560 as_expr=expr
12561else
12562 as_expr=false
12563fi
12564
12565rm -f conf$$ conf$$.exe conf$$.file
12566echo >conf$$.file
12567if ln -s conf$$.file conf$$ 2>/dev/null; then
12568 # We could just check for DJGPP; but this test a) works b) is more generic
12569 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12570 if test -f conf$$.exe; then
12571 # Don't use ln at all; we don't have any links
12572 as_ln_s='cp -p'
12573 else
12574 as_ln_s='ln -s'
12575 fi
12576elif ln conf$$.file conf$$ 2>/dev/null; then
12577 as_ln_s=ln
12578else
12579 as_ln_s='cp -p'
12580fi
12581rm -f conf$$ conf$$.exe conf$$.file
12582
12583if mkdir -p . 2>/dev/null; then
12584 as_mkdir_p=:
12585else
12586 test -d ./-p && rmdir ./-p
12587 as_mkdir_p=false
12588fi
12589
12590as_executable_p="test -f"
12591
12592# Sed expression to map a string onto a valid CPP name.
12593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12594
12595# Sed expression to map a string onto a valid variable name.
12596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12597
12598
12599# IFS
12600# We need space, tab and new line, in precisely that order.
12601as_nl='
12602'
12603IFS=" $as_nl"
12604
12605# CDPATH.
12606$as_unset CDPATH
12607
12608exec 6>&1
12609
12610# Open the log real soon, to keep \$[0] and so on meaningful, and to
12611# report actual input values of CONFIG_FILES etc. instead of their
12612# values after options handling. Logging --version etc. is OK.
12613exec 5>>config.log
12614{
12615 echo
12616 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12617## Running $as_me. ##
12618_ASBOX
12619} >&5
12620cat >&5 <<_CSEOF
12621
12622This file was extended by $as_me, which was
12623generated by GNU Autoconf 2.59. Invocation command line was
12624
12625 CONFIG_FILES = $CONFIG_FILES
12626 CONFIG_HEADERS = $CONFIG_HEADERS
12627 CONFIG_LINKS = $CONFIG_LINKS
12628 CONFIG_COMMANDS = $CONFIG_COMMANDS
12629 $ $0 $@
12630
12631_CSEOF
12632echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12633echo >&5
12634_ACEOF
12635
12636# Files that config.status was made for.
12637if test -n "$ac_config_files"; then
12638 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12639fi
12640
12641if test -n "$ac_config_headers"; then
12642 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12643fi
12644
12645if test -n "$ac_config_links"; then
12646 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12647fi
12648
12649if test -n "$ac_config_commands"; then
12650 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12651fi
12652
12653cat >>$CONFIG_STATUS <<\_ACEOF
12654
12655ac_cs_usage="\
12656\`$as_me' instantiates files from templates according to the
12657current configuration.
12658
12659Usage: $0 [OPTIONS] [FILE]...
12660
12661 -h, --help print this help, then exit
12662 -V, --version print version number, then exit
12663 -q, --quiet do not print progress messages
12664 -d, --debug don't remove temporary files
12665 --recheck update $as_me by reconfiguring in the same conditions
12666 --file=FILE[:TEMPLATE]
12667 instantiate the configuration file FILE
12668
12669Configuration files:
12670$config_files
12671
12672Report bugs to <bug-autoconf@gnu.org>."
12673_ACEOF
12674
12675cat >>$CONFIG_STATUS <<_ACEOF
12676ac_cs_version="\\
12677config.status
12678configured by $0, generated by GNU Autoconf 2.59,
12679 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12680
12681Copyright (C) 2003 Free Software Foundation, Inc.
12682This config.status script is free software; the Free Software Foundation
12683gives unlimited permission to copy, distribute and modify it."
12684srcdir=$srcdir
12685INSTALL="$INSTALL"
12686_ACEOF
12687
12688cat >>$CONFIG_STATUS <<\_ACEOF
12689# If no file are specified by the user, then we need to provide default
12690# value. By we need to know if files were specified by the user.
12691ac_need_defaults=:
12692while test $# != 0
a0da8069 12693do
c6b750e1
DJ
12694 case $1 in
12695 --*=*)
12696 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12697 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12698 ac_shift=:
12699 ;;
12700 -*)
12701 ac_option=$1
12702 ac_optarg=$2
12703 ac_shift=shift
12704 ;;
12705 *) # This is not an option, so the user has probably given explicit
12706 # arguments.
12707 ac_option=$1
12708 ac_need_defaults=false;;
12709 esac
12710
12711 case $ac_option in
12712 # Handling of the options.
12713_ACEOF
12714cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12715 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12716 ac_cs_recheck=: ;;
12717 --version | --vers* | -V )
12718 echo "$ac_cs_version"; exit 0 ;;
12719 --he | --h)
12720 # Conflict between --help and --header
12721 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12722Try \`$0 --help' for more information." >&5
12723echo "$as_me: error: ambiguous option: $1
12724Try \`$0 --help' for more information." >&2;}
12725 { (exit 1); exit 1; }; };;
12726 --help | --hel | -h )
12727 echo "$ac_cs_usage"; exit 0 ;;
12728 --debug | --d* | -d )
12729 debug=: ;;
12730 --file | --fil | --fi | --f )
12731 $ac_shift
12732 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12733 ac_need_defaults=false;;
12734 --header | --heade | --head | --hea )
12735 $ac_shift
12736 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12737 ac_need_defaults=false;;
12738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12739 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12740 ac_cs_silent=: ;;
12741
12742 # This is an error.
12743 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12744Try \`$0 --help' for more information." >&5
12745echo "$as_me: error: unrecognized option: $1
12746Try \`$0 --help' for more information." >&2;}
12747 { (exit 1); exit 1; }; } ;;
12748
12749 *) ac_config_targets="$ac_config_targets $1" ;;
12750
376a0e54 12751 esac
c6b750e1 12752 shift
376a0e54
CM
12753done
12754
c6b750e1 12755ac_configure_extra_args=
376a0e54 12756
c6b750e1
DJ
12757if $ac_cs_silent; then
12758 exec 6>/dev/null
12759 ac_configure_extra_args="$ac_configure_extra_args --silent"
12760fi
376a0e54 12761
c6b750e1
DJ
12762_ACEOF
12763cat >>$CONFIG_STATUS <<_ACEOF
12764if \$ac_cs_recheck; then
12765 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12766 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12767fi
12768
12769_ACEOF
12770
12771
12772
12773
12774
12775cat >>$CONFIG_STATUS <<\_ACEOF
12776for ac_config_target in $ac_config_targets
12777do
12778 case "$ac_config_target" in
12779 # Handling of arguments.
12780 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12781 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12782echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12783 { (exit 1); exit 1; }; };;
12784 esac
12785done
12786
12787# If the user did not use the arguments to specify the items to instantiate,
12788# then the envvar interface is used. Set only those that are not.
12789# We use the long form for the default assignment because of an extremely
12790# bizarre bug on SunOS 4.1.3.
12791if $ac_need_defaults; then
12792 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12793fi
12794
12795# Have a temporary directory for convenience. Make it in the build tree
12796# simply because there is no reason to put it here, and in addition,
12797# creating and moving files from /tmp can sometimes cause problems.
12798# Create a temporary directory, and hook for its removal unless debugging.
12799$debug ||
12800{
12801 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12802 trap '{ (exit 1); exit 1; }' 1 2 13 15
12803}
12804
12805# Create a (secure) tmp directory for tmp files.
12806
12807{
12808 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12809 test -n "$tmp" && test -d "$tmp"
12810} ||
12811{
12812 tmp=./confstat$$-$RANDOM
12813 (umask 077 && mkdir $tmp)
12814} ||
12815{
12816 echo "$me: cannot create a temporary directory in ." >&2
12817 { (exit 1); exit 1; }
12818}
12819
12820_ACEOF
12821
12822cat >>$CONFIG_STATUS <<_ACEOF
12823
12824#
12825# CONFIG_FILES section.
12826#
12827
12828# No need to generate the scripts if there are no CONFIG_FILES.
12829# This happens for instance when ./config.status config.h
12830if test -n "\$CONFIG_FILES"; then
12831 # Protect against being on the right side of a sed subst in config.status.
12832 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12833 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12834s,@SHELL@,$SHELL,;t t
12835s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12836s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12837s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12838s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12839s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12840s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12841s,@exec_prefix@,$exec_prefix,;t t
12842s,@prefix@,$prefix,;t t
12843s,@program_transform_name@,$program_transform_name,;t t
12844s,@bindir@,$bindir,;t t
12845s,@sbindir@,$sbindir,;t t
12846s,@libexecdir@,$libexecdir,;t t
12847s,@datadir@,$datadir,;t t
12848s,@sysconfdir@,$sysconfdir,;t t
12849s,@sharedstatedir@,$sharedstatedir,;t t
12850s,@localstatedir@,$localstatedir,;t t
12851s,@libdir@,$libdir,;t t
12852s,@includedir@,$includedir,;t t
12853s,@oldincludedir@,$oldincludedir,;t t
12854s,@infodir@,$infodir,;t t
12855s,@mandir@,$mandir,;t t
12856s,@build_alias@,$build_alias,;t t
12857s,@host_alias@,$host_alias,;t t
12858s,@target_alias@,$target_alias,;t t
12859s,@DEFS@,$DEFS,;t t
12860s,@ECHO_C@,$ECHO_C,;t t
12861s,@ECHO_N@,$ECHO_N,;t t
12862s,@ECHO_T@,$ECHO_T,;t t
12863s,@LIBS@,$LIBS,;t t
12864s,@build@,$build,;t t
12865s,@build_cpu@,$build_cpu,;t t
12866s,@build_vendor@,$build_vendor,;t t
12867s,@build_os@,$build_os,;t t
12868s,@build_noncanonical@,$build_noncanonical,;t t
12869s,@host_noncanonical@,$host_noncanonical,;t t
12870s,@target_noncanonical@,$target_noncanonical,;t t
12871s,@host@,$host,;t t
12872s,@host_cpu@,$host_cpu,;t t
12873s,@host_vendor@,$host_vendor,;t t
12874s,@host_os@,$host_os,;t t
12875s,@target@,$target,;t t
12876s,@target_cpu@,$target_cpu,;t t
12877s,@target_vendor@,$target_vendor,;t t
12878s,@target_os@,$target_os,;t t
12879s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12880s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12881s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12882s,@LN@,$LN,;t t
12883s,@LN_S@,$LN_S,;t t
12884s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12885s,@build_libsubdir@,$build_libsubdir,;t t
12886s,@build_subdir@,$build_subdir,;t t
12887s,@host_subdir@,$host_subdir,;t t
12888s,@target_subdir@,$target_subdir,;t t
12889s,@CC@,$CC,;t t
12890s,@CFLAGS@,$CFLAGS,;t t
12891s,@LDFLAGS@,$LDFLAGS,;t t
12892s,@CPPFLAGS@,$CPPFLAGS,;t t
12893s,@ac_ct_CC@,$ac_ct_CC,;t t
12894s,@EXEEXT@,$EXEEXT,;t t
12895s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12896s,@CXX@,$CXX,;t t
12897s,@CXXFLAGS@,$CXXFLAGS,;t t
12898s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12899s,@GNATBIND@,$GNATBIND,;t t
12900s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12901s,@GNATMAKE@,$GNATMAKE,;t t
12902s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12903s,@do_compare@,$do_compare,;t t
12904s,@gmplibs@,$gmplibs,;t t
12905s,@gmpinc@,$gmpinc,;t t
12906s,@stage1_languages@,$stage1_languages,;t t
12907s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12908s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
12909s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12910s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12911s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12912s,@tooldir@,$tooldir,;t t
12913s,@build_tooldir@,$build_tooldir,;t t
12914s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12915s,@GDB_TK@,$GDB_TK,;t t
12916s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12917s,@build_configargs@,$build_configargs,;t t
12918s,@build_configdirs@,$build_configdirs,;t t
12919s,@host_configargs@,$host_configargs,;t t
12920s,@configdirs@,$configdirs,;t t
12921s,@target_configargs@,$target_configargs,;t t
1576798e
PB
12922s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12923s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 12924s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
12925s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12926s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12927s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12928s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12929s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12930s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12931s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12932s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12933s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12934s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12935s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12936s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
12937s,@config_shell@,$config_shell,;t t
12938s,@YACC@,$YACC,;t t
12939s,@BISON@,$BISON,;t t
12940s,@M4@,$M4,;t t
12941s,@LEX@,$LEX,;t t
12942s,@FLEX@,$FLEX,;t t
12943s,@MAKEINFO@,$MAKEINFO,;t t
12944s,@EXPECT@,$EXPECT,;t t
12945s,@RUNTEST@,$RUNTEST,;t t
12946s,@AR@,$AR,;t t
12947s,@AS@,$AS,;t t
12948s,@DLLTOOL@,$DLLTOOL,;t t
12949s,@LD@,$LD,;t t
12950s,@LIPO@,$LIPO,;t t
12951s,@NM@,$NM,;t t
12952s,@RANLIB@,$RANLIB,;t t
12953s,@STRIP@,$STRIP,;t t
12954s,@WINDRES@,$WINDRES,;t t
0c24b341 12955s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12956s,@OBJCOPY@,$OBJCOPY,;t t
12957s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
12958s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12959s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12960s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12961s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12962s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12963s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12964s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12965s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12966s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12967s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12968s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12969s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12970s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12971s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12972s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12973s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12974s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12975s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12976s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12977s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12978s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12979s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12980s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12981s,@MAINT@,$MAINT,;t t
12982s,@stage1_cflags@,$stage1_cflags,;t t
12983s,@stage1_checking@,$stage1_checking,;t t
12984s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12985s,@datarootdir@,$datarootdir,;t t
12986s,@docdir@,$docdir,;t t
a3ca38d2 12987s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12988s,@htmldir@,$htmldir,;t t
12989s,@LIBOBJS@,$LIBOBJS,;t t
12990s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12991/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12992s,@serialization_dependencies@,,;t t
a0da8069 12993/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12994s,@host_makefile_frag@,,;t t
a0da8069 12995/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12996s,@target_makefile_frag@,,;t t
a0da8069 12997/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12998s,@alphaieee_frag@,,;t t
a0da8069 12999/@ospace_frag@/r $ospace_frag
c6b750e1 13000s,@ospace_frag@,,;t t
a0da8069 13001CEOF
252b5132 13002
c6b750e1
DJ
13003_ACEOF
13004
13005 cat >>$CONFIG_STATUS <<\_ACEOF
13006 # Split the substitutions into bite-sized pieces for seds with
13007 # small command number limits, like on Digital OSF/1 and HP-UX.
13008 ac_max_sed_lines=48
13009 ac_sed_frag=1 # Number of current file.
13010 ac_beg=1 # First line for current file.
13011 ac_end=$ac_max_sed_lines # Line after last line for current file.
13012 ac_more_lines=:
13013 ac_sed_cmds=
13014 while $ac_more_lines; do
13015 if test $ac_beg -gt 1; then
13016 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13017 else
13018 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13019 fi
13020 if test ! -s $tmp/subs.frag; then
13021 ac_more_lines=false
a0da8069 13022 else
c6b750e1
DJ
13023 # The purpose of the label and of the branching condition is to
13024 # speed up the sed processing (if there are no `@' at all, there
13025 # is no need to browse any of the substitutions).
13026 # These are the two extra sed commands mentioned above.
13027 (echo ':t
13028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13029 if test -z "$ac_sed_cmds"; then
13030 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13031 else
13032 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13033 fi
13034 ac_sed_frag=`expr $ac_sed_frag + 1`
13035 ac_beg=$ac_end
13036 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13037 fi
c6b750e1
DJ
13038 done
13039 if test -z "$ac_sed_cmds"; then
13040 ac_sed_cmds=cat
852e5f18 13041 fi
c6b750e1 13042fi # test -n "$CONFIG_FILES"
cac3d6c4 13043
c6b750e1
DJ
13044_ACEOF
13045cat >>$CONFIG_STATUS <<\_ACEOF
13046for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13047 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13048 case $ac_file in
13049 - | *:- | *:-:* ) # input from stdin
13050 cat >$tmp/stdin
13051 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13052 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13053 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13054 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13055 * ) ac_file_in=$ac_file.in ;;
a0da8069 13056 esac
252b5132 13057
c6b750e1
DJ
13058 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13059 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13060$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13061 X"$ac_file" : 'X\(//\)[^/]' \| \
13062 X"$ac_file" : 'X\(//\)$' \| \
13063 X"$ac_file" : 'X\(/\)' \| \
13064 . : '\(.\)' 2>/dev/null ||
13065echo X"$ac_file" |
13066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13068 /^X\(\/\/\)$/{ s//\1/; q; }
13069 /^X\(\/\).*/{ s//\1/; q; }
13070 s/.*/./; q'`
13071 { if $as_mkdir_p; then
13072 mkdir -p "$ac_dir"
cac3d6c4 13073 else
c6b750e1
DJ
13074 as_dir="$ac_dir"
13075 as_dirs=
13076 while test ! -d "$as_dir"; do
13077 as_dirs="$as_dir $as_dirs"
13078 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13079$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13080 X"$as_dir" : 'X\(//\)[^/]' \| \
13081 X"$as_dir" : 'X\(//\)$' \| \
13082 X"$as_dir" : 'X\(/\)' \| \
13083 . : '\(.\)' 2>/dev/null ||
13084echo X"$as_dir" |
13085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13087 /^X\(\/\/\)$/{ s//\1/; q; }
13088 /^X\(\/\).*/{ s//\1/; q; }
13089 s/.*/./; q'`
13090 done
13091 test ! -n "$as_dirs" || mkdir $as_dirs
13092 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13093echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13094 { (exit 1); exit 1; }; }; }
13095
13096 ac_builddir=.
252b5132 13097
c6b750e1
DJ
13098if test "$ac_dir" != .; then
13099 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13100 # A "../" for each directory in $ac_dir_suffix.
13101 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13102else
13103 ac_dir_suffix= ac_top_builddir=
13104fi
13105
13106case $srcdir in
13107 .) # No --srcdir option. We are building in place.
13108 ac_srcdir=.
13109 if test -z "$ac_top_builddir"; then
13110 ac_top_srcdir=.
13111 else
13112 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13113 fi ;;
13114 [\\/]* | ?:[\\/]* ) # Absolute path.
13115 ac_srcdir=$srcdir$ac_dir_suffix;
13116 ac_top_srcdir=$srcdir ;;
a0da8069 13117 *) # Relative path.
c6b750e1
DJ
13118 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13119 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13120esac
252b5132 13121
c6b750e1
DJ
13122# Do not use `cd foo && pwd` to compute absolute paths, because
13123# the directories may not exist.
13124case `pwd` in
13125.) ac_abs_builddir="$ac_dir";;
13126*)
13127 case "$ac_dir" in
13128 .) ac_abs_builddir=`pwd`;;
13129 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13130 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13131 esac;;
13132esac
13133case $ac_abs_builddir in
13134.) ac_abs_top_builddir=${ac_top_builddir}.;;
13135*)
13136 case ${ac_top_builddir}. in
13137 .) ac_abs_top_builddir=$ac_abs_builddir;;
13138 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13139 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13140 esac;;
13141esac
13142case $ac_abs_builddir in
13143.) ac_abs_srcdir=$ac_srcdir;;
13144*)
13145 case $ac_srcdir in
13146 .) ac_abs_srcdir=$ac_abs_builddir;;
13147 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13148 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13149 esac;;
13150esac
13151case $ac_abs_builddir in
13152.) ac_abs_top_srcdir=$ac_top_srcdir;;
13153*)
13154 case $ac_top_srcdir in
13155 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13156 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13157 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13158 esac;;
13159esac
252b5132 13160
c6b750e1
DJ
13161
13162 case $INSTALL in
13163 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13164 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13165 esac
252b5132 13166
c6b750e1
DJ
13167 if test x"$ac_file" != x-; then
13168 { echo "$as_me:$LINENO: creating $ac_file" >&5
13169echo "$as_me: creating $ac_file" >&6;}
13170 rm -f "$ac_file"
13171 fi
13172 # Let's still pretend it is `configure' which instantiates (i.e., don't
13173 # use $as_me), people would be surprised to read:
13174 # /* config.h. Generated by config.status. */
13175 if test x"$ac_file" = x-; then
13176 configure_input=
13177 else
13178 configure_input="$ac_file. "
13179 fi
13180 configure_input=$configure_input"Generated from `echo $ac_file_in |
13181 sed 's,.*/,,'` by configure."
13182
13183 # First look for the input files in the build tree, otherwise in the
13184 # src tree.
13185 ac_file_inputs=`IFS=:
13186 for f in $ac_file_in; do
13187 case $f in
13188 -) echo $tmp/stdin ;;
13189 [\\/$]*)
13190 # Absolute (can't be DOS-style, as IFS=:)
13191 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13192echo "$as_me: error: cannot find input file: $f" >&2;}
13193 { (exit 1); exit 1; }; }
13194 echo "$f";;
13195 *) # Relative
13196 if test -f "$f"; then
13197 # Build tree
13198 echo "$f"
13199 elif test -f "$srcdir/$f"; then
13200 # Source tree
13201 echo "$srcdir/$f"
13202 else
13203 # /dev/null tree
13204 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13205echo "$as_me: error: cannot find input file: $f" >&2;}
13206 { (exit 1); exit 1; }; }
13207 fi;;
13208 esac
13209 done` || { (exit 1); exit 1; }
13210_ACEOF
13211cat >>$CONFIG_STATUS <<_ACEOF
13212 sed "$ac_vpsub
13213$extrasub
13214_ACEOF
13215cat >>$CONFIG_STATUS <<\_ACEOF
13216:t
13217/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13218s,@configure_input@,$configure_input,;t t
13219s,@srcdir@,$ac_srcdir,;t t
13220s,@abs_srcdir@,$ac_abs_srcdir,;t t
13221s,@top_srcdir@,$ac_top_srcdir,;t t
13222s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13223s,@builddir@,$ac_builddir,;t t
13224s,@abs_builddir@,$ac_abs_builddir,;t t
13225s,@top_builddir@,$ac_top_builddir,;t t
13226s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13227s,@INSTALL@,$ac_INSTALL,;t t
13228" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13229 rm -f $tmp/stdin
13230 if test x"$ac_file" != x-; then
13231 mv $tmp/out $ac_file
13232 else
13233 cat $tmp/out
13234 rm -f $tmp/out
13235 fi
c148b4cb 13236
c6b750e1
DJ
13237done
13238_ACEOF
c148b4cb 13239
c6b750e1 13240cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13241
c6b750e1
DJ
13242{ (exit 0); exit 0; }
13243_ACEOF
c148b4cb 13244chmod +x $CONFIG_STATUS
c6b750e1
DJ
13245ac_clean_files=$ac_clean_files_save
13246
13247
13248# configure is writing to config.log, and then calls config.status.
13249# config.status does its own redirection, appending to config.log.
13250# Unfortunately, on DOS this fails, as config.log is still kept open
13251# by configure, so config.status won't be able to write to it; its
13252# output is simply discarded. So we exec the FD to /dev/null,
13253# effectively closing config.log, so it can be properly (re)opened and
13254# appended to by config.status. When coming back to configure, we
13255# need to make the FD available again.
13256if test "$no_create" != yes; then
13257 ac_cs_success=:
13258 ac_config_status_args=
13259 test "$silent" = yes &&
13260 ac_config_status_args="$ac_config_status_args --quiet"
13261 exec 5>/dev/null
13262 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13263 exec 5>>config.log
13264 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13265 # would make configure fail if this is the last instruction.
13266 $ac_cs_success || { (exit 1); exit 1; }
13267fi
c148b4cb 13268
This page took 1.109313 seconds and 4 git commands to generate.