oops - omitted from previous delta
[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*)
e33b51a6
NC
2783
2784echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2785echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2786echo a >cygwin-cat-check
2787if test `cat cygwin-cat-check` == a ; then
2788 echo "$as_me:$LINENO: result: yes" >&5
2789echo "${ECHO_T}yes" >&6
2790else
2791 echo "$as_me:$LINENO: result: no" >&5
2792echo "${ECHO_T}no" >&6
2793 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2794 Please either mount the build directory in binary mode or run the following
2795 commands before running any configure script:
2796set -o igncr
2797export SHELLOPTS
2798 " >&5
2799echo "$as_me: error: The cat command does not ignore carriage return characters.
2800 Please either mount the build directory in binary mode or run the following
2801 commands before running any configure script:
2802set -o igncr
2803export SHELLOPTS
2804 " >&2;}
2805 { (exit 1); exit 1; }; }
2806fi
2807rm cygwin-cat-check
2808
a0da8069
NN
2809 host_makefile_frag="config/mh-cygwin"
2810 ;;
8a1599ab 2811 *-mingw*)
84e7906e 2812 host_makefile_frag="config/mh-mingw"
2d1e8239 2813 ;;
a0da8069
NN
2814 *-interix*)
2815 host_makefile_frag="config/mh-interix"
2816 ;;
2817 vax-*-ultrix2*)
2818 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2819 tentative_cc=gcc
2820 ;;
2821 *-*-solaris2*)
2822 host_makefile_frag="config/mh-solaris"
2823 ;;
2824 m68k-sun-sunos*)
2825 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2826 # without overflowing the jump tables (-J says to use a 32 bit table)
2827 tentative_cc="cc -J"
2828 ;;
2829 *-hp-hpux*)
2830 tentative_cc="cc -Wp,-H256000"
2831 ;;
2832 *-*-hiux*)
2833 tentative_cc="cc -Wp,-H256000"
2834 ;;
2835 rs6000-*-lynxos*)
2836 # /bin/cc is less than useful for our purposes. Always use GCC
2837 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2838 host_makefile_frag="config/mh-lynxrs6k"
2839 ;;
0df3d27f
PB
2840 powerpc-*-darwin*)
2841 host_makefile_frag="config/mh-ppc-darwin"
2842 ;;
f6d183c0
PB
2843 powerpc-*-aix*)
2844 host_makefile_frag="config/mh-ppc-aix"
2845 ;;
2846 rs6000-*-aix*)
2847 host_makefile_frag="config/mh-ppc-aix"
2848 ;;
a0da8069
NN
2849 *-*-lynxos*)
2850 # /bin/cc is less than useful for our purposes. Always use GCC
2851 tentative_cc="/bin/gcc"
2852 ;;
2853 *-*-sysv4*)
2854 host_makefile_frag="config/mh-sysv4"
2855 ;;
fe69863c
DD
2856 # This is placed last to prevent interfering with the cases above.
2857 i[3456789]86-*-*)
2858 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2859 host_makefile_frag="config/mh-x86omitfp"
2860 ;;
a0da8069
NN
2861esac
2862fi
2863
9e07f89d
NN
2864# If we aren't going to be using gcc, see if we can extract a definition
2865# of CC from the fragment.
2866# Actually, use the 'pre-extracted' version above.
2867if test -z "${CC}" && test "${build}" = "${host}" ; then
2868 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2869 found=
2870 for dir in $PATH; do
2871 test -z "$dir" && dir=.
2872 if test -f $dir/gcc; then
2873 found=yes
2874 break
2875 fi
2876 done
2877 IFS="$save_ifs"
2878 if test -z "${found}" && test -n "${tentative_cc}" ; then
2879 CC=$tentative_cc
2880 fi
2881fi
2882
2883if test "${build}" != "${host}" ; then
1576798e
PB
2884 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2885 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2886 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2887 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2888 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2889 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2890 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2891 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2892 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2893 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2894 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2895 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2896else
2897 AR_FOR_BUILD="\$(AR)"
2898 AS_FOR_BUILD="\$(AS)"
512b7dfb 2899 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2900 CXX_FOR_BUILD="\$(CXX)"
2901 GCJ_FOR_BUILD="\$(GCJ)"
2902 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2903 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2904 LD_FOR_BUILD="\$(LD)"
2905 NM_FOR_BUILD="\$(NM)"
2906 RANLIB_FOR_BUILD="\$(RANLIB)"
2907 WINDRES_FOR_BUILD="\$(WINDRES)"
2908 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2909fi
2910
2911ac_ext=c
c6b750e1
DJ
2912ac_cpp='$CPP $CPPFLAGS'
2913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915ac_compiler_gnu=$ac_cv_c_compiler_gnu
2916if test -n "$ac_tool_prefix"; then
2917 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2918set dummy ${ac_tool_prefix}gcc; ac_word=$2
2919echo "$as_me:$LINENO: checking for $ac_word" >&5
2920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921if test "${ac_cv_prog_CC+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926else
2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928for as_dir in $PATH
2929do
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2937 fi
2938done
2939done
2940
2941fi
2942fi
2943CC=$ac_cv_prog_CC
2944if test -n "$CC"; then
2945 echo "$as_me:$LINENO: result: $CC" >&5
2946echo "${ECHO_T}$CC" >&6
2947else
2948 echo "$as_me:$LINENO: result: no" >&5
2949echo "${ECHO_T}no" >&6
2950fi
2951
2952fi
2953if test -z "$ac_cv_prog_CC"; then
2954 ac_ct_CC=$CC
6a9cf61e 2955 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2956set dummy gcc; ac_word=$2
c6b750e1
DJ
2957echo "$as_me:$LINENO: checking for $ac_word" >&5
2958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2959if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2961else
2962 if test -n "$ac_ct_CC"; then
2963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2964else
2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966for as_dir in $PATH
2967do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972 ac_cv_prog_ac_ct_CC="gcc"
2973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976done
2977done
2978
2979fi
2980fi
2981ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982if test -n "$ac_ct_CC"; then
2983 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2984echo "${ECHO_T}$ac_ct_CC" >&6
2985else
2986 echo "$as_me:$LINENO: result: no" >&5
2987echo "${ECHO_T}no" >&6
2988fi
2989
2990 CC=$ac_ct_CC
2991else
2992 CC="$ac_cv_prog_CC"
2993fi
2994
2995if test -z "$CC"; then
2996 if test -n "$ac_tool_prefix"; then
2997 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2998set dummy ${ac_tool_prefix}cc; ac_word=$2
2999echo "$as_me:$LINENO: checking for $ac_word" >&5
3000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3001if test "${ac_cv_prog_CC+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3003else
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3006else
c6b750e1
DJ
3007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3014 ac_cv_prog_CC="${ac_tool_prefix}cc"
3015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 break 2
3017 fi
3018done
3019done
3020
9e07f89d
NN
3021fi
3022fi
c6b750e1 3023CC=$ac_cv_prog_CC
9e07f89d 3024if test -n "$CC"; then
c6b750e1
DJ
3025 echo "$as_me:$LINENO: result: $CC" >&5
3026echo "${ECHO_T}$CC" >&6
9e07f89d 3027else
c6b750e1
DJ
3028 echo "$as_me:$LINENO: result: no" >&5
3029echo "${ECHO_T}no" >&6
9e07f89d
NN
3030fi
3031
c6b750e1
DJ
3032fi
3033if test -z "$ac_cv_prog_CC"; then
3034 ac_ct_CC=$CC
3035 # Extract the first word of "cc", so it can be a program name with args.
3036set dummy cc; ac_word=$2
3037echo "$as_me:$LINENO: checking for $ac_word" >&5
3038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3039if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3041else
3042 if test -n "$ac_ct_CC"; then
3043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3044else
3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046for as_dir in $PATH
3047do
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 ac_cv_prog_ac_ct_CC="cc"
3053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3055 fi
3056done
3057done
3058
3059fi
3060fi
3061ac_ct_CC=$ac_cv_prog_ac_ct_CC
3062if test -n "$ac_ct_CC"; then
3063 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3064echo "${ECHO_T}$ac_ct_CC" >&6
3065else
3066 echo "$as_me:$LINENO: result: no" >&5
3067echo "${ECHO_T}no" >&6
3068fi
3069
3070 CC=$ac_ct_CC
3071else
3072 CC="$ac_cv_prog_CC"
3073fi
3074
3075fi
9e07f89d
NN
3076if test -z "$CC"; then
3077 # Extract the first word of "cc", so it can be a program name with args.
3078set dummy cc; ac_word=$2
c6b750e1
DJ
3079echo "$as_me:$LINENO: checking for $ac_word" >&5
3080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3081if test "${ac_cv_prog_CC+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3083else
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3086else
9e07f89d 3087 ac_prog_rejected=no
c6b750e1
DJ
3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089for as_dir in $PATH
3090do
3091 IFS=$as_save_IFS
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3096 ac_prog_rejected=yes
3097 continue
3098 fi
3099 ac_cv_prog_CC="cc"
3100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103done
3104done
3105
9e07f89d
NN
3106if test $ac_prog_rejected = yes; then
3107 # We found a bogon in the path, so make sure we never use it.
3108 set dummy $ac_cv_prog_CC
3109 shift
c6b750e1 3110 if test $# != 0; then
9e07f89d
NN
3111 # We chose a different compiler from the bogus one.
3112 # However, it has the same basename, so the bogon will be chosen
3113 # first if we set CC to just the basename; use the full file name.
3114 shift
c6b750e1 3115 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3116 fi
3117fi
3118fi
3119fi
c6b750e1 3120CC=$ac_cv_prog_CC
9e07f89d 3121if test -n "$CC"; then
c6b750e1
DJ
3122 echo "$as_me:$LINENO: result: $CC" >&5
3123echo "${ECHO_T}$CC" >&6
9e07f89d 3124else
c6b750e1
DJ
3125 echo "$as_me:$LINENO: result: no" >&5
3126echo "${ECHO_T}no" >&6
9e07f89d
NN
3127fi
3128
c6b750e1
DJ
3129fi
3130if test -z "$CC"; then
3131 if test -n "$ac_tool_prefix"; then
3132 for ac_prog in cl
3133 do
3134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3135set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3136echo "$as_me:$LINENO: checking for $ac_word" >&5
3137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3138if test "${ac_cv_prog_CC+set}" = set; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3140else
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
3143else
c6b750e1
DJ
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 break 2
376a0e54 3154 fi
c6b750e1
DJ
3155done
3156done
cac3d6c4 3157
c6b750e1
DJ
3158fi
3159fi
3160CC=$ac_cv_prog_CC
3161if test -n "$CC"; then
3162 echo "$as_me:$LINENO: result: $CC" >&5
3163echo "${ECHO_T}$CC" >&6
cac3d6c4 3164else
c6b750e1
DJ
3165 echo "$as_me:$LINENO: result: no" >&5
3166echo "${ECHO_T}no" >&6
9e07f89d 3167fi
cac3d6c4 3168
c6b750e1
DJ
3169 test -n "$CC" && break
3170 done
cac3d6c4 3171fi
c6b750e1
DJ
3172if test -z "$CC"; then
3173 ac_ct_CC=$CC
3174 for ac_prog in cl
3175do
3176 # Extract the first word of "$ac_prog", so it can be a program name with args.
3177set dummy $ac_prog; ac_word=$2
3178echo "$as_me:$LINENO: checking for $ac_word" >&5
3179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3180if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3182else
c6b750e1
DJ
3183 if test -n "$ac_ct_CC"; then
3184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3185else
c6b750e1
DJ
3186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187for as_dir in $PATH
3188do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193 ac_cv_prog_ac_ct_CC="$ac_prog"
3194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197done
3198done
3199
cac3d6c4
CM
3200fi
3201fi
c6b750e1
DJ
3202ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203if test -n "$ac_ct_CC"; then
3204 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3205echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3206else
c6b750e1
DJ
3207 echo "$as_me:$LINENO: result: no" >&5
3208echo "${ECHO_T}no" >&6
cac3d6c4 3209fi
376a0e54 3210
c6b750e1
DJ
3211 test -n "$ac_ct_CC" && break
3212done
3213
3214 CC=$ac_ct_CC
3215fi
3216
3217fi
3218
3219
3220test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3221See \`config.log' for more details." >&5
3222echo "$as_me: error: no acceptable C compiler found in \$PATH
3223See \`config.log' for more details." >&2;}
3224 { (exit 1); exit 1; }; }
3225
3226# Provide some information about the compiler.
3227echo "$as_me:$LINENO:" \
3228 "checking for C compiler version" >&5
3229ac_compiler=`set X $ac_compile; echo $2`
3230{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3231 (eval $ac_compiler --version </dev/null >&5) 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }
3235{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3236 (eval $ac_compiler -v </dev/null >&5) 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }
3240{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3241 (eval $ac_compiler -V </dev/null >&5) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }
3245
3246cat >conftest.$ac_ext <<_ACEOF
3247/* confdefs.h. */
3248_ACEOF
3249cat confdefs.h >>conftest.$ac_ext
3250cat >>conftest.$ac_ext <<_ACEOF
3251/* end confdefs.h. */
3252
3253int
3254main ()
3255{
3256
3257 ;
3258 return 0;
3259}
3260_ACEOF
3261ac_clean_files_save=$ac_clean_files
3262ac_clean_files="$ac_clean_files a.out a.exe b.out"
3263# Try to create an executable without -o first, disregard a.out.
3264# It will help us diagnose broken compilers, and finding out an intuition
3265# of exeext.
3266echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3267echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3268ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3269if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3270 (eval $ac_link_default) 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; then
3274 # Find the output, starting from the most likely. This scheme is
3275# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3276# resort.
3277
3278# Be careful to initialize this variable, since it used to be cached.
3279# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3280ac_cv_exeext=
3281# b.out is created by i960 compilers.
3282for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3283do
3284 test -f "$ac_file" || continue
3285 case $ac_file in
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3287 ;;
3288 conftest.$ac_ext )
3289 # This is the source file.
3290 ;;
3291 [ab].out )
3292 # We found the default executable, but exeext='' is most
3293 # certainly right.
3294 break;;
3295 *.* )
3296 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297 # FIXME: I believe we export ac_cv_exeext for Libtool,
3298 # but it would be cool to find out if it's true. Does anybody
3299 # maintain Libtool? --akim.
3300 export ac_cv_exeext
3301 break;;
3302 * )
3303 break;;
3304 esac
3305done
3306else
3307 echo "$as_me: failed program was:" >&5
3308sed 's/^/| /' conftest.$ac_ext >&5
3309
3310{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3311See \`config.log' for more details." >&5
3312echo "$as_me: error: C compiler cannot create executables
3313See \`config.log' for more details." >&2;}
3314 { (exit 77); exit 77; }; }
3315fi
3316
3317ac_exeext=$ac_cv_exeext
3318echo "$as_me:$LINENO: result: $ac_file" >&5
3319echo "${ECHO_T}$ac_file" >&6
3320
3321# Check the compiler produces executables we can run. If not, either
3322# the compiler is broken, or we cross compile.
3323echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3324echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3325# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3326# If not cross compiling, check that we can run a simple program.
3327if test "$cross_compiling" != yes; then
3328 if { ac_try='./$ac_file'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 cross_compiling=no
3335 else
3336 if test "$cross_compiling" = maybe; then
3337 cross_compiling=yes
3338 else
3339 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3340If you meant to cross compile, use \`--host'.
3341See \`config.log' for more details." >&5
3342echo "$as_me: error: cannot run C compiled programs.
3343If you meant to cross compile, use \`--host'.
3344See \`config.log' for more details." >&2;}
3345 { (exit 1); exit 1; }; }
3346 fi
3347 fi
3348fi
3349echo "$as_me:$LINENO: result: yes" >&5
3350echo "${ECHO_T}yes" >&6
3351
3352rm -f a.out a.exe conftest$ac_cv_exeext b.out
3353ac_clean_files=$ac_clean_files_save
3354# Check the compiler produces executables we can run. If not, either
3355# the compiler is broken, or we cross compile.
3356echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3357echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3358echo "$as_me:$LINENO: result: $cross_compiling" >&5
3359echo "${ECHO_T}$cross_compiling" >&6
3360
3361echo "$as_me:$LINENO: checking for suffix of executables" >&5
3362echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3364 (eval $ac_link) 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; then
3368 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3369# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3370# work properly (i.e., refer to `conftest.exe'), while it won't with
3371# `rm'.
3372for ac_file in conftest.exe conftest conftest.*; do
3373 test -f "$ac_file" || continue
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3377 export ac_cv_exeext
3378 break;;
3379 * ) break;;
3380 esac
3381done
3382else
3383 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3384See \`config.log' for more details." >&5
3385echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3386See \`config.log' for more details." >&2;}
3387 { (exit 1); exit 1; }; }
3388fi
3389
3390rm -f conftest$ac_cv_exeext
3391echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3392echo "${ECHO_T}$ac_cv_exeext" >&6
3393
3394rm -f conftest.$ac_ext
3395EXEEXT=$ac_cv_exeext
3396ac_exeext=$EXEEXT
3397echo "$as_me:$LINENO: checking for suffix of object files" >&5
3398echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3399if test "${ac_cv_objext+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401else
3402 cat >conftest.$ac_ext <<_ACEOF
3403/* confdefs.h. */
3404_ACEOF
3405cat confdefs.h >>conftest.$ac_ext
3406cat >>conftest.$ac_ext <<_ACEOF
3407/* end confdefs.h. */
3408
3409int
3410main ()
3411{
3412
3413 ;
3414 return 0;
3415}
3416_ACEOF
3417rm -f conftest.o conftest.obj
3418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3419 (eval $ac_compile) 2>&5
3420 ac_status=$?
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; then
3423 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3424 case $ac_file in
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3426 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3427 break;;
3428 esac
3429done
cac3d6c4 3430else
c6b750e1
DJ
3431 echo "$as_me: failed program was:" >&5
3432sed 's/^/| /' conftest.$ac_ext >&5
3433
3434{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3435See \`config.log' for more details." >&5
3436echo "$as_me: error: cannot compute suffix of object files: cannot compile
3437See \`config.log' for more details." >&2;}
3438 { (exit 1); exit 1; }; }
3439fi
3440
3441rm -f conftest.$ac_cv_objext conftest.$ac_ext
3442fi
3443echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3444echo "${ECHO_T}$ac_cv_objext" >&6
3445OBJEXT=$ac_cv_objext
3446ac_objext=$OBJEXT
3447echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3448echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3449if test "${ac_cv_c_compiler_gnu+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452 cat >conftest.$ac_ext <<_ACEOF
3453/* confdefs.h. */
3454_ACEOF
3455cat confdefs.h >>conftest.$ac_ext
3456cat >>conftest.$ac_ext <<_ACEOF
3457/* end confdefs.h. */
3458
3459int
3460main ()
3461{
3462#ifndef __GNUC__
3463 choke me
3464#endif
3465
3466 ;
3467 return 0;
3468}
3469_ACEOF
3470rm -f conftest.$ac_objext
3471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3472 (eval $ac_compile) 2>conftest.er1
3473 ac_status=$?
3474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } &&
3479 { ac_try='test -z "$ac_c_werror_flag"
3480 || test ! -s conftest.err'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 (eval $ac_try) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; } &&
3486 { ac_try='test -s conftest.$ac_objext'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 (eval $ac_try) 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; }; then
3492 ac_compiler_gnu=yes
3493else
3494 echo "$as_me: failed program was:" >&5
3495sed 's/^/| /' conftest.$ac_ext >&5
3496
3497ac_compiler_gnu=no
3498fi
3499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3500ac_cv_c_compiler_gnu=$ac_compiler_gnu
3501
3502fi
3503echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3504echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3505GCC=`test $ac_compiler_gnu = yes && echo yes`
3506ac_test_CFLAGS=${CFLAGS+set}
3507ac_save_CFLAGS=$CFLAGS
3508CFLAGS="-g"
3509echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3510echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3511if test "${ac_cv_prog_cc_g+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3513else
3514 cat >conftest.$ac_ext <<_ACEOF
3515/* confdefs.h. */
3516_ACEOF
3517cat confdefs.h >>conftest.$ac_ext
3518cat >>conftest.$ac_ext <<_ACEOF
3519/* end confdefs.h. */
3520
3521int
3522main ()
3523{
3524
3525 ;
3526 return 0;
3527}
3528_ACEOF
3529rm -f conftest.$ac_objext
3530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try='test -z "$ac_c_werror_flag"
3539 || test ! -s conftest.err'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; } &&
3545 { ac_try='test -s conftest.$ac_objext'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
9e07f89d
NN
3551 ac_cv_prog_cc_g=yes
3552else
c6b750e1
DJ
3553 echo "$as_me: failed program was:" >&5
3554sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3555
c6b750e1 3556ac_cv_prog_cc_g=no
376a0e54 3557fi
c6b750e1
DJ
3558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3559fi
3560echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3561echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3562if test "$ac_test_CFLAGS" = set; then
c6b750e1 3563 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3564elif test $ac_cv_prog_cc_g = yes; then
3565 if test "$GCC" = yes; then
3566 CFLAGS="-g -O2"
3567 else
3568 CFLAGS="-g"
3569 fi
3570else
3571 if test "$GCC" = yes; then
3572 CFLAGS="-O2"
3573 else
3574 CFLAGS=
3575 fi
3576fi
c6b750e1
DJ
3577echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3578echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3579if test "${ac_cv_prog_cc_stdc+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581else
3582 ac_cv_prog_cc_stdc=no
3583ac_save_CC=$CC
3584cat >conftest.$ac_ext <<_ACEOF
3585/* confdefs.h. */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h. */
3590#include <stdarg.h>
3591#include <stdio.h>
3592#include <sys/types.h>
3593#include <sys/stat.h>
3594/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3595struct buf { int x; };
3596FILE * (*rcsopen) (struct buf *, struct stat *, int);
3597static char *e (p, i)
3598 char **p;
3599 int i;
3600{
3601 return p[i];
3602}
3603static char *f (char * (*g) (char **, int), char **p, ...)
3604{
3605 char *s;
3606 va_list v;
3607 va_start (v,p);
3608 s = g (p, va_arg (v,int));
3609 va_end (v);
3610 return s;
3611}
3612
3613/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3614 function prototypes and stuff, but not '\xHH' hex character constants.
3615 These don't provoke an error unfortunately, instead are silently treated
3616 as 'x'. The following induces an error, until -std1 is added to get
3617 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3618 array size at least. It's necessary to write '\x00'==0 to get something
3619 that's true only with -std1. */
3620int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3621
3622int test (int i, double x);
3623struct s1 {int (*f) (int a);};
3624struct s2 {int (*f) (double a);};
3625int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626int argc;
3627char **argv;
3628int
3629main ()
3630{
3631return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3632 ;
3633 return 0;
3634}
3635_ACEOF
3636# Don't try gcc -ansi; that turns off useful extensions and
3637# breaks some systems' header files.
3638# AIX -qlanglvl=ansi
3639# Ultrix and OSF/1 -std1
3640# HP-UX 10.20 and later -Ae
3641# HP-UX older versions -Aa -D_HPUX_SOURCE
3642# SVR4 -Xc -D__EXTENSIONS__
3643for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3644do
3645 CC="$ac_save_CC $ac_arg"
3646 rm -f conftest.$ac_objext
3647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648 (eval $ac_compile) 2>conftest.er1
3649 ac_status=$?
3650 grep -v '^ *+' conftest.er1 >conftest.err
3651 rm -f conftest.er1
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 { ac_try='test -z "$ac_c_werror_flag"
3656 || test ! -s conftest.err'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; } &&
3662 { ac_try='test -s conftest.$ac_objext'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 ac_cv_prog_cc_stdc=$ac_arg
3669break
3670else
3671 echo "$as_me: failed program was:" >&5
3672sed 's/^/| /' conftest.$ac_ext >&5
3673
3674fi
3675rm -f conftest.err conftest.$ac_objext
3676done
3677rm -f conftest.$ac_ext conftest.$ac_objext
3678CC=$ac_save_CC
3679
3680fi
3681
3682case "x$ac_cv_prog_cc_stdc" in
3683 x|xno)
3684 echo "$as_me:$LINENO: result: none needed" >&5
3685echo "${ECHO_T}none needed" >&6 ;;
3686 *)
3687 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3688echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3689 CC="$CC $ac_cv_prog_cc_stdc" ;;
3690esac
3691
3692# Some people use a C++ compiler to compile C. Since we use `exit',
3693# in C++ we need to declare it. In case someone uses the same compiler
3694# for both compiling C and C++ we need to have the C++ compiler decide
3695# the declaration of exit, since it's the most demanding environment.
3696cat >conftest.$ac_ext <<_ACEOF
3697#ifndef __cplusplus
3698 choke me
3699#endif
3700_ACEOF
3701rm -f conftest.$ac_objext
3702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703 (eval $ac_compile) 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try='test -z "$ac_c_werror_flag"
3711 || test ! -s conftest.err'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; } &&
3717 { ac_try='test -s conftest.$ac_objext'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 (eval $ac_try) 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 for ac_declaration in \
3724 '' \
3725 'extern "C" void std::exit (int) throw (); using std::exit;' \
3726 'extern "C" void std::exit (int); using std::exit;' \
3727 'extern "C" void exit (int) throw ();' \
3728 'extern "C" void exit (int);' \
3729 'void exit (int);'
3730do
3731 cat >conftest.$ac_ext <<_ACEOF
3732/* confdefs.h. */
3733_ACEOF
3734cat confdefs.h >>conftest.$ac_ext
3735cat >>conftest.$ac_ext <<_ACEOF
3736/* end confdefs.h. */
3737$ac_declaration
3738#include <stdlib.h>
3739int
3740main ()
3741{
3742exit (42);
3743 ;
3744 return 0;
3745}
3746_ACEOF
3747rm -f conftest.$ac_objext
3748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749 (eval $ac_compile) 2>conftest.er1
3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } &&
3756 { ac_try='test -z "$ac_c_werror_flag"
3757 || test ! -s conftest.err'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 (eval $ac_try) 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; } &&
3763 { ac_try='test -s conftest.$ac_objext'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 (eval $ac_try) 2>&5
3766 ac_status=$?
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3769 :
3770else
3771 echo "$as_me: failed program was:" >&5
3772sed 's/^/| /' conftest.$ac_ext >&5
3773
3774continue
3775fi
3776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3777 cat >conftest.$ac_ext <<_ACEOF
3778/* confdefs.h. */
3779_ACEOF
3780cat confdefs.h >>conftest.$ac_ext
3781cat >>conftest.$ac_ext <<_ACEOF
3782/* end confdefs.h. */
3783$ac_declaration
3784int
3785main ()
3786{
3787exit (42);
3788 ;
3789 return 0;
3790}
3791_ACEOF
3792rm -f conftest.$ac_objext
3793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794 (eval $ac_compile) 2>conftest.er1
3795 ac_status=$?
3796 grep -v '^ *+' conftest.er1 >conftest.err
3797 rm -f conftest.er1
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
3801 { ac_try='test -z "$ac_c_werror_flag"
3802 || test ! -s conftest.err'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; } &&
3808 { ac_try='test -s conftest.$ac_objext'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3814 break
3815else
3816 echo "$as_me: failed program was:" >&5
3817sed 's/^/| /' conftest.$ac_ext >&5
3818
3819fi
3820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3821done
3822rm -f conftest*
3823if test -n "$ac_declaration"; then
3824 echo '#ifdef __cplusplus' >>confdefs.h
3825 echo $ac_declaration >>confdefs.h
3826 echo '#endif' >>confdefs.h
3827fi
3828
3829else
3830 echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
3833fi
3834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3835ac_ext=c
3836ac_cpp='$CPP $CPPFLAGS'
3837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3840
18f6b6ee
PB
3841ac_ext=cc
3842ac_cpp='$CXXCPP $CPPFLAGS'
3843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3846if test -n "$ac_tool_prefix"; then
3847 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3848 do
3849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3850set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3851echo "$as_me:$LINENO: checking for $ac_word" >&5
3852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853if test "${ac_cv_prog_CXX+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855else
3856 if test -n "$CXX"; then
3857 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3858else
3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH
3861do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3866 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870done
3871done
512b7dfb 3872
18f6b6ee
PB
3873fi
3874fi
3875CXX=$ac_cv_prog_CXX
3876if test -n "$CXX"; then
3877 echo "$as_me:$LINENO: result: $CXX" >&5
3878echo "${ECHO_T}$CXX" >&6
3879else
3880 echo "$as_me:$LINENO: result: no" >&5
3881echo "${ECHO_T}no" >&6
3882fi
3883
3884 test -n "$CXX" && break
3885 done
3886fi
3887if test -z "$CXX"; then
3888 ac_ct_CXX=$CXX
3889 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3890do
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892set dummy $ac_prog; ac_word=$2
3893echo "$as_me:$LINENO: checking for $ac_word" >&5
3894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3895if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3897else
3898 if test -n "$ac_ct_CXX"; then
3899 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3900else
3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_prog_ac_ct_CXX="$ac_prog"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
512b7dfb 3911 fi
18f6b6ee
PB
3912done
3913done
512b7dfb 3914
18f6b6ee
PB
3915fi
3916fi
3917ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3918if test -n "$ac_ct_CXX"; then
3919 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3920echo "${ECHO_T}$ac_ct_CXX" >&6
3921else
3922 echo "$as_me:$LINENO: result: no" >&5
3923echo "${ECHO_T}no" >&6
3924fi
3925
3926 test -n "$ac_ct_CXX" && break
3927done
3928test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3929
3930 CXX=$ac_ct_CXX
3931fi
3932
3933
3934# Provide some information about the compiler.
3935echo "$as_me:$LINENO:" \
3936 "checking for C++ compiler version" >&5
3937ac_compiler=`set X $ac_compile; echo $2`
3938{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3939 (eval $ac_compiler --version </dev/null >&5) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }
3943{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3944 (eval $ac_compiler -v </dev/null >&5) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }
3948{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3949 (eval $ac_compiler -V </dev/null >&5) 2>&5
3950 ac_status=$?
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }
3953
3954echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3955echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3956if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3958else
3959 cat >conftest.$ac_ext <<_ACEOF
3960/* confdefs.h. */
3961_ACEOF
3962cat confdefs.h >>conftest.$ac_ext
3963cat >>conftest.$ac_ext <<_ACEOF
3964/* end confdefs.h. */
3965
3966int
3967main ()
3968{
3969#ifndef __GNUC__
3970 choke me
3971#endif
3972
3973 ;
3974 return 0;
3975}
3976_ACEOF
3977rm -f conftest.$ac_objext
3978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3979 (eval $ac_compile) 2>conftest.er1
3980 ac_status=$?
3981 grep -v '^ *+' conftest.er1 >conftest.err
3982 rm -f conftest.er1
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try='test -z "$ac_cxx_werror_flag"
3987 || test ! -s conftest.err'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try='test -s conftest.$ac_objext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 (eval $ac_try) 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 ac_compiler_gnu=yes
4000else
4001 echo "$as_me: failed program was:" >&5
4002sed 's/^/| /' conftest.$ac_ext >&5
4003
4004ac_compiler_gnu=no
4005fi
4006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4007ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4008
4009fi
4010echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4011echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4012GXX=`test $ac_compiler_gnu = yes && echo yes`
4013ac_test_CXXFLAGS=${CXXFLAGS+set}
4014ac_save_CXXFLAGS=$CXXFLAGS
4015CXXFLAGS="-g"
4016echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4017echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4018if test "${ac_cv_prog_cxx_g+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021 cat >conftest.$ac_ext <<_ACEOF
4022/* confdefs.h. */
4023_ACEOF
4024cat confdefs.h >>conftest.$ac_ext
4025cat >>conftest.$ac_ext <<_ACEOF
4026/* end confdefs.h. */
4027
4028int
4029main ()
4030{
4031
4032 ;
4033 return 0;
4034}
4035_ACEOF
4036rm -f conftest.$ac_objext
4037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_cxx_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 (eval $ac_try) 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4058 ac_cv_prog_cxx_g=yes
4059else
4060 echo "$as_me: failed program was:" >&5
4061sed 's/^/| /' conftest.$ac_ext >&5
4062
4063ac_cv_prog_cxx_g=no
4064fi
4065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4066fi
4067echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4068echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4069if test "$ac_test_CXXFLAGS" = set; then
4070 CXXFLAGS=$ac_save_CXXFLAGS
4071elif test $ac_cv_prog_cxx_g = yes; then
4072 if test "$GXX" = yes; then
4073 CXXFLAGS="-g -O2"
4074 else
4075 CXXFLAGS="-g"
4076 fi
4077else
4078 if test "$GXX" = yes; then
4079 CXXFLAGS="-O2"
4080 else
4081 CXXFLAGS=
4082 fi
4083fi
4084for ac_declaration in \
4085 '' \
4086 'extern "C" void std::exit (int) throw (); using std::exit;' \
4087 'extern "C" void std::exit (int); using std::exit;' \
4088 'extern "C" void exit (int) throw ();' \
4089 'extern "C" void exit (int);' \
4090 'void exit (int);'
4091do
4092 cat >conftest.$ac_ext <<_ACEOF
4093/* confdefs.h. */
4094_ACEOF
4095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
4097/* end confdefs.h. */
4098$ac_declaration
4099#include <stdlib.h>
4100int
4101main ()
4102{
4103exit (42);
4104 ;
4105 return 0;
4106}
4107_ACEOF
4108rm -f conftest.$ac_objext
4109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4110 (eval $ac_compile) 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -z "$ac_cxx_werror_flag"
4118 || test ! -s conftest.err'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; } &&
4124 { ac_try='test -s conftest.$ac_objext'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 (eval $ac_try) 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
4130 :
4131else
4132 echo "$as_me: failed program was:" >&5
4133sed 's/^/| /' conftest.$ac_ext >&5
4134
4135continue
4136fi
4137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4138 cat >conftest.$ac_ext <<_ACEOF
4139/* confdefs.h. */
4140_ACEOF
4141cat confdefs.h >>conftest.$ac_ext
4142cat >>conftest.$ac_ext <<_ACEOF
4143/* end confdefs.h. */
4144$ac_declaration
4145int
4146main ()
4147{
4148exit (42);
4149 ;
4150 return 0;
4151}
4152_ACEOF
4153rm -f conftest.$ac_objext
4154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try='test -z "$ac_cxx_werror_flag"
4163 || test ! -s conftest.err'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 (eval $ac_try) 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 break
4176else
4177 echo "$as_me: failed program was:" >&5
4178sed 's/^/| /' conftest.$ac_ext >&5
4179
4180fi
4181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4182done
4183rm -f conftest*
4184if test -n "$ac_declaration"; then
4185 echo '#ifdef __cplusplus' >>confdefs.h
4186 echo $ac_declaration >>confdefs.h
4187 echo '#endif' >>confdefs.h
4188fi
4189
4190ac_ext=c
4191ac_cpp='$CPP $CPPFLAGS'
4192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195
4196
4197# We must set the default linker to the linker used by gcc for the correct
4198# operation of libtool. If LD is not defined and we are using gcc, try to
4199# set the LD default to the ld used by gcc.
4200if test -z "$LD"; then
4201 if test "$GCC" = yes; then
4202 case $build in
4203 *-*-mingw*)
4204 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4205 *)
4206 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4207 esac
4208 case $gcc_prog_ld in
4209 # Accept absolute paths.
4210 [\\/]* | [A-Za-z]:[\\/]*)
4211 LD="$gcc_prog_ld" ;;
4212 esac
4213 fi
512b7dfb
PB
4214fi
4215
4216
4217
4218
c6b750e1 4219if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4220 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4221set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4222echo "$as_me:$LINENO: checking for $ac_word" >&5
4223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4224if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4225 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4226else
512b7dfb
PB
4227 if test -n "$GNATBIND"; then
4228 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4229else
c6b750e1
DJ
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4237 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 break 2
4240 fi
4241done
4242done
4243
9e07f89d
NN
4244fi
4245fi
512b7dfb
PB
4246GNATBIND=$ac_cv_prog_GNATBIND
4247if test -n "$GNATBIND"; then
4248 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4249echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4250else
c6b750e1
DJ
4251 echo "$as_me:$LINENO: result: no" >&5
4252echo "${ECHO_T}no" >&6
9e07f89d
NN
4253fi
4254
c6b750e1 4255fi
512b7dfb
PB
4256if test -z "$ac_cv_prog_GNATBIND"; then
4257 ac_ct_GNATBIND=$GNATBIND
4258 # Extract the first word of "gnatbind", so it can be a program name with args.
4259set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4260echo "$as_me:$LINENO: checking for $ac_word" >&5
4261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4262if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4263 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4264else
512b7dfb
PB
4265 if test -n "$ac_ct_GNATBIND"; then
4266 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4267else
c6b750e1
DJ
4268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269for as_dir in $PATH
4270do
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4275 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4278 fi
4279done
4280done
4281
512b7dfb 4282 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4283fi
4284fi
512b7dfb
PB
4285ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4286if test -n "$ac_ct_GNATBIND"; then
4287 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4288echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4289else
c6b750e1
DJ
4290 echo "$as_me:$LINENO: result: no" >&5
4291echo "${ECHO_T}no" >&6
9e07f89d
NN
4292fi
4293
512b7dfb 4294 GNATBIND=$ac_ct_GNATBIND
24ff9987 4295else
512b7dfb 4296 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4297fi
4298
7df2cd5d 4299if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4300 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4301set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4302echo "$as_me:$LINENO: checking for $ac_word" >&5
4303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4304if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4306else
512b7dfb
PB
4307 if test -n "$GNATMAKE"; then
4308 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4309else
4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4317 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4320 fi
4321done
4322done
4323
4324fi
4325fi
512b7dfb
PB
4326GNATMAKE=$ac_cv_prog_GNATMAKE
4327if test -n "$GNATMAKE"; then
4328 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4329echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4330else
4331 echo "$as_me:$LINENO: result: no" >&5
4332echo "${ECHO_T}no" >&6
4333fi
4334
4335fi
512b7dfb
PB
4336if test -z "$ac_cv_prog_GNATMAKE"; then
4337 ac_ct_GNATMAKE=$GNATMAKE
4338 # Extract the first word of "gnatmake", so it can be a program name with args.
4339set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4340echo "$as_me:$LINENO: checking for $ac_word" >&5
4341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4342if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344else
512b7dfb
PB
4345 if test -n "$ac_ct_GNATMAKE"; then
4346 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4347else
4348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH
4350do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4355 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 break 2
4358 fi
4359done
4360done
4361
512b7dfb 4362 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4363fi
4364fi
512b7dfb
PB
4365ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4366if test -n "$ac_ct_GNATMAKE"; then
4367 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4368echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4369else
4370 echo "$as_me:$LINENO: result: no" >&5
4371echo "${ECHO_T}no" >&6
4372fi
4373
512b7dfb 4374 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4375else
512b7dfb 4376 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4377fi
4378
c6b750e1
DJ
4379echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4380echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4381if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4383else
4384 cat >conftest.adb <<EOF
4385procedure conftest is begin null; end conftest;
4386EOF
4387acx_cv_cc_gcc_supports_ada=no
4388# There is a bug in old released versions of GCC which causes the
4389# driver to exit successfully when the appropriate language module
4390# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4391# Therefore we must check for the error message as well as an
4392# unsuccessful exit.
b8908782
DD
4393# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4394# given a .adb file, but produce no object file. So we must check
4395# if an object file was really produced to guard against this.
9e07f89d 4396errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4397if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4398 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4399fi
4400rm -f conftest.*
4401fi
c6b750e1
DJ
4402echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4403echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4404
512b7dfb 4405if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4406 have_gnat=yes
4407else
4408 have_gnat=no
4409fi
4410
c6b750e1
DJ
4411echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4412echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4413if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4415else
4416 echo abfoo >t1
4417 echo cdfoo >t2
4418 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4419 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4420 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4421 :
4422 else
4423 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4424 fi
4425 fi
b8908782
DD
4426 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4427 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4428 :
b8908782
DD
4429 else
4430 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4431 fi
4432 fi
4433 rm t1 t2
4434
4435fi
c6b750e1
DJ
4436echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4437echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4438do_compare="$gcc_cv_prog_cmp_skip"
4439
4440
9e07f89d 4441
11b04d1f 4442# Check for GMP and MPFR
4b900473 4443gmplibs="-lmpfr -lgmp"
4b1cb4fe 4444gmpinc=
4b900473
PB
4445have_gmp=no
4446
11b04d1f
DD
4447# Specify a location for mpfr
4448# check for this first so it ends up on the link line before gmp.
c6b750e1 4449
11b04d1f
DD
4450# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4451if test "${with_mpfr_dir+set}" = set; then
4452 withval="$with_mpfr_dir"
c6b750e1
DJ
4453 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4454Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4455echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4456Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4457 { (exit 1); exit 1; }; }
4458fi;
11b04d1f
DD
4459
4460
11b04d1f
DD
4461# Check whether --with-mpfr or --without-mpfr was given.
4462if test "${with_mpfr+set}" = set; then
4463 withval="$with_mpfr"
c6b750e1
DJ
4464
4465fi;
11b04d1f 4466
8a0d8a5c
PB
4467# Check whether --with-mpfr_include or --without-mpfr_include was given.
4468if test "${with_mpfr_include+set}" = set; then
4469 withval="$with_mpfr_include"
c6b750e1
DJ
4470
4471fi;
8a0d8a5c
PB
4472
4473# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4474if test "${with_mpfr_lib+set}" = set; then
4475 withval="$with_mpfr_lib"
8a0d8a5c 4476
c6b750e1 4477fi;
11b04d1f
DD
4478
4479if test "x$with_mpfr" != x; then
4480 gmplibs="-L$with_mpfr/lib $gmplibs"
4481 gmpinc="-I$with_mpfr/include"
4482fi
8a0d8a5c
PB
4483if test "x$with_mpfr_include" != x; then
4484 gmpinc="-I$with_mpfr_include"
4485fi
4486if test "x$with_mpfr_lib" != x; then
4487 gmplibs="-L$with_mpfr_lib $gmplibs"
4488fi
4b900473
PB
4489if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4490 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4491 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4492 # Do not test the mpfr version. Assume that it is sufficient, since
4493 # it is in the source tree, and the library has not been built yet
4494 # but it would be included on the link line in the version check below
4495 # hence making the test fail.
4496 have_gmp=yes
4497fi
11b04d1f 4498
4b1cb4fe 4499# Specify a location for gmp
c6b750e1 4500
4b1cb4fe
DD
4501# Check whether --with-gmp-dir or --without-gmp-dir was given.
4502if test "${with_gmp_dir+set}" = set; then
4503 withval="$with_gmp_dir"
c6b750e1
DJ
4504 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4505Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4506echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4507Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4508 { (exit 1); exit 1; }; }
4509fi;
4b1cb4fe
DD
4510
4511
4b1cb4fe
DD
4512# Check whether --with-gmp or --without-gmp was given.
4513if test "${with_gmp+set}" = set; then
4514 withval="$with_gmp"
c6b750e1
DJ
4515
4516fi;
4b1cb4fe 4517
8a0d8a5c
PB
4518# Check whether --with-gmp_include or --without-gmp_include was given.
4519if test "${with_gmp_include+set}" = set; then
4520 withval="$with_gmp_include"
c6b750e1
DJ
4521
4522fi;
8a0d8a5c
PB
4523
4524# Check whether --with-gmp_lib or --without-gmp_lib was given.
4525if test "${with_gmp_lib+set}" = set; then
4526 withval="$with_gmp_lib"
8a0d8a5c 4527
c6b750e1 4528fi;
8a0d8a5c 4529
4b1cb4fe 4530
11b04d1f
DD
4531if test "x$with_gmp" != x; then
4532 gmplibs="-L$with_gmp/lib $gmplibs"
4533 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4534fi
8a0d8a5c
PB
4535if test "x$with_gmp_include" != x; then
4536 gmpinc="-I$with_gmp_include $gmpinc"
4537fi
4538if test "x$with_gmp_lib" != x; then
4539 gmplibs="-L$with_gmp_lib $gmplibs"
4540fi
4b900473
PB
4541if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4542 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4543 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4544 # Do not test the gmp version. Assume that it is sufficient, since
4545 # it is in the source tree, and the library has not been built yet
4546 # but it would be included on the link line in the version check below
4547 # hence making the test fail.
4548 have_gmp=yes
4549fi
4b1cb4fe 4550
ceb92e78 4551if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4552 have_gmp=yes
4553 saved_CFLAGS="$CFLAGS"
4554 CFLAGS="$CFLAGS $gmpinc"
4555 # Check GMP actually works
c6b750e1
DJ
4556 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4557echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4558
4559cat >conftest.$ac_ext <<_ACEOF
4560/* confdefs.h. */
4561_ACEOF
4562cat confdefs.h >>conftest.$ac_ext
4563cat >>conftest.$ac_ext <<_ACEOF
4564/* end confdefs.h. */
4b1cb4fe 4565#include "gmp.h"
c6b750e1
DJ
4566int
4567main ()
4568{
4b1cb4fe 4569
4b900473
PB
4570 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4571 choke me
4572 #endif
c6b750e1
DJ
4573
4574 ;
4575 return 0;
4576}
4577_ACEOF
4578rm -f conftest.$ac_objext
4579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>conftest.er1
4581 ac_status=$?
4582 grep -v '^ *+' conftest.er1 >conftest.err
4583 rm -f conftest.er1
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -z "$ac_c_werror_flag"
4588 || test ! -s conftest.err'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; } &&
4594 { ac_try='test -s conftest.$ac_objext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4600 echo "$as_me:$LINENO: result: yes" >&5
4601echo "${ECHO_T}yes" >&6
4602else
4603 echo "$as_me: failed program was:" >&5
4604sed 's/^/| /' conftest.$ac_ext >&5
4605
4606echo "$as_me:$LINENO: result: no" >&5
4607echo "${ECHO_T}no" >&6; have_gmp=no
4608fi
4609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4610
4b900473
PB
4611 if test x"$have_gmp" = xyes; then
4612 saved_LIBS="$LIBS"
4613 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4614 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4615echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4616 cat >conftest.$ac_ext <<_ACEOF
4617/* confdefs.h. */
4618_ACEOF
4619cat confdefs.h >>conftest.$ac_ext
4620cat >>conftest.$ac_ext <<_ACEOF
4621/* end confdefs.h. */
9b134994 4622#include <gmp.h>
4b900473 4623 #include <mpfr.h>
c6b750e1
DJ
4624int
4625main ()
4626{
9b134994 4627
57c53b2b 4628 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4b900473
PB
4629 choke me
4630 #endif
a3ca38d2
DD
4631 mpfr_t n;
4632 mpfr_t x;
4b900473 4633 int t;
a3ca38d2
DD
4634 mpfr_init (n);
4635 mpfr_init (x);
4b900473
PB
4636 mpfr_atan2 (n, n, x, GMP_RNDN);
4637 mpfr_erfc (n, x, GMP_RNDN);
4638 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4639
4640 ;
4641 return 0;
4642}
4643_ACEOF
4644rm -f conftest.$ac_objext conftest$ac_exeext
4645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4646 (eval $ac_link) 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -z "$ac_c_werror_flag"
4654 || test ! -s conftest.err'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 (eval $ac_try) 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; } &&
4660 { ac_try='test -s conftest$ac_exeext'
4661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 (eval $ac_try) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }; then
4666 cat >conftest.$ac_ext <<_ACEOF
4667/* confdefs.h. */
4668_ACEOF
4669cat confdefs.h >>conftest.$ac_ext
4670cat >>conftest.$ac_ext <<_ACEOF
4671/* end confdefs.h. */
4b1cb4fe 4672#include <gmp.h>
4b900473 4673 #include <mpfr.h>
c6b750e1
DJ
4674int
4675main ()
4676{
9dbaa842 4677
57c53b2b 4678 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4b900473
PB
4679 choke me
4680 #endif
4681 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4682
4683 ;
4684 return 0;
4685}
4686_ACEOF
4687rm -f conftest.$ac_objext conftest$ac_exeext
4688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4689 (eval $ac_link) 2>conftest.er1
4690 ac_status=$?
4691 grep -v '^ *+' conftest.er1 >conftest.err
4692 rm -f conftest.er1
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
4696 { ac_try='test -z "$ac_c_werror_flag"
4697 || test ! -s conftest.err'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 (eval $ac_try) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; } &&
4703 { ac_try='test -s conftest$ac_exeext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 (eval $ac_try) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 echo "$as_me:$LINENO: result: yes" >&5
4710echo "${ECHO_T}yes" >&6
4711else
4712 echo "$as_me: failed program was:" >&5
4713sed 's/^/| /' conftest.$ac_ext >&5
4714
4715echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4716echo "${ECHO_T}buggy but acceptable" >&6
4717fi
4718rm -f conftest.err conftest.$ac_objext \
4719 conftest$ac_exeext conftest.$ac_ext
4720else
4721 echo "$as_me: failed program was:" >&5
4722sed 's/^/| /' conftest.$ac_ext >&5
4723
4724echo "$as_me:$LINENO: result: no" >&5
4725echo "${ECHO_T}no" >&6; have_gmp=no
4726fi
4727rm -f conftest.err conftest.$ac_objext \
4728 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4729 LIBS="$saved_LIBS"
4730 fi
4731 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4732
4b900473 4733 if test x$have_gmp != xyes; then
57c53b2b 4734 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
c6b750e1
DJ
4735Try the --with-gmp and/or --with-mpfr options to specify their locations.
4736Copies of these libraries' source code can be found at their respective
4737hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4738See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4739If you obtained GMP and/or MPFR from a vendor distribution package, make
4740sure that you have installed both the libraries and the header files.
4741They may be located in separate packages." >&5
57c53b2b 4742echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
9dbaa842
DD
4743Try the --with-gmp and/or --with-mpfr options to specify their locations.
4744Copies of these libraries' source code can be found at their respective
4745hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4746See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4747If you obtained GMP and/or MPFR from a vendor distribution package, make
4748sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4749They may be located in separate packages." >&2;}
4750 { (exit 1); exit 1; }; }
4b900473 4751 fi
9dbaa842
DD
4752fi
4753
11b04d1f 4754# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4755
4756
4757
947f426e 4758# By default, C is the only stage 1 language.
9b134994 4759stage1_languages=,c,
1d39f329 4760
9e07f89d
NN
4761# Figure out what language subdirectories are present.
4762# Look if the user specified --enable-languages="..."; if not, use
4763# the environment variable $LANGUAGES if defined. $LANGUAGES might
4764# go away some day.
4765# NB: embedded tabs in this IF block -- do not untabify
4766if test -d ${srcdir}/gcc; then
4767 if test x"${enable_languages+set}" != xset; then
4768 if test x"${LANGUAGES+set}" = xset; then
4769 enable_languages="${LANGUAGES}"
4770 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4771 else
4772 enable_languages=all
4773 fi
4774 else
4775 if test x"${enable_languages}" = x ||
4776 test x"${enable_languages}" = xyes;
4777 then
4778 echo configure.in: --enable-languages needs at least one language argument 1>&2
4779 exit 1
4780 fi
4781 fi
4782 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4783
096f7d00
DE
4784 # 'f95' is the old name for the 'fortran' language. We issue a warning
4785 # and make the substitution.
4786 case ,${enable_languages}, in
4787 *,f95,*)
4788 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4789 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4790 ;;
4791 esac
4792
9e07f89d
NN
4793 # First scan to see if an enabled language requires some other language.
4794 # We assume that a given config-lang.in will list all the language
4795 # front ends it requires, even if some are required indirectly.
4796 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4797 case ${lang_frag} in
4798 ..) ;;
4799 # The odd quoting in the next line works around
4800 # an apparent bug in bash 1.12 on linux.
4801 ${srcdir}/gcc/[*]/config-lang.in) ;;
4802 *)
4803 # From the config-lang.in, get $language, $lang_requires
4804 language=
4805 lang_requires=
4806 . ${lang_frag}
4807 for other in ${lang_requires} ; do
4808 case ,${enable_languages}, in
4809 *,$other,*) ;;
4810 *,all,*) ;;
4811 *,$language,*)
4812 echo " \`$other' language required by \`$language'; enabling" 1>&2
4813 enable_languages="${enable_languages},${other}"
4814 ;;
4815 esac
4816 done
4817 ;;
4818 esac
4819 done
4820
9b134994 4821 new_enable_languages=,c,
9e07f89d 4822 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4823 potential_languages=,c,
9e07f89d
NN
4824
4825 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4826 case ${lang_frag} in
4827 ..) ;;
4828 # The odd quoting in the next line works around
4829 # an apparent bug in bash 1.12 on linux.
4830 ${srcdir}/gcc/[*]/config-lang.in) ;;
4831 *)
c6b750e1 4832 # From the config-lang.in, get $language, $target_libs,
1d39f329 4833 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4834 language=
4835 target_libs=
4836 lang_dirs=
64ce424c 4837 subdir_requires=
9b134994
PB
4838 boot_language=no
4839 build_by_default=yes
9e07f89d 4840 . ${lang_frag}
9b134994
PB
4841 if test x${language} = x; then
4842 echo "${lang_frag} doesn't set \$language." 1>&2
4843 exit 1
4844 fi
4845
4846 case ,${enable_languages}, in
4847 *,${language},*)
9e07f89d
NN
4848 # Language was explicitly selected; include it.
4849 add_this_lang=yes
4850 ;;
9b134994
PB
4851 *,all,*)
4852 # 'all' was selected, select it if it is a default language
4853 add_this_lang=${build_by_default}
9e07f89d
NN
4854 ;;
4855 *)
4856 add_this_lang=no
4857 ;;
4858 esac
4b1cb4fe 4859
64ce424c 4860 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4861 for i in $subdir_requires; do
3d3adb43 4862 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4863 case ,${enable_languages}, in
4864 *,${language},*)
4865 # Specifically requested language; tell them.
c6b750e1
DJ
4866 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4867echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4868 { (exit 1); exit 1; }; }
64ce424c
PB
4869 ;;
4870 *)
4871 # Silently disable.
9b134994 4872 add_this_lang=unsupported
64ce424c
PB
4873 ;;
4874 esac
4875 done
4876
9b134994
PB
4877 # Disable Ada if no preexisting GNAT is available.
4878 case ,${enable_languages},:${language}:${have_gnat} in
4879 *,${language},*:ada:no)
4880 # Specifically requested language; tell them.
c6b750e1
DJ
4881 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4882echo "$as_me: error: GNAT is required to build $language" >&2;}
4883 { (exit 1); exit 1; }; }
9b134994
PB
4884 ;;
4885 *:ada:no)
4886 # Silently disable.
4887 add_this_lang=unsupported
4888 ;;
4889 esac
4890
59f7ec45
HPN
4891 # Disable a language that is unsupported by the target.
4892 case " $unsupported_languages " in
4893 *" $language "*)
9b134994 4894 add_this_lang=unsupported
59f7ec45
HPN
4895 ;;
4896 esac
4897
4b1cb4fe 4898 case $add_this_lang in
9b134994 4899 unsupported)
9e07f89d 4900 # Remove language-dependent dirs.
1d39f329
NN
4901 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4902 ;;
9b134994
PB
4903 no)
4904 # Remove language-dependent dirs; still show language as supported.
4905 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4906 potential_languages="${potential_languages}${language},"
4907 ;;
4908 yes)
4909 new_enable_languages="${new_enable_languages}${language},"
4910 potential_languages="${potential_languages}${language},"
1d39f329
NN
4911 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4912 case ${boot_language} in
4913 yes)
4fa63067 4914 # Add to (comma-separated) list of stage 1 languages.
9b134994 4915 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4916 ;;
4917 esac
4918 ;;
9e07f89d
NN
4919 esac
4920 ;;
4921 esac
4922 done
4923
9b134994
PB
4924 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4925if test "${enable_stage1_languages+set}" = set; then
4926 enableval="$enable_stage1_languages"
4927 case ,${enable_stage1_languages}, in
4928 ,no,|,,)
4929 # Set it to something that will have no effect in the loop below
4930 enable_stage1_languages=c ;;
4931 ,yes,)
4932 enable_stage1_languages=`echo $new_enable_languages | \
4933 sed -e "s/^,//" -e "s/,$//" ` ;;
4934 *,all,*)
4935 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4936 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4937 esac
4938
4939 # Add "good" languages from enable_stage1_languages to stage1_languages,
4940 # while "bad" languages go in missing_languages. Leave no duplicates.
4941 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4942 case $potential_languages in
4943 *,$i,*)
4944 case $stage1_languages in
4945 *,$i,*) ;;
4946 *) stage1_languages="$stage1_languages$i," ;;
4947 esac ;;
4948 *)
4949 case $missing_languages in
4950 *,$i,*) ;;
4951 *) missing_languages="$missing_languages$i," ;;
4952 esac ;;
4953 esac
4954 done
c6b750e1 4955fi;
9b134994
PB
4956
4957 # Remove leading/trailing commas that were added for simplicity
4958 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4959 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4960 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4961 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4962
9e07f89d 4963 if test "x$missing_languages" != x; then
c6b750e1 4964 { { echo "$as_me:$LINENO: error:
27258dd4 4965The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4966Supported languages are: ${potential_languages}" >&5
4967echo "$as_me: error:
4968The following requested languages could not be built: ${missing_languages}
4969Supported languages are: ${potential_languages}" >&2;}
4970 { (exit 1); exit 1; }; }
9e07f89d 4971 fi
9e07f89d
NN
4972 if test "x$new_enable_languages" != "x$enable_languages"; then
4973 echo The following languages will be built: ${new_enable_languages}
9b134994 4974 enable_languages="$new_enable_languages"
9e07f89d 4975 fi
9b134994 4976
c6b750e1 4977
81ec575a 4978 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4979fi
4980
a6df5a19
PB
4981# Handle --disable-<component> generically.
4982for dir in $configdirs $build_configdirs $target_configdirs ; do
4983 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
4984 varname=`echo $dirname | sed -e s/+/_/g`
4985 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
4986 noconfigdirs="$noconfigdirs $dir"
4987 fi
4988done
4989
4f0ef2d8
CD
4990# Check for Boehm's garbage collector
4991# Check whether --enable-objc-gc or --disable-objc-gc was given.
4992if test "${enable_objc_gc+set}" = set; then
4993 enableval="$enable_objc_gc"
4994 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4995 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4996 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4997echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4998 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4999 ;;
5000esac
c6b750e1 5001fi;
4f0ef2d8
CD
5002
5003# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5004case ,${enable_languages},:${enable_objc_gc} in
5005 *,objc,*:yes)
4f0ef2d8
CD
5006 # Keep target-boehm-gc if requested for Objective-C.
5007 ;;
4f0ef2d8 5008 *)
d42c4017
DA
5009 # Otherwise remove target-boehm-gc depending on target-libjava.
5010 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5011 noconfigdirs="$noconfigdirs target-boehm-gc"
5012 fi
4f0ef2d8
CD
5013 ;;
5014esac
5015
caeba88f
AL
5016# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5017# $build_configdirs and $target_configdirs.
9e07f89d
NN
5018# If we have the source for $noconfigdirs entries, add them to $notsupp.
5019
5020notsupp=""
5021for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5022 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5023 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5024 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5025 if test -r $srcdir/$dirname/configure ; then
5026 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5027 true
5028 else
5029 notsupp="$notsupp $dir"
5030 fi
5031 fi
5032 fi
caeba88f
AL
5033 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5034 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5035 if test -r $srcdir/$dirname/configure ; then
5036 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5037 true
5038 else
5039 notsupp="$notsupp $dir"
5040 fi
5041 fi
5042 fi
9e07f89d
NN
5043 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5044 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5045 if test -r $srcdir/$dirname/configure ; then
5046 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5047 true
5048 else
5049 notsupp="$notsupp $dir"
5050 fi
5051 fi
5052 fi
5053done
5054
5055# Sometimes the tools are distributed with libiberty but with no other
5056# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5057# Don't let libgcc imply libiberty either.
9e07f89d 5058if test -n "${target_configdirs}" ; then
f86e35b8 5059 libgcc=
9e07f89d
NN
5060 others=
5061 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5062 if test "$i" = "libgcc"; then
5063 libgcc=target-libgcc
5064 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5065 if test -r $srcdir/$i/configure ; then
5066 others=yes;
5067 break;
5068 fi
5069 fi
5070 done
5071 if test -z "${others}" ; then
f86e35b8 5072 target_configdirs=$libgcc
9e07f89d
NN
5073 fi
5074fi
5075
5076# Quietly strip out all directories which aren't configurable in this tree.
5077# This relies on all configurable subdirectories being autoconfiscated, which
5078# is now the case.
6a9cf61e
PB
5079build_configdirs_all="$build_configdirs"
5080build_configdirs=
5081for i in ${build_configdirs_all} ; do
c6b750e1 5082 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5083 if test -f ${srcdir}/$j/configure ; then
5084 build_configdirs="${build_configdirs} $i"
5085 fi
5086done
5087
9e07f89d
NN
5088configdirs_all="$configdirs"
5089configdirs=
5090for i in ${configdirs_all} ; do
5091 if test -f ${srcdir}/$i/configure ; then
5092 configdirs="${configdirs} $i"
5093 fi
5094done
6a9cf61e 5095
9e07f89d
NN
5096target_configdirs_all="$target_configdirs"
5097target_configdirs=
5098for i in ${target_configdirs_all} ; do
c6b750e1 5099 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5100 if test -f ${srcdir}/$j/configure ; then
5101 target_configdirs="${target_configdirs} $i"
5102 fi
5103done
5104
5105# Produce a warning message for the subdirs we can't configure.
5106# This isn't especially interesting in the Cygnus tree, but in the individual
5107# FSF releases, it's important to let people know when their machine isn't
5108# supported by the one or two programs in a package.
5109
5110if test -n "${notsupp}" && test -z "${norecursion}" ; then
5111 # If $appdirs is non-empty, at least one of those directories must still
5112 # be configured, or we error out. (E.g., if the gas release supports a
5113 # specified target in some subdirs but not the gas subdir, we shouldn't
5114 # pretend that all is well.)
5115 if test -n "$appdirs" ; then
5116 for dir in $appdirs ; do
5117 if test -r $dir/Makefile.in ; then
5118 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5119 appdirs=""
5120 break
5121 fi
6a9cf61e 5122 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5123 appdirs=""
5124 break
5125 fi
5126 fi
5127 done
5128 if test -n "$appdirs" ; then
5129 echo "*** This configuration is not supported by this package." 1>&2
5130 exit 1
5131 fi
5132 fi
5133 # Okay, some application will build, or we don't care to check. Still
5134 # notify of subdirs not getting built.
5135 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5136 echo " ${notsupp}" 1>&2
5137 echo " (Any other directories should still work fine.)" 1>&2
5138fi
5139
5140case "$host" in
5141 *msdosdjgpp*)
5142 enable_gdbtk=no ;;
5143esac
5144
18f6b6ee
PB
5145# To find our prefix, in gcc_cv_tool_prefix.
5146
5147# The user is always right.
5148if test "${PATH_SEPARATOR+set}" != set; then
5149 echo "#! /bin/sh" >conf$$.sh
5150 echo "exit 0" >>conf$$.sh
5151 chmod +x conf$$.sh
5152 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5153 PATH_SEPARATOR=';'
5154 else
5155 PATH_SEPARATOR=:
5156 fi
5157 rm -f conf$$.sh
5158fi
5159
5160
5161
5162if test "x$exec_prefix" = xNONE; then
5163 if test "x$prefix" = xNONE; then
5164 gcc_cv_tool_prefix=$ac_default_prefix
5165 else
5166 gcc_cv_tool_prefix=$prefix
5167 fi
5168else
5169 gcc_cv_tool_prefix=$exec_prefix
5170fi
5171
5172# If there is no compiler in the tree, use the PATH only. In any
5173# case, if there is no compiler in the tree nobody should use
5174# AS_FOR_TARGET and LD_FOR_TARGET.
5175if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5176 gcc_version=`cat $srcdir/gcc/BASE-VER`
5177 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5178 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5179 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5180 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5181 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5182 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5183else
5184 gcc_cv_tool_dirs=
5185fi
5186
5187if test x$build = x$target && test -n "$md_exec_prefix"; then
5188 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5189fi
5190
5191
5192
9e07f89d
NN
5193copy_dirs=
5194
c6b750e1 5195
a19b6204
MM
5196# Check whether --with-build-sysroot or --without-build-sysroot was given.
5197if test "${with_build_sysroot+set}" = set; then
5198 withval="$with_build_sysroot"
5199 if test x"$withval" != x ; then
5200 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5201 fi
5202else
5203 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5204fi;
a19b6204
MM
5205
5206
8a6ee3ab
JM
5207
5208# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5209if test "${with_debug_prefix_map+set}" = set; then
5210 withval="$with_debug_prefix_map"
5211 if test x"$withval" != x; then
5212 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213 for debug_map in $withval; do
5214 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5215 done
5216 fi
5217else
5218 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5219fi;
5220
5221
7f6ef0c0
PB
5222# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5223# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5224# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5225# We want to ensure that TARGET libraries (which we know are built with
5226# gcc) are built with "-O2 -g", so include those options when setting
5227# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5228if test "x$CFLAGS_FOR_TARGET" = x; then
5229 CFLAGS_FOR_TARGET=$CFLAGS
5230 case " $CFLAGS " in
5231 *" -O2 "*) ;;
5232 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5233 esac
5234 case " $CFLAGS " in
5235 *" -g "* | *" -g3 "*) ;;
5236 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5237 esac
5238fi
5239
5240
5241if test "x$CXXFLAGS_FOR_TARGET" = x; then
5242 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5243 case " $CXXFLAGS " in
5244 *" -O2 "*) ;;
5245 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5246 esac
5247 case " $CXXFLAGS " in
5248 *" -g "* | *" -g3 "*) ;;
5249 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5250 esac
5251fi
5252
5253
9e07f89d
NN
5254# Handle --with-headers=XXX. If the value is not "yes", the contents of
5255# the named directory are copied to $(tooldir)/sys-include.
5256if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5257 if test x${is_cross_compiler} = xno ; then
5258 echo 1>&2 '***' --with-headers is only supported when cross compiling
5259 exit 1
5260 fi
5261 if test x"${with_headers}" != xyes ; then
18f6b6ee 5262 x=${gcc_cv_tool_prefix}
c6b750e1 5263 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5264 fi
5265fi
5266
5267# Handle --with-libs=XXX. If the value is not "yes", the contents of
5268# the name directories are copied to $(tooldir)/lib. Multiple directories
5269# are permitted.
5270if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5271 if test x${is_cross_compiler} = xno ; then
5272 echo 1>&2 '***' --with-libs is only supported when cross compiling
5273 exit 1
5274 fi
5275 if test x"${with_libs}" != xyes ; then
5276 # Copy the libraries in reverse order, so that files in the first named
5277 # library override files in subsequent libraries.
18f6b6ee 5278 x=${gcc_cv_tool_prefix}
9e07f89d 5279 for l in ${with_libs}; do
c6b750e1 5280 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5281 done
5282 fi
5283fi
5284
2429c060
PB
5285# Set with_gnu_as and with_gnu_ld as appropriate.
5286#
5287# This is done by determining whether or not the appropriate directory
5288# is available, and by checking whether or not specific configurations
5289# have requested that this magic not happen.
c6b750e1
DJ
5290#
5291# The command line options always override the explicit settings in
2429c060
PB
5292# configure.in, and the settings in configure.in override this magic.
5293#
c6b750e1 5294# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5295# want to do that, then you should use the --without-gnu-as and
5296# --without-gnu-ld options for the configure script.
5297
5298if test x${use_gnu_as} = x &&
5299 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5300 with_gnu_as=yes
5301 extra_host_args="$extra_host_args --with-gnu-as"
5302fi
5303
5304if test x${use_gnu_ld} = x &&
93f9b408 5305 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
5306 with_gnu_ld=yes
5307 extra_host_args="$extra_host_args --with-gnu-ld"
5308fi
5309
5310# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5311# can detect this case.
5312
5313if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5314 with_newlib=yes
5315 extra_host_args="$extra_host_args --with-newlib"
5316fi
5317
9e07f89d
NN
5318# Handle ${copy_dirs}
5319set fnord ${copy_dirs}
5320shift
5321while test $# != 0 ; do
5322 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5323 :
5324 else
5325 echo Copying $1 to $2
5326
5327 # Use the install script to create the directory and all required
5328 # parent directories.
5329 if test -d $2 ; then
5330 :
5331 else
5332 echo >config.temp
5333 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5334 fi
5335
5336 # Copy the directory, assuming we have tar.
5337 # FIXME: Should we use B in the second tar? Not all systems support it.
5338 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5339
5340 # It is the responsibility of the user to correctly adjust all
5341 # symlinks. If somebody can figure out how to handle them correctly
5342 # here, feel free to add the code.
5343
5344 echo $1 > $2/COPIED
5345 fi
5346 shift; shift
5347done
5348
2429c060
PB
5349# Determine a target-dependent exec_prefix that the installed
5350# gcc will search in. Keep this list sorted by triplet, with
5351# the *-*-osname triplets last.
5352md_exec_prefix=
5353case "${target}" in
5354 alpha*-*-*vms*)
5355 md_exec_prefix=/gnu/lib/gcc-lib
5356 ;;
521ec477 5357 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5358 md_exec_prefix=/dev/env/DJDIR/bin
5359 ;;
521ec477 5360 i[34567]86-*-sco3.2v5*)
2429c060
PB
5361 if test $with_gnu_as = yes; then
5362 md_exec_prefix=/usr/gnu/bin
5363 else
5364 md_exec_prefix=/usr/ccs/bin/elf
5365 fi
5366 ;;
5367
5368 mn10300-*-* | \
5369 powerpc-*-chorusos* | \
5370 powerpc*-*-eabi* | \
5371 powerpc*-*-sysv* | \
5372 powerpc*-*-kaos* | \
5373 s390x-ibm-tpf*)
5374 md_exec_prefix=/usr/ccs/bin
5375 ;;
5376 sparc64-*-elf*)
5377 ;;
5378 v850*-*-*)
5379 md_exec_prefix=/usr/ccs/bin
5380 ;;
8b66833e 5381 xtensa*-*-elf*)
2429c060
PB
5382 ;;
5383
5384 *-*-beos* | \
5385 *-*-elf* | \
5386 *-*-hpux* | \
5387 *-*-netware* | \
5388 *-*-nto-qnx* | \
5389 *-*-rtems* | \
5390 *-*-solaris2* | \
521ec477 5391 *-*-sysv[45]* | \
2429c060
PB
5392 *-*-vxworks* | \
5393 *-wrs-windiss)
5394 md_exec_prefix=/usr/ccs/bin
5395 ;;
5396esac
5397
a0da8069
NN
5398extra_arflags_for_target=
5399extra_nmflags_for_target=
5400extra_ranlibflags_for_target=
5401target_makefile_frag=/dev/null
5402case "${target}" in
4e206d7e
DB
5403 mep*-*-*)
5404 target_makefile_frag="config/mt-mep"
5405 ;;
77d7106f
AM
5406 spu-*-*)
5407 target_makefile_frag="config/mt-spu"
5408 ;;
429acdec
RS
5409 mips*-sde-elf*)
5410 target_makefile_frag="config/mt-sde"
5411 ;;
f3b1e08e
RS
5412 mipsisa*-*-elfoabi*)
5413 target_makefile_frag="config/mt-mips-elfoabi"
5414 ;;
2a3124ca 5415 *-*-netware*)
a0da8069
NN
5416 target_makefile_frag="config/mt-netware"
5417 ;;
3d6dfe0f
NN
5418 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5419 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5420 ;;
5421 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5422 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5423 # commands to handle both 32-bit and 64-bit objects. These flags are
5424 # harmless if we're using GNU nm or ar.
5425 extra_arflags_for_target=" -X32_64"
5426 extra_nmflags_for_target=" -B -X32_64"
5427 ;;
5428 *-*-darwin*)
5429 # ranlib from Darwin requires the -c flag to look at common symbols.
5430 extra_ranlibflags_for_target=" -c"
5431 ;;
5432 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5433 target_makefile_frag="config/mt-wince"
5434 ;;
5435esac
5436
5437alphaieee_frag=/dev/null
5438case $target in
5439 alpha*-*-*)
5440 # This just makes sure to use the -mieee option to build target libs.
5441 # This should probably be set individually by each library.
5442 alphaieee_frag="config/mt-alphaieee"
5443 ;;
5444esac
5445
5446# If --enable-target-optspace always use -Os instead of -O2 to build
5447# the target libraries, similarly if it is not specified, use -Os
5448# on selected platforms.
5449ospace_frag=/dev/null
5450case "${enable_target_optspace}:${target}" in
5451 yes:*)
5452 ospace_frag="config/mt-ospace"
5453 ;;
5454 :d30v-*)
5455 ospace_frag="config/mt-d30v"
5456 ;;
5457 :m32r-* | :d10v-* | :fr30-*)
5458 ospace_frag="config/mt-ospace"
5459 ;;
5460 no:* | :*)
5461 ;;
5462 *)
5463 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5464 ;;
5465esac
5466
a0da8069
NN
5467# Default to using --with-stabs for certain targets.
5468if test x${with_stabs} = x ; then
5469 case "${target}" in
e31d1ea3 5470 mips*-*-irix[56]*)
a0da8069
NN
5471 ;;
5472 mips*-*-* | alpha*-*-osf*)
5473 with_stabs=yes;
5474 extra_host_args="${extra_host_args} --with-stabs"
5475 ;;
5476 esac
5477fi
5478
5479# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5480# them automatically.
5481case "${host}" in
c6b750e1 5482 hppa*64*-*-hpux11*)
a0da8069
NN
5483 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5484 ;;
5485esac
5486
a0da8069
NN
5487# Some systems (e.g., one of the i386-aix systems the gas testers are
5488# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5489tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5490build_tooldir=${tooldir}
5491
a0da8069
NN
5492# Create a .gdbinit file which runs the one in srcdir
5493# and tells GDB to look there for source files.
5494
5495if test -r ${srcdir}/.gdbinit ; then
5496 case ${srcdir} in
5497 .) ;;
5498 *) cat > ./.gdbinit <<EOF
5499# ${NO_EDIT}
5500dir ${srcdir}
5501dir .
5502source ${srcdir}/.gdbinit
5503EOF
5504 ;;
5505 esac
5506fi
5507
a0da8069
NN
5508# Make sure that the compiler is able to generate an executable. If it
5509# can't, we are probably in trouble. We don't care whether we can run the
5510# executable--we might be using a cross compiler--we only care whether it
5511# can be created. At this point the main configure script has set CC.
5512we_are_ok=no
5513echo "int main () { return 0; }" > conftest.c
5514${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5515if test $? = 0 ; then
5516 if test -s conftest || test -s conftest.exe ; then
5517 we_are_ok=yes
5518 fi
c6b750e1 5519fi
a0da8069
NN
5520case $we_are_ok in
5521 no)
5522 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5523 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5524 rm -f conftest*
5525 exit 1
5526 ;;
5527esac
5528rm -f conftest*
5529
5530# The Solaris /usr/ucb/cc compiler does not appear to work.
5531case "${host}" in
5532 sparc-sun-solaris2*)
5533 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5534 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5535 could_use=
5536 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5537 if test -d /opt/cygnus/bin ; then
5538 if test "$could_use" = "" ; then
5539 could_use="/opt/cygnus/bin"
5540 else
5541 could_use="$could_use or /opt/cygnus/bin"
5542 fi
5543 fi
5544 if test "$could_use" = "" ; then
5545 echo "Warning: compilation may fail because you're using"
5546 echo "/usr/ucb/cc. You should change your PATH or CC "
5547 echo "variable and rerun configure."
5548 else
5549 echo "Warning: compilation may fail because you're using"
5550 echo "/usr/ucb/cc, when you should use the C compiler from"
5551 echo "$could_use. You should change your"
5552 echo "PATH or CC variable and rerun configure."
5553 fi
5554 fi
5555 ;;
5556esac
5557
a0da8069
NN
5558case "${host}" in
5559 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5560 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5561 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5562esac
5563
5564# Record target_configdirs and the configure arguments for target and
5565# build configuration in Makefile.
5566target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5567build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5568
a0da8069
NN
5569# Determine whether gdb needs tk/tcl or not.
5570# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5571# and in that case we want gdb to be built without tk. Ugh!
5572# In fact I believe gdb is the *only* package directly dependent on tk,
5573# so we should be able to put the 'maybe's in unconditionally and
5574# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5575# 100% sure that that's safe though.
c180f501 5576
675c6968 5577gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5578case "$enable_gdbtk" in
5579 no)
5580 GDB_TK="" ;;
c180f501
AC
5581 yes)
5582 GDB_TK="${gdb_tk}" ;;
a0da8069 5583 *)
c180f501
AC
5584 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5585 # distro. Eventually someone will fix this and move Insight, nee
5586 # gdbtk to a separate directory.
5587 if test -d ${srcdir}/gdb/gdbtk ; then
5588 GDB_TK="${gdb_tk}"
5589 else
5590 GDB_TK=""
5591 fi
5592 ;;
a0da8069 5593esac
907be67c
DJ
5594CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5595INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5596
6bd3dfaa 5597# Strip out unwanted targets.
dd12c3a8
NN
5598
5599# While at that, we remove Makefiles if we were started for recursive
5600# configuration, so that the top-level Makefile reconfigures them,
5601# like we used to do when configure itself was recursive.
dd12c3a8 5602
6bd3dfaa
PB
5603# Loop over modules. $extrasub must be used with care, limiting as
5604# much as possible the usage of range addresses. That's because autoconf
5605# splits the sed script to overcome limits in the number of commands,
5606# and relying on carefully-timed sed passes may turn out to be very hard
5607# to maintain later. In this particular case, you just have to be careful
5608# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5609
319cab08
PB
5610# Check whether --enable-bootstrap or --disable-bootstrap was given.
5611if test "${enable_bootstrap+set}" = set; then
5612 enableval="$enable_bootstrap"
c6b750e1 5613
319cab08 5614else
9cb3fa6f 5615 enable_bootstrap=default
c6b750e1 5616fi;
319cab08 5617
9cb3fa6f
PB
5618# Issue errors and warnings for invalid/strange bootstrap combinations.
5619case "$configdirs" in
5620 *gcc*) have_compiler=yes ;;
5621 *) have_compiler=no ;;
5622esac
5623
5624case "$have_compiler:$host:$target:$enable_bootstrap" in
5625 *:*:*:no) ;;
5626
0aed8855 5627 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5628 # and we are in a native configuration.
5629 yes:$build:$build:default)
0aed8855 5630 enable_bootstrap=yes ;;
9cb3fa6f
PB
5631
5632 *:*:*:default)
5633 enable_bootstrap=no ;;
5634
5635 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5636 yes:$build:$build:yes)
9cb3fa6f
PB
5637 ;;
5638
5639 # Other configurations, but we have a compiler. Assume the user knows
5640 # what he's doing.
80911fe1 5641 yes:*:*:yes)
c6b750e1
DJ
5642 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5643echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5644 ;;
5645
5646 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5647 no:*:*:yes)
c6b750e1
DJ
5648 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5649echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5650 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5651
5652 # Fail if wrong command line
5653 *)
c6b750e1
DJ
5654 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5655echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5656 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5657 ;;
5658esac
5659
5660# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5661case "$enable_bootstrap" in
5662 yes)
498d4a71 5663 bootstrap_suffix=bootstrap ;;
319cab08 5664 no)
498d4a71 5665 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5666esac
5667
6a9cf61e 5668for module in ${build_configdirs} ; do
498d4a71
CF
5669 if test -z "${no_recursion}" \
5670 && test -f ${build_subdir}/${module}/Makefile; then
5671 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5672 rm -f ${build_subdir}/${module}/Makefile
5673 fi
5674 extrasub="$extrasub
5675/^@if build-$module\$/d
5676/^@endif build-$module\$/d
5677/^@if build-$module-$bootstrap_suffix\$/d
5678/^@endif build-$module-$bootstrap_suffix\$/d"
5679done
5680for module in ${configdirs} ; do
80911fe1 5681 if test -z "${no_recursion}"; then
8cf39b1b 5682 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5683 if test -f ${file}; then
5684 echo 1>&2 "*** removing ${file} to force reconfigure"
5685 rm -f ${file}
5686 fi
5687 done
498d4a71
CF
5688 fi
5689 extrasub="$extrasub
5690/^@if $module\$/d
5691/^@endif $module\$/d
5692/^@if $module-$bootstrap_suffix\$/d
5693/^@endif $module-$bootstrap_suffix\$/d"
5694done
5695for module in ${target_configdirs} ; do
5696 if test -z "${no_recursion}" \
5697 && test -f ${target_subdir}/${module}/Makefile; then
5698 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5699 rm -f ${target_subdir}/${module}/Makefile
5700 fi
5701 extrasub="$extrasub
5702/^@if target-$module\$/d
5703/^@endif target-$module\$/d
5704/^@if target-$module-$bootstrap_suffix\$/d
5705/^@endif target-$module-$bootstrap_suffix\$/d"
5706done
5707
6bd3dfaa
PB
5708extrasub="$extrasub
5709/^@if /,/^@endif /d"
a0da8069
NN
5710
5711# Create the serialization dependencies. This uses a temporary file.
5712
e6bfb94a
AO
5713# Check whether --enable-serial-configure or --disable-serial-configure was given.
5714if test "${enable_serial_configure+set}" = set; then
5715 enableval="$enable_serial_configure"
e6bfb94a 5716
c6b750e1 5717fi;
e6bfb94a 5718
1047cb91
DD
5719case ${enable_serial_configure} in
5720 yes)
5721 enable_serial_build_configure=yes
5722 enable_serial_host_configure=yes
5723 enable_serial_target_configure=yes
5724 ;;
5725esac
5726
a0da8069
NN
5727# These force 'configure's to be done one at a time, to avoid problems
5728# with contention over a shared config.cache.
5729rm -f serdep.tmp
e6bfb94a 5730echo '# serdep.tmp' > serdep.tmp
a0da8069 5731olditem=
1047cb91 5732test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5733for item in ${build_configdirs} ; do
5734 case ${olditem} in
5735 "") ;;
e6bfb94a 5736 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5737 esac
5738 olditem=${item}
5739done
5740olditem=
1047cb91 5741test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5742for item in ${configdirs} ; do
5743 case ${olditem} in
5744 "") ;;
e6bfb94a 5745 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5746 esac
5747 olditem=${item}
5748done
5749olditem=
1047cb91 5750test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5751for item in ${target_configdirs} ; do
5752 case ${olditem} in
5753 "") ;;
e6bfb94a 5754 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5755 esac
5756 olditem=${item}
5757done
5758serialization_dependencies=serdep.tmp
5759
5760
e6bfb94a 5761# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5762# target, nonopt, and variable assignments. These are the ones we
5763# might not want to pass down to subconfigures. Also strip
5764# program-prefix, program-suffix, and program-transform-name, so that
5765# we can pass down a consistent program-transform-name.
5766baseargs=
5767keep_next=no
5768skip_next=no
5769eval "set -- $ac_configure_args"
18f6b6ee
PB
5770for ac_arg
5771do
c6b750e1
DJ
5772 if test X"$skip_next" = X"yes"; then
5773 skip_next=no
5774 continue
5775 fi
5776 if test X"$keep_next" = X"yes"; then
5777 case $ac_arg in
5778 *\'*)
5779 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5780 esac
5781 baseargs="$baseargs '$ac_arg'"
5782 keep_next=no
5783 continue
5784 fi
5785
5786 # Handle separated arguments. Based on the logic generated by
5787 # autoconf 2.59.
5788 case $ac_arg in
5789 *=* | --config-cache | -C | -disable-* | --disable-* \
5790 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5791 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5792 | -with-* | --with-* | -without-* | --without-* | --x)
5793 separate_arg=no
5794 ;;
5795 -*)
5796 separate_arg=yes
5797 ;;
5798 *)
5799 separate_arg=no
5800 ;;
5801 esac
5802
5803 case "$ac_arg" in
5804 --no*)
5805 continue
5806 ;;
5807 --c* | \
5808 --sr* | \
5809 --ho* | \
5810 --bu* | \
5811 --t* | \
5812 --program-* | \
5813 -cache_file* | \
5814 -srcdir* | \
5815 -host* | \
5816 -build* | \
5817 -target* | \
5818 -program-prefix* | \
5819 -program-suffix* | \
5820 -program-transform-name* )
5821 skip_next=$separate_arg
5822 continue
5823 ;;
5824 -*)
5825 # An option. Add it.
5826 case $ac_arg in
5827 *\'*)
5828 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5829 esac
5830 baseargs="$baseargs '$ac_arg'"
5831 keep_next=$separate_arg
5832 ;;
5833 *)
5834 # Either a variable assignment, or a nonopt (triplet). Don't
5835 # pass it down; let the Makefile handle this.
5836 continue
5837 ;;
5838 esac
5839done
5840# Remove the initial space we just introduced and, as these will be
5841# expanded by make, quote '$'.
5842baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5843
f27d4f92
DJ
5844# Add in --program-transform-name, after --program-prefix and
5845# --program-suffix have been applied to it. Autoconf has already
5846# doubled dollar signs and backslashes in program_transform_name; we want
5847# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5848# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5849# Also, because we want to override the logic in subdir configure scripts to
5850# choose program_transform_name, replace any s,x,x, with s,y,y,.
5851sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5852${program_transform_name}
5853EOF_SED
5854gcc_transform_name=`cat conftestsed.out`
5855rm -f conftestsed.out
5856baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5857if test "$silent" = yes; then
5858 baseargs="$baseargs --silent"
5859fi
f27d4f92 5860
a0da8069
NN
5861# For the build-side libraries, we just need to pretend we're native,
5862# and not use the same cache file. Multilibs are neither needed nor
5863# desired.
4b900473 5864build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5865
5866# For host modules, accept cache file option, or specification as blank.
5867case "${cache_file}" in
5868"") # empty
5869 cache_file_option="" ;;
5870/* | [A-Za-z]:[\\/]* ) # absolute path
5871 cache_file_option="--cache-file=${cache_file}" ;;
5872*) # relative path
5873 cache_file_option="--cache-file=../${cache_file}" ;;
5874esac
5875
82252c06
NN
5876# Host dirs don't like to share a cache file either, horribly enough.
5877# This seems to be due to autoconf 2.5x stupidity.
4b900473 5878host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5879
5880target_configargs=${baseargs}
5881
5882# Passing a --with-cross-host argument lets the target libraries know
5883# whether they are being built with a cross-compiler or being built
5884# native. However, it would be better to use other mechanisms to make the
5885# sorts of decisions they want to make on this basis. Please consider
5886# this option to be deprecated. FIXME.
5887if test x${is_cross_compiler} = xyes ; then
c6b750e1 5888 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5889fi
5890
5891# Default to --enable-multilib.
5892if test x${enable_multilib} = x ; then
5893 target_configargs="--enable-multilib ${target_configargs}"
5894fi
5895
5896# Pass --with-newlib if appropriate. Note that target_configdirs has
5897# changed from the earlier setting of with_newlib.
5898if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5899 target_configargs="--with-newlib ${target_configargs}"
5900fi
5901
95036d20
NN
5902# Different target subdirs use different values of certain variables
5903# (notably CXX). Worse, multilibs use *lots* of different values.
5904# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5905# it doesn't automatically accept command-line overrides of them.
5906# This means it's not safe for target subdirs to share a cache file,
5907# which is disgusting, but there you have it. Hopefully this can be
5908# fixed in future. It's still worthwhile to use a cache file for each
5909# directory. I think.
5910
ae380b45
MS
5911# Pass the appropriate --build, --host, --target and --cache-file arguments.
5912# We need to pass --target, as newer autoconf's requires consistency
5913# for target_alias and gcc doesn't manage it consistently.
4b900473 5914target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5915
a0da8069
NN
5916FLAGS_FOR_TARGET=
5917case " $target_configdirs " in
5918 *" newlib "*)
5919 case " $target_configargs " in
5920 *" --with-newlib "*)
5921 case "$target" in
5922 *-cygwin*)
564b43e5 5923 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
5924 esac
5925
5926 # If we're not building GCC, don't discard standard headers.
5927 if test -d ${srcdir}/gcc; then
5928 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5929
5930 if test "${build}" != "${host}"; then
5931 # On Canadian crosses, CC_FOR_TARGET will have already been set
5932 # by `configure', so we won't have an opportunity to add -Bgcc/
5933 # to it. This is right: we don't want to search that directory
5934 # for binaries, but we want the header files in there, so add
5935 # them explicitly.
b00612cc 5936 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5937
5938 # Someone might think of using the pre-installed headers on
5939 # Canadian crosses, in case the installed compiler is not fully
5940 # compatible with the compiler being built. In this case, it
5941 # would be better to flag an error than risking having
5942 # incompatible object files being constructed. We can't
5943 # guarantee that an error will be flagged, but let's hope the
5944 # compiler will do it, when presented with incompatible header
5945 # files.
5946 fi
5947 fi
5948
5949 case "${target}-${is_cross_compiler}" in
ec11bdc6 5950 i[3456789]86-*-linux*-no)
a0da8069
NN
5951 # Here host == target, so we don't need to build gcc,
5952 # so we don't want to discard standard headers.
5953 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5954 ;;
5955 *)
5956 # If we're building newlib, use its generic headers last, but search
5957 # for any libc-related directories first (so make it the last -B
5958 # switch).
5959 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
5960
5961 # If we're building libgloss, find the startup file, simulator library
5962 # and linker script.
5963 case " $target_configdirs " in
5964 *" libgloss "*)
5965 # Look for startup file, simulator library and maybe linker script.
5966 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5967 # Look for libnosys.a in case the target needs it.
5968 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5969 # Most targets have the linker script in the source directory.
5970 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5971 ;;
5972 esac
a0da8069
NN
5973 ;;
5974 esac
5975 ;;
5976 esac
5977 ;;
5978esac
45055374
CV
5979case "$target" in
5980*-mingw*)
5981 # Can't be handled as Cygwin above since Mingw does not use newlib.
5982 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' ;;
5983esac
a0da8069 5984
5fbad20a
DD
5985# Allow the user to override the flags for
5986# our build compiler if desired.
c66487f8
NC
5987if test x"${build}" = x"${host}" ; then
5988 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5989 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
5990 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
5991fi
5fbad20a 5992
a0da8069
NN
5993# On Canadian crosses, we'll be searching the right directories for
5994# the previously-installed cross compiler, so don't bother to add
5995# flags for directories within the install tree of the compiler
5996# being built; programs in there won't even run.
5997if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5998 # Search for pre-installed headers if nothing else fits.
bba45b8b 5999 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
6000fi
6001
6002if test "x${use_gnu_ld}" = x &&
6003 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6004 # Arrange for us to find uninstalled linker scripts.
b00612cc 6005 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6006fi
6007
a481dbb7
DD
6008# Search for other target-specific linker scripts and such.
6009case "${target}" in
4e206d7e
DB
6010 mep*)
6011 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6012 ;;
6013esac
6014
a0da8069 6015# Makefile fragments.
3e707e94
PB
6016for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6017do
6018 eval fragval=\$$frag
6019 if test $fragval != /dev/null; then
6020 eval $frag=${srcdir}/$fragval
6021 fi
6022done
a0da8069
NN
6023
6024
6025
6026
6027
6028# Miscellanea: directories, flags, etc.
6029
6030
6031
6032
6033
6034
6035
6a9cf61e 6036# Build module lists & subconfigure args.
a0da8069
NN
6037
6038
6039
be01d343
PB
6040# Host module lists & subconfigure args.
6041
6042
6043
6044# Target module lists & subconfigure args.
6045
6046
6047
6048# Build tools.
6049
6050
6051
1576798e
PB
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
be01d343
PB
6066# Generate default definitions for YACC, M4, LEX and other programs that run
6067# on the build machine. These are used if the Makefile can't locate these
6068# programs in objdir.
6069MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6070
6071for ac_prog in 'bison -y' byacc yacc
6072do
c6b750e1 6073 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6074set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6075echo "$as_me:$LINENO: checking for $ac_word" >&5
6076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6077if test "${ac_cv_prog_YACC+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6079else
6080 if test -n "$YACC"; then
6081 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6082else
c6b750e1
DJ
6083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084for as_dir in $PATH
6085do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6090 ac_cv_prog_YACC="$ac_prog"
6091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 break 2
6093 fi
6094done
6095done
6096
be01d343
PB
6097fi
6098fi
c6b750e1 6099YACC=$ac_cv_prog_YACC
be01d343 6100if test -n "$YACC"; then
c6b750e1
DJ
6101 echo "$as_me:$LINENO: result: $YACC" >&5
6102echo "${ECHO_T}$YACC" >&6
be01d343 6103else
c6b750e1
DJ
6104 echo "$as_me:$LINENO: result: no" >&5
6105echo "${ECHO_T}no" >&6
be01d343
PB
6106fi
6107
c6b750e1 6108 test -n "$YACC" && break
be01d343
PB
6109done
6110test -n "$YACC" || YACC="$MISSING bison -y"
6111
6112case " $build_configdirs " in
6113 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6114 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6115esac
6116
6117for ac_prog in bison
6118do
c6b750e1 6119 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6120set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6121echo "$as_me:$LINENO: checking for $ac_word" >&5
6122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6123if test "${ac_cv_prog_BISON+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6125else
6126 if test -n "$BISON"; then
6127 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6128else
c6b750e1
DJ
6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH
6131do
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136 ac_cv_prog_BISON="$ac_prog"
6137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 break 2
6139 fi
6140done
6141done
6142
be01d343
PB
6143fi
6144fi
c6b750e1 6145BISON=$ac_cv_prog_BISON
be01d343 6146if test -n "$BISON"; then
c6b750e1
DJ
6147 echo "$as_me:$LINENO: result: $BISON" >&5
6148echo "${ECHO_T}$BISON" >&6
be01d343 6149else
c6b750e1
DJ
6150 echo "$as_me:$LINENO: result: no" >&5
6151echo "${ECHO_T}no" >&6
be01d343
PB
6152fi
6153
c6b750e1 6154 test -n "$BISON" && break
be01d343
PB
6155done
6156test -n "$BISON" || BISON="$MISSING bison"
6157
6158case " $build_configdirs " in
6159 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6160esac
6161
6162for ac_prog in gm4 gnum4 m4
6163do
c6b750e1 6164 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6165set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6166echo "$as_me:$LINENO: checking for $ac_word" >&5
6167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6168if test "${ac_cv_prog_M4+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6170else
6171 if test -n "$M4"; then
6172 ac_cv_prog_M4="$M4" # Let the user override the test.
6173else
c6b750e1
DJ
6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175for as_dir in $PATH
6176do
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181 ac_cv_prog_M4="$ac_prog"
6182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 break 2
6184 fi
6185done
6186done
6187
be01d343
PB
6188fi
6189fi
c6b750e1 6190M4=$ac_cv_prog_M4
be01d343 6191if test -n "$M4"; then
c6b750e1
DJ
6192 echo "$as_me:$LINENO: result: $M4" >&5
6193echo "${ECHO_T}$M4" >&6
be01d343 6194else
c6b750e1
DJ
6195 echo "$as_me:$LINENO: result: no" >&5
6196echo "${ECHO_T}no" >&6
be01d343
PB
6197fi
6198
c6b750e1 6199 test -n "$M4" && break
be01d343
PB
6200done
6201test -n "$M4" || M4="$MISSING m4"
6202
6203case " $build_configdirs " in
6204 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6205esac
6206
6207for ac_prog in flex lex
6208do
c6b750e1 6209 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6210set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6211echo "$as_me:$LINENO: checking for $ac_word" >&5
6212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6213if test "${ac_cv_prog_LEX+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6215else
6216 if test -n "$LEX"; then
6217 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6218else
c6b750e1
DJ
6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
6221do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6226 ac_cv_prog_LEX="$ac_prog"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6229 fi
6230done
6231done
6232
be01d343
PB
6233fi
6234fi
c6b750e1 6235LEX=$ac_cv_prog_LEX
be01d343 6236if test -n "$LEX"; then
c6b750e1
DJ
6237 echo "$as_me:$LINENO: result: $LEX" >&5
6238echo "${ECHO_T}$LEX" >&6
be01d343 6239else
c6b750e1
DJ
6240 echo "$as_me:$LINENO: result: no" >&5
6241echo "${ECHO_T}no" >&6
be01d343
PB
6242fi
6243
c6b750e1 6244 test -n "$LEX" && break
be01d343
PB
6245done
6246test -n "$LEX" || LEX="$MISSING flex"
6247
6248case " $build_configdirs " in
6249 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6250 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6251esac
6252
6253for ac_prog in flex
6254do
c6b750e1 6255 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6256set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6257echo "$as_me:$LINENO: checking for $ac_word" >&5
6258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6259if test "${ac_cv_prog_FLEX+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6261else
6262 if test -n "$FLEX"; then
6263 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6264else
c6b750e1
DJ
6265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266for as_dir in $PATH
6267do
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6272 ac_cv_prog_FLEX="$ac_prog"
6273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 break 2
6275 fi
6276done
6277done
6278
be01d343
PB
6279fi
6280fi
c6b750e1 6281FLEX=$ac_cv_prog_FLEX
be01d343 6282if test -n "$FLEX"; then
c6b750e1
DJ
6283 echo "$as_me:$LINENO: result: $FLEX" >&5
6284echo "${ECHO_T}$FLEX" >&6
be01d343 6285else
c6b750e1
DJ
6286 echo "$as_me:$LINENO: result: no" >&5
6287echo "${ECHO_T}no" >&6
be01d343
PB
6288fi
6289
c6b750e1 6290 test -n "$FLEX" && break
be01d343
PB
6291done
6292test -n "$FLEX" || FLEX="$MISSING flex"
6293
6294case " $build_configdirs " in
6295 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6296esac
6297
6298for ac_prog in makeinfo
6299do
c6b750e1 6300 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6301set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6302echo "$as_me:$LINENO: checking for $ac_word" >&5
6303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6304if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6306else
6307 if test -n "$MAKEINFO"; then
6308 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6309else
c6b750e1
DJ
6310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH
6312do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317 ac_cv_prog_MAKEINFO="$ac_prog"
6318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321done
6322done
6323
be01d343
PB
6324fi
6325fi
c6b750e1 6326MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6327if test -n "$MAKEINFO"; then
c6b750e1
DJ
6328 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6329echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6330else
c6b750e1
DJ
6331 echo "$as_me:$LINENO: result: no" >&5
6332echo "${ECHO_T}no" >&6
be01d343
PB
6333fi
6334
c6b750e1 6335 test -n "$MAKEINFO" && break
be01d343
PB
6336done
6337test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6338
6339case " $build_configdirs " in
6340 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6341 *)
6342
625a61cd 6343 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6344 # higher, else we use the "missing" dummy.
6345 if ${MAKEINFO} --version \
625a61cd 6346 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6347 :
6348 else
6349 MAKEINFO="$MISSING makeinfo"
6350 fi
6351 ;;
6352
6353esac
a0da8069 6354
be01d343 6355# FIXME: expect and dejagnu may become build tools?
a0da8069 6356
be01d343
PB
6357for ac_prog in expect
6358do
c6b750e1 6359 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6360set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6361echo "$as_me:$LINENO: checking for $ac_word" >&5
6362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6363if test "${ac_cv_prog_EXPECT+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6365else
6366 if test -n "$EXPECT"; then
6367 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6368else
c6b750e1
DJ
6369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370for as_dir in $PATH
6371do
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376 ac_cv_prog_EXPECT="$ac_prog"
6377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 break 2
6379 fi
6380done
6381done
6382
be01d343
PB
6383fi
6384fi
c6b750e1 6385EXPECT=$ac_cv_prog_EXPECT
be01d343 6386if test -n "$EXPECT"; then
c6b750e1
DJ
6387 echo "$as_me:$LINENO: result: $EXPECT" >&5
6388echo "${ECHO_T}$EXPECT" >&6
be01d343 6389else
c6b750e1
DJ
6390 echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6
be01d343 6392fi
a0da8069 6393
c6b750e1 6394 test -n "$EXPECT" && break
be01d343
PB
6395done
6396test -n "$EXPECT" || EXPECT="expect"
a0da8069 6397
be01d343
PB
6398case " $configdirs " in
6399 *" expect "*)
6400 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6401 ;;
6402esac
a0da8069 6403
be01d343
PB
6404for ac_prog in runtest
6405do
c6b750e1 6406 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6407set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6408echo "$as_me:$LINENO: checking for $ac_word" >&5
6409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6410if test "${ac_cv_prog_RUNTEST+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6412else
6413 if test -n "$RUNTEST"; then
6414 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6415else
c6b750e1
DJ
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_RUNTEST="$ac_prog"
6424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6426 fi
6427done
6428done
6429
be01d343
PB
6430fi
6431fi
c6b750e1 6432RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6433if test -n "$RUNTEST"; then
c6b750e1
DJ
6434 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6435echo "${ECHO_T}$RUNTEST" >&6
be01d343 6436else
c6b750e1
DJ
6437 echo "$as_me:$LINENO: result: no" >&5
6438echo "${ECHO_T}no" >&6
be01d343 6439fi
a0da8069 6440
c6b750e1 6441 test -n "$RUNTEST" && break
be01d343
PB
6442done
6443test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6444
be01d343
PB
6445case " $configdirs " in
6446 *" dejagnu "*)
6b89cc21 6447 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6448 ;;
6449esac
a0da8069
NN
6450
6451
a0da8069 6452# Host tools.
859789af
AC
6453ncn_tool_prefix=
6454test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6455ncn_target_tool_prefix=
6456test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6457
9a819804
AO
6458
6459
6460if test -n "$AR"; then
6461 ac_cv_prog_AR=$AR
6462elif test -n "$ac_cv_prog_AR"; then
6463 AR=$ac_cv_prog_AR
6464fi
6465
6466if test -n "$ac_cv_prog_AR"; then
6467 for ncn_progname in ar; do
6468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6469set dummy ${ncn_progname}; ac_word=$2
6470echo "$as_me:$LINENO: checking for $ac_word" >&5
6471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6472if test "${ac_cv_prog_AR+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474else
6475 if test -n "$AR"; then
6476 ac_cv_prog_AR="$AR" # Let the user override the test.
6477else
6478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479for as_dir in $PATH
6480do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6485 ac_cv_prog_AR="${ncn_progname}"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489done
6490done
6491
6492fi
6493fi
6494AR=$ac_cv_prog_AR
6495if test -n "$AR"; then
6496 echo "$as_me:$LINENO: result: $AR" >&5
6497echo "${ECHO_T}$AR" >&6
6498else
6499 echo "$as_me:$LINENO: result: no" >&5
6500echo "${ECHO_T}no" >&6
6501fi
6502
6503 done
6504fi
6505
6506for ncn_progname in ar; do
05cbd757
PB
6507 if test -n "$ncn_tool_prefix"; then
6508 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6509set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6510echo "$as_me:$LINENO: checking for $ac_word" >&5
6511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6512if test "${ac_cv_prog_AR+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6514else
6515 if test -n "$AR"; then
6516 ac_cv_prog_AR="$AR" # Let the user override the test.
6517else
c6b750e1
DJ
6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519for as_dir in $PATH
6520do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6525 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529done
6530done
6531
859789af
AC
6532fi
6533fi
c6b750e1 6534AR=$ac_cv_prog_AR
859789af 6535if test -n "$AR"; then
c6b750e1
DJ
6536 echo "$as_me:$LINENO: result: $AR" >&5
6537echo "${ECHO_T}$AR" >&6
859789af 6538else
c6b750e1
DJ
6539 echo "$as_me:$LINENO: result: no" >&5
6540echo "${ECHO_T}no" >&6
859789af
AC
6541fi
6542
05cbd757
PB
6543 fi
6544 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6546set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6547echo "$as_me:$LINENO: checking for $ac_word" >&5
6548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6549if test "${ac_cv_prog_AR+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6551else
05cbd757
PB
6552 if test -n "$AR"; then
6553 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6554else
c6b750e1
DJ
6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_AR="${ncn_progname}"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6565 fi
6566done
6567done
6568
859789af
AC
6569fi
6570fi
c6b750e1 6571AR=$ac_cv_prog_AR
05cbd757 6572if test -n "$AR"; then
c6b750e1
DJ
6573 echo "$as_me:$LINENO: result: $AR" >&5
6574echo "${ECHO_T}$AR" >&6
859789af 6575else
c6b750e1
DJ
6576 echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6
859789af 6578fi
c6b750e1 6579
05cbd757
PB
6580 fi
6581 test -n "$ac_cv_prog_AR" && break
6582done
6583
6584if test -z "$ac_cv_prog_AR" ; then
6585 set dummy ar
6586 if test $build = $host ; then
6587 AR="$2"
859789af 6588 else
05cbd757 6589 AR="${ncn_tool_prefix}$2"
859789af 6590 fi
859789af
AC
6591fi
6592
9a819804
AO
6593
6594
6595if test -n "$AS"; then
6596 ac_cv_prog_AS=$AS
6597elif test -n "$ac_cv_prog_AS"; then
6598 AS=$ac_cv_prog_AS
6599fi
6600
6601if test -n "$ac_cv_prog_AS"; then
6602 for ncn_progname in as; do
6603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6604set dummy ${ncn_progname}; ac_word=$2
6605echo "$as_me:$LINENO: checking for $ac_word" >&5
6606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6607if test "${ac_cv_prog_AS+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6609else
6610 if test -n "$AS"; then
6611 ac_cv_prog_AS="$AS" # Let the user override the test.
6612else
6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614for as_dir in $PATH
6615do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620 ac_cv_prog_AS="${ncn_progname}"
6621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624done
6625done
6626
6627fi
6628fi
6629AS=$ac_cv_prog_AS
6630if test -n "$AS"; then
6631 echo "$as_me:$LINENO: result: $AS" >&5
6632echo "${ECHO_T}$AS" >&6
6633else
6634 echo "$as_me:$LINENO: result: no" >&5
6635echo "${ECHO_T}no" >&6
6636fi
6637
6638 done
6639fi
6640
6641for ncn_progname in as; do
05cbd757
PB
6642 if test -n "$ncn_tool_prefix"; then
6643 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6644set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6645echo "$as_me:$LINENO: checking for $ac_word" >&5
6646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6647if test "${ac_cv_prog_AS+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6649else
6650 if test -n "$AS"; then
6651 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6652else
6653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654for as_dir in $PATH
6655do
6656 IFS=$as_save_IFS
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6660 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 break 2
6663 fi
6664done
6665done
6666
859789af
AC
6667fi
6668fi
c6b750e1 6669AS=$ac_cv_prog_AS
859789af 6670if test -n "$AS"; then
c6b750e1
DJ
6671 echo "$as_me:$LINENO: result: $AS" >&5
6672echo "${ECHO_T}$AS" >&6
859789af 6673else
c6b750e1
DJ
6674 echo "$as_me:$LINENO: result: no" >&5
6675echo "${ECHO_T}no" >&6
859789af
AC
6676fi
6677
05cbd757
PB
6678 fi
6679 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6681set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6682echo "$as_me:$LINENO: checking for $ac_word" >&5
6683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6684if test "${ac_cv_prog_AS+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6686else
05cbd757
PB
6687 if test -n "$AS"; then
6688 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6689else
c6b750e1
DJ
6690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697 ac_cv_prog_AS="${ncn_progname}"
6698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6700 fi
6701done
6702done
6703
859789af
AC
6704fi
6705fi
c6b750e1 6706AS=$ac_cv_prog_AS
05cbd757 6707if test -n "$AS"; then
c6b750e1
DJ
6708 echo "$as_me:$LINENO: result: $AS" >&5
6709echo "${ECHO_T}$AS" >&6
859789af 6710else
c6b750e1
DJ
6711 echo "$as_me:$LINENO: result: no" >&5
6712echo "${ECHO_T}no" >&6
859789af 6713fi
c6b750e1 6714
05cbd757
PB
6715 fi
6716 test -n "$ac_cv_prog_AS" && break
6717done
6718
6719if test -z "$ac_cv_prog_AS" ; then
6720 set dummy as
6721 if test $build = $host ; then
6722 AS="$2"
859789af 6723 else
05cbd757 6724 AS="${ncn_tool_prefix}$2"
859789af 6725 fi
859789af
AC
6726fi
6727
9a819804
AO
6728
6729
6730if test -n "$DLLTOOL"; then
6731 ac_cv_prog_DLLTOOL=$DLLTOOL
6732elif test -n "$ac_cv_prog_DLLTOOL"; then
6733 DLLTOOL=$ac_cv_prog_DLLTOOL
6734fi
6735
6736if test -n "$ac_cv_prog_DLLTOOL"; then
6737 for ncn_progname in dlltool; do
6738 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6739set dummy ${ncn_progname}; ac_word=$2
6740echo "$as_me:$LINENO: checking for $ac_word" >&5
6741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6742if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744else
6745 if test -n "$DLLTOOL"; then
6746 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6747else
6748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6755 ac_cv_prog_DLLTOOL="${ncn_progname}"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759done
6760done
6761
6762fi
6763fi
6764DLLTOOL=$ac_cv_prog_DLLTOOL
6765if test -n "$DLLTOOL"; then
6766 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6767echo "${ECHO_T}$DLLTOOL" >&6
6768else
6769 echo "$as_me:$LINENO: result: no" >&5
6770echo "${ECHO_T}no" >&6
6771fi
6772
6773 done
6774fi
6775
6776for ncn_progname in dlltool; do
05cbd757
PB
6777 if test -n "$ncn_tool_prefix"; then
6778 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6779set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6780echo "$as_me:$LINENO: checking for $ac_word" >&5
6781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6782if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6784else
6785 if test -n "$DLLTOOL"; then
6786 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6787else
c6b750e1
DJ
6788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 break 2
6798 fi
6799done
6800done
6801
859789af
AC
6802fi
6803fi
c6b750e1 6804DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6805if test -n "$DLLTOOL"; then
c6b750e1
DJ
6806 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6807echo "${ECHO_T}$DLLTOOL" >&6
859789af 6808else
c6b750e1
DJ
6809 echo "$as_me:$LINENO: result: no" >&5
6810echo "${ECHO_T}no" >&6
859789af
AC
6811fi
6812
05cbd757
PB
6813 fi
6814 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6816set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6817echo "$as_me:$LINENO: checking for $ac_word" >&5
6818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6819if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6821else
05cbd757
PB
6822 if test -n "$DLLTOOL"; then
6823 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6824else
c6b750e1
DJ
6825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826for as_dir in $PATH
6827do
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6832 ac_cv_prog_DLLTOOL="${ncn_progname}"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6835 fi
6836done
6837done
6838
859789af
AC
6839fi
6840fi
c6b750e1 6841DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6842if test -n "$DLLTOOL"; then
c6b750e1
DJ
6843 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6844echo "${ECHO_T}$DLLTOOL" >&6
859789af 6845else
c6b750e1
DJ
6846 echo "$as_me:$LINENO: result: no" >&5
6847echo "${ECHO_T}no" >&6
859789af 6848fi
c6b750e1 6849
05cbd757
PB
6850 fi
6851 test -n "$ac_cv_prog_DLLTOOL" && break
6852done
6853
6854if test -z "$ac_cv_prog_DLLTOOL" ; then
6855 set dummy dlltool
6856 if test $build = $host ; then
6857 DLLTOOL="$2"
859789af 6858 else
05cbd757 6859 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6860 fi
859789af
AC
6861fi
6862
9a819804
AO
6863
6864
6865if test -n "$LD"; then
6866 ac_cv_prog_LD=$LD
6867elif test -n "$ac_cv_prog_LD"; then
6868 LD=$ac_cv_prog_LD
6869fi
6870
6871if test -n "$ac_cv_prog_LD"; then
6872 for ncn_progname in ld; do
6873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6874set dummy ${ncn_progname}; ac_word=$2
6875echo "$as_me:$LINENO: checking for $ac_word" >&5
6876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6877if test "${ac_cv_prog_LD+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879else
6880 if test -n "$LD"; then
6881 ac_cv_prog_LD="$LD" # Let the user override the test.
6882else
6883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884for as_dir in $PATH
6885do
6886 IFS=$as_save_IFS
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6890 ac_cv_prog_LD="${ncn_progname}"
6891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 break 2
6893 fi
6894done
6895done
6896
6897fi
6898fi
6899LD=$ac_cv_prog_LD
6900if test -n "$LD"; then
6901 echo "$as_me:$LINENO: result: $LD" >&5
6902echo "${ECHO_T}$LD" >&6
6903else
6904 echo "$as_me:$LINENO: result: no" >&5
6905echo "${ECHO_T}no" >&6
6906fi
6907
6908 done
6909fi
6910
6911for ncn_progname in ld; do
05cbd757
PB
6912 if test -n "$ncn_tool_prefix"; then
6913 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6914set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6915echo "$as_me:$LINENO: checking for $ac_word" >&5
6916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6917if test "${ac_cv_prog_LD+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6919else
6920 if test -n "$LD"; then
6921 ac_cv_prog_LD="$LD" # Let the user override the test.
6922else
c6b750e1
DJ
6923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924for as_dir in $PATH
6925do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934done
6935done
6936
859789af
AC
6937fi
6938fi
c6b750e1 6939LD=$ac_cv_prog_LD
859789af 6940if test -n "$LD"; then
c6b750e1
DJ
6941 echo "$as_me:$LINENO: result: $LD" >&5
6942echo "${ECHO_T}$LD" >&6
859789af 6943else
c6b750e1
DJ
6944 echo "$as_me:$LINENO: result: no" >&5
6945echo "${ECHO_T}no" >&6
859789af
AC
6946fi
6947
05cbd757
PB
6948 fi
6949 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6951set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6952echo "$as_me:$LINENO: checking for $ac_word" >&5
6953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6954if test "${ac_cv_prog_LD+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6956else
05cbd757
PB
6957 if test -n "$LD"; then
6958 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6959else
c6b750e1
DJ
6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961for as_dir in $PATH
6962do
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967 ac_cv_prog_LD="${ncn_progname}"
6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971done
6972done
6973
859789af
AC
6974fi
6975fi
c6b750e1 6976LD=$ac_cv_prog_LD
05cbd757 6977if test -n "$LD"; then
c6b750e1
DJ
6978 echo "$as_me:$LINENO: result: $LD" >&5
6979echo "${ECHO_T}$LD" >&6
859789af 6980else
c6b750e1
DJ
6981 echo "$as_me:$LINENO: result: no" >&5
6982echo "${ECHO_T}no" >&6
859789af 6983fi
c6b750e1 6984
05cbd757
PB
6985 fi
6986 test -n "$ac_cv_prog_LD" && break
6987done
6988
6989if test -z "$ac_cv_prog_LD" ; then
6990 set dummy ld
6991 if test $build = $host ; then
6992 LD="$2"
859789af 6993 else
05cbd757 6994 LD="${ncn_tool_prefix}$2"
859789af 6995 fi
859789af
AC
6996fi
6997
9a819804
AO
6998
6999
7000if test -n "$LIPO"; then
7001 ac_cv_prog_LIPO=$LIPO
7002elif test -n "$ac_cv_prog_LIPO"; then
7003 LIPO=$ac_cv_prog_LIPO
7004fi
7005
7006if test -n "$ac_cv_prog_LIPO"; then
7007 for ncn_progname in lipo; do
7008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7009set dummy ${ncn_progname}; ac_word=$2
7010echo "$as_me:$LINENO: checking for $ac_word" >&5
7011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7012if test "${ac_cv_prog_LIPO+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014else
7015 if test -n "$LIPO"; then
7016 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7017else
7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7025 ac_cv_prog_LIPO="${ncn_progname}"
7026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029done
7030done
7031
7032fi
7033fi
7034LIPO=$ac_cv_prog_LIPO
7035if test -n "$LIPO"; then
7036 echo "$as_me:$LINENO: result: $LIPO" >&5
7037echo "${ECHO_T}$LIPO" >&6
7038else
7039 echo "$as_me:$LINENO: result: no" >&5
7040echo "${ECHO_T}no" >&6
7041fi
7042
7043 done
7044fi
7045
7046for ncn_progname in lipo; do
be01d343
PB
7047 if test -n "$ncn_tool_prefix"; then
7048 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7049set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7050echo "$as_me:$LINENO: checking for $ac_word" >&5
7051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7052if test "${ac_cv_prog_LIPO+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7054else
7055 if test -n "$LIPO"; then
7056 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7057else
c6b750e1
DJ
7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069done
7070done
7071
be01d343
PB
7072fi
7073fi
c6b750e1 7074LIPO=$ac_cv_prog_LIPO
be01d343 7075if test -n "$LIPO"; then
c6b750e1
DJ
7076 echo "$as_me:$LINENO: result: $LIPO" >&5
7077echo "${ECHO_T}$LIPO" >&6
be01d343 7078else
c6b750e1
DJ
7079 echo "$as_me:$LINENO: result: no" >&5
7080echo "${ECHO_T}no" >&6
be01d343
PB
7081fi
7082
7083 fi
7084 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7086set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7087echo "$as_me:$LINENO: checking for $ac_word" >&5
7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7089if test "${ac_cv_prog_LIPO+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7091else
7092 if test -n "$LIPO"; then
7093 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7094else
c6b750e1
DJ
7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102 ac_cv_prog_LIPO="${ncn_progname}"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7105 fi
7106done
7107done
7108
be01d343
PB
7109fi
7110fi
c6b750e1 7111LIPO=$ac_cv_prog_LIPO
be01d343 7112if test -n "$LIPO"; then
c6b750e1
DJ
7113 echo "$as_me:$LINENO: result: $LIPO" >&5
7114echo "${ECHO_T}$LIPO" >&6
be01d343 7115else
c6b750e1
DJ
7116 echo "$as_me:$LINENO: result: no" >&5
7117echo "${ECHO_T}no" >&6
be01d343 7118fi
c6b750e1 7119
be01d343
PB
7120 fi
7121 test -n "$ac_cv_prog_LIPO" && break
7122done
7123
7124if test -z "$ac_cv_prog_LIPO" ; then
7125 set dummy lipo
7126 if test $build = $host ; then
7127 LIPO="$2"
7128 else
7129 LIPO="${ncn_tool_prefix}$2"
7130 fi
7131fi
7132
9a819804
AO
7133
7134
7135if test -n "$NM"; then
7136 ac_cv_prog_NM=$NM
7137elif test -n "$ac_cv_prog_NM"; then
7138 NM=$ac_cv_prog_NM
7139fi
7140
7141if test -n "$ac_cv_prog_NM"; then
7142 for ncn_progname in nm; do
7143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7144set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7145echo "$as_me:$LINENO: checking for $ac_word" >&5
7146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7147if test "${ac_cv_prog_NM+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7149else
7150 if test -n "$NM"; then
7151 ac_cv_prog_NM="$NM" # Let the user override the test.
7152else
c6b750e1
DJ
7153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154for as_dir in $PATH
7155do
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7160 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 break 2
7163 fi
7164done
7165done
7166
859789af
AC
7167fi
7168fi
c6b750e1 7169NM=$ac_cv_prog_NM
859789af 7170if test -n "$NM"; then
c6b750e1
DJ
7171 echo "$as_me:$LINENO: result: $NM" >&5
7172echo "${ECHO_T}$NM" >&6
859789af 7173else
c6b750e1
DJ
7174 echo "$as_me:$LINENO: result: no" >&5
7175echo "${ECHO_T}no" >&6
859789af
AC
7176fi
7177
9a819804
AO
7178 done
7179fi
7180
7181for ncn_progname in nm; do
7182 if test -n "$ncn_tool_prefix"; then
7183 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7184set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7185echo "$as_me:$LINENO: checking for $ac_word" >&5
7186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7187if test "${ac_cv_prog_NM+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7189else
05cbd757
PB
7190 if test -n "$NM"; then
7191 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7192else
c6b750e1
DJ
7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7200 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204done
7205done
7206
859789af
AC
7207fi
7208fi
c6b750e1 7209NM=$ac_cv_prog_NM
05cbd757 7210if test -n "$NM"; then
c6b750e1
DJ
7211 echo "$as_me:$LINENO: result: $NM" >&5
7212echo "${ECHO_T}$NM" >&6
859789af 7213else
c6b750e1
DJ
7214 echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6
859789af 7216fi
c6b750e1 7217
05cbd757 7218 fi
9a819804
AO
7219 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7221set dummy ${ncn_progname}; ac_word=$2
7222echo "$as_me:$LINENO: checking for $ac_word" >&5
7223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7224if test "${ac_cv_prog_NM+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227 if test -n "$NM"; then
7228 ac_cv_prog_NM="$NM" # Let the user override the test.
7229else
7230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231for as_dir in $PATH
7232do
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_NM="${ncn_progname}"
7238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 break 2
7240 fi
7241done
7242done
7243
7244fi
7245fi
7246NM=$ac_cv_prog_NM
7247if test -n "$NM"; then
7248 echo "$as_me:$LINENO: result: $NM" >&5
7249echo "${ECHO_T}$NM" >&6
7250else
7251 echo "$as_me:$LINENO: result: no" >&5
7252echo "${ECHO_T}no" >&6
7253fi
7254
7255 fi
7256 test -n "$ac_cv_prog_NM" && break
7257done
7258
7259if test -z "$ac_cv_prog_NM" ; then
7260 set dummy nm
7261 if test $build = $host ; then
7262 NM="$2"
7263 else
7264 NM="${ncn_tool_prefix}$2"
7265 fi
7266fi
7267
7268
7269
7270if test -n "$RANLIB"; then
7271 ac_cv_prog_RANLIB=$RANLIB
7272elif test -n "$ac_cv_prog_RANLIB"; then
7273 RANLIB=$ac_cv_prog_RANLIB
7274fi
7275
7276if test -n "$ac_cv_prog_RANLIB"; then
7277 for ncn_progname in ranlib; do
7278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7279set dummy ${ncn_progname}; ac_word=$2
7280echo "$as_me:$LINENO: checking for $ac_word" >&5
7281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7282if test "${ac_cv_prog_RANLIB+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7284else
7285 if test -n "$RANLIB"; then
7286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_RANLIB="${ncn_progname}"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7298 fi
7299done
7300done
7301
7302fi
7303fi
7304RANLIB=$ac_cv_prog_RANLIB
7305if test -n "$RANLIB"; then
7306 echo "$as_me:$LINENO: result: $RANLIB" >&5
7307echo "${ECHO_T}$RANLIB" >&6
7308else
7309 echo "$as_me:$LINENO: result: no" >&5
7310echo "${ECHO_T}no" >&6
7311fi
7312
7313 done
7314fi
859789af 7315
9a819804 7316for ncn_progname in ranlib; do
05cbd757
PB
7317 if test -n "$ncn_tool_prefix"; then
7318 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7319set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7320echo "$as_me:$LINENO: checking for $ac_word" >&5
7321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7322if test "${ac_cv_prog_RANLIB+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7324else
7325 if test -n "$RANLIB"; then
7326 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7327else
c6b750e1
DJ
7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329for as_dir in $PATH
7330do
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7338 fi
7339done
7340done
7341
859789af
AC
7342fi
7343fi
c6b750e1 7344RANLIB=$ac_cv_prog_RANLIB
859789af 7345if test -n "$RANLIB"; then
c6b750e1
DJ
7346 echo "$as_me:$LINENO: result: $RANLIB" >&5
7347echo "${ECHO_T}$RANLIB" >&6
859789af 7348else
c6b750e1
DJ
7349 echo "$as_me:$LINENO: result: no" >&5
7350echo "${ECHO_T}no" >&6
859789af
AC
7351fi
7352
05cbd757
PB
7353 fi
7354 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7356set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7357echo "$as_me:$LINENO: checking for $ac_word" >&5
7358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7359if test "${ac_cv_prog_RANLIB+set}" = set; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7361else
05cbd757
PB
7362 if test -n "$RANLIB"; then
7363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7364else
c6b750e1
DJ
7365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366for as_dir in $PATH
7367do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372 ac_cv_prog_RANLIB="${ncn_progname}"
7373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7375 fi
7376done
7377done
7378
859789af
AC
7379fi
7380fi
c6b750e1 7381RANLIB=$ac_cv_prog_RANLIB
05cbd757 7382if test -n "$RANLIB"; then
c6b750e1
DJ
7383 echo "$as_me:$LINENO: result: $RANLIB" >&5
7384echo "${ECHO_T}$RANLIB" >&6
859789af 7385else
c6b750e1
DJ
7386 echo "$as_me:$LINENO: result: no" >&5
7387echo "${ECHO_T}no" >&6
859789af 7388fi
c6b750e1 7389
859789af 7390 fi
05cbd757
PB
7391 test -n "$ac_cv_prog_RANLIB" && break
7392done
7393
7394if test -z "$ac_cv_prog_RANLIB" ; then
7395 RANLIB=":"
859789af
AC
7396fi
7397
9a819804
AO
7398
7399
7400if test -n "$STRIP"; then
7401 ac_cv_prog_STRIP=$STRIP
7402elif test -n "$ac_cv_prog_STRIP"; then
7403 STRIP=$ac_cv_prog_STRIP
7404fi
7405
7406if test -n "$ac_cv_prog_STRIP"; then
7407 for ncn_progname in strip; do
7408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7409set dummy ${ncn_progname}; ac_word=$2
7410echo "$as_me:$LINENO: checking for $ac_word" >&5
7411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7412if test "${ac_cv_prog_STRIP+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7414else
7415 if test -n "$STRIP"; then
7416 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7417else
7418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419for as_dir in $PATH
7420do
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425 ac_cv_prog_STRIP="${ncn_progname}"
7426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 break 2
7428 fi
7429done
7430done
7431
7432fi
7433fi
7434STRIP=$ac_cv_prog_STRIP
7435if test -n "$STRIP"; then
7436 echo "$as_me:$LINENO: result: $STRIP" >&5
7437echo "${ECHO_T}$STRIP" >&6
7438else
7439 echo "$as_me:$LINENO: result: no" >&5
7440echo "${ECHO_T}no" >&6
7441fi
7442
7443 done
7444fi
7445
7446for ncn_progname in strip; do
be01d343
PB
7447 if test -n "$ncn_tool_prefix"; then
7448 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7449set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7450echo "$as_me:$LINENO: checking for $ac_word" >&5
7451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7452if test "${ac_cv_prog_STRIP+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7454else
7455 if test -n "$STRIP"; then
7456 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7457else
c6b750e1
DJ
7458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459for as_dir in $PATH
7460do
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7468 fi
7469done
7470done
7471
be01d343
PB
7472fi
7473fi
c6b750e1 7474STRIP=$ac_cv_prog_STRIP
be01d343 7475if test -n "$STRIP"; then
c6b750e1
DJ
7476 echo "$as_me:$LINENO: result: $STRIP" >&5
7477echo "${ECHO_T}$STRIP" >&6
be01d343 7478else
c6b750e1
DJ
7479 echo "$as_me:$LINENO: result: no" >&5
7480echo "${ECHO_T}no" >&6
be01d343
PB
7481fi
7482
7483 fi
7484 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7486set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7487echo "$as_me:$LINENO: checking for $ac_word" >&5
7488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7489if test "${ac_cv_prog_STRIP+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7491else
7492 if test -n "$STRIP"; then
7493 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7494else
c6b750e1
DJ
7495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496for as_dir in $PATH
7497do
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502 ac_cv_prog_STRIP="${ncn_progname}"
7503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7505 fi
7506done
7507done
7508
be01d343
PB
7509fi
7510fi
c6b750e1 7511STRIP=$ac_cv_prog_STRIP
be01d343 7512if test -n "$STRIP"; then
c6b750e1
DJ
7513 echo "$as_me:$LINENO: result: $STRIP" >&5
7514echo "${ECHO_T}$STRIP" >&6
be01d343 7515else
c6b750e1
DJ
7516 echo "$as_me:$LINENO: result: no" >&5
7517echo "${ECHO_T}no" >&6
be01d343 7518fi
c6b750e1 7519
be01d343
PB
7520 fi
7521 test -n "$ac_cv_prog_STRIP" && break
7522done
7523
7524if test -z "$ac_cv_prog_STRIP" ; then
7525 STRIP=":"
7526fi
7527
9a819804
AO
7528
7529
7530if test -n "$WINDRES"; then
7531 ac_cv_prog_WINDRES=$WINDRES
7532elif test -n "$ac_cv_prog_WINDRES"; then
7533 WINDRES=$ac_cv_prog_WINDRES
7534fi
7535
7536if test -n "$ac_cv_prog_WINDRES"; then
7537 for ncn_progname in windres; do
7538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7539set dummy ${ncn_progname}; ac_word=$2
7540echo "$as_me:$LINENO: checking for $ac_word" >&5
7541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7542if test "${ac_cv_prog_WINDRES+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7544else
7545 if test -n "$WINDRES"; then
7546 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7547else
7548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549for as_dir in $PATH
7550do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7555 ac_cv_prog_WINDRES="${ncn_progname}"
7556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 break 2
7558 fi
7559done
7560done
7561
7562fi
7563fi
7564WINDRES=$ac_cv_prog_WINDRES
7565if test -n "$WINDRES"; then
7566 echo "$as_me:$LINENO: result: $WINDRES" >&5
7567echo "${ECHO_T}$WINDRES" >&6
7568else
7569 echo "$as_me:$LINENO: result: no" >&5
7570echo "${ECHO_T}no" >&6
7571fi
7572
7573 done
7574fi
7575
7576for ncn_progname in windres; do
05cbd757
PB
7577 if test -n "$ncn_tool_prefix"; then
7578 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7579set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7580echo "$as_me:$LINENO: checking for $ac_word" >&5
7581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7582if test "${ac_cv_prog_WINDRES+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7584else
7585 if test -n "$WINDRES"; then
7586 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7587else
c6b750e1
DJ
7588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589for as_dir in $PATH
7590do
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 break 2
7598 fi
7599done
7600done
7601
859789af
AC
7602fi
7603fi
c6b750e1 7604WINDRES=$ac_cv_prog_WINDRES
859789af 7605if test -n "$WINDRES"; then
c6b750e1
DJ
7606 echo "$as_me:$LINENO: result: $WINDRES" >&5
7607echo "${ECHO_T}$WINDRES" >&6
859789af 7608else
c6b750e1
DJ
7609 echo "$as_me:$LINENO: result: no" >&5
7610echo "${ECHO_T}no" >&6
859789af
AC
7611fi
7612
05cbd757
PB
7613 fi
7614 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7616set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7617echo "$as_me:$LINENO: checking for $ac_word" >&5
7618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7619if test "${ac_cv_prog_WINDRES+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7621else
05cbd757
PB
7622 if test -n "$WINDRES"; then
7623 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7624else
c6b750e1
DJ
7625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626for as_dir in $PATH
7627do
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632 ac_cv_prog_WINDRES="${ncn_progname}"
7633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 break 2
7635 fi
7636done
7637done
7638
859789af
AC
7639fi
7640fi
c6b750e1 7641WINDRES=$ac_cv_prog_WINDRES
05cbd757 7642if test -n "$WINDRES"; then
c6b750e1
DJ
7643 echo "$as_me:$LINENO: result: $WINDRES" >&5
7644echo "${ECHO_T}$WINDRES" >&6
859789af 7645else
c6b750e1
DJ
7646 echo "$as_me:$LINENO: result: no" >&5
7647echo "${ECHO_T}no" >&6
859789af 7648fi
c6b750e1 7649
05cbd757
PB
7650 fi
7651 test -n "$ac_cv_prog_WINDRES" && break
7652done
7653
7654if test -z "$ac_cv_prog_WINDRES" ; then
7655 set dummy windres
7656 if test $build = $host ; then
7657 WINDRES="$2"
859789af 7658 else
05cbd757 7659 WINDRES="${ncn_tool_prefix}$2"
859789af 7660 fi
859789af
AC
7661fi
7662
9a819804
AO
7663
7664
0c24b341
NC
7665if test -n "$WINDMC"; then
7666 ac_cv_prog_WINDMC=$WINDMC
7667elif test -n "$ac_cv_prog_WINDMC"; then
7668 WINDMC=$ac_cv_prog_WINDMC
7669fi
7670
7671if test -n "$ac_cv_prog_WINDMC"; then
7672 for ncn_progname in windmc; do
7673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7674set dummy ${ncn_progname}; ac_word=$2
7675echo "$as_me:$LINENO: checking for $ac_word" >&5
7676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7677if test "${ac_cv_prog_WINDMC+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7679else
7680 if test -n "$WINDMC"; then
7681 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7682else
7683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684for as_dir in $PATH
7685do
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7690 ac_cv_prog_WINDMC="${ncn_progname}"
7691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7693 fi
7694done
7695done
7696
7697fi
7698fi
7699WINDMC=$ac_cv_prog_WINDMC
7700if test -n "$WINDMC"; then
7701 echo "$as_me:$LINENO: result: $WINDMC" >&5
7702echo "${ECHO_T}$WINDMC" >&6
7703else
7704 echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6
7706fi
7707
7708 done
7709fi
7710
7711for ncn_progname in windmc; do
7712 if test -n "$ncn_tool_prefix"; then
7713 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7714set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7715echo "$as_me:$LINENO: checking for $ac_word" >&5
7716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7717if test "${ac_cv_prog_WINDMC+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719else
7720 if test -n "$WINDMC"; then
7721 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7722else
7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724for as_dir in $PATH
7725do
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7733 fi
7734done
7735done
7736
7737fi
7738fi
7739WINDMC=$ac_cv_prog_WINDMC
7740if test -n "$WINDMC"; then
7741 echo "$as_me:$LINENO: result: $WINDMC" >&5
7742echo "${ECHO_T}$WINDMC" >&6
7743else
7744 echo "$as_me:$LINENO: result: no" >&5
7745echo "${ECHO_T}no" >&6
7746fi
7747
7748 fi
7749 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7751set dummy ${ncn_progname}; ac_word=$2
7752echo "$as_me:$LINENO: checking for $ac_word" >&5
7753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7754if test "${ac_cv_prog_WINDMC+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756else
7757 if test -n "$WINDMC"; then
7758 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7759else
7760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761for as_dir in $PATH
7762do
7763 IFS=$as_save_IFS
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7767 ac_cv_prog_WINDMC="${ncn_progname}"
7768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 break 2
7770 fi
7771done
7772done
7773
7774fi
7775fi
7776WINDMC=$ac_cv_prog_WINDMC
7777if test -n "$WINDMC"; then
7778 echo "$as_me:$LINENO: result: $WINDMC" >&5
7779echo "${ECHO_T}$WINDMC" >&6
7780else
7781 echo "$as_me:$LINENO: result: no" >&5
7782echo "${ECHO_T}no" >&6
7783fi
7784
7785 fi
7786 test -n "$ac_cv_prog_WINDMC" && break
7787done
7788
7789if test -z "$ac_cv_prog_WINDMC" ; then
7790 set dummy windmc
7791 if test $build = $host ; then
7792 WINDMC="$2"
7793 else
7794 WINDMC="${ncn_tool_prefix}$2"
7795 fi
7796fi
7797
7798
7799
9a819804
AO
7800if test -n "$OBJCOPY"; then
7801 ac_cv_prog_OBJCOPY=$OBJCOPY
7802elif test -n "$ac_cv_prog_OBJCOPY"; then
7803 OBJCOPY=$ac_cv_prog_OBJCOPY
7804fi
7805
7806if test -n "$ac_cv_prog_OBJCOPY"; then
7807 for ncn_progname in objcopy; do
7808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7809set dummy ${ncn_progname}; ac_word=$2
7810echo "$as_me:$LINENO: checking for $ac_word" >&5
7811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7812if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814else
7815 if test -n "$OBJCOPY"; then
7816 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7817else
7818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819for as_dir in $PATH
7820do
7821 IFS=$as_save_IFS
7822 test -z "$as_dir" && as_dir=.
7823 for ac_exec_ext in '' $ac_executable_extensions; do
7824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7825 ac_cv_prog_OBJCOPY="${ncn_progname}"
7826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 break 2
7828 fi
7829done
7830done
7831
7832fi
7833fi
7834OBJCOPY=$ac_cv_prog_OBJCOPY
7835if test -n "$OBJCOPY"; then
7836 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7837echo "${ECHO_T}$OBJCOPY" >&6
7838else
7839 echo "$as_me:$LINENO: result: no" >&5
7840echo "${ECHO_T}no" >&6
7841fi
7842
7843 done
7844fi
7845
7846for ncn_progname in objcopy; do
05cbd757
PB
7847 if test -n "$ncn_tool_prefix"; then
7848 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7849set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7850echo "$as_me:$LINENO: checking for $ac_word" >&5
7851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7852if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7854else
7855 if test -n "$OBJCOPY"; then
7856 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7857else
c6b750e1
DJ
7858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859for as_dir in $PATH
7860do
7861 IFS=$as_save_IFS
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7865 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 break 2
7868 fi
7869done
7870done
7871
859789af
AC
7872fi
7873fi
c6b750e1 7874OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7875if test -n "$OBJCOPY"; then
c6b750e1
DJ
7876 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7877echo "${ECHO_T}$OBJCOPY" >&6
859789af 7878else
c6b750e1
DJ
7879 echo "$as_me:$LINENO: result: no" >&5
7880echo "${ECHO_T}no" >&6
859789af
AC
7881fi
7882
05cbd757
PB
7883 fi
7884 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7886set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7887echo "$as_me:$LINENO: checking for $ac_word" >&5
7888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7889if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7891else
05cbd757
PB
7892 if test -n "$OBJCOPY"; then
7893 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7894else
c6b750e1
DJ
7895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896for as_dir in $PATH
7897do
7898 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7902 ac_cv_prog_OBJCOPY="${ncn_progname}"
7903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 break 2
7905 fi
7906done
7907done
7908
859789af
AC
7909fi
7910fi
c6b750e1 7911OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7912if test -n "$OBJCOPY"; then
c6b750e1
DJ
7913 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7914echo "${ECHO_T}$OBJCOPY" >&6
859789af 7915else
c6b750e1
DJ
7916 echo "$as_me:$LINENO: result: no" >&5
7917echo "${ECHO_T}no" >&6
859789af 7918fi
c6b750e1 7919
05cbd757
PB
7920 fi
7921 test -n "$ac_cv_prog_OBJCOPY" && break
7922done
7923
7924if test -z "$ac_cv_prog_OBJCOPY" ; then
7925 set dummy objcopy
7926 if test $build = $host ; then
7927 OBJCOPY="$2"
859789af 7928 else
05cbd757 7929 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7930 fi
859789af
AC
7931fi
7932
9a819804
AO
7933
7934
7935if test -n "$OBJDUMP"; then
7936 ac_cv_prog_OBJDUMP=$OBJDUMP
7937elif test -n "$ac_cv_prog_OBJDUMP"; then
7938 OBJDUMP=$ac_cv_prog_OBJDUMP
7939fi
7940
7941if test -n "$ac_cv_prog_OBJDUMP"; then
7942 for ncn_progname in objdump; do
7943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7944set dummy ${ncn_progname}; ac_word=$2
7945echo "$as_me:$LINENO: checking for $ac_word" >&5
7946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7947if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949else
7950 if test -n "$OBJDUMP"; then
7951 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7952else
7953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954for as_dir in $PATH
7955do
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_prog_OBJDUMP="${ncn_progname}"
7961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7963 fi
7964done
7965done
7966
7967fi
7968fi
7969OBJDUMP=$ac_cv_prog_OBJDUMP
7970if test -n "$OBJDUMP"; then
7971 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7972echo "${ECHO_T}$OBJDUMP" >&6
7973else
7974 echo "$as_me:$LINENO: result: no" >&5
7975echo "${ECHO_T}no" >&6
7976fi
7977
7978 done
7979fi
7980
7981for ncn_progname in objdump; do
05cbd757
PB
7982 if test -n "$ncn_tool_prefix"; then
7983 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7984set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7985echo "$as_me:$LINENO: checking for $ac_word" >&5
7986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7987if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7989else
7990 if test -n "$OBJDUMP"; then
7991 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7992else
c6b750e1
DJ
7993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994for as_dir in $PATH
7995do
7996 IFS=$as_save_IFS
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 break 2
8003 fi
8004done
8005done
8006
859789af
AC
8007fi
8008fi
c6b750e1 8009OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8010if test -n "$OBJDUMP"; then
c6b750e1
DJ
8011 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8012echo "${ECHO_T}$OBJDUMP" >&6
859789af 8013else
c6b750e1
DJ
8014 echo "$as_me:$LINENO: result: no" >&5
8015echo "${ECHO_T}no" >&6
859789af
AC
8016fi
8017
05cbd757
PB
8018 fi
8019 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8021set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8022echo "$as_me:$LINENO: checking for $ac_word" >&5
8023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8024if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8026else
05cbd757
PB
8027 if test -n "$OBJDUMP"; then
8028 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8029else
c6b750e1
DJ
8030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031for as_dir in $PATH
8032do
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8037 ac_cv_prog_OBJDUMP="${ncn_progname}"
8038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 break 2
8040 fi
8041done
8042done
8043
859789af
AC
8044fi
8045fi
c6b750e1 8046OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8047if test -n "$OBJDUMP"; then
c6b750e1
DJ
8048 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8049echo "${ECHO_T}$OBJDUMP" >&6
859789af 8050else
c6b750e1
DJ
8051 echo "$as_me:$LINENO: result: no" >&5
8052echo "${ECHO_T}no" >&6
859789af 8053fi
c6b750e1 8054
05cbd757
PB
8055 fi
8056 test -n "$ac_cv_prog_OBJDUMP" && break
8057done
8058
8059if test -z "$ac_cv_prog_OBJDUMP" ; then
8060 set dummy objdump
8061 if test $build = $host ; then
8062 OBJDUMP="$2"
859789af 8063 else
05cbd757 8064 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8065 fi
859789af
AC
8066fi
8067
a0da8069
NN
8068
8069
8070
8071
8072
be01d343 8073# Target tools.
c6b750e1 8074
2429c060
PB
8075# Check whether --with-build-time-tools or --without-build-time-tools was given.
8076if test "${with_build_time_tools+set}" = set; then
8077 withval="$with_build_time_tools"
8078 case x"$withval" in
8079 x/*) ;;
8080 *)
8081 with_build_time_tools=
c6b750e1
DJ
8082 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8083echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8084 ;;
8085 esac
859789af 8086else
2429c060 8087 with_build_time_tools=
c6b750e1 8088fi;
859789af 8089
9a819804
AO
8090
8091
8092if test -n "$CC_FOR_TARGET"; then
8093 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8094elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8095 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8096fi
8097
8098if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8099 for ncn_progname in cc gcc; do
8100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8101set dummy ${ncn_progname}; ac_word=$2
8102echo "$as_me:$LINENO: checking for $ac_word" >&5
8103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8104if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106else
8107 if test -n "$CC_FOR_TARGET"; then
8108 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8109else
8110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111for as_dir in $PATH
8112do
8113 IFS=$as_save_IFS
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8117 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 break 2
8120 fi
8121done
8122done
8123
8124fi
8125fi
8126CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8127if test -n "$CC_FOR_TARGET"; then
8128 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8129echo "${ECHO_T}$CC_FOR_TARGET" >&6
8130else
8131 echo "$as_me:$LINENO: result: no" >&5
8132echo "${ECHO_T}no" >&6
8133fi
8134
8135 done
8136fi
8137
8138if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8139 for ncn_progname in cc gcc; do
c6b750e1
DJ
8140 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8141echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8142 if test -x $with_build_time_tools/${ncn_progname}; then
8143 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8144 echo "$as_me:$LINENO: result: yes" >&5
8145echo "${ECHO_T}yes" >&6
cac3d6c4 8146 break
2429c060 8147 else
c6b750e1
DJ
8148 echo "$as_me:$LINENO: result: no" >&5
8149echo "${ECHO_T}no" >&6
cac3d6c4
CM
8150 fi
8151 done
55db4b87
PB
8152fi
8153
2429c060
PB
8154if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8155 for ncn_progname in cc gcc; do
8156 if test -n "$ncn_target_tool_prefix"; then
8157 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8158set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8159echo "$as_me:$LINENO: checking for $ac_word" >&5
8160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8161if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8163else
8164 if test -n "$CC_FOR_TARGET"; then
8165 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8166else
c6b750e1
DJ
8167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168for as_dir in $PATH
8169do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8174 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178done
8179done
8180
55db4b87
PB
8181fi
8182fi
c6b750e1 8183CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8184if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8185 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8186echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8187else
c6b750e1
DJ
8188 echo "$as_me:$LINENO: result: no" >&5
8189echo "${ECHO_T}no" >&6
55db4b87
PB
8190fi
8191
2429c060
PB
8192 fi
8193 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8195set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8196echo "$as_me:$LINENO: checking for $ac_word" >&5
8197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8198if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8200else
05cbd757
PB
8201 if test -n "$CC_FOR_TARGET"; then
8202 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8203else
c6b750e1
DJ
8204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205for as_dir in $PATH
8206do
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8211 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8214 fi
8215done
8216done
8217
55db4b87
PB
8218fi
8219fi
c6b750e1 8220CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8221if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8222 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8223echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8224else
c6b750e1
DJ
8225 echo "$as_me:$LINENO: result: no" >&5
8226echo "${ECHO_T}no" >&6
55db4b87 8227fi
c6b750e1 8228
2429c060
PB
8229 fi
8230 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8231 done
8232fi
c6b750e1 8233
05cbd757
PB
8234if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8235 set dummy cc gcc
8236 if test $build = $target ; then
8237 CC_FOR_TARGET="$2"
55db4b87 8238 else
05cbd757 8239 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8240 fi
d3f5afc4
MS
8241else
8242 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8243fi
8244
9a819804
AO
8245
8246
8247if test -n "$CXX_FOR_TARGET"; then
8248 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8249elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8250 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8251fi
8252
8253if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8254 for ncn_progname in c++ g++ cxx gxx; do
8255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8256set dummy ${ncn_progname}; ac_word=$2
8257echo "$as_me:$LINENO: checking for $ac_word" >&5
8258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8259if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8261else
8262 if test -n "$CXX_FOR_TARGET"; then
8263 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8264else
8265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266for as_dir in $PATH
8267do
8268 IFS=$as_save_IFS
8269 test -z "$as_dir" && as_dir=.
8270 for ac_exec_ext in '' $ac_executable_extensions; do
8271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8272 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 break 2
8275 fi
8276done
8277done
8278
8279fi
8280fi
8281CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8282if test -n "$CXX_FOR_TARGET"; then
8283 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8284echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8285else
8286 echo "$as_me:$LINENO: result: no" >&5
8287echo "${ECHO_T}no" >&6
8288fi
8289
8290 done
8291fi
8292
8293if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8294 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8295 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8296echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8297 if test -x $with_build_time_tools/${ncn_progname}; then
8298 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8299 echo "$as_me:$LINENO: result: yes" >&5
8300echo "${ECHO_T}yes" >&6
2429c060
PB
8301 break
8302 else
c6b750e1
DJ
8303 echo "$as_me:$LINENO: result: no" >&5
8304echo "${ECHO_T}no" >&6
2429c060
PB
8305 fi
8306 done
8307fi
8308
8309if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8310 for ncn_progname in c++ g++ cxx gxx; do
8311 if test -n "$ncn_target_tool_prefix"; then
8312 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8313set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8314echo "$as_me:$LINENO: checking for $ac_word" >&5
8315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8316if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8318else
8319 if test -n "$CXX_FOR_TARGET"; then
8320 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8321else
c6b750e1
DJ
8322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323for as_dir in $PATH
8324do
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8329 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 break 2
8332 fi
8333done
8334done
8335
55db4b87
PB
8336fi
8337fi
c6b750e1 8338CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8339if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8340 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8341echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8342else
c6b750e1
DJ
8343 echo "$as_me:$LINENO: result: no" >&5
8344echo "${ECHO_T}no" >&6
55db4b87
PB
8345fi
8346
2429c060
PB
8347 fi
8348 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8350set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8351echo "$as_me:$LINENO: checking for $ac_word" >&5
8352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8353if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8355else
05cbd757
PB
8356 if test -n "$CXX_FOR_TARGET"; then
8357 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8358else
c6b750e1
DJ
8359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360for as_dir in $PATH
8361do
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8366 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 break 2
8369 fi
8370done
8371done
8372
55db4b87
PB
8373fi
8374fi
c6b750e1 8375CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8376if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8377 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8378echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8379else
c6b750e1
DJ
8380 echo "$as_me:$LINENO: result: no" >&5
8381echo "${ECHO_T}no" >&6
55db4b87 8382fi
c6b750e1 8383
2429c060
PB
8384 fi
8385 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8386 done
8387fi
c6b750e1 8388
05cbd757
PB
8389if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8390 set dummy c++ g++ cxx gxx
8391 if test $build = $target ; then
8392 CXX_FOR_TARGET="$2"
55db4b87 8393 else
05cbd757 8394 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8395 fi
d3f5afc4
MS
8396else
8397 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8398fi
8399
9a819804
AO
8400
8401
8402if test -n "$GCC_FOR_TARGET"; then
8403 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8404elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8405 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8406fi
8407
8408if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8409 for ncn_progname in gcc; do
8410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8411set dummy ${ncn_progname}; ac_word=$2
8412echo "$as_me:$LINENO: checking for $ac_word" >&5
8413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8414if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8416else
8417 if test -n "$GCC_FOR_TARGET"; then
8418 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8419else
8420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421for as_dir in $PATH
8422do
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
8425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8427 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 break 2
8430 fi
8431done
8432done
8433
8434fi
8435fi
8436GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8437if test -n "$GCC_FOR_TARGET"; then
8438 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8439echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8440else
8441 echo "$as_me:$LINENO: result: no" >&5
8442echo "${ECHO_T}no" >&6
8443fi
8444
8445 done
8446fi
8447
8448if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8449 for ncn_progname in gcc; do
c6b750e1
DJ
8450 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8451echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8452 if test -x $with_build_time_tools/${ncn_progname}; then
8453 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8454 echo "$as_me:$LINENO: result: yes" >&5
8455echo "${ECHO_T}yes" >&6
2429c060
PB
8456 break
8457 else
c6b750e1
DJ
8458 echo "$as_me:$LINENO: result: no" >&5
8459echo "${ECHO_T}no" >&6
2429c060
PB
8460 fi
8461 done
8462fi
8463
8464if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8465 for ncn_progname in gcc; do
8466 if test -n "$ncn_target_tool_prefix"; then
8467 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8468set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8469echo "$as_me:$LINENO: checking for $ac_word" >&5
8470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8471if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8473else
2429c060
PB
8474 if test -n "$GCC_FOR_TARGET"; then
8475 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8476else
c6b750e1
DJ
8477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478for as_dir in $PATH
8479do
8480 IFS=$as_save_IFS
8481 test -z "$as_dir" && as_dir=.
8482 for ac_exec_ext in '' $ac_executable_extensions; do
8483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8484 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8486 break 2
8487 fi
8488done
8489done
8490
55db4b87
PB
8491fi
8492fi
c6b750e1 8493GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8494if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8495 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8496echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8497else
c6b750e1
DJ
8498 echo "$as_me:$LINENO: result: no" >&5
8499echo "${ECHO_T}no" >&6
55db4b87
PB
8500fi
8501
2429c060
PB
8502 fi
8503 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8505set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8506echo "$as_me:$LINENO: checking for $ac_word" >&5
8507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8508if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8510else
05cbd757
PB
8511 if test -n "$GCC_FOR_TARGET"; then
8512 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8513else
c6b750e1
DJ
8514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515for as_dir in $PATH
8516do
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8521 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 break 2
8524 fi
8525done
8526done
8527
55db4b87
PB
8528fi
8529fi
c6b750e1 8530GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8531if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8532 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8533echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8534else
c6b750e1
DJ
8535 echo "$as_me:$LINENO: result: no" >&5
8536echo "${ECHO_T}no" >&6
55db4b87 8537fi
c6b750e1 8538
2429c060
PB
8539 fi
8540 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8541 done
8542fi
c6b750e1 8543
05cbd757
PB
8544if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8545 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8546else
8547 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8548fi
8549
9a819804
AO
8550
8551
8552if test -n "$GCJ_FOR_TARGET"; then
8553 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8554elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8555 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8556fi
8557
8558if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8559 for ncn_progname in gcj; do
8560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8561set dummy ${ncn_progname}; ac_word=$2
8562echo "$as_me:$LINENO: checking for $ac_word" >&5
8563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8564if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8566else
8567 if test -n "$GCJ_FOR_TARGET"; then
8568 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8569else
8570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571for as_dir in $PATH
8572do
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8577 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 break 2
8580 fi
8581done
8582done
8583
8584fi
8585fi
8586GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8587if test -n "$GCJ_FOR_TARGET"; then
8588 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8589echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8590else
8591 echo "$as_me:$LINENO: result: no" >&5
8592echo "${ECHO_T}no" >&6
8593fi
8594
8595 done
8596fi
8597
8598if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8599 for ncn_progname in gcj; do
c6b750e1
DJ
8600 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8601echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8602 if test -x $with_build_time_tools/${ncn_progname}; then
8603 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8604 echo "$as_me:$LINENO: result: yes" >&5
8605echo "${ECHO_T}yes" >&6
2429c060
PB
8606 break
8607 else
c6b750e1
DJ
8608 echo "$as_me:$LINENO: result: no" >&5
8609echo "${ECHO_T}no" >&6
2429c060
PB
8610 fi
8611 done
8612fi
8613
8614if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8615 for ncn_progname in gcj; do
8616 if test -n "$ncn_target_tool_prefix"; then
8617 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8618set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8619echo "$as_me:$LINENO: checking for $ac_word" >&5
8620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8621if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8623else
8624 if test -n "$GCJ_FOR_TARGET"; then
8625 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8626else
c6b750e1
DJ
8627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628for as_dir in $PATH
8629do
8630 IFS=$as_save_IFS
8631 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8634 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 break 2
8637 fi
8638done
8639done
8640
55db4b87
PB
8641fi
8642fi
9a819804
AO
8643GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8644if test -n "$GCJ_FOR_TARGET"; then
8645 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8646echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8647else
8648 echo "$as_me:$LINENO: result: no" >&5
8649echo "${ECHO_T}no" >&6
8650fi
8651
8652 fi
8653 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8655set dummy ${ncn_progname}; ac_word=$2
8656echo "$as_me:$LINENO: checking for $ac_word" >&5
8657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8658if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8660else
8661 if test -n "$GCJ_FOR_TARGET"; then
8662 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8663else
8664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665for as_dir in $PATH
8666do
8667 IFS=$as_save_IFS
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 break 2
8674 fi
8675done
8676done
8677
8678fi
8679fi
8680GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8681if test -n "$GCJ_FOR_TARGET"; then
8682 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8683echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8684else
8685 echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
8687fi
8688
8689 fi
8690 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8691 done
8692fi
8693
8694if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8695 set dummy gcj
8696 if test $build = $target ; then
8697 GCJ_FOR_TARGET="$2"
8698 else
8699 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8700 fi
d3f5afc4
MS
8701else
8702 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8703fi
8704
8705
8706
8707if test -n "$GFORTRAN_FOR_TARGET"; then
8708 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8709elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8710 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8711fi
8712
9a819804
AO
8713if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8714 for ncn_progname in gfortran; do
8715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8716set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8717echo "$as_me:$LINENO: checking for $ac_word" >&5
8718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8719if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8720 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8721else
9a819804
AO
8722 if test -n "$GFORTRAN_FOR_TARGET"; then
8723 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8724else
c6b750e1
DJ
8725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726for as_dir in $PATH
8727do
8728 IFS=$as_save_IFS
8729 test -z "$as_dir" && as_dir=.
8730 for ac_exec_ext in '' $ac_executable_extensions; do
8731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8732 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8734 break 2
8735 fi
8736done
8737done
8738
55db4b87
PB
8739fi
8740fi
9a819804
AO
8741GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8742if test -n "$GFORTRAN_FOR_TARGET"; then
8743 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8744echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8745else
c6b750e1
DJ
8746 echo "$as_me:$LINENO: result: no" >&5
8747echo "${ECHO_T}no" >&6
55db4b87 8748fi
c6b750e1 8749
2429c060
PB
8750 done
8751fi
c6b750e1 8752
9a819804 8753if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8754 for ncn_progname in gfortran; do
c6b750e1
DJ
8755 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8756echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8757 if test -x $with_build_time_tools/${ncn_progname}; then
8758 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8759 echo "$as_me:$LINENO: result: yes" >&5
8760echo "${ECHO_T}yes" >&6
2429c060
PB
8761 break
8762 else
c6b750e1
DJ
8763 echo "$as_me:$LINENO: result: no" >&5
8764echo "${ECHO_T}no" >&6
2429c060
PB
8765 fi
8766 done
8767fi
8768
8769if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8770 for ncn_progname in gfortran; do
8771 if test -n "$ncn_target_tool_prefix"; then
8772 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8773set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8774echo "$as_me:$LINENO: checking for $ac_word" >&5
8775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8776if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8778else
8779 if test -n "$GFORTRAN_FOR_TARGET"; then
8780 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8781else
c6b750e1
DJ
8782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783for as_dir in $PATH
8784do
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8789 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8791 break 2
8792 fi
8793done
8794done
8795
55db4b87
PB
8796fi
8797fi
c6b750e1 8798GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8799if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8800 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8801echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8802else
c6b750e1
DJ
8803 echo "$as_me:$LINENO: result: no" >&5
8804echo "${ECHO_T}no" >&6
55db4b87
PB
8805fi
8806
2429c060
PB
8807 fi
8808 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8810set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8811echo "$as_me:$LINENO: checking for $ac_word" >&5
8812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8813if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8815else
05cbd757 8816 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8817 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8818else
8819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820for as_dir in $PATH
8821do
8822 IFS=$as_save_IFS
8823 test -z "$as_dir" && as_dir=.
8824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8826 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 break 2
8829 fi
8830done
8831done
8832
55db4b87
PB
8833fi
8834fi
c6b750e1 8835GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8836if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8837 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8838echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8839else
c6b750e1
DJ
8840 echo "$as_me:$LINENO: result: no" >&5
8841echo "${ECHO_T}no" >&6
55db4b87 8842fi
c6b750e1 8843
2429c060
PB
8844 fi
8845 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8846 done
8847fi
c6b750e1 8848
05cbd757
PB
8849if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8850 set dummy gfortran
8851 if test $build = $target ; then
8852 GFORTRAN_FOR_TARGET="$2"
55db4b87 8853 else
05cbd757 8854 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8855 fi
d3f5afc4
MS
8856else
8857 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8858fi
8859
2429c060
PB
8860
8861
2429c060
PB
8862cat > conftest.c << \EOF
8863#ifdef __GNUC__
8864 gcc_yay;
8865#endif
8866EOF
8867if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8868 have_gcc_for_target=yes
859789af 8869else
2429c060
PB
8870 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8871 have_gcc_for_target=no
859789af 8872fi
2429c060
PB
8873rm conftest.c
8874
8875
8876
859789af 8877
2429c060
PB
8878if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8879 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8880 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8881echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8882 if test -x $with_build_time_tools/ar; then
8883 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8884 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8885 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8886echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8887 else
c6b750e1
DJ
8888 echo "$as_me:$LINENO: result: no" >&5
8889echo "${ECHO_T}no" >&6
3a35eeb3 8890 fi
2429c060
PB
8891 elif test $build != $host && test $have_gcc_for_target = yes; then
8892 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8893 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8894 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8895 fi
2429c060 8896fi
c6b750e1 8897if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8898 # Extract the first word of "ar", so it can be a program name with args.
8899set dummy ar; ac_word=$2
c6b750e1
DJ
8900echo "$as_me:$LINENO: checking for $ac_word" >&5
8901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8902if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8904else
c6b750e1
DJ
8905 case $AR_FOR_TARGET in
8906 [\\/]* | ?:[\\/]*)
2429c060
PB
8907 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8908 ;;
2429c060 8909 *)
c6b750e1
DJ
8910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911for as_dir in $gcc_cv_tool_dirs
8912do
8913 IFS=$as_save_IFS
8914 test -z "$as_dir" && as_dir=.
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8917 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8919 break 2
8920 fi
8921done
8922done
8923
2429c060
PB
8924 ;;
8925esac
859789af 8926fi
c6b750e1
DJ
8927AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8928
2429c060 8929if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8930 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8931echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8932else
c6b750e1
DJ
8933 echo "$as_me:$LINENO: result: no" >&5
8934echo "${ECHO_T}no" >&6
859789af 8935fi
05cbd757 8936
2429c060
PB
8937fi
8938if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8939
8940
8941if test -n "$AR_FOR_TARGET"; then
8942 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8943elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8944 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8945fi
8946
8947if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8948 for ncn_progname in ar; do
8949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8950set dummy ${ncn_progname}; ac_word=$2
8951echo "$as_me:$LINENO: checking for $ac_word" >&5
8952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8953if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8955else
8956 if test -n "$AR_FOR_TARGET"; then
8957 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8958else
8959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960for as_dir in $PATH
8961do
8962 IFS=$as_save_IFS
8963 test -z "$as_dir" && as_dir=.
8964 for ac_exec_ext in '' $ac_executable_extensions; do
8965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8966 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8968 break 2
8969 fi
8970done
8971done
8972
8973fi
8974fi
8975AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8976if test -n "$AR_FOR_TARGET"; then
8977 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8978echo "${ECHO_T}$AR_FOR_TARGET" >&6
8979else
8980 echo "$as_me:$LINENO: result: no" >&5
8981echo "${ECHO_T}no" >&6
8982fi
8983
8984 done
8985fi
8986
8987if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8988 for ncn_progname in ar; do
c6b750e1
DJ
8989 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8990echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8991 if test -x $with_build_time_tools/${ncn_progname}; then
8992 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8993 echo "$as_me:$LINENO: result: yes" >&5
8994echo "${ECHO_T}yes" >&6
2429c060
PB
8995 break
8996 else
c6b750e1
DJ
8997 echo "$as_me:$LINENO: result: no" >&5
8998echo "${ECHO_T}no" >&6
2429c060
PB
8999 fi
9000 done
859789af
AC
9001fi
9002
2429c060
PB
9003if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9004 for ncn_progname in ar; do
9005 if test -n "$ncn_target_tool_prefix"; then
9006 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9007set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9008echo "$as_me:$LINENO: checking for $ac_word" >&5
9009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9010if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9012else
2429c060
PB
9013 if test -n "$AR_FOR_TARGET"; then
9014 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9015else
c6b750e1
DJ
9016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017for as_dir in $PATH
9018do
9019 IFS=$as_save_IFS
9020 test -z "$as_dir" && as_dir=.
9021 for ac_exec_ext in '' $ac_executable_extensions; do
9022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9023 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9025 break 2
9026 fi
9027done
9028done
9029
7e0f7140
GK
9030fi
9031fi
c6b750e1 9032AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9033if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9034 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9035echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9036else
c6b750e1
DJ
9037 echo "$as_me:$LINENO: result: no" >&5
9038echo "${ECHO_T}no" >&6
7e0f7140
GK
9039fi
9040
2429c060
PB
9041 fi
9042 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9044set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9045echo "$as_me:$LINENO: checking for $ac_word" >&5
9046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9047if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9049else
2429c060
PB
9050 if test -n "$AR_FOR_TARGET"; then
9051 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9052else
c6b750e1
DJ
9053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054for as_dir in $PATH
9055do
9056 IFS=$as_save_IFS
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9060 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 break 2
9063 fi
9064done
9065done
9066
7e0f7140
GK
9067fi
9068fi
c6b750e1 9069AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9070if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9071 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9072echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9073else
c6b750e1
DJ
9074 echo "$as_me:$LINENO: result: no" >&5
9075echo "${ECHO_T}no" >&6
7e0f7140 9076fi
c6b750e1 9077
2429c060
PB
9078 fi
9079 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9080 done
9081fi
c6b750e1 9082
2429c060
PB
9083if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9084 set dummy ar
7e0f7140 9085 if test $build = $target ; then
2429c060 9086 AR_FOR_TARGET="$2"
7e0f7140 9087 else
2429c060 9088 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9089 fi
d3f5afc4
MS
9090else
9091 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9092fi
9093
3a35eeb3
PB
9094else
9095 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9096fi
9097
9098
9099
9100
9101if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9102 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9103 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9104echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9105 if test -x $with_build_time_tools/as; then
9106 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9107 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9108 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9109echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9110 else
c6b750e1
DJ
9111 echo "$as_me:$LINENO: result: no" >&5
9112echo "${ECHO_T}no" >&6
3a35eeb3 9113 fi
2429c060
PB
9114 elif test $build != $host && test $have_gcc_for_target = yes; then
9115 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9116 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9117 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9118 fi
9119fi
c6b750e1 9120if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9121 # Extract the first word of "as", so it can be a program name with args.
9122set dummy as; ac_word=$2
c6b750e1
DJ
9123echo "$as_me:$LINENO: checking for $ac_word" >&5
9124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9125if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9126 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9127else
c6b750e1
DJ
9128 case $AS_FOR_TARGET in
9129 [\\/]* | ?:[\\/]*)
2429c060
PB
9130 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9131 ;;
2429c060 9132 *)
c6b750e1
DJ
9133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9134for as_dir in $gcc_cv_tool_dirs
9135do
9136 IFS=$as_save_IFS
9137 test -z "$as_dir" && as_dir=.
9138 for ac_exec_ext in '' $ac_executable_extensions; do
9139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9140 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9142 break 2
9143 fi
9144done
9145done
9146
2429c060
PB
9147 ;;
9148esac
9149fi
c6b750e1
DJ
9150AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9151
2429c060 9152if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9153 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9154echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9155else
c6b750e1
DJ
9156 echo "$as_me:$LINENO: result: no" >&5
9157echo "${ECHO_T}no" >&6
2429c060
PB
9158fi
9159
9160fi
9161if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9162
9163
9164if test -n "$AS_FOR_TARGET"; then
9165 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9166elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9167 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9168fi
9169
9170if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9171 for ncn_progname in as; do
9172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9173set dummy ${ncn_progname}; ac_word=$2
9174echo "$as_me:$LINENO: checking for $ac_word" >&5
9175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9176if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9178else
9179 if test -n "$AS_FOR_TARGET"; then
9180 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9181else
9182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183for as_dir in $PATH
9184do
9185 IFS=$as_save_IFS
9186 test -z "$as_dir" && as_dir=.
9187 for ac_exec_ext in '' $ac_executable_extensions; do
9188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9189 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9191 break 2
9192 fi
9193done
9194done
9195
9196fi
9197fi
9198AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9199if test -n "$AS_FOR_TARGET"; then
9200 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9201echo "${ECHO_T}$AS_FOR_TARGET" >&6
9202else
9203 echo "$as_me:$LINENO: result: no" >&5
9204echo "${ECHO_T}no" >&6
9205fi
9206
9207 done
9208fi
9209
9210if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9211 for ncn_progname in as; do
c6b750e1
DJ
9212 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9213echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9214 if test -x $with_build_time_tools/${ncn_progname}; then
9215 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9216 echo "$as_me:$LINENO: result: yes" >&5
9217echo "${ECHO_T}yes" >&6
2429c060
PB
9218 break
9219 else
c6b750e1
DJ
9220 echo "$as_me:$LINENO: result: no" >&5
9221echo "${ECHO_T}no" >&6
2429c060
PB
9222 fi
9223 done
9224fi
9225
9226if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9227 for ncn_progname in as; do
9228 if test -n "$ncn_target_tool_prefix"; then
9229 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9230set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9231echo "$as_me:$LINENO: checking for $ac_word" >&5
9232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9233if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9235else
9236 if test -n "$AS_FOR_TARGET"; then
9237 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9238else
c6b750e1
DJ
9239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240for as_dir in $PATH
9241do
9242 IFS=$as_save_IFS
9243 test -z "$as_dir" && as_dir=.
9244 for ac_exec_ext in '' $ac_executable_extensions; do
9245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9246 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9248 break 2
9249 fi
9250done
9251done
9252
2429c060
PB
9253fi
9254fi
c6b750e1 9255AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9256if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9257 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9258echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9259else
c6b750e1
DJ
9260 echo "$as_me:$LINENO: result: no" >&5
9261echo "${ECHO_T}no" >&6
2429c060
PB
9262fi
9263
9264 fi
9265 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9267set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9268echo "$as_me:$LINENO: checking for $ac_word" >&5
9269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9270if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9272else
9273 if test -n "$AS_FOR_TARGET"; then
9274 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9275else
c6b750e1
DJ
9276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277for as_dir in $PATH
9278do
9279 IFS=$as_save_IFS
9280 test -z "$as_dir" && as_dir=.
9281 for ac_exec_ext in '' $ac_executable_extensions; do
9282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9285 break 2
9286 fi
9287done
9288done
9289
2429c060
PB
9290fi
9291fi
c6b750e1 9292AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9293if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9294 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9295echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9296else
c6b750e1
DJ
9297 echo "$as_me:$LINENO: result: no" >&5
9298echo "${ECHO_T}no" >&6
2429c060 9299fi
c6b750e1 9300
2429c060
PB
9301 fi
9302 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9303 done
9304fi
c6b750e1 9305
2429c060
PB
9306if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9307 set dummy as
9308 if test $build = $target ; then
9309 AS_FOR_TARGET="$2"
9310 else
9311 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9312 fi
d3f5afc4
MS
9313else
9314 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9315fi
9316
3a35eeb3
PB
9317else
9318 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9319fi
9320
9321
9322
9323
9324if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9325 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9326 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9327echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9328 if test -x $with_build_time_tools/dlltool; then
9329 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9330 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9331 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9332echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9333 else
c6b750e1
DJ
9334 echo "$as_me:$LINENO: result: no" >&5
9335echo "${ECHO_T}no" >&6
3a35eeb3 9336 fi
2429c060
PB
9337 elif test $build != $host && test $have_gcc_for_target = yes; then
9338 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9339 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9340 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9341 fi
9342fi
c6b750e1 9343if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9344 # Extract the first word of "dlltool", so it can be a program name with args.
9345set dummy dlltool; ac_word=$2
c6b750e1
DJ
9346echo "$as_me:$LINENO: checking for $ac_word" >&5
9347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9348if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9350else
c6b750e1
DJ
9351 case $DLLTOOL_FOR_TARGET in
9352 [\\/]* | ?:[\\/]*)
2429c060
PB
9353 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9354 ;;
2429c060 9355 *)
c6b750e1
DJ
9356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357for as_dir in $gcc_cv_tool_dirs
9358do
9359 IFS=$as_save_IFS
9360 test -z "$as_dir" && as_dir=.
9361 for ac_exec_ext in '' $ac_executable_extensions; do
9362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9363 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9365 break 2
9366 fi
9367done
9368done
9369
2429c060
PB
9370 ;;
9371esac
9372fi
c6b750e1
DJ
9373DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9374
2429c060 9375if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9376 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9377echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9378else
c6b750e1
DJ
9379 echo "$as_me:$LINENO: result: no" >&5
9380echo "${ECHO_T}no" >&6
2429c060
PB
9381fi
9382
9383fi
9384if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9385
9386
9387if test -n "$DLLTOOL_FOR_TARGET"; then
9388 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9389elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9390 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9391fi
9392
9393if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9394 for ncn_progname in dlltool; do
9395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9396set dummy ${ncn_progname}; ac_word=$2
9397echo "$as_me:$LINENO: checking for $ac_word" >&5
9398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9399if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9401else
9402 if test -n "$DLLTOOL_FOR_TARGET"; then
9403 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9404else
9405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406for as_dir in $PATH
9407do
9408 IFS=$as_save_IFS
9409 test -z "$as_dir" && as_dir=.
9410 for ac_exec_ext in '' $ac_executable_extensions; do
9411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9412 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9414 break 2
9415 fi
9416done
9417done
9418
9419fi
9420fi
9421DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9422if test -n "$DLLTOOL_FOR_TARGET"; then
9423 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9424echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9425else
9426 echo "$as_me:$LINENO: result: no" >&5
9427echo "${ECHO_T}no" >&6
9428fi
9429
9430 done
9431fi
9432
9433if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9434 for ncn_progname in dlltool; do
c6b750e1
DJ
9435 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9436echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9437 if test -x $with_build_time_tools/${ncn_progname}; then
9438 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9439 echo "$as_me:$LINENO: result: yes" >&5
9440echo "${ECHO_T}yes" >&6
2429c060
PB
9441 break
9442 else
c6b750e1
DJ
9443 echo "$as_me:$LINENO: result: no" >&5
9444echo "${ECHO_T}no" >&6
2429c060
PB
9445 fi
9446 done
9447fi
9448
9449if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9450 for ncn_progname in dlltool; do
9451 if test -n "$ncn_target_tool_prefix"; then
9452 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9453set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9454echo "$as_me:$LINENO: checking for $ac_word" >&5
9455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9456if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9458else
9459 if test -n "$DLLTOOL_FOR_TARGET"; then
9460 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9461else
c6b750e1
DJ
9462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463for as_dir in $PATH
9464do
9465 IFS=$as_save_IFS
9466 test -z "$as_dir" && as_dir=.
9467 for ac_exec_ext in '' $ac_executable_extensions; do
9468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9469 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9471 break 2
9472 fi
9473done
9474done
9475
2429c060
PB
9476fi
9477fi
c6b750e1 9478DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9479if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9480 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9481echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9482else
c6b750e1
DJ
9483 echo "$as_me:$LINENO: result: no" >&5
9484echo "${ECHO_T}no" >&6
2429c060
PB
9485fi
9486
9487 fi
9488 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9490set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9491echo "$as_me:$LINENO: checking for $ac_word" >&5
9492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9493if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9495else
9496 if test -n "$DLLTOOL_FOR_TARGET"; then
9497 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9498else
c6b750e1
DJ
9499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500for as_dir in $PATH
9501do
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9506 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 break 2
9509 fi
9510done
9511done
9512
2429c060
PB
9513fi
9514fi
c6b750e1 9515DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9516if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9517 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9518echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9519else
c6b750e1
DJ
9520 echo "$as_me:$LINENO: result: no" >&5
9521echo "${ECHO_T}no" >&6
2429c060 9522fi
c6b750e1 9523
2429c060
PB
9524 fi
9525 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9526 done
9527fi
c6b750e1 9528
2429c060
PB
9529if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9530 set dummy dlltool
9531 if test $build = $target ; then
9532 DLLTOOL_FOR_TARGET="$2"
9533 else
9534 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9535 fi
d3f5afc4
MS
9536else
9537 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9538fi
9539
3a35eeb3
PB
9540else
9541 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9542fi
9543
9544
9545
9546
9547if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9548 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9549 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9550echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9551 if test -x $with_build_time_tools/ld; then
9552 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9553 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9554 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9555echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9556 else
c6b750e1
DJ
9557 echo "$as_me:$LINENO: result: no" >&5
9558echo "${ECHO_T}no" >&6
3a35eeb3 9559 fi
2429c060
PB
9560 elif test $build != $host && test $have_gcc_for_target = yes; then
9561 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9562 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9563 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9564 fi
9565fi
c6b750e1 9566if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9567 # Extract the first word of "ld", so it can be a program name with args.
9568set dummy ld; ac_word=$2
c6b750e1
DJ
9569echo "$as_me:$LINENO: checking for $ac_word" >&5
9570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9571if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9573else
c6b750e1
DJ
9574 case $LD_FOR_TARGET in
9575 [\\/]* | ?:[\\/]*)
2429c060
PB
9576 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9577 ;;
2429c060 9578 *)
c6b750e1
DJ
9579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580for as_dir in $gcc_cv_tool_dirs
9581do
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
9584 for ac_exec_ext in '' $ac_executable_extensions; do
9585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9586 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9588 break 2
9589 fi
9590done
9591done
9592
2429c060
PB
9593 ;;
9594esac
9595fi
c6b750e1
DJ
9596LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9597
2429c060 9598if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9599 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9600echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9601else
c6b750e1
DJ
9602 echo "$as_me:$LINENO: result: no" >&5
9603echo "${ECHO_T}no" >&6
2429c060
PB
9604fi
9605
9606fi
9607if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9608
9609
9610if test -n "$LD_FOR_TARGET"; then
9611 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9612elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9613 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9614fi
9615
9616if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9617 for ncn_progname in ld; do
9618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9619set dummy ${ncn_progname}; ac_word=$2
9620echo "$as_me:$LINENO: checking for $ac_word" >&5
9621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9622if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9624else
9625 if test -n "$LD_FOR_TARGET"; then
9626 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9627else
9628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629for as_dir in $PATH
9630do
9631 IFS=$as_save_IFS
9632 test -z "$as_dir" && as_dir=.
9633 for ac_exec_ext in '' $ac_executable_extensions; do
9634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9635 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9637 break 2
9638 fi
9639done
9640done
9641
9642fi
9643fi
9644LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9645if test -n "$LD_FOR_TARGET"; then
9646 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9647echo "${ECHO_T}$LD_FOR_TARGET" >&6
9648else
9649 echo "$as_me:$LINENO: result: no" >&5
9650echo "${ECHO_T}no" >&6
9651fi
9652
9653 done
9654fi
9655
9656if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9657 for ncn_progname in ld; do
c6b750e1
DJ
9658 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9659echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9660 if test -x $with_build_time_tools/${ncn_progname}; then
9661 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9662 echo "$as_me:$LINENO: result: yes" >&5
9663echo "${ECHO_T}yes" >&6
2429c060
PB
9664 break
9665 else
c6b750e1
DJ
9666 echo "$as_me:$LINENO: result: no" >&5
9667echo "${ECHO_T}no" >&6
2429c060
PB
9668 fi
9669 done
9670fi
9671
9672if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9673 for ncn_progname in ld; do
9674 if test -n "$ncn_target_tool_prefix"; then
9675 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9676set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9677echo "$as_me:$LINENO: checking for $ac_word" >&5
9678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9679if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9681else
9682 if test -n "$LD_FOR_TARGET"; then
9683 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9684else
c6b750e1
DJ
9685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686for as_dir in $PATH
9687do
9688 IFS=$as_save_IFS
9689 test -z "$as_dir" && as_dir=.
9690 for ac_exec_ext in '' $ac_executable_extensions; do
9691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9694 break 2
9695 fi
9696done
9697done
9698
2429c060
PB
9699fi
9700fi
c6b750e1 9701LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9702if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9703 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9704echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9705else
c6b750e1
DJ
9706 echo "$as_me:$LINENO: result: no" >&5
9707echo "${ECHO_T}no" >&6
2429c060
PB
9708fi
9709
9710 fi
9711 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9713set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9714echo "$as_me:$LINENO: checking for $ac_word" >&5
9715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9716if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9718else
9719 if test -n "$LD_FOR_TARGET"; then
9720 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9721else
c6b750e1
DJ
9722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723for as_dir in $PATH
9724do
9725 IFS=$as_save_IFS
9726 test -z "$as_dir" && as_dir=.
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9729 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9731 break 2
9732 fi
9733done
9734done
9735
2429c060
PB
9736fi
9737fi
c6b750e1 9738LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9739if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9740 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9741echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9742else
c6b750e1
DJ
9743 echo "$as_me:$LINENO: result: no" >&5
9744echo "${ECHO_T}no" >&6
2429c060 9745fi
c6b750e1 9746
2429c060
PB
9747 fi
9748 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9749 done
9750fi
c6b750e1 9751
2429c060
PB
9752if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9753 set dummy ld
9754 if test $build = $target ; then
9755 LD_FOR_TARGET="$2"
9756 else
9757 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9758 fi
d3f5afc4
MS
9759else
9760 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9761fi
9762
3a35eeb3
PB
9763else
9764 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9765fi
9766
9767
9768
9769
9770if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9771 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9772 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9773echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9774 if test -x $with_build_time_tools/lipo; then
9775 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9776 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9777 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9778echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9779 else
c6b750e1
DJ
9780 echo "$as_me:$LINENO: result: no" >&5
9781echo "${ECHO_T}no" >&6
3a35eeb3 9782 fi
2429c060
PB
9783 elif test $build != $host && test $have_gcc_for_target = yes; then
9784 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9785 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9786 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9787 fi
9788fi
9a819804
AO
9789if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9790 # Extract the first word of "lipo", so it can be a program name with args.
9791set dummy lipo; ac_word=$2
9792echo "$as_me:$LINENO: checking for $ac_word" >&5
9793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9794if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9796else
9797 case $LIPO_FOR_TARGET in
9798 [\\/]* | ?:[\\/]*)
9799 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9800 ;;
9801 *)
9802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9803for as_dir in $gcc_cv_tool_dirs
9804do
9805 IFS=$as_save_IFS
9806 test -z "$as_dir" && as_dir=.
9807 for ac_exec_ext in '' $ac_executable_extensions; do
9808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9809 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9811 break 2
9812 fi
9813done
9814done
9815
9816 ;;
9817esac
9818fi
9819LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9820
9821if test -n "$LIPO_FOR_TARGET"; then
9822 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9823echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9824else
9825 echo "$as_me:$LINENO: result: no" >&5
9826echo "${ECHO_T}no" >&6
9827fi
9828
9829fi
9830if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9831
9832
9833if test -n "$LIPO_FOR_TARGET"; then
9834 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9835elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9836 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9837fi
9838
9839if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9840 for ncn_progname in lipo; do
9841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9842set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9843echo "$as_me:$LINENO: checking for $ac_word" >&5
9844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9845if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9846 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9847else
9a819804
AO
9848 if test -n "$LIPO_FOR_TARGET"; then
9849 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9850else
9851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9852for as_dir in $PATH
c6b750e1
DJ
9853do
9854 IFS=$as_save_IFS
9855 test -z "$as_dir" && as_dir=.
9856 for ac_exec_ext in '' $ac_executable_extensions; do
9857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9858 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9860 break 2
9861 fi
9862done
9863done
9864
2429c060 9865fi
9a819804
AO
9866fi
9867LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9868if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9869 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9870echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9871else
c6b750e1
DJ
9872 echo "$as_me:$LINENO: result: no" >&5
9873echo "${ECHO_T}no" >&6
2429c060
PB
9874fi
9875
9a819804 9876 done
2429c060 9877fi
9a819804
AO
9878
9879if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9880 for ncn_progname in lipo; do
c6b750e1
DJ
9881 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9882echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9883 if test -x $with_build_time_tools/${ncn_progname}; then
9884 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9885 echo "$as_me:$LINENO: result: yes" >&5
9886echo "${ECHO_T}yes" >&6
2429c060
PB
9887 break
9888 else
c6b750e1
DJ
9889 echo "$as_me:$LINENO: result: no" >&5
9890echo "${ECHO_T}no" >&6
2429c060
PB
9891 fi
9892 done
9893fi
9894
9895if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9896 for ncn_progname in lipo; do
9897 if test -n "$ncn_target_tool_prefix"; then
9898 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9899set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9900echo "$as_me:$LINENO: checking for $ac_word" >&5
9901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9902if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9904else
9905 if test -n "$LIPO_FOR_TARGET"; then
9906 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9907else
c6b750e1
DJ
9908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909for as_dir in $PATH
9910do
9911 IFS=$as_save_IFS
9912 test -z "$as_dir" && as_dir=.
9913 for ac_exec_ext in '' $ac_executable_extensions; do
9914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9915 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9917 break 2
9918 fi
9919done
9920done
9921
2429c060
PB
9922fi
9923fi
c6b750e1 9924LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9925if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9926 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9927echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9928else
c6b750e1
DJ
9929 echo "$as_me:$LINENO: result: no" >&5
9930echo "${ECHO_T}no" >&6
2429c060
PB
9931fi
9932
9933 fi
9934 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9936set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9937echo "$as_me:$LINENO: checking for $ac_word" >&5
9938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9939if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9941else
9942 if test -n "$LIPO_FOR_TARGET"; then
9943 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9944else
c6b750e1
DJ
9945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946for as_dir in $PATH
9947do
9948 IFS=$as_save_IFS
9949 test -z "$as_dir" && as_dir=.
9950 for ac_exec_ext in '' $ac_executable_extensions; do
9951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9952 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 break 2
9955 fi
9956done
9957done
9958
2429c060
PB
9959fi
9960fi
c6b750e1 9961LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9962if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9963 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9964echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9965else
c6b750e1
DJ
9966 echo "$as_me:$LINENO: result: no" >&5
9967echo "${ECHO_T}no" >&6
2429c060 9968fi
c6b750e1 9969
2429c060
PB
9970 fi
9971 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9972 done
9973fi
c6b750e1 9974
2429c060
PB
9975if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9976 set dummy lipo
9977 if test $build = $target ; then
9978 LIPO_FOR_TARGET="$2"
9979 else
9980 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9981 fi
d3f5afc4
MS
9982else
9983 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9984fi
9985
3a35eeb3
PB
9986else
9987 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9988fi
9989
9990
9991
9992
9993if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9994 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9995 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9996echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9997 if test -x $with_build_time_tools/nm; then
9998 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9999 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
10000 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10001echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 10002 else
c6b750e1
DJ
10003 echo "$as_me:$LINENO: result: no" >&5
10004echo "${ECHO_T}no" >&6
3a35eeb3 10005 fi
2429c060
PB
10006 elif test $build != $host && test $have_gcc_for_target = yes; then
10007 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10008 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10009 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10010 fi
10011fi
c6b750e1 10012if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10013 # Extract the first word of "nm", so it can be a program name with args.
10014set dummy nm; ac_word=$2
c6b750e1
DJ
10015echo "$as_me:$LINENO: checking for $ac_word" >&5
10016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10017if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10019else
c6b750e1
DJ
10020 case $NM_FOR_TARGET in
10021 [\\/]* | ?:[\\/]*)
2429c060
PB
10022 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10023 ;;
2429c060 10024 *)
c6b750e1
DJ
10025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026for as_dir in $gcc_cv_tool_dirs
10027do
10028 IFS=$as_save_IFS
10029 test -z "$as_dir" && as_dir=.
10030 for ac_exec_ext in '' $ac_executable_extensions; do
10031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10032 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10034 break 2
10035 fi
10036done
10037done
10038
2429c060
PB
10039 ;;
10040esac
10041fi
c6b750e1
DJ
10042NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10043
2429c060 10044if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10045 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10046echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10047else
c6b750e1
DJ
10048 echo "$as_me:$LINENO: result: no" >&5
10049echo "${ECHO_T}no" >&6
2429c060
PB
10050fi
10051
10052fi
10053if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10054
10055
10056if test -n "$NM_FOR_TARGET"; then
10057 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10058elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10059 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10060fi
10061
10062if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10063 for ncn_progname in nm; do
10064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10065set dummy ${ncn_progname}; ac_word=$2
10066echo "$as_me:$LINENO: checking for $ac_word" >&5
10067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10068if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10070else
10071 if test -n "$NM_FOR_TARGET"; then
10072 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10073else
10074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075for as_dir in $PATH
10076do
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
10079 for ac_exec_ext in '' $ac_executable_extensions; do
10080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10081 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10083 break 2
10084 fi
10085done
10086done
10087
10088fi
10089fi
10090NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10091if test -n "$NM_FOR_TARGET"; then
10092 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10093echo "${ECHO_T}$NM_FOR_TARGET" >&6
10094else
10095 echo "$as_me:$LINENO: result: no" >&5
10096echo "${ECHO_T}no" >&6
10097fi
10098
10099 done
10100fi
10101
10102if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10103 for ncn_progname in nm; do
c6b750e1
DJ
10104 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10105echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10106 if test -x $with_build_time_tools/${ncn_progname}; then
10107 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10108 echo "$as_me:$LINENO: result: yes" >&5
10109echo "${ECHO_T}yes" >&6
2429c060
PB
10110 break
10111 else
c6b750e1
DJ
10112 echo "$as_me:$LINENO: result: no" >&5
10113echo "${ECHO_T}no" >&6
2429c060
PB
10114 fi
10115 done
10116fi
10117
10118if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10119 for ncn_progname in nm; do
10120 if test -n "$ncn_target_tool_prefix"; then
10121 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10122set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10123echo "$as_me:$LINENO: checking for $ac_word" >&5
10124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10125if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10126 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10127else
55db4b87
PB
10128 if test -n "$NM_FOR_TARGET"; then
10129 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10130else
c6b750e1
DJ
10131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10132for as_dir in $PATH
10133do
10134 IFS=$as_save_IFS
10135 test -z "$as_dir" && as_dir=.
10136 for ac_exec_ext in '' $ac_executable_extensions; do
10137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10138 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10140 break 2
10141 fi
10142done
10143done
10144
859789af
AC
10145fi
10146fi
c6b750e1 10147NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10148if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10149 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10150echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10151else
c6b750e1
DJ
10152 echo "$as_me:$LINENO: result: no" >&5
10153echo "${ECHO_T}no" >&6
859789af
AC
10154fi
10155
2429c060
PB
10156 fi
10157 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10159set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10160echo "$as_me:$LINENO: checking for $ac_word" >&5
10161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10162if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10164else
05cbd757
PB
10165 if test -n "$NM_FOR_TARGET"; then
10166 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10167else
c6b750e1
DJ
10168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10169for as_dir in $PATH
10170do
10171 IFS=$as_save_IFS
10172 test -z "$as_dir" && as_dir=.
10173 for ac_exec_ext in '' $ac_executable_extensions; do
10174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10175 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10177 break 2
10178 fi
10179done
10180done
10181
859789af
AC
10182fi
10183fi
c6b750e1 10184NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10185if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10186 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10187echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10188else
c6b750e1
DJ
10189 echo "$as_me:$LINENO: result: no" >&5
10190echo "${ECHO_T}no" >&6
859789af 10191fi
c6b750e1 10192
2429c060
PB
10193 fi
10194 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10195 done
10196fi
c6b750e1 10197
05cbd757
PB
10198if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10199 set dummy nm
10200 if test $build = $target ; then
10201 NM_FOR_TARGET="$2"
859789af 10202 else
05cbd757 10203 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10204 fi
d3f5afc4
MS
10205else
10206 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10207fi
10208
3a35eeb3
PB
10209else
10210 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10211fi
10212
10213
10214
10215
10216if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10217 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10218 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10219echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10220 if test -x $with_build_time_tools/objdump; then
10221 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10222 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10223 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10224echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10225 else
c6b750e1
DJ
10226 echo "$as_me:$LINENO: result: no" >&5
10227echo "${ECHO_T}no" >&6
3a35eeb3 10228 fi
2429c060
PB
10229 elif test $build != $host && test $have_gcc_for_target = yes; then
10230 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10231 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10232 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10233 fi
10234fi
c6b750e1 10235if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10236 # Extract the first word of "objdump", so it can be a program name with args.
10237set dummy objdump; ac_word=$2
c6b750e1
DJ
10238echo "$as_me:$LINENO: checking for $ac_word" >&5
10239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10240if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10242else
c6b750e1
DJ
10243 case $OBJDUMP_FOR_TARGET in
10244 [\\/]* | ?:[\\/]*)
2429c060
PB
10245 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10246 ;;
2429c060 10247 *)
c6b750e1
DJ
10248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10249for as_dir in $gcc_cv_tool_dirs
10250do
10251 IFS=$as_save_IFS
10252 test -z "$as_dir" && as_dir=.
10253 for ac_exec_ext in '' $ac_executable_extensions; do
10254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10255 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10257 break 2
10258 fi
10259done
10260done
10261
2429c060
PB
10262 ;;
10263esac
10264fi
c6b750e1
DJ
10265OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10266
2429c060 10267if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10268 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10269echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10270else
c6b750e1
DJ
10271 echo "$as_me:$LINENO: result: no" >&5
10272echo "${ECHO_T}no" >&6
2429c060
PB
10273fi
10274
10275fi
10276if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10277
10278
10279if test -n "$OBJDUMP_FOR_TARGET"; then
10280 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10281elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10282 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10283fi
10284
10285if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10286 for ncn_progname in objdump; do
10287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10288set dummy ${ncn_progname}; ac_word=$2
10289echo "$as_me:$LINENO: checking for $ac_word" >&5
10290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10291if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10293else
10294 if test -n "$OBJDUMP_FOR_TARGET"; then
10295 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10296else
10297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298for as_dir in $PATH
10299do
10300 IFS=$as_save_IFS
10301 test -z "$as_dir" && as_dir=.
10302 for ac_exec_ext in '' $ac_executable_extensions; do
10303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10304 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10306 break 2
10307 fi
10308done
10309done
10310
10311fi
10312fi
10313OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10314if test -n "$OBJDUMP_FOR_TARGET"; then
10315 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10316echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10317else
10318 echo "$as_me:$LINENO: result: no" >&5
10319echo "${ECHO_T}no" >&6
10320fi
10321
10322 done
10323fi
10324
10325if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10326 for ncn_progname in objdump; do
c6b750e1
DJ
10327 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10328echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10329 if test -x $with_build_time_tools/${ncn_progname}; then
10330 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10331 echo "$as_me:$LINENO: result: yes" >&5
10332echo "${ECHO_T}yes" >&6
2429c060
PB
10333 break
10334 else
c6b750e1
DJ
10335 echo "$as_me:$LINENO: result: no" >&5
10336echo "${ECHO_T}no" >&6
2429c060
PB
10337 fi
10338 done
10339fi
10340
10341if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10342 for ncn_progname in objdump; do
10343 if test -n "$ncn_target_tool_prefix"; then
10344 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10345set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10346echo "$as_me:$LINENO: checking for $ac_word" >&5
10347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10348if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10350else
10351 if test -n "$OBJDUMP_FOR_TARGET"; then
10352 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10353else
c6b750e1
DJ
10354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355for as_dir in $PATH
10356do
10357 IFS=$as_save_IFS
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10363 break 2
10364 fi
10365done
10366done
10367
5ae72758
DJ
10368fi
10369fi
c6b750e1 10370OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10371if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10372 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10373echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10374else
c6b750e1
DJ
10375 echo "$as_me:$LINENO: result: no" >&5
10376echo "${ECHO_T}no" >&6
5ae72758
DJ
10377fi
10378
2429c060
PB
10379 fi
10380 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10382set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10383echo "$as_me:$LINENO: checking for $ac_word" >&5
10384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10385if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10387else
10388 if test -n "$OBJDUMP_FOR_TARGET"; then
10389 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10390else
c6b750e1
DJ
10391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392for as_dir in $PATH
10393do
10394 IFS=$as_save_IFS
10395 test -z "$as_dir" && as_dir=.
10396 for ac_exec_ext in '' $ac_executable_extensions; do
10397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10398 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10400 break 2
10401 fi
10402done
10403done
10404
5ae72758
DJ
10405fi
10406fi
c6b750e1 10407OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10408if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10409 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10410echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10411else
c6b750e1
DJ
10412 echo "$as_me:$LINENO: result: no" >&5
10413echo "${ECHO_T}no" >&6
5ae72758 10414fi
c6b750e1 10415
2429c060
PB
10416 fi
10417 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10418 done
10419fi
c6b750e1 10420
5ae72758
DJ
10421if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10422 set dummy objdump
10423 if test $build = $target ; then
10424 OBJDUMP_FOR_TARGET="$2"
10425 else
10426 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10427 fi
d3f5afc4
MS
10428else
10429 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10430fi
10431
3a35eeb3
PB
10432else
10433 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10434fi
10435
10436
10437
10438
10439if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10440 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10441 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10442echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10443 if test -x $with_build_time_tools/ranlib; then
10444 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10445 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10446 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10447echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10448 else
c6b750e1
DJ
10449 echo "$as_me:$LINENO: result: no" >&5
10450echo "${ECHO_T}no" >&6
3a35eeb3 10451 fi
2429c060
PB
10452 elif test $build != $host && test $have_gcc_for_target = yes; then
10453 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10454 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10455 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10456 fi
10457fi
c6b750e1 10458if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10459 # Extract the first word of "ranlib", so it can be a program name with args.
10460set dummy ranlib; ac_word=$2
c6b750e1
DJ
10461echo "$as_me:$LINENO: checking for $ac_word" >&5
10462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10463if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10465else
c6b750e1
DJ
10466 case $RANLIB_FOR_TARGET in
10467 [\\/]* | ?:[\\/]*)
2429c060
PB
10468 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10469 ;;
2429c060 10470 *)
c6b750e1
DJ
10471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10472for as_dir in $gcc_cv_tool_dirs
10473do
10474 IFS=$as_save_IFS
10475 test -z "$as_dir" && as_dir=.
10476 for ac_exec_ext in '' $ac_executable_extensions; do
10477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10478 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10480 break 2
10481 fi
10482done
10483done
10484
2429c060
PB
10485 ;;
10486esac
10487fi
c6b750e1
DJ
10488RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10489
2429c060 10490if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10491 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10492echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10493else
c6b750e1
DJ
10494 echo "$as_me:$LINENO: result: no" >&5
10495echo "${ECHO_T}no" >&6
2429c060
PB
10496fi
10497
10498fi
10499if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10500
10501
10502if test -n "$RANLIB_FOR_TARGET"; then
10503 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10504elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10505 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10506fi
10507
10508if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10509 for ncn_progname in ranlib; do
10510 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10511set dummy ${ncn_progname}; ac_word=$2
10512echo "$as_me:$LINENO: checking for $ac_word" >&5
10513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10514if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10516else
10517 if test -n "$RANLIB_FOR_TARGET"; then
10518 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10519else
10520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10521for as_dir in $PATH
10522do
10523 IFS=$as_save_IFS
10524 test -z "$as_dir" && as_dir=.
10525 for ac_exec_ext in '' $ac_executable_extensions; do
10526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10527 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10529 break 2
10530 fi
10531done
10532done
10533
10534fi
10535fi
10536RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10537if test -n "$RANLIB_FOR_TARGET"; then
10538 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10539echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10540else
10541 echo "$as_me:$LINENO: result: no" >&5
10542echo "${ECHO_T}no" >&6
10543fi
10544
10545 done
10546fi
10547
10548if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10549 for ncn_progname in ranlib; do
c6b750e1
DJ
10550 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10551echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10552 if test -x $with_build_time_tools/${ncn_progname}; then
10553 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10554 echo "$as_me:$LINENO: result: yes" >&5
10555echo "${ECHO_T}yes" >&6
2429c060
PB
10556 break
10557 else
c6b750e1
DJ
10558 echo "$as_me:$LINENO: result: no" >&5
10559echo "${ECHO_T}no" >&6
2429c060
PB
10560 fi
10561 done
10562fi
10563
10564if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10565 for ncn_progname in ranlib; do
10566 if test -n "$ncn_target_tool_prefix"; then
10567 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10568set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10569echo "$as_me:$LINENO: checking for $ac_word" >&5
10570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10571if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10573else
55db4b87
PB
10574 if test -n "$RANLIB_FOR_TARGET"; then
10575 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10576else
c6b750e1
DJ
10577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10578for as_dir in $PATH
10579do
10580 IFS=$as_save_IFS
10581 test -z "$as_dir" && as_dir=.
10582 for ac_exec_ext in '' $ac_executable_extensions; do
10583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10584 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10586 break 2
10587 fi
10588done
10589done
10590
859789af
AC
10591fi
10592fi
c6b750e1 10593RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10594if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10595 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10596echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10597else
c6b750e1
DJ
10598 echo "$as_me:$LINENO: result: no" >&5
10599echo "${ECHO_T}no" >&6
859789af
AC
10600fi
10601
2429c060
PB
10602 fi
10603 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10605set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10606echo "$as_me:$LINENO: checking for $ac_word" >&5
10607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10608if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10610else
05cbd757
PB
10611 if test -n "$RANLIB_FOR_TARGET"; then
10612 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10613else
c6b750e1
DJ
10614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615for as_dir in $PATH
10616do
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10621 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10623 break 2
10624 fi
10625done
10626done
10627
859789af
AC
10628fi
10629fi
c6b750e1 10630RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10631if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10632 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10633echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10634else
c6b750e1
DJ
10635 echo "$as_me:$LINENO: result: no" >&5
10636echo "${ECHO_T}no" >&6
859789af 10637fi
c6b750e1 10638
2429c060
PB
10639 fi
10640 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10641 done
10642fi
c6b750e1 10643
2429c060
PB
10644if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10645 set dummy ranlib
10646 if test $build = $target ; then
10647 RANLIB_FOR_TARGET="$2"
10648 else
10649 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10650 fi
d3f5afc4
MS
10651else
10652 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10653fi
05cbd757 10654
3a35eeb3
PB
10655else
10656 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10657fi
10658
2429c060
PB
10659
10660
10661
10662if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10663 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10664 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10665echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10666 if test -x $with_build_time_tools/strip; then
10667 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10668 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10669 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10670echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10671 else
c6b750e1
DJ
10672 echo "$as_me:$LINENO: result: no" >&5
10673echo "${ECHO_T}no" >&6
3a35eeb3 10674 fi
2429c060
PB
10675 elif test $build != $host && test $have_gcc_for_target = yes; then
10676 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10677 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10678 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10679 fi
10680fi
c6b750e1 10681if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10682 # Extract the first word of "strip", so it can be a program name with args.
10683set dummy strip; ac_word=$2
c6b750e1
DJ
10684echo "$as_me:$LINENO: checking for $ac_word" >&5
10685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10686if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10688else
c6b750e1
DJ
10689 case $STRIP_FOR_TARGET in
10690 [\\/]* | ?:[\\/]*)
2429c060
PB
10691 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10692 ;;
2429c060 10693 *)
c6b750e1
DJ
10694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10695for as_dir in $gcc_cv_tool_dirs
10696do
10697 IFS=$as_save_IFS
10698 test -z "$as_dir" && as_dir=.
10699 for ac_exec_ext in '' $ac_executable_extensions; do
10700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10701 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10703 break 2
10704 fi
10705done
10706done
10707
2429c060
PB
10708 ;;
10709esac
10710fi
c6b750e1
DJ
10711STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10712
2429c060 10713if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10714 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10715echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10716else
c6b750e1
DJ
10717 echo "$as_me:$LINENO: result: no" >&5
10718echo "${ECHO_T}no" >&6
2429c060
PB
10719fi
10720
10721fi
10722if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10723
10724
10725if test -n "$STRIP_FOR_TARGET"; then
10726 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10727elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10728 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10729fi
10730
10731if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10732 for ncn_progname in strip; do
10733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10734set dummy ${ncn_progname}; ac_word=$2
10735echo "$as_me:$LINENO: checking for $ac_word" >&5
10736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10737if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739else
10740 if test -n "$STRIP_FOR_TARGET"; then
10741 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10742else
10743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744for as_dir in $PATH
10745do
10746 IFS=$as_save_IFS
10747 test -z "$as_dir" && as_dir=.
10748 for ac_exec_ext in '' $ac_executable_extensions; do
10749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10750 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10752 break 2
10753 fi
10754done
10755done
10756
10757fi
10758fi
10759STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10760if test -n "$STRIP_FOR_TARGET"; then
10761 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10762echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10763else
10764 echo "$as_me:$LINENO: result: no" >&5
10765echo "${ECHO_T}no" >&6
10766fi
10767
10768 done
10769fi
10770
10771if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10772 for ncn_progname in strip; do
c6b750e1
DJ
10773 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10774echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10775 if test -x $with_build_time_tools/${ncn_progname}; then
10776 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10777 echo "$as_me:$LINENO: result: yes" >&5
10778echo "${ECHO_T}yes" >&6
2429c060
PB
10779 break
10780 else
c6b750e1
DJ
10781 echo "$as_me:$LINENO: result: no" >&5
10782echo "${ECHO_T}no" >&6
2429c060
PB
10783 fi
10784 done
10785fi
10786
10787if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10788 for ncn_progname in strip; do
10789 if test -n "$ncn_target_tool_prefix"; then
10790 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10791set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10792echo "$as_me:$LINENO: checking for $ac_word" >&5
10793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10794if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10796else
10797 if test -n "$STRIP_FOR_TARGET"; then
10798 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10799else
10800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801for as_dir in $PATH
10802do
10803 IFS=$as_save_IFS
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10807 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10809 break 2
10810 fi
10811done
10812done
10813
7e0f7140
GK
10814fi
10815fi
c6b750e1 10816STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10817if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10818 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10819echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10820else
c6b750e1
DJ
10821 echo "$as_me:$LINENO: result: no" >&5
10822echo "${ECHO_T}no" >&6
7e0f7140
GK
10823fi
10824
2429c060
PB
10825 fi
10826 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10828set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10829echo "$as_me:$LINENO: checking for $ac_word" >&5
10830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10831if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10833else
10834 if test -n "$STRIP_FOR_TARGET"; then
10835 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10836else
c6b750e1
DJ
10837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838for as_dir in $PATH
10839do
10840 IFS=$as_save_IFS
10841 test -z "$as_dir" && as_dir=.
10842 for ac_exec_ext in '' $ac_executable_extensions; do
10843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10844 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 break 2
10847 fi
10848done
10849done
10850
7e0f7140
GK
10851fi
10852fi
c6b750e1 10853STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10854if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10855 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10856echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10857else
c6b750e1
DJ
10858 echo "$as_me:$LINENO: result: no" >&5
10859echo "${ECHO_T}no" >&6
7e0f7140 10860fi
c6b750e1 10861
2429c060
PB
10862 fi
10863 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10864 done
10865fi
c6b750e1 10866
7e0f7140
GK
10867if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10868 set dummy strip
10869 if test $build = $target ; then
10870 STRIP_FOR_TARGET="$2"
10871 else
10872 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10873 fi
d3f5afc4
MS
10874else
10875 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10876fi
10877
3a35eeb3
PB
10878else
10879 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10880fi
10881
10882
10883
10884
10885if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10886 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10887 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10888echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10889 if test -x $with_build_time_tools/windres; then
10890 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10891 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10892 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10893echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10894 else
c6b750e1
DJ
10895 echo "$as_me:$LINENO: result: no" >&5
10896echo "${ECHO_T}no" >&6
3a35eeb3 10897 fi
2429c060
PB
10898 elif test $build != $host && test $have_gcc_for_target = yes; then
10899 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10900 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10901 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10902 fi
10903fi
c6b750e1 10904if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10905 # Extract the first word of "windres", so it can be a program name with args.
10906set dummy windres; ac_word=$2
c6b750e1
DJ
10907echo "$as_me:$LINENO: checking for $ac_word" >&5
10908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10909if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10911else
c6b750e1
DJ
10912 case $WINDRES_FOR_TARGET in
10913 [\\/]* | ?:[\\/]*)
2429c060
PB
10914 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10915 ;;
2429c060 10916 *)
c6b750e1
DJ
10917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10918for as_dir in $gcc_cv_tool_dirs
10919do
10920 IFS=$as_save_IFS
10921 test -z "$as_dir" && as_dir=.
10922 for ac_exec_ext in '' $ac_executable_extensions; do
10923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10924 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10926 break 2
10927 fi
10928done
10929done
10930
2429c060
PB
10931 ;;
10932esac
10933fi
c6b750e1
DJ
10934WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10935
2429c060 10936if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10937 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10938echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10939else
c6b750e1
DJ
10940 echo "$as_me:$LINENO: result: no" >&5
10941echo "${ECHO_T}no" >&6
2429c060
PB
10942fi
10943
10944fi
10945if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10946
10947
10948if test -n "$WINDRES_FOR_TARGET"; then
10949 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10950elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10951 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10952fi
10953
10954if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10955 for ncn_progname in windres; do
10956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10957set dummy ${ncn_progname}; ac_word=$2
10958echo "$as_me:$LINENO: checking for $ac_word" >&5
10959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10960if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10962else
10963 if test -n "$WINDRES_FOR_TARGET"; then
10964 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10965else
10966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967for as_dir in $PATH
10968do
10969 IFS=$as_save_IFS
10970 test -z "$as_dir" && as_dir=.
10971 for ac_exec_ext in '' $ac_executable_extensions; do
10972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10973 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10975 break 2
10976 fi
10977done
10978done
10979
10980fi
10981fi
10982WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10983if test -n "$WINDRES_FOR_TARGET"; then
10984 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10985echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10986else
10987 echo "$as_me:$LINENO: result: no" >&5
10988echo "${ECHO_T}no" >&6
10989fi
10990
10991 done
10992fi
10993
10994if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10995 for ncn_progname in windres; do
c6b750e1
DJ
10996 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10997echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10998 if test -x $with_build_time_tools/${ncn_progname}; then
10999 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11000 echo "$as_me:$LINENO: result: yes" >&5
11001echo "${ECHO_T}yes" >&6
2429c060
PB
11002 break
11003 else
c6b750e1
DJ
11004 echo "$as_me:$LINENO: result: no" >&5
11005echo "${ECHO_T}no" >&6
2429c060
PB
11006 fi
11007 done
11008fi
11009
11010if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11011 for ncn_progname in windres; do
11012 if test -n "$ncn_target_tool_prefix"; then
11013 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11014set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11015echo "$as_me:$LINENO: checking for $ac_word" >&5
11016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11017if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11019else
55db4b87
PB
11020 if test -n "$WINDRES_FOR_TARGET"; then
11021 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11022else
c6b750e1
DJ
11023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024for as_dir in $PATH
11025do
11026 IFS=$as_save_IFS
11027 test -z "$as_dir" && as_dir=.
11028 for ac_exec_ext in '' $ac_executable_extensions; do
11029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11030 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11032 break 2
11033 fi
11034done
11035done
11036
859789af
AC
11037fi
11038fi
c6b750e1 11039WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11040if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11041 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11042echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11043else
c6b750e1
DJ
11044 echo "$as_me:$LINENO: result: no" >&5
11045echo "${ECHO_T}no" >&6
859789af
AC
11046fi
11047
2429c060
PB
11048 fi
11049 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11050 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11051set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11052echo "$as_me:$LINENO: checking for $ac_word" >&5
11053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11054if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11056else
05cbd757
PB
11057 if test -n "$WINDRES_FOR_TARGET"; then
11058 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11059else
c6b750e1
DJ
11060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11061for as_dir in $PATH
11062do
11063 IFS=$as_save_IFS
11064 test -z "$as_dir" && as_dir=.
11065 for ac_exec_ext in '' $ac_executable_extensions; do
11066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11067 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11069 break 2
11070 fi
11071done
11072done
11073
859789af
AC
11074fi
11075fi
c6b750e1 11076WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11077if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11078 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11079echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11080else
c6b750e1
DJ
11081 echo "$as_me:$LINENO: result: no" >&5
11082echo "${ECHO_T}no" >&6
859789af 11083fi
c6b750e1 11084
2429c060
PB
11085 fi
11086 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11087 done
11088fi
c6b750e1 11089
05cbd757
PB
11090if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11091 set dummy windres
11092 if test $build = $target ; then
11093 WINDRES_FOR_TARGET="$2"
859789af 11094 else
05cbd757 11095 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11096 fi
d3f5afc4
MS
11097else
11098 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11099fi
11100
3a35eeb3
PB
11101else
11102 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11103fi
11104
852e5f18 11105
0c24b341
NC
11106
11107
11108if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11109 if test -n "$with_build_time_tools"; then
11110 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11111echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11112 if test -x $with_build_time_tools/windmc; then
11113 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11114 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11115 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11116echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11117 else
11118 echo "$as_me:$LINENO: result: no" >&5
11119echo "${ECHO_T}no" >&6
11120 fi
11121 elif test $build != $host && test $have_gcc_for_target = yes; then
11122 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11123 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11124 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11125 fi
11126fi
11127if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11128 # Extract the first word of "windmc", so it can be a program name with args.
11129set dummy windmc; ac_word=$2
11130echo "$as_me:$LINENO: checking for $ac_word" >&5
11131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11132if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11134else
11135 case $WINDMC_FOR_TARGET in
11136 [\\/]* | ?:[\\/]*)
11137 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11138 ;;
11139 *)
11140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141for as_dir in $gcc_cv_tool_dirs
11142do
11143 IFS=$as_save_IFS
11144 test -z "$as_dir" && as_dir=.
11145 for ac_exec_ext in '' $ac_executable_extensions; do
11146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11147 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11149 break 2
11150 fi
11151done
11152done
11153
11154 ;;
11155esac
11156fi
11157WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11158
11159if test -n "$WINDMC_FOR_TARGET"; then
11160 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11161echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11162else
11163 echo "$as_me:$LINENO: result: no" >&5
11164echo "${ECHO_T}no" >&6
11165fi
11166
11167fi
11168if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11169
11170
11171if test -n "$WINDMC_FOR_TARGET"; then
11172 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11173elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11174 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11175fi
11176
11177if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11178 for ncn_progname in windmc; do
11179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11180set dummy ${ncn_progname}; ac_word=$2
11181echo "$as_me:$LINENO: checking for $ac_word" >&5
11182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11183if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185else
11186 if test -n "$WINDMC_FOR_TARGET"; then
11187 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11188else
11189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190for as_dir in $PATH
11191do
11192 IFS=$as_save_IFS
11193 test -z "$as_dir" && as_dir=.
11194 for ac_exec_ext in '' $ac_executable_extensions; do
11195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11196 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11198 break 2
11199 fi
11200done
11201done
11202
11203fi
11204fi
11205WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11206if test -n "$WINDMC_FOR_TARGET"; then
11207 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11208echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11209else
11210 echo "$as_me:$LINENO: result: no" >&5
11211echo "${ECHO_T}no" >&6
11212fi
11213
11214 done
11215fi
11216
11217if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11218 for ncn_progname in windmc; do
11219 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11220echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11221 if test -x $with_build_time_tools/${ncn_progname}; then
11222 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11223 echo "$as_me:$LINENO: result: yes" >&5
11224echo "${ECHO_T}yes" >&6
11225 break
11226 else
11227 echo "$as_me:$LINENO: result: no" >&5
11228echo "${ECHO_T}no" >&6
11229 fi
11230 done
11231fi
11232
11233if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11234 for ncn_progname in windmc; do
11235 if test -n "$ncn_target_tool_prefix"; then
11236 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11237set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11238echo "$as_me:$LINENO: checking for $ac_word" >&5
11239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11240if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11242else
11243 if test -n "$WINDMC_FOR_TARGET"; then
11244 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11245else
11246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247for as_dir in $PATH
11248do
11249 IFS=$as_save_IFS
11250 test -z "$as_dir" && as_dir=.
11251 for ac_exec_ext in '' $ac_executable_extensions; do
11252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11253 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11255 break 2
11256 fi
11257done
11258done
11259
11260fi
11261fi
11262WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11263if test -n "$WINDMC_FOR_TARGET"; then
11264 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11265echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11266else
11267 echo "$as_me:$LINENO: result: no" >&5
11268echo "${ECHO_T}no" >&6
11269fi
11270
11271 fi
11272 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11274set dummy ${ncn_progname}; ac_word=$2
11275echo "$as_me:$LINENO: checking for $ac_word" >&5
11276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11277if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279else
11280 if test -n "$WINDMC_FOR_TARGET"; then
11281 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11282else
11283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284for as_dir in $PATH
11285do
11286 IFS=$as_save_IFS
11287 test -z "$as_dir" && as_dir=.
11288 for ac_exec_ext in '' $ac_executable_extensions; do
11289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11290 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11292 break 2
11293 fi
11294done
11295done
11296
11297fi
11298fi
11299WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11300if test -n "$WINDMC_FOR_TARGET"; then
11301 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11302echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11303else
11304 echo "$as_me:$LINENO: result: no" >&5
11305echo "${ECHO_T}no" >&6
11306fi
11307
11308 fi
11309 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11310 done
11311fi
11312
11313if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11314 set dummy windmc
11315 if test $build = $target ; then
11316 WINDMC_FOR_TARGET="$2"
11317 else
11318 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11319 fi
11320else
11321 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11322fi
11323
11324else
11325 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11326fi
11327
11328
be01d343
PB
11329RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11330
c6b750e1
DJ
11331echo "$as_me:$LINENO: checking where to find the target ar" >&5
11332echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11333if test "x${build}" != "x${host}" ; then
2429c060
PB
11334 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11335 # We already found the complete path
b8025f34
AS
11336 ac_dir=`dirname $AR_FOR_TARGET`
11337 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11338echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11339 else
11340 # Canadian cross, just use what we found
c6b750e1
DJ
11341 echo "$as_me:$LINENO: result: pre-installed" >&5
11342echo "${ECHO_T}pre-installed" >&6
2429c060 11343 fi
be01d343
PB
11344else
11345 ok=yes
11346 case " ${configdirs} " in
11347 *" binutils "*) ;;
11348 *) ok=no ;;
11349 esac
c6b750e1 11350
be01d343
PB
11351 if test $ok = yes; then
11352 # An in-tree tool is available and we can use it
11353 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11354 echo "$as_me:$LINENO: result: just compiled" >&5
11355echo "${ECHO_T}just compiled" >&6
2429c060
PB
11356 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11357 # We already found the complete path
b8025f34
AS
11358 ac_dir=`dirname $AR_FOR_TARGET`
11359 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11360echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11361 elif test "x$target" = "x$host"; then
11362 # We can use an host tool
11363 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11364 echo "$as_me:$LINENO: result: host tool" >&5
11365echo "${ECHO_T}host tool" >&6
be01d343
PB
11366 else
11367 # We need a cross tool
c6b750e1
DJ
11368 echo "$as_me:$LINENO: result: pre-installed" >&5
11369echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11370 fi
11371fi
4b900473 11372
c6b750e1
DJ
11373echo "$as_me:$LINENO: checking where to find the target as" >&5
11374echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11375if test "x${build}" != "x${host}" ; then
2429c060
PB
11376 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11377 # We already found the complete path
b8025f34
AS
11378 ac_dir=`dirname $AS_FOR_TARGET`
11379 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11380echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11381 else
11382 # Canadian cross, just use what we found
c6b750e1
DJ
11383 echo "$as_me:$LINENO: result: pre-installed" >&5
11384echo "${ECHO_T}pre-installed" >&6
2429c060 11385 fi
be01d343
PB
11386else
11387 ok=yes
11388 case " ${configdirs} " in
11389 *" gas "*) ;;
11390 *) ok=no ;;
11391 esac
c6b750e1 11392
be01d343
PB
11393 if test $ok = yes; then
11394 # An in-tree tool is available and we can use it
11395 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11396 echo "$as_me:$LINENO: result: just compiled" >&5
11397echo "${ECHO_T}just compiled" >&6
2429c060
PB
11398 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11399 # We already found the complete path
b8025f34
AS
11400 ac_dir=`dirname $AS_FOR_TARGET`
11401 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11402echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11403 elif test "x$target" = "x$host"; then
11404 # We can use an host tool
11405 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11406 echo "$as_me:$LINENO: result: host tool" >&5
11407echo "${ECHO_T}host tool" >&6
be01d343
PB
11408 else
11409 # We need a cross tool
c6b750e1
DJ
11410 echo "$as_me:$LINENO: result: pre-installed" >&5
11411echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11412 fi
11413fi
4b900473 11414
c6b750e1
DJ
11415echo "$as_me:$LINENO: checking where to find the target cc" >&5
11416echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11417if test "x${build}" != "x${host}" ; then
2429c060
PB
11418 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11419 # We already found the complete path
b8025f34
AS
11420 ac_dir=`dirname $CC_FOR_TARGET`
11421 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11422echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11423 else
11424 # Canadian cross, just use what we found
c6b750e1
DJ
11425 echo "$as_me:$LINENO: result: pre-installed" >&5
11426echo "${ECHO_T}pre-installed" >&6
2429c060 11427 fi
be01d343
PB
11428else
11429 ok=yes
11430 case " ${configdirs} " in
11431 *" gcc "*) ;;
11432 *) ok=no ;;
11433 esac
c6b750e1 11434
be01d343
PB
11435 if test $ok = yes; then
11436 # An in-tree tool is available and we can use it
11437 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11438 echo "$as_me:$LINENO: result: just compiled" >&5
11439echo "${ECHO_T}just compiled" >&6
2429c060
PB
11440 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11441 # We already found the complete path
b8025f34
AS
11442 ac_dir=`dirname $CC_FOR_TARGET`
11443 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11444echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11445 elif test "x$target" = "x$host"; then
11446 # We can use an host tool
11447 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11448 echo "$as_me:$LINENO: result: host tool" >&5
11449echo "${ECHO_T}host tool" >&6
be01d343
PB
11450 else
11451 # We need a cross tool
c6b750e1
DJ
11452 echo "$as_me:$LINENO: result: pre-installed" >&5
11453echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11454 fi
11455fi
4b900473 11456
c6b750e1
DJ
11457echo "$as_me:$LINENO: checking where to find the target c++" >&5
11458echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11459if test "x${build}" != "x${host}" ; then
2429c060
PB
11460 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11461 # We already found the complete path
b8025f34
AS
11462 ac_dir=`dirname $CXX_FOR_TARGET`
11463 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11464echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11465 else
11466 # Canadian cross, just use what we found
c6b750e1
DJ
11467 echo "$as_me:$LINENO: result: pre-installed" >&5
11468echo "${ECHO_T}pre-installed" >&6
2429c060 11469 fi
be01d343
PB
11470else
11471 ok=yes
11472 case " ${configdirs} " in
11473 *" gcc "*) ;;
11474 *) ok=no ;;
11475 esac
11476 case ,${enable_languages}, in
11477 *,c++,*) ;;
11478 *) ok=no ;;
11479 esac
11480 if test $ok = yes; then
11481 # An in-tree tool is available and we can use it
11482 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
11483 echo "$as_me:$LINENO: result: just compiled" >&5
11484echo "${ECHO_T}just compiled" >&6
2429c060
PB
11485 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11486 # We already found the complete path
b8025f34
AS
11487 ac_dir=`dirname $CXX_FOR_TARGET`
11488 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11489echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11490 elif test "x$target" = "x$host"; then
11491 # We can use an host tool
11492 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11493 echo "$as_me:$LINENO: result: host tool" >&5
11494echo "${ECHO_T}host tool" >&6
be01d343
PB
11495 else
11496 # We need a cross tool
c6b750e1
DJ
11497 echo "$as_me:$LINENO: result: pre-installed" >&5
11498echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11499 fi
11500fi
4b900473 11501
c6b750e1
DJ
11502echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11503echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11504if test "x${build}" != "x${host}" ; then
2429c060
PB
11505 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11506 # We already found the complete path
b8025f34
AS
11507 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11508 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11509echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11510 else
11511 # Canadian cross, just use what we found
c6b750e1
DJ
11512 echo "$as_me:$LINENO: result: pre-installed" >&5
11513echo "${ECHO_T}pre-installed" >&6
2429c060 11514 fi
be01d343
PB
11515else
11516 ok=yes
11517 case " ${configdirs} " in
11518 *" gcc "*) ;;
11519 *) ok=no ;;
11520 esac
11521 case ,${enable_languages}, in
11522 *,c++,*) ;;
11523 *) ok=no ;;
11524 esac
11525 if test $ok = yes; then
11526 # An in-tree tool is available and we can use it
11527 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
11528 echo "$as_me:$LINENO: result: just compiled" >&5
11529echo "${ECHO_T}just compiled" >&6
2429c060
PB
11530 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11531 # We already found the complete path
b8025f34
AS
11532 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11533 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11534echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11535 elif test "x$target" = "x$host"; then
11536 # We can use an host tool
11537 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11538 echo "$as_me:$LINENO: result: host tool" >&5
11539echo "${ECHO_T}host tool" >&6
be01d343
PB
11540 else
11541 # We need a cross tool
c6b750e1
DJ
11542 echo "$as_me:$LINENO: result: pre-installed" >&5
11543echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11544 fi
11545fi
4b900473 11546
c6b750e1
DJ
11547echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11548echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11549if test "x${build}" != "x${host}" ; then
2429c060
PB
11550 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11551 # We already found the complete path
b8025f34
AS
11552 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11553 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11554echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11555 else
11556 # Canadian cross, just use what we found
c6b750e1
DJ
11557 echo "$as_me:$LINENO: result: pre-installed" >&5
11558echo "${ECHO_T}pre-installed" >&6
2429c060 11559 fi
be01d343
PB
11560else
11561 ok=yes
11562 case " ${configdirs} " in
11563 *" binutils "*) ;;
11564 *) ok=no ;;
11565 esac
c6b750e1 11566
be01d343
PB
11567 if test $ok = yes; then
11568 # An in-tree tool is available and we can use it
11569 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11570 echo "$as_me:$LINENO: result: just compiled" >&5
11571echo "${ECHO_T}just compiled" >&6
2429c060
PB
11572 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11573 # We already found the complete path
b8025f34
AS
11574 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11575 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11576echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11577 elif test "x$target" = "x$host"; then
11578 # We can use an host tool
11579 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11580 echo "$as_me:$LINENO: result: host tool" >&5
11581echo "${ECHO_T}host tool" >&6
be01d343
PB
11582 else
11583 # We need a cross tool
c6b750e1
DJ
11584 echo "$as_me:$LINENO: result: pre-installed" >&5
11585echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11586 fi
11587fi
4b900473 11588
c6b750e1
DJ
11589echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11590echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11591if test "x${build}" != "x${host}" ; then
2429c060
PB
11592 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11593 # We already found the complete path
b8025f34
AS
11594 ac_dir=`dirname $GCC_FOR_TARGET`
11595 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11596echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11597 else
11598 # Canadian cross, just use what we found
c6b750e1
DJ
11599 echo "$as_me:$LINENO: result: pre-installed" >&5
11600echo "${ECHO_T}pre-installed" >&6
2429c060 11601 fi
be01d343
PB
11602else
11603 ok=yes
11604 case " ${configdirs} " in
11605 *" gcc "*) ;;
11606 *) ok=no ;;
11607 esac
c6b750e1 11608
be01d343
PB
11609 if test $ok = yes; then
11610 # An in-tree tool is available and we can use it
11611 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11612 echo "$as_me:$LINENO: result: just compiled" >&5
11613echo "${ECHO_T}just compiled" >&6
2429c060
PB
11614 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11615 # We already found the complete path
b8025f34
AS
11616 ac_dir=`dirname $GCC_FOR_TARGET`
11617 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11618echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11619 elif test "x$target" = "x$host"; then
11620 # We can use an host tool
11621 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11622 echo "$as_me:$LINENO: result: host tool" >&5
11623echo "${ECHO_T}host tool" >&6
be01d343
PB
11624 else
11625 # We need a cross tool
c6b750e1
DJ
11626 echo "$as_me:$LINENO: result: pre-installed" >&5
11627echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11628 fi
11629fi
4b900473 11630
c6b750e1
DJ
11631echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11632echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11633if test "x${build}" != "x${host}" ; then
2429c060
PB
11634 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11635 # We already found the complete path
b8025f34
AS
11636 ac_dir=`dirname $GCJ_FOR_TARGET`
11637 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11638echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11639 else
11640 # Canadian cross, just use what we found
c6b750e1
DJ
11641 echo "$as_me:$LINENO: result: pre-installed" >&5
11642echo "${ECHO_T}pre-installed" >&6
2429c060 11643 fi
be01d343
PB
11644else
11645 ok=yes
11646 case " ${configdirs} " in
11647 *" gcc "*) ;;
11648 *) ok=no ;;
11649 esac
11650 case ,${enable_languages}, in
11651 *,java,*) ;;
11652 *) ok=no ;;
11653 esac
11654 if test $ok = yes; then
11655 # An in-tree tool is available and we can use it
11656 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11657 echo "$as_me:$LINENO: result: just compiled" >&5
11658echo "${ECHO_T}just compiled" >&6
2429c060
PB
11659 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11660 # We already found the complete path
b8025f34
AS
11661 ac_dir=`dirname $GCJ_FOR_TARGET`
11662 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11663echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11664 elif test "x$target" = "x$host"; then
11665 # We can use an host tool
11666 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11667 echo "$as_me:$LINENO: result: host tool" >&5
11668echo "${ECHO_T}host tool" >&6
be01d343
PB
11669 else
11670 # We need a cross tool
c6b750e1
DJ
11671 echo "$as_me:$LINENO: result: pre-installed" >&5
11672echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11673 fi
11674fi
4b900473 11675
c6b750e1
DJ
11676echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11677echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11678if test "x${build}" != "x${host}" ; then
2429c060
PB
11679 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11680 # We already found the complete path
b8025f34
AS
11681 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11682 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11683echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11684 else
11685 # Canadian cross, just use what we found
c6b750e1
DJ
11686 echo "$as_me:$LINENO: result: pre-installed" >&5
11687echo "${ECHO_T}pre-installed" >&6
2429c060 11688 fi
be01d343
PB
11689else
11690 ok=yes
11691 case " ${configdirs} " in
11692 *" gcc "*) ;;
11693 *) ok=no ;;
11694 esac
11695 case ,${enable_languages}, in
11696 *,fortran,*) ;;
11697 *) ok=no ;;
11698 esac
11699 if test $ok = yes; then
11700 # An in-tree tool is available and we can use it
11701 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11702 echo "$as_me:$LINENO: result: just compiled" >&5
11703echo "${ECHO_T}just compiled" >&6
2429c060
PB
11704 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11705 # We already found the complete path
b8025f34
AS
11706 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11707 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11708echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11709 elif test "x$target" = "x$host"; then
11710 # We can use an host tool
11711 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11712 echo "$as_me:$LINENO: result: host tool" >&5
11713echo "${ECHO_T}host tool" >&6
be01d343
PB
11714 else
11715 # We need a cross tool
c6b750e1
DJ
11716 echo "$as_me:$LINENO: result: pre-installed" >&5
11717echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11718 fi
11719fi
4b900473 11720
c6b750e1
DJ
11721echo "$as_me:$LINENO: checking where to find the target ld" >&5
11722echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11723if test "x${build}" != "x${host}" ; then
2429c060
PB
11724 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11725 # We already found the complete path
b8025f34
AS
11726 ac_dir=`dirname $LD_FOR_TARGET`
11727 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11728echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11729 else
11730 # Canadian cross, just use what we found
c6b750e1
DJ
11731 echo "$as_me:$LINENO: result: pre-installed" >&5
11732echo "${ECHO_T}pre-installed" >&6
2429c060 11733 fi
be01d343
PB
11734else
11735 ok=yes
11736 case " ${configdirs} " in
11737 *" ld "*) ;;
11738 *) ok=no ;;
11739 esac
c6b750e1 11740
be01d343
PB
11741 if test $ok = yes; then
11742 # An in-tree tool is available and we can use it
11743 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11744 echo "$as_me:$LINENO: result: just compiled" >&5
11745echo "${ECHO_T}just compiled" >&6
2429c060
PB
11746 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11747 # We already found the complete path
b8025f34
AS
11748 ac_dir=`dirname $LD_FOR_TARGET`
11749 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11750echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11751 elif test "x$target" = "x$host"; then
11752 # We can use an host tool
11753 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11754 echo "$as_me:$LINENO: result: host tool" >&5
11755echo "${ECHO_T}host tool" >&6
be01d343
PB
11756 else
11757 # We need a cross tool
c6b750e1
DJ
11758 echo "$as_me:$LINENO: result: pre-installed" >&5
11759echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11760 fi
11761fi
4b900473 11762
c6b750e1
DJ
11763echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11764echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11765if test "x${build}" != "x${host}" ; then
2429c060
PB
11766 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11767 # We already found the complete path
b8025f34
AS
11768 ac_dir=`dirname $LIPO_FOR_TARGET`
11769 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11770echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11771 else
11772 # Canadian cross, just use what we found
c6b750e1
DJ
11773 echo "$as_me:$LINENO: result: pre-installed" >&5
11774echo "${ECHO_T}pre-installed" >&6
2429c060 11775 fi
be01d343 11776else
2429c060
PB
11777 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11778 # We already found the complete path
b8025f34
AS
11779 ac_dir=`dirname $LIPO_FOR_TARGET`
11780 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11781echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11782 elif test "x$target" = "x$host"; then
be01d343
PB
11783 # We can use an host tool
11784 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11785 echo "$as_me:$LINENO: result: host tool" >&5
11786echo "${ECHO_T}host tool" >&6
be01d343
PB
11787 else
11788 # We need a cross tool
c6b750e1
DJ
11789 echo "$as_me:$LINENO: result: pre-installed" >&5
11790echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11791 fi
11792fi
4b900473 11793
c6b750e1
DJ
11794echo "$as_me:$LINENO: checking where to find the target nm" >&5
11795echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11796if test "x${build}" != "x${host}" ; then
2429c060
PB
11797 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11798 # We already found the complete path
b8025f34
AS
11799 ac_dir=`dirname $NM_FOR_TARGET`
11800 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11801echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11802 else
11803 # Canadian cross, just use what we found
c6b750e1
DJ
11804 echo "$as_me:$LINENO: result: pre-installed" >&5
11805echo "${ECHO_T}pre-installed" >&6
2429c060 11806 fi
be01d343
PB
11807else
11808 ok=yes
11809 case " ${configdirs} " in
11810 *" binutils "*) ;;
11811 *) ok=no ;;
11812 esac
c6b750e1 11813
be01d343
PB
11814 if test $ok = yes; then
11815 # An in-tree tool is available and we can use it
11816 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11817 echo "$as_me:$LINENO: result: just compiled" >&5
11818echo "${ECHO_T}just compiled" >&6
2429c060
PB
11819 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11820 # We already found the complete path
b8025f34
AS
11821 ac_dir=`dirname $NM_FOR_TARGET`
11822 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11823echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11824 elif test "x$target" = "x$host"; then
11825 # We can use an host tool
11826 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11827 echo "$as_me:$LINENO: result: host tool" >&5
11828echo "${ECHO_T}host tool" >&6
be01d343
PB
11829 else
11830 # We need a cross tool
c6b750e1
DJ
11831 echo "$as_me:$LINENO: result: pre-installed" >&5
11832echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11833 fi
11834fi
4b900473 11835
c6b750e1
DJ
11836echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11837echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11838if test "x${build}" != "x${host}" ; then
2429c060
PB
11839 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11840 # We already found the complete path
b8025f34
AS
11841 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11842 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11843echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11844 else
11845 # Canadian cross, just use what we found
c6b750e1
DJ
11846 echo "$as_me:$LINENO: result: pre-installed" >&5
11847echo "${ECHO_T}pre-installed" >&6
2429c060 11848 fi
be01d343
PB
11849else
11850 ok=yes
11851 case " ${configdirs} " in
11852 *" binutils "*) ;;
11853 *) ok=no ;;
11854 esac
c6b750e1 11855
be01d343
PB
11856 if test $ok = yes; then
11857 # An in-tree tool is available and we can use it
11858 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11859 echo "$as_me:$LINENO: result: just compiled" >&5
11860echo "${ECHO_T}just compiled" >&6
2429c060
PB
11861 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11862 # We already found the complete path
b8025f34
AS
11863 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11864 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11865echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11866 elif test "x$target" = "x$host"; then
11867 # We can use an host tool
11868 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11869 echo "$as_me:$LINENO: result: host tool" >&5
11870echo "${ECHO_T}host tool" >&6
be01d343
PB
11871 else
11872 # We need a cross tool
c6b750e1
DJ
11873 echo "$as_me:$LINENO: result: pre-installed" >&5
11874echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11875 fi
11876fi
4b900473 11877
c6b750e1
DJ
11878echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11879echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11880if test "x${build}" != "x${host}" ; then
2429c060
PB
11881 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11882 # We already found the complete path
b8025f34
AS
11883 ac_dir=`dirname $RANLIB_FOR_TARGET`
11884 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11885echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11886 else
11887 # Canadian cross, just use what we found
c6b750e1
DJ
11888 echo "$as_me:$LINENO: result: pre-installed" >&5
11889echo "${ECHO_T}pre-installed" >&6
2429c060 11890 fi
be01d343
PB
11891else
11892 ok=yes
11893 case " ${configdirs} " in
11894 *" binutils "*) ;;
11895 *) ok=no ;;
11896 esac
c6b750e1 11897
be01d343
PB
11898 if test $ok = yes; then
11899 # An in-tree tool is available and we can use it
11900 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11901 echo "$as_me:$LINENO: result: just compiled" >&5
11902echo "${ECHO_T}just compiled" >&6
2429c060
PB
11903 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11904 # We already found the complete path
b8025f34
AS
11905 ac_dir=`dirname $RANLIB_FOR_TARGET`
11906 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11907echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11908 elif test "x$target" = "x$host"; then
11909 # We can use an host tool
11910 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11911 echo "$as_me:$LINENO: result: host tool" >&5
11912echo "${ECHO_T}host tool" >&6
be01d343
PB
11913 else
11914 # We need a cross tool
c6b750e1
DJ
11915 echo "$as_me:$LINENO: result: pre-installed" >&5
11916echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11917 fi
11918fi
4b900473 11919
c6b750e1
DJ
11920echo "$as_me:$LINENO: checking where to find the target strip" >&5
11921echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11922if test "x${build}" != "x${host}" ; then
2429c060
PB
11923 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11924 # We already found the complete path
b8025f34
AS
11925 ac_dir=`dirname $STRIP_FOR_TARGET`
11926 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11927echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11928 else
11929 # Canadian cross, just use what we found
c6b750e1
DJ
11930 echo "$as_me:$LINENO: result: pre-installed" >&5
11931echo "${ECHO_T}pre-installed" >&6
2429c060 11932 fi
be01d343
PB
11933else
11934 ok=yes
11935 case " ${configdirs} " in
11936 *" binutils "*) ;;
11937 *) ok=no ;;
11938 esac
c6b750e1 11939
be01d343
PB
11940 if test $ok = yes; then
11941 # An in-tree tool is available and we can use it
11942 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11943 echo "$as_me:$LINENO: result: just compiled" >&5
11944echo "${ECHO_T}just compiled" >&6
2429c060
PB
11945 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11946 # We already found the complete path
b8025f34
AS
11947 ac_dir=`dirname $STRIP_FOR_TARGET`
11948 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11949echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11950 elif test "x$target" = "x$host"; then
11951 # We can use an host tool
11952 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11953 echo "$as_me:$LINENO: result: host tool" >&5
11954echo "${ECHO_T}host tool" >&6
be01d343
PB
11955 else
11956 # We need a cross tool
c6b750e1
DJ
11957 echo "$as_me:$LINENO: result: pre-installed" >&5
11958echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11959 fi
11960fi
4b900473 11961
c6b750e1
DJ
11962echo "$as_me:$LINENO: checking where to find the target windres" >&5
11963echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11964if test "x${build}" != "x${host}" ; then
2429c060
PB
11965 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11966 # We already found the complete path
b8025f34
AS
11967 ac_dir=`dirname $WINDRES_FOR_TARGET`
11968 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11969echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11970 else
11971 # Canadian cross, just use what we found
c6b750e1
DJ
11972 echo "$as_me:$LINENO: result: pre-installed" >&5
11973echo "${ECHO_T}pre-installed" >&6
2429c060 11974 fi
be01d343
PB
11975else
11976 ok=yes
11977 case " ${configdirs} " in
11978 *" binutils "*) ;;
11979 *) ok=no ;;
11980 esac
c6b750e1 11981
be01d343
PB
11982 if test $ok = yes; then
11983 # An in-tree tool is available and we can use it
11984 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11985 echo "$as_me:$LINENO: result: just compiled" >&5
11986echo "${ECHO_T}just compiled" >&6
2429c060
PB
11987 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11988 # We already found the complete path
b8025f34
AS
11989 ac_dir=`dirname $WINDRES_FOR_TARGET`
11990 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11991echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11992 elif test "x$target" = "x$host"; then
11993 # We can use an host tool
11994 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11995 echo "$as_me:$LINENO: result: host tool" >&5
11996echo "${ECHO_T}host tool" >&6
be01d343
PB
11997 else
11998 # We need a cross tool
c6b750e1
DJ
11999 echo "$as_me:$LINENO: result: pre-installed" >&5
12000echo "${ECHO_T}pre-installed" >&6
be01d343 12001 fi
a0da8069 12002fi
54752a6b 12003
0c24b341
NC
12004echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12005echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12006if test "x${build}" != "x${host}" ; then
12007 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12008 # We already found the complete path
12009 ac_dir=`dirname $WINDMC_FOR_TARGET`
12010 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12011echo "${ECHO_T}pre-installed in $ac_dir" >&6
12012 else
12013 # Canadian cross, just use what we found
12014 echo "$as_me:$LINENO: result: pre-installed" >&5
12015echo "${ECHO_T}pre-installed" >&6
12016 fi
12017else
12018 ok=yes
12019 case " ${configdirs} " in
12020 *" binutils "*) ;;
12021 *) ok=no ;;
12022 esac
12023
12024 if test $ok = yes; then
12025 # An in-tree tool is available and we can use it
12026 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12027 echo "$as_me:$LINENO: result: just compiled" >&5
12028echo "${ECHO_T}just compiled" >&6
12029 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12030 # We already found the complete path
12031 ac_dir=`dirname $WINDMC_FOR_TARGET`
12032 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12033echo "${ECHO_T}pre-installed in $ac_dir" >&6
12034 elif test "x$target" = "x$host"; then
12035 # We can use an host tool
12036 WINDMC_FOR_TARGET='$(WINDMC)'
12037 echo "$as_me:$LINENO: result: host tool" >&5
12038echo "${ECHO_T}host tool" >&6
12039 else
12040 # We need a cross tool
12041 echo "$as_me:$LINENO: result: pre-installed" >&5
12042echo "${ECHO_T}pre-installed" >&6
12043 fi
12044fi
12045
54752a6b
NN
12046
12047
be01d343 12048
4b900473 12049
a0da8069
NN
12050# Certain tools may need extra flags.
12051AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12052RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12053NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12054
be01d343
PB
12055# When building target libraries, except in a Canadian cross, we use
12056# the same toolchain as the compiler we just built.
12057COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12058COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12059COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12060if test $host = $build; then
12061 case " $configdirs " in
12062 *" gcc "*)
12063 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12064 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12065 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12066 ;;
12067 esac
12068fi
12069
12070
12071
12072
12073
c6b750e1
DJ
12074echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12075echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12076# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12077if test "${enable_maintainer_mode+set}" = set; then
12078 enableval="$enable_maintainer_mode"
12079 USE_MAINTAINER_MODE=$enableval
12080else
12081 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12082fi;
12083echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12084echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12085
12086
12087if test "$USE_MAINTAINER_MODE" = yes; then
12088 MAINTAINER_MODE_TRUE=
12089 MAINTAINER_MODE_FALSE='#'
12090else
12091 MAINTAINER_MODE_TRUE='#'
12092 MAINTAINER_MODE_FALSE=
c6b750e1 12093fi
3d5e36ae
AO
12094MAINT=$MAINTAINER_MODE_TRUE
12095
1d39f329
NN
12096# ---------------------
12097# GCC bootstrap support
12098# ---------------------
12099
12100# Stage specific cflags for build.
12101stage1_cflags="-g"
12102case $build in
12103 vax-*-*)
12104 case ${GCC} in
12105 yes) stage1_cflags="-g -Wa,-J" ;;
12106 *) stage1_cflags="-g -J" ;;
12107 esac ;;
1d39f329
NN
12108esac
12109
1d89b610
PB
12110# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12111if test "$GCC" = yes; then
12112 saved_CFLAGS="$CFLAGS"
12113
12114 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12115 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12116 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12117echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12118 cat >conftest.$ac_ext <<_ACEOF
12119/* confdefs.h. */
12120_ACEOF
12121cat confdefs.h >>conftest.$ac_ext
12122cat >>conftest.$ac_ext <<_ACEOF
12123/* end confdefs.h. */
12124
2038f525
PB
12125#if (__GNUC__ < 3) \
12126 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12127 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12128#error http://gcc.gnu.org/PR29382
12129#endif
12130
c6b750e1
DJ
12131int
12132main ()
12133{
12134
12135 ;
12136 return 0;
12137}
12138_ACEOF
12139rm -f conftest.$ac_objext
12140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12141 (eval $ac_compile) 2>conftest.er1
12142 ac_status=$?
12143 grep -v '^ *+' conftest.er1 >conftest.err
12144 rm -f conftest.er1
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } &&
12148 { ac_try='test -z "$ac_c_werror_flag"
12149 || test ! -s conftest.err'
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12152 ac_status=$?
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; } &&
12155 { ac_try='test -s conftest.$ac_objext'
12156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12158 ac_status=$?
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; }; then
12161 echo "$as_me:$LINENO: result: yes" >&5
12162echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12163else
12164 echo "$as_me: failed program was:" >&5
12165sed 's/^/| /' conftest.$ac_ext >&5
12166
12167echo "$as_me:$LINENO: result: no" >&5
12168echo "${ECHO_T}no" >&6
12169fi
12170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12171
12172 CFLAGS="$saved_CFLAGS"
12173fi
12174
12175
1d39f329 12176
8a0d8a5c
PB
12177# Enable --enable-checking in stage1 of the compiler.
12178# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12179if test "${enable_stage1_checking+set}" = set; then
12180 enableval="$enable_stage1_checking"
12181 stage1_checking=--enable-checking=${enable_stage1_checking}
12182else
5566c1fa 12183 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12184 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12185else
5566c1fa 12186 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12187fi
c6b750e1 12188fi;
8a0d8a5c
PB
12189
12190
1d39f329 12191# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12192# Check whether --enable-werror or --disable-werror was given.
12193if test "${enable_werror+set}" = set; then
12194 enableval="$enable_werror"
c6b750e1 12195
1d39f329 12196else
a0323144 12197 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12198 enable_werror=yes
79fcd0ec
PB
12199else
12200 enable_werror=no
12201fi
c6b750e1 12202fi;
1a6f2dc7
NN
12203case ${enable_werror} in
12204 yes) stage2_werror_flag="--enable-werror-always" ;;
12205 *) stage2_werror_flag="" ;;
1d39f329
NN
12206esac
12207
12208
108a6f8e 12209# Flags needed to enable html installing and building
c6b750e1 12210
108a6f8e
CD
12211# Check whether --with-datarootdir or --without-datarootdir was given.
12212if test "${with_datarootdir+set}" = set; then
12213 withval="$with_datarootdir"
12214 datarootdir="\${prefix}/${withval}"
12215else
12216 datarootdir="\${prefix}/share"
c6b750e1 12217fi;
108a6f8e
CD
12218
12219
12220# Check whether --with-docdir or --without-docdir was given.
12221if test "${with_docdir+set}" = set; then
12222 withval="$with_docdir"
12223 docdir="\${prefix}/${withval}"
12224else
12225 docdir="\${datarootdir}/doc"
c6b750e1 12226fi;
108a6f8e
CD
12227
12228
a3ca38d2
DD
12229# Check whether --with-pdfdir or --without-pdfdir was given.
12230if test "${with_pdfdir+set}" = set; then
12231 withval="$with_pdfdir"
12232 pdfdir="\${prefix}/${withval}"
12233else
12234 pdfdir="\${docdir}"
12235fi;
12236
12237
108a6f8e
CD
12238# Check whether --with-htmldir or --without-htmldir was given.
12239if test "${with_htmldir+set}" = set; then
12240 withval="$with_htmldir"
12241 htmldir="\${prefix}/${withval}"
12242else
12243 htmldir="\${docdir}"
c6b750e1 12244fi;
108a6f8e
CD
12245
12246
12247
12248
12249
b8025f34 12250
c6b750e1
DJ
12251 ac_config_files="$ac_config_files Makefile"
12252cat >confcache <<\_ACEOF
a0da8069
NN
12253# This file is a shell script that caches the results of configure
12254# tests run on this system so they can be shared between configure
c6b750e1
DJ
12255# scripts and configure runs, see configure's option --config-cache.
12256# It is not useful on other systems. If it contains results you don't
12257# want to keep, you may remove or edit it.
a0da8069 12258#
c6b750e1
DJ
12259# config.status only pays attention to the cache file if you give it
12260# the --recheck option to rerun configure.
a0da8069 12261#
c6b750e1
DJ
12262# `ac_cv_env_foo' variables (set or unset) will be overridden when
12263# loading this file, other *unset* `ac_cv_foo' will be assigned the
12264# following values.
12265
12266_ACEOF
12267
a0da8069
NN
12268# The following way of writing the cache mishandles newlines in values,
12269# but we know of no workaround that is simple, portable, and efficient.
12270# So, don't put newlines in cache variables' values.
12271# Ultrix sh set writes to stderr and can't be redirected directly,
12272# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12273{
12274 (set) 2>&1 |
12275 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12276 *ac_space=\ *)
12277 # `set' does not quote correctly, so add quotes (double-quote
12278 # substitution turns \\\\ into \\, and sed turns \\ into \).
12279 sed -n \
12280 "s/'/'\\\\''/g;
12281 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12282 ;;
12283 *)
12284 # `set' quotes correctly as required by POSIX, so do not add quotes.
12285 sed -n \
12286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12287 ;;
12288 esac;
12289} |
12290 sed '
12291 t clear
12292 : clear
12293 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12294 t end
12295 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12296 : end' >>confcache
12297if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12298 if test -w $cache_file; then
c6b750e1
DJ
12299 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12300 cat confcache >$cache_file
a0da8069
NN
12301 else
12302 echo "not updating unwritable cache $cache_file"
12303 fi
852e5f18 12304fi
a0da8069 12305rm -f confcache
852e5f18 12306
a0da8069
NN
12307test "x$prefix" = xNONE && prefix=$ac_default_prefix
12308# Let make expand exec_prefix.
12309test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12310
c6b750e1
DJ
12311# VPATH may cause trouble with some makes, so we remove $(srcdir),
12312# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12313# trailing colons and then remove the whole line if VPATH becomes empty
12314# (actually we leave an empty line to preserve line numbers).
a0da8069 12315if test "x$srcdir" = x.; then
c6b750e1
DJ
12316 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12317s/:*\$(srcdir):*/:/;
12318s/:*\${srcdir}:*/:/;
12319s/:*@srcdir@:*/:/;
12320s/^\([^=]*=[ ]*\):*/\1/;
12321s/:*$//;
12322s/^[^=]*=[ ]*$//;
12323}'
a0da8069 12324fi
252b5132 12325
a0da8069
NN
12326# Transform confdefs.h into DEFS.
12327# Protect against shell expansion while executing Makefile rules.
12328# Protect against Makefile macro expansion.
c6b750e1
DJ
12329#
12330# If the first sed substitution is executed (which looks for macros that
12331# take arguments), then we branch to the quote section. Otherwise,
12332# look for a macro that doesn't take arguments.
12333cat >confdef2opt.sed <<\_ACEOF
12334t clear
12335: clear
12336s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12337t quote
12338s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12339t quote
12340d
12341: quote
12342s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12343s,\[,\\&,g
12344s,\],\\&,g
12345s,\$,$$,g
12346p
12347_ACEOF
12348# We use echo to avoid assuming a particular line-breaking character.
12349# The extra dot is to prevent the shell from consuming trailing
12350# line-breaks from the sub-command output. A line-break within
12351# single-quotes doesn't work because, if this script is created in a
12352# platform that uses two characters for line-breaks (e.g., DOS), tr
12353# would break.
12354ac_LF_and_DOT=`echo; echo .`
12355DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12356rm -f confdef2opt.sed
12357
12358
12359ac_libobjs=
12360ac_ltlibobjs=
12361for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12362 # 1. Remove the extension, and $U if already installed.
12363 ac_i=`echo "$ac_i" |
12364 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12365 # 2. Add them.
12366 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12367 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12368done
12369LIBOBJS=$ac_libobjs
852e5f18 12370
c6b750e1 12371LTLIBOBJS=$ac_ltlibobjs
376a0e54 12372
cac3d6c4 12373
c6b750e1
DJ
12374
12375: ${CONFIG_STATUS=./config.status}
12376ac_clean_files_save=$ac_clean_files
12377ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12378{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12379echo "$as_me: creating $CONFIG_STATUS" >&6;}
12380cat >$CONFIG_STATUS <<_ACEOF
12381#! $SHELL
12382# Generated by $as_me.
a0da8069 12383# Run this file to recreate the current configuration.
a0da8069 12384# Compiler output produced by configure, useful for debugging
c6b750e1 12385# configure, is in config.log if it exists.
376a0e54 12386
c6b750e1
DJ
12387debug=false
12388ac_cs_recheck=false
12389ac_cs_silent=false
12390SHELL=\${CONFIG_SHELL-$SHELL}
12391_ACEOF
12392
12393cat >>$CONFIG_STATUS <<\_ACEOF
12394## --------------------- ##
12395## M4sh Initialization. ##
12396## --------------------- ##
12397
12398# Be Bourne compatible
12399if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12400 emulate sh
12401 NULLCMD=:
12402 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12403 # is contrary to our usage. Disable this feature.
12404 alias -g '${1+"$@"}'='"$@"'
12405elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12406 set -o posix
12407fi
12408DUALCASE=1; export DUALCASE # for MKS sh
12409
12410# Support unset when possible.
12411if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12412 as_unset=unset
12413else
12414 as_unset=false
12415fi
12416
12417
12418# Work around bugs in pre-3.0 UWIN ksh.
12419$as_unset ENV MAIL MAILPATH
12420PS1='$ '
12421PS2='> '
12422PS4='+ '
12423
12424# NLS nuisances.
12425for as_var in \
12426 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12427 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12428 LC_TELEPHONE LC_TIME
12429do
12430 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12431 eval $as_var=C; export $as_var
12432 else
12433 $as_unset $as_var
12434 fi
12435done
12436
12437# Required to use basename.
12438if expr a : '\(a\)' >/dev/null 2>&1; then
12439 as_expr=expr
12440else
12441 as_expr=false
12442fi
12443
12444if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12445 as_basename=basename
12446else
12447 as_basename=false
12448fi
12449
12450
12451# Name of the executable.
12452as_me=`$as_basename "$0" ||
12453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12454 X"$0" : 'X\(//\)$' \| \
12455 X"$0" : 'X\(/\)$' \| \
12456 . : '\(.\)' 2>/dev/null ||
12457echo X/"$0" |
12458 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12459 /^X\/\(\/\/\)$/{ s//\1/; q; }
12460 /^X\/\(\/\).*/{ s//\1/; q; }
12461 s/.*/./; q'`
12462
12463
12464# PATH needs CR, and LINENO needs CR and PATH.
12465# Avoid depending upon Character Ranges.
12466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12469as_cr_digits='0123456789'
12470as_cr_alnum=$as_cr_Letters$as_cr_digits
12471
12472# The user is always right.
12473if test "${PATH_SEPARATOR+set}" != set; then
12474 echo "#! /bin/sh" >conf$$.sh
12475 echo "exit 0" >>conf$$.sh
12476 chmod +x conf$$.sh
12477 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12478 PATH_SEPARATOR=';'
12479 else
12480 PATH_SEPARATOR=:
12481 fi
12482 rm -f conf$$.sh
12483fi
12484
12485
12486 as_lineno_1=$LINENO
12487 as_lineno_2=$LINENO
12488 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12489 test "x$as_lineno_1" != "x$as_lineno_2" &&
12490 test "x$as_lineno_3" = "x$as_lineno_2" || {
12491 # Find who we are. Look in the path if we contain no path at all
12492 # relative or not.
12493 case $0 in
12494 *[\\/]* ) as_myself=$0 ;;
12495 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496for as_dir in $PATH
12497do
12498 IFS=$as_save_IFS
12499 test -z "$as_dir" && as_dir=.
12500 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12501done
12502
12503 ;;
12504 esac
12505 # We did not find ourselves, most probably we were run as `sh COMMAND'
12506 # in which case we are not to be found in the path.
12507 if test "x$as_myself" = x; then
12508 as_myself=$0
12509 fi
12510 if test ! -f "$as_myself"; then
12511 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12512echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12513 { (exit 1); exit 1; }; }
12514 fi
12515 case $CONFIG_SHELL in
12516 '')
12517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12519do
12520 IFS=$as_save_IFS
12521 test -z "$as_dir" && as_dir=.
12522 for as_base in sh bash ksh sh5; do
12523 case $as_dir in
12524 /*)
12525 if ("$as_dir/$as_base" -c '
12526 as_lineno_1=$LINENO
12527 as_lineno_2=$LINENO
12528 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12529 test "x$as_lineno_1" != "x$as_lineno_2" &&
12530 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12531 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12532 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12533 CONFIG_SHELL=$as_dir/$as_base
12534 export CONFIG_SHELL
12535 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12536 fi;;
12537 esac
12538 done
12539done
12540;;
12541 esac
12542
12543 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12544 # uniformly replaced by the line number. The first 'sed' inserts a
12545 # line-number line before each line; the second 'sed' does the real
12546 # work. The second script uses 'N' to pair each line-number line
12547 # with the numbered line, and appends trailing '-' during
12548 # substitution so that $LINENO is not a special case at line end.
12549 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12550 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12551 sed '=' <$as_myself |
12552 sed '
12553 N
12554 s,$,-,
12555 : loop
12556 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12557 t loop
12558 s,-$,,
12559 s,^['$as_cr_digits']*\n,,
12560 ' >$as_me.lineno &&
12561 chmod +x $as_me.lineno ||
12562 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12563echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12564 { (exit 1); exit 1; }; }
12565
12566 # Don't try to exec as it changes $[0], causing all sort of problems
12567 # (the dirname of $[0] is not the place where we might find the
12568 # original and so on. Autoconf is especially sensible to this).
12569 . ./$as_me.lineno
12570 # Exit status is that of the last command.
12571 exit
12572}
12573
12574
12575case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12576 *c*,-n*) ECHO_N= ECHO_C='
12577' ECHO_T=' ' ;;
12578 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12579 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12580esac
12581
12582if expr a : '\(a\)' >/dev/null 2>&1; then
12583 as_expr=expr
12584else
12585 as_expr=false
12586fi
12587
12588rm -f conf$$ conf$$.exe conf$$.file
12589echo >conf$$.file
12590if ln -s conf$$.file conf$$ 2>/dev/null; then
12591 # We could just check for DJGPP; but this test a) works b) is more generic
12592 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12593 if test -f conf$$.exe; then
12594 # Don't use ln at all; we don't have any links
12595 as_ln_s='cp -p'
12596 else
12597 as_ln_s='ln -s'
12598 fi
12599elif ln conf$$.file conf$$ 2>/dev/null; then
12600 as_ln_s=ln
12601else
12602 as_ln_s='cp -p'
12603fi
12604rm -f conf$$ conf$$.exe conf$$.file
12605
12606if mkdir -p . 2>/dev/null; then
12607 as_mkdir_p=:
12608else
12609 test -d ./-p && rmdir ./-p
12610 as_mkdir_p=false
12611fi
12612
12613as_executable_p="test -f"
12614
12615# Sed expression to map a string onto a valid CPP name.
12616as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12617
12618# Sed expression to map a string onto a valid variable name.
12619as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12620
12621
12622# IFS
12623# We need space, tab and new line, in precisely that order.
12624as_nl='
12625'
12626IFS=" $as_nl"
12627
12628# CDPATH.
12629$as_unset CDPATH
12630
12631exec 6>&1
12632
12633# Open the log real soon, to keep \$[0] and so on meaningful, and to
12634# report actual input values of CONFIG_FILES etc. instead of their
12635# values after options handling. Logging --version etc. is OK.
12636exec 5>>config.log
12637{
12638 echo
12639 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12640## Running $as_me. ##
12641_ASBOX
12642} >&5
12643cat >&5 <<_CSEOF
12644
12645This file was extended by $as_me, which was
12646generated by GNU Autoconf 2.59. Invocation command line was
12647
12648 CONFIG_FILES = $CONFIG_FILES
12649 CONFIG_HEADERS = $CONFIG_HEADERS
12650 CONFIG_LINKS = $CONFIG_LINKS
12651 CONFIG_COMMANDS = $CONFIG_COMMANDS
12652 $ $0 $@
12653
12654_CSEOF
12655echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12656echo >&5
12657_ACEOF
12658
12659# Files that config.status was made for.
12660if test -n "$ac_config_files"; then
12661 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12662fi
12663
12664if test -n "$ac_config_headers"; then
12665 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12666fi
12667
12668if test -n "$ac_config_links"; then
12669 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12670fi
12671
12672if test -n "$ac_config_commands"; then
12673 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12674fi
12675
12676cat >>$CONFIG_STATUS <<\_ACEOF
12677
12678ac_cs_usage="\
12679\`$as_me' instantiates files from templates according to the
12680current configuration.
12681
12682Usage: $0 [OPTIONS] [FILE]...
12683
12684 -h, --help print this help, then exit
12685 -V, --version print version number, then exit
12686 -q, --quiet do not print progress messages
12687 -d, --debug don't remove temporary files
12688 --recheck update $as_me by reconfiguring in the same conditions
12689 --file=FILE[:TEMPLATE]
12690 instantiate the configuration file FILE
12691
12692Configuration files:
12693$config_files
12694
12695Report bugs to <bug-autoconf@gnu.org>."
12696_ACEOF
12697
12698cat >>$CONFIG_STATUS <<_ACEOF
12699ac_cs_version="\\
12700config.status
12701configured by $0, generated by GNU Autoconf 2.59,
12702 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12703
12704Copyright (C) 2003 Free Software Foundation, Inc.
12705This config.status script is free software; the Free Software Foundation
12706gives unlimited permission to copy, distribute and modify it."
12707srcdir=$srcdir
12708INSTALL="$INSTALL"
12709_ACEOF
12710
12711cat >>$CONFIG_STATUS <<\_ACEOF
12712# If no file are specified by the user, then we need to provide default
12713# value. By we need to know if files were specified by the user.
12714ac_need_defaults=:
12715while test $# != 0
a0da8069 12716do
c6b750e1
DJ
12717 case $1 in
12718 --*=*)
12719 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12720 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12721 ac_shift=:
12722 ;;
12723 -*)
12724 ac_option=$1
12725 ac_optarg=$2
12726 ac_shift=shift
12727 ;;
12728 *) # This is not an option, so the user has probably given explicit
12729 # arguments.
12730 ac_option=$1
12731 ac_need_defaults=false;;
12732 esac
12733
12734 case $ac_option in
12735 # Handling of the options.
12736_ACEOF
12737cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12738 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12739 ac_cs_recheck=: ;;
12740 --version | --vers* | -V )
12741 echo "$ac_cs_version"; exit 0 ;;
12742 --he | --h)
12743 # Conflict between --help and --header
12744 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12745Try \`$0 --help' for more information." >&5
12746echo "$as_me: error: ambiguous option: $1
12747Try \`$0 --help' for more information." >&2;}
12748 { (exit 1); exit 1; }; };;
12749 --help | --hel | -h )
12750 echo "$ac_cs_usage"; exit 0 ;;
12751 --debug | --d* | -d )
12752 debug=: ;;
12753 --file | --fil | --fi | --f )
12754 $ac_shift
12755 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12756 ac_need_defaults=false;;
12757 --header | --heade | --head | --hea )
12758 $ac_shift
12759 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12760 ac_need_defaults=false;;
12761 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12762 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12763 ac_cs_silent=: ;;
12764
12765 # This is an error.
12766 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12767Try \`$0 --help' for more information." >&5
12768echo "$as_me: error: unrecognized option: $1
12769Try \`$0 --help' for more information." >&2;}
12770 { (exit 1); exit 1; }; } ;;
12771
12772 *) ac_config_targets="$ac_config_targets $1" ;;
12773
376a0e54 12774 esac
c6b750e1 12775 shift
376a0e54
CM
12776done
12777
c6b750e1 12778ac_configure_extra_args=
376a0e54 12779
c6b750e1
DJ
12780if $ac_cs_silent; then
12781 exec 6>/dev/null
12782 ac_configure_extra_args="$ac_configure_extra_args --silent"
12783fi
376a0e54 12784
c6b750e1
DJ
12785_ACEOF
12786cat >>$CONFIG_STATUS <<_ACEOF
12787if \$ac_cs_recheck; then
12788 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12789 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12790fi
12791
12792_ACEOF
12793
12794
12795
12796
12797
12798cat >>$CONFIG_STATUS <<\_ACEOF
12799for ac_config_target in $ac_config_targets
12800do
12801 case "$ac_config_target" in
12802 # Handling of arguments.
12803 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12804 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12805echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12806 { (exit 1); exit 1; }; };;
12807 esac
12808done
12809
12810# If the user did not use the arguments to specify the items to instantiate,
12811# then the envvar interface is used. Set only those that are not.
12812# We use the long form for the default assignment because of an extremely
12813# bizarre bug on SunOS 4.1.3.
12814if $ac_need_defaults; then
12815 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12816fi
12817
12818# Have a temporary directory for convenience. Make it in the build tree
12819# simply because there is no reason to put it here, and in addition,
12820# creating and moving files from /tmp can sometimes cause problems.
12821# Create a temporary directory, and hook for its removal unless debugging.
12822$debug ||
12823{
12824 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12825 trap '{ (exit 1); exit 1; }' 1 2 13 15
12826}
12827
12828# Create a (secure) tmp directory for tmp files.
12829
12830{
12831 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12832 test -n "$tmp" && test -d "$tmp"
12833} ||
12834{
12835 tmp=./confstat$$-$RANDOM
12836 (umask 077 && mkdir $tmp)
12837} ||
12838{
12839 echo "$me: cannot create a temporary directory in ." >&2
12840 { (exit 1); exit 1; }
12841}
12842
12843_ACEOF
12844
12845cat >>$CONFIG_STATUS <<_ACEOF
12846
12847#
12848# CONFIG_FILES section.
12849#
12850
12851# No need to generate the scripts if there are no CONFIG_FILES.
12852# This happens for instance when ./config.status config.h
12853if test -n "\$CONFIG_FILES"; then
12854 # Protect against being on the right side of a sed subst in config.status.
12855 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12856 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12857s,@SHELL@,$SHELL,;t t
12858s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12859s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12860s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12861s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12862s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12863s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12864s,@exec_prefix@,$exec_prefix,;t t
12865s,@prefix@,$prefix,;t t
12866s,@program_transform_name@,$program_transform_name,;t t
12867s,@bindir@,$bindir,;t t
12868s,@sbindir@,$sbindir,;t t
12869s,@libexecdir@,$libexecdir,;t t
12870s,@datadir@,$datadir,;t t
12871s,@sysconfdir@,$sysconfdir,;t t
12872s,@sharedstatedir@,$sharedstatedir,;t t
12873s,@localstatedir@,$localstatedir,;t t
12874s,@libdir@,$libdir,;t t
12875s,@includedir@,$includedir,;t t
12876s,@oldincludedir@,$oldincludedir,;t t
12877s,@infodir@,$infodir,;t t
12878s,@mandir@,$mandir,;t t
12879s,@build_alias@,$build_alias,;t t
12880s,@host_alias@,$host_alias,;t t
12881s,@target_alias@,$target_alias,;t t
12882s,@DEFS@,$DEFS,;t t
12883s,@ECHO_C@,$ECHO_C,;t t
12884s,@ECHO_N@,$ECHO_N,;t t
12885s,@ECHO_T@,$ECHO_T,;t t
12886s,@LIBS@,$LIBS,;t t
12887s,@build@,$build,;t t
12888s,@build_cpu@,$build_cpu,;t t
12889s,@build_vendor@,$build_vendor,;t t
12890s,@build_os@,$build_os,;t t
12891s,@build_noncanonical@,$build_noncanonical,;t t
12892s,@host_noncanonical@,$host_noncanonical,;t t
12893s,@target_noncanonical@,$target_noncanonical,;t t
12894s,@host@,$host,;t t
12895s,@host_cpu@,$host_cpu,;t t
12896s,@host_vendor@,$host_vendor,;t t
12897s,@host_os@,$host_os,;t t
12898s,@target@,$target,;t t
12899s,@target_cpu@,$target_cpu,;t t
12900s,@target_vendor@,$target_vendor,;t t
12901s,@target_os@,$target_os,;t t
12902s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12903s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12904s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12905s,@LN@,$LN,;t t
12906s,@LN_S@,$LN_S,;t t
12907s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12908s,@build_libsubdir@,$build_libsubdir,;t t
12909s,@build_subdir@,$build_subdir,;t t
12910s,@host_subdir@,$host_subdir,;t t
12911s,@target_subdir@,$target_subdir,;t t
12912s,@CC@,$CC,;t t
12913s,@CFLAGS@,$CFLAGS,;t t
12914s,@LDFLAGS@,$LDFLAGS,;t t
12915s,@CPPFLAGS@,$CPPFLAGS,;t t
12916s,@ac_ct_CC@,$ac_ct_CC,;t t
12917s,@EXEEXT@,$EXEEXT,;t t
12918s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12919s,@CXX@,$CXX,;t t
12920s,@CXXFLAGS@,$CXXFLAGS,;t t
12921s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12922s,@GNATBIND@,$GNATBIND,;t t
12923s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12924s,@GNATMAKE@,$GNATMAKE,;t t
12925s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12926s,@do_compare@,$do_compare,;t t
12927s,@gmplibs@,$gmplibs,;t t
12928s,@gmpinc@,$gmpinc,;t t
12929s,@stage1_languages@,$stage1_languages,;t t
12930s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12931s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
12932s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12933s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12934s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12935s,@tooldir@,$tooldir,;t t
12936s,@build_tooldir@,$build_tooldir,;t t
12937s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12938s,@GDB_TK@,$GDB_TK,;t t
12939s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12940s,@build_configargs@,$build_configargs,;t t
12941s,@build_configdirs@,$build_configdirs,;t t
12942s,@host_configargs@,$host_configargs,;t t
12943s,@configdirs@,$configdirs,;t t
12944s,@target_configargs@,$target_configargs,;t t
1576798e
PB
12945s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12946s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 12947s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
12948s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12949s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12950s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12951s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12952s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12953s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12954s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12955s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12956s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12957s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12958s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12959s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
12960s,@config_shell@,$config_shell,;t t
12961s,@YACC@,$YACC,;t t
12962s,@BISON@,$BISON,;t t
12963s,@M4@,$M4,;t t
12964s,@LEX@,$LEX,;t t
12965s,@FLEX@,$FLEX,;t t
12966s,@MAKEINFO@,$MAKEINFO,;t t
12967s,@EXPECT@,$EXPECT,;t t
12968s,@RUNTEST@,$RUNTEST,;t t
12969s,@AR@,$AR,;t t
12970s,@AS@,$AS,;t t
12971s,@DLLTOOL@,$DLLTOOL,;t t
12972s,@LD@,$LD,;t t
12973s,@LIPO@,$LIPO,;t t
12974s,@NM@,$NM,;t t
12975s,@RANLIB@,$RANLIB,;t t
12976s,@STRIP@,$STRIP,;t t
12977s,@WINDRES@,$WINDRES,;t t
0c24b341 12978s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12979s,@OBJCOPY@,$OBJCOPY,;t t
12980s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
12981s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12982s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12983s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12984s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12985s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12986s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12987s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12988s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12989s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12990s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12991s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12992s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12993s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12994s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12995s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12996s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12997s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12998s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12999s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13000s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13001s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13002s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13003s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13004s,@MAINT@,$MAINT,;t t
13005s,@stage1_cflags@,$stage1_cflags,;t t
13006s,@stage1_checking@,$stage1_checking,;t t
13007s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13008s,@datarootdir@,$datarootdir,;t t
13009s,@docdir@,$docdir,;t t
a3ca38d2 13010s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
13011s,@htmldir@,$htmldir,;t t
13012s,@LIBOBJS@,$LIBOBJS,;t t
13013s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 13014/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 13015s,@serialization_dependencies@,,;t t
a0da8069 13016/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 13017s,@host_makefile_frag@,,;t t
a0da8069 13018/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 13019s,@target_makefile_frag@,,;t t
a0da8069 13020/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 13021s,@alphaieee_frag@,,;t t
a0da8069 13022/@ospace_frag@/r $ospace_frag
c6b750e1 13023s,@ospace_frag@,,;t t
a0da8069 13024CEOF
252b5132 13025
c6b750e1
DJ
13026_ACEOF
13027
13028 cat >>$CONFIG_STATUS <<\_ACEOF
13029 # Split the substitutions into bite-sized pieces for seds with
13030 # small command number limits, like on Digital OSF/1 and HP-UX.
13031 ac_max_sed_lines=48
13032 ac_sed_frag=1 # Number of current file.
13033 ac_beg=1 # First line for current file.
13034 ac_end=$ac_max_sed_lines # Line after last line for current file.
13035 ac_more_lines=:
13036 ac_sed_cmds=
13037 while $ac_more_lines; do
13038 if test $ac_beg -gt 1; then
13039 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13040 else
13041 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13042 fi
13043 if test ! -s $tmp/subs.frag; then
13044 ac_more_lines=false
a0da8069 13045 else
c6b750e1
DJ
13046 # The purpose of the label and of the branching condition is to
13047 # speed up the sed processing (if there are no `@' at all, there
13048 # is no need to browse any of the substitutions).
13049 # These are the two extra sed commands mentioned above.
13050 (echo ':t
13051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13052 if test -z "$ac_sed_cmds"; then
13053 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13054 else
13055 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13056 fi
13057 ac_sed_frag=`expr $ac_sed_frag + 1`
13058 ac_beg=$ac_end
13059 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13060 fi
c6b750e1
DJ
13061 done
13062 if test -z "$ac_sed_cmds"; then
13063 ac_sed_cmds=cat
852e5f18 13064 fi
c6b750e1 13065fi # test -n "$CONFIG_FILES"
cac3d6c4 13066
c6b750e1
DJ
13067_ACEOF
13068cat >>$CONFIG_STATUS <<\_ACEOF
13069for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13070 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13071 case $ac_file in
13072 - | *:- | *:-:* ) # input from stdin
13073 cat >$tmp/stdin
13074 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13075 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13076 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13077 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13078 * ) ac_file_in=$ac_file.in ;;
a0da8069 13079 esac
252b5132 13080
c6b750e1
DJ
13081 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13082 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13083$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13084 X"$ac_file" : 'X\(//\)[^/]' \| \
13085 X"$ac_file" : 'X\(//\)$' \| \
13086 X"$ac_file" : 'X\(/\)' \| \
13087 . : '\(.\)' 2>/dev/null ||
13088echo X"$ac_file" |
13089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13091 /^X\(\/\/\)$/{ s//\1/; q; }
13092 /^X\(\/\).*/{ s//\1/; q; }
13093 s/.*/./; q'`
13094 { if $as_mkdir_p; then
13095 mkdir -p "$ac_dir"
cac3d6c4 13096 else
c6b750e1
DJ
13097 as_dir="$ac_dir"
13098 as_dirs=
13099 while test ! -d "$as_dir"; do
13100 as_dirs="$as_dir $as_dirs"
13101 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13102$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13103 X"$as_dir" : 'X\(//\)[^/]' \| \
13104 X"$as_dir" : 'X\(//\)$' \| \
13105 X"$as_dir" : 'X\(/\)' \| \
13106 . : '\(.\)' 2>/dev/null ||
13107echo X"$as_dir" |
13108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13109 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13110 /^X\(\/\/\)$/{ s//\1/; q; }
13111 /^X\(\/\).*/{ s//\1/; q; }
13112 s/.*/./; q'`
13113 done
13114 test ! -n "$as_dirs" || mkdir $as_dirs
13115 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13116echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13117 { (exit 1); exit 1; }; }; }
13118
13119 ac_builddir=.
252b5132 13120
c6b750e1
DJ
13121if test "$ac_dir" != .; then
13122 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13123 # A "../" for each directory in $ac_dir_suffix.
13124 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13125else
13126 ac_dir_suffix= ac_top_builddir=
13127fi
13128
13129case $srcdir in
13130 .) # No --srcdir option. We are building in place.
13131 ac_srcdir=.
13132 if test -z "$ac_top_builddir"; then
13133 ac_top_srcdir=.
13134 else
13135 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13136 fi ;;
13137 [\\/]* | ?:[\\/]* ) # Absolute path.
13138 ac_srcdir=$srcdir$ac_dir_suffix;
13139 ac_top_srcdir=$srcdir ;;
a0da8069 13140 *) # Relative path.
c6b750e1
DJ
13141 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13142 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13143esac
252b5132 13144
c6b750e1
DJ
13145# Do not use `cd foo && pwd` to compute absolute paths, because
13146# the directories may not exist.
13147case `pwd` in
13148.) ac_abs_builddir="$ac_dir";;
13149*)
13150 case "$ac_dir" in
13151 .) ac_abs_builddir=`pwd`;;
13152 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13153 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13154 esac;;
13155esac
13156case $ac_abs_builddir in
13157.) ac_abs_top_builddir=${ac_top_builddir}.;;
13158*)
13159 case ${ac_top_builddir}. in
13160 .) ac_abs_top_builddir=$ac_abs_builddir;;
13161 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13162 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13163 esac;;
13164esac
13165case $ac_abs_builddir in
13166.) ac_abs_srcdir=$ac_srcdir;;
13167*)
13168 case $ac_srcdir in
13169 .) ac_abs_srcdir=$ac_abs_builddir;;
13170 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13171 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13172 esac;;
13173esac
13174case $ac_abs_builddir in
13175.) ac_abs_top_srcdir=$ac_top_srcdir;;
13176*)
13177 case $ac_top_srcdir in
13178 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13179 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13180 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13181 esac;;
13182esac
252b5132 13183
c6b750e1
DJ
13184
13185 case $INSTALL in
13186 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13187 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13188 esac
252b5132 13189
c6b750e1
DJ
13190 if test x"$ac_file" != x-; then
13191 { echo "$as_me:$LINENO: creating $ac_file" >&5
13192echo "$as_me: creating $ac_file" >&6;}
13193 rm -f "$ac_file"
13194 fi
13195 # Let's still pretend it is `configure' which instantiates (i.e., don't
13196 # use $as_me), people would be surprised to read:
13197 # /* config.h. Generated by config.status. */
13198 if test x"$ac_file" = x-; then
13199 configure_input=
13200 else
13201 configure_input="$ac_file. "
13202 fi
13203 configure_input=$configure_input"Generated from `echo $ac_file_in |
13204 sed 's,.*/,,'` by configure."
13205
13206 # First look for the input files in the build tree, otherwise in the
13207 # src tree.
13208 ac_file_inputs=`IFS=:
13209 for f in $ac_file_in; do
13210 case $f in
13211 -) echo $tmp/stdin ;;
13212 [\\/$]*)
13213 # Absolute (can't be DOS-style, as IFS=:)
13214 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13215echo "$as_me: error: cannot find input file: $f" >&2;}
13216 { (exit 1); exit 1; }; }
13217 echo "$f";;
13218 *) # Relative
13219 if test -f "$f"; then
13220 # Build tree
13221 echo "$f"
13222 elif test -f "$srcdir/$f"; then
13223 # Source tree
13224 echo "$srcdir/$f"
13225 else
13226 # /dev/null tree
13227 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13228echo "$as_me: error: cannot find input file: $f" >&2;}
13229 { (exit 1); exit 1; }; }
13230 fi;;
13231 esac
13232 done` || { (exit 1); exit 1; }
13233_ACEOF
13234cat >>$CONFIG_STATUS <<_ACEOF
13235 sed "$ac_vpsub
13236$extrasub
13237_ACEOF
13238cat >>$CONFIG_STATUS <<\_ACEOF
13239:t
13240/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13241s,@configure_input@,$configure_input,;t t
13242s,@srcdir@,$ac_srcdir,;t t
13243s,@abs_srcdir@,$ac_abs_srcdir,;t t
13244s,@top_srcdir@,$ac_top_srcdir,;t t
13245s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13246s,@builddir@,$ac_builddir,;t t
13247s,@abs_builddir@,$ac_abs_builddir,;t t
13248s,@top_builddir@,$ac_top_builddir,;t t
13249s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13250s,@INSTALL@,$ac_INSTALL,;t t
13251" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13252 rm -f $tmp/stdin
13253 if test x"$ac_file" != x-; then
13254 mv $tmp/out $ac_file
13255 else
13256 cat $tmp/out
13257 rm -f $tmp/out
13258 fi
c148b4cb 13259
c6b750e1
DJ
13260done
13261_ACEOF
c148b4cb 13262
c6b750e1 13263cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13264
c6b750e1
DJ
13265{ (exit 0); exit 0; }
13266_ACEOF
c148b4cb 13267chmod +x $CONFIG_STATUS
c6b750e1
DJ
13268ac_clean_files=$ac_clean_files_save
13269
13270
13271# configure is writing to config.log, and then calls config.status.
13272# config.status does its own redirection, appending to config.log.
13273# Unfortunately, on DOS this fails, as config.log is still kept open
13274# by configure, so config.status won't be able to write to it; its
13275# output is simply discarded. So we exec the FD to /dev/null,
13276# effectively closing config.log, so it can be properly (re)opened and
13277# appended to by config.status. When coming back to configure, we
13278# need to make the FD available again.
13279if test "$no_create" != yes; then
13280 ac_cs_success=:
13281 ac_config_status_args=
13282 test "$silent" = yes &&
13283 ac_config_status_args="$ac_config_status_args --quiet"
13284 exec 5>/dev/null
13285 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13286 exec 5>>config.log
13287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13288 # would make configure fail if this is the last instruction.
13289 $ac_cs_success || { (exit 1); exit 1; }
13290fi
c148b4cb 13291
This page took 1.145386 seconds and 4 git commands to generate.